You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by mh...@apache.org on 2011/03/02 02:20:39 UTC

svn commit: r1076074 - in /shindig/trunk: features/src/main/javascript/features/caja/ features/src/main/javascript/features/cloo/ features/src/main/javascript/features/com.google.gadgets.analytics/ features/src/main/javascript/features/container/ featu...

Author: mhermanto
Date: Wed Mar  2 01:20:38 2011
New Revision: 1076074

URL: http://svn.apache.org/viewvc?rev=1076074&view=rev
Log:
Exports more symbols via feature directives.
http://codereview.appspot.com/4254051/

Added:
    shindig/trunk/features/src/main/javascript/features/dynamic-height.height/taming.js
    shindig/trunk/features/src/main/javascript/features/dynamic-height.util/taming.js
    shindig/trunk/java/server/src/main/webapp/WEB-INF/lib/
Modified:
    shindig/trunk/features/src/main/javascript/features/caja/feature.xml
    shindig/trunk/features/src/main/javascript/features/cloo/cloo.js
    shindig/trunk/features/src/main/javascript/features/cloo/feature.xml
    shindig/trunk/features/src/main/javascript/features/com.google.gadgets.analytics/feature.xml
    shindig/trunk/features/src/main/javascript/features/container/feature.xml
    shindig/trunk/features/src/main/javascript/features/core.config.base/feature.xml
    shindig/trunk/features/src/main/javascript/features/core.config/feature.xml
    shindig/trunk/features/src/main/javascript/features/core.io/feature.xml
    shindig/trunk/features/src/main/javascript/features/core.legacy/feature.xml
    shindig/trunk/features/src/main/javascript/features/core.legacy/legacy.js
    shindig/trunk/features/src/main/javascript/features/core.log/feature.xml
    shindig/trunk/features/src/main/javascript/features/core.prefs/feature.xml
    shindig/trunk/features/src/main/javascript/features/core.util.urlparams/feature.xml
    shindig/trunk/features/src/main/javascript/features/core.util/feature.xml
    shindig/trunk/features/src/main/javascript/features/dynamic-height.height/feature.xml
    shindig/trunk/features/src/main/javascript/features/dynamic-height.util/feature.xml
    shindig/trunk/features/src/main/javascript/features/dynamic-height/taming.js
    shindig/trunk/features/src/main/javascript/features/exportjs/feature.xml
    shindig/trunk/features/src/main/javascript/features/flash/feature.xml
    shindig/trunk/features/src/main/javascript/features/globals/feature.xml
    shindig/trunk/features/src/main/javascript/features/globals/globals.js
    shindig/trunk/features/src/main/javascript/features/jsondom/feature.xml
    shindig/trunk/features/src/main/javascript/features/minimessage/feature.xml
    shindig/trunk/features/src/main/javascript/features/oauthpopup/feature.xml
    shindig/trunk/features/src/main/javascript/features/rpc/feature.xml
    shindig/trunk/features/src/main/javascript/features/setprefs/feature.xml
    shindig/trunk/features/src/main/javascript/features/settitle/feature.xml
    shindig/trunk/features/src/main/javascript/features/shindig.auth/feature.xml
    shindig/trunk/features/src/main/javascript/features/shindig.random/feature.xml
    shindig/trunk/features/src/main/javascript/features/shindig.sha1/feature.xml
    shindig/trunk/features/src/main/javascript/features/shindig.uri/feature.xml
    shindig/trunk/features/src/main/javascript/features/shindig.xhrwrapper/feature.xml
    shindig/trunk/features/src/main/javascript/features/skins/feature.xml
    shindig/trunk/features/src/main/javascript/features/swfobject/feature.xml
    shindig/trunk/features/src/main/javascript/features/tabs/feature.xml
    shindig/trunk/features/src/main/javascript/features/views/feature.xml
    shindig/trunk/features/src/main/javascript/features/xmlutil/feature.xml

Modified: shindig/trunk/features/src/main/javascript/features/caja/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/caja/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/caja/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/caja/feature.xml Wed Mar  2 01:20:38 2011
@@ -27,5 +27,9 @@ The javascript referenced here should be
     <script src="caja.js"/>
     <script src="res://com/google/caja/plugin/valija.out.js"/>
     <script src="taming.js"/>
+    <exports type="js">caja___.enable</exports>
+    <exports type="js">caja___.whitelistCtors</exports>
+    <exports type="js">caja___.whitelistFuncs</exports>
+    <exports type="js">caja___.whitelistMeths</exports>
   </gadget>
 </feature>

Modified: shindig/trunk/features/src/main/javascript/features/cloo/cloo.js
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/cloo/cloo.js?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/cloo/cloo.js (original)
+++ shindig/trunk/features/src/main/javascript/features/cloo/cloo.js Wed Mar  2 01:20:38 2011
@@ -74,7 +74,7 @@
  * var myClassInstance = MyClass({}, { height: 12, color: "red"});
  */
 
-window['cloo'] = (function() {
+var cloo = (function() {
   var UNKNOWN_NAME = "(n/a)";
   var selfs = [];
 

Modified: shindig/trunk/features/src/main/javascript/features/cloo/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/cloo/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/cloo/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/cloo/feature.xml Wed Mar  2 01:20:38 2011
@@ -18,16 +18,12 @@
 -->
 <feature>
   <name>cloo</name>
-  <gadget>
-    <api>
-      <exports type="js">cloo</exports>
-    </api>
+  <all>
     <script src="cloo.js"/>
-  </gadget>
-  <container>
     <api>
-      <exports type="js">cloo</exports>
+      <exports type="js">cloo.interfc</exports>
+      <exports type="js">cloo.obj</exports>
+      <exports type="js">cloo.me</exports>
     </api>
-    <script src="cloo.js"/>
-  </container>
+  </all>
 </feature>

Modified: shindig/trunk/features/src/main/javascript/features/com.google.gadgets.analytics/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/com.google.gadgets.analytics/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/com.google.gadgets.analytics/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/com.google.gadgets.analytics/feature.xml Wed Mar  2 01:20:38 2011
@@ -24,5 +24,8 @@ specific language governing permissions 
     <script inline="true" src="http://www.google.com/ig/lib/libga.js"/>
     <script src="analytics.js"/>
     <script src="taming.js"/>
+    <exports type="js">_IG_GA</exports>
+    <exports type="js">gadgets.analytics</exports>
+    <exports type="js">gadgets.analytics.prototype.reportPageview</exports>
   </gadget>
 </feature>

Modified: shindig/trunk/features/src/main/javascript/features/container/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/container/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/container/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/container/feature.xml Wed Mar  2 01:20:38 2011
@@ -34,5 +34,41 @@ under the License.
     <script src="gadget_site.js"/>
     <script src="container.js"/>
     <script src="init.js"/>
+    <api>
+      <exports type="js">shindig.container.Container</exports>
+      <exports type="js">shindig.container.Container.prototype.newGadgetSite</exports>
+      <exports type="js">shindig.container.Container.prototype.navigateGadget</exports>
+      <exports type="js">shindig.container.Container.prototype.closeGadget</exports>
+      <exports type="js">shindig.container.Container.prototype.preloadGadget</exports>
+      <exports type="js">shindig.container.Container.prototype.preloadGadgets</exports>
+      <exports type="js">shindig.container.Container.prototype.unloadGadget</exports>
+      <exports type="js">shindig.container.Container.prototype.unloadGadgets</exports>
+      <exports type="js">shindig.container.Container.prototype.getGadgetMetadata</exports>
+      <exports type="js">shindig.container.Container.prototype.rpcRegister</exports>
+      <exports type="js">shindig.container.Container.prototype.onConstructed</exports>
+      <exports type="js">shindig.container.ContainerConfig.RENDER_CAJOLE</exports>
+      <exports type="js">shindig.container.ContainerConfig.RENDER_DEBUG</exports>
+      <exports type="js">shindig.container.ContainerConfig.RENDER_DEBUG_PARAM</exports>
+      <exports type="js">shindig.container.ContainerConfig.RENDER_TEST</exports>
+      <exports type="js">shindig.container.ContainerConfig.TOKEN_REFRESH_INTERVAL</exports>
+      <exports type="js">shindig.container.ContainerConfig.NAVIGATE_CALLBACK</exports>
+      <exports type="js">shindig.container.ContainerConfig.PRELOAD_REF_TIME</exports>
+      <exports type="js">shindig.container.ContainerConfig.PRELOAD_METADATAS</exports>
+      <exports type="js">shindig.container.ContainerConfig.PRELOAD_TOKENS</exports>
+      <exports type="js">shindig.container.ContainerRender.ALLOW_DEFAULT_VIEW</exports>
+      <exports type="js">shindig.container.ContainerRender.CLASS</exports>
+      <exports type="js">shindig.container.ContainerRender.DEBUG</exports>
+      <exports type="js">shindig.container.ContainerRender.HEIGHT</exports>
+      <exports type="js">shindig.container.ContainerRender.TEST</exports>
+      <exports type="js">shindig.container.ContainerRender.VIEW</exports>
+      <exports type="js">shindig.container.ContainerRender.WIDTH</exports>
+      <exports type="js">shindig.container.GadgetSite</exports>
+      <exports type="js">shindig.container.GadgetSite.prototype.setHeight</exports>
+      <exports type="js">shindig.container.GadgetSite.prototype.setWidth</exports>
+      <exports type="js">shindig.container.GadgetSite.prototype.getId</exports>
+      <exports type="js">shindig.container.GadgetSite.prototype.getActiveGadgetHolder</exports>
+      <exports type="js">shindig.container.GadgetSite.prototype.rpcCall</exports>
+      <exports type="js">shindig.container.GadgetSite.prototype.close</exports>
+    </api>
   </container>
 </feature>

Modified: shindig/trunk/features/src/main/javascript/features/core.config.base/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/core.config.base/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/core.config.base/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/core.config.base/feature.xml Wed Mar  2 01:20:38 2011
@@ -26,6 +26,7 @@
       <exports type="js">gadgets.config.register</exports>
       <exports type="js">gadgets.config.get</exports>
       <exports type="js">gadgets.config.init</exports>
+      <exports type="js">gadgets.config.update</exports>      
       <exports type="js">gadgets.config.isGadget</exports>
     </api>
   </gadget>
@@ -36,6 +37,7 @@
       <exports type="js">gadgets.config.register</exports>
       <exports type="js">gadgets.config.get</exports>
       <exports type="js">gadgets.config.init</exports>
+      <exports type="js">gadgets.config.update</exports>
       <exports type="js">gadgets.config.isContainer</exports>
     </api>
   </container>

Modified: shindig/trunk/features/src/main/javascript/features/core.config/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/core.config/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/core.config/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/core.config/feature.xml Wed Mar  2 01:20:38 2011
@@ -20,7 +20,7 @@
   <name>core.config</name>
   <dependency>globals</dependency>
   <dependency>core.config.base</dependency>
-  <gadget>
+  <all>
     <script src="validators.js"/>
     <api>
       <exports type="js">gadgets.config.EnumValidator</exports>
@@ -30,16 +30,5 @@
       <exports type="js">gadgets.config.BooleanValidator</exports>
       <exports type="js">gadgets.config.LikeValidator</exports>
     </api>
-  </gadget>
-  <container>
-    <script src="validators.js"/>
-    <api>
-      <exports type="js">gadgets.config.EnumValidator</exports>
-      <exports type="js">gadgets.config.RegExValidator</exports>
-      <exports type="js">gadgets.config.ExistsValidator</exports>
-      <exports type="js">gadgets.config.NonEmptyStringValidator</exports>
-      <exports type="js">gadgets.config.BooleanValidator</exports>
-      <exports type="js">gadgets.config.LikeValidator</exports>
-    </api>
-  </container>
+  </all>
 </feature>

Modified: shindig/trunk/features/src/main/javascript/features/core.io/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/core.io/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/core.io/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/core.io/feature.xml Wed Mar  2 01:20:38 2011
@@ -34,12 +34,19 @@
   <dependency>core.config</dependency>
   <dependency>core.json</dependency>
   <dependency>core.util</dependency>
-  <gadget>
+  <all>
     <script src="io.js"/>
     <script src="taming.js"/>
-  </gadget>
-  <container>
-    <script src="io.js"/>
-    <script src="taming.js"/>
-  </container>
+    <api>
+      <exports type="js">gadgets.io.makeRequest</exports>
+      <exports type="js">gadgets.io.makeNonProxiedRequest</exports>
+      <exports type="js">gadgets.io.clearOAuthState</exports>
+      <exports type="js">gadgets.io.encodeValues</exports>
+      <exports type="js">gadgets.io.getProxyUrl</exports>
+      <exports type="js">gadgets.io.RequestParameters</exports>
+      <exports type="js">gadgets.io.MethodType</exports>
+      <exports type="js">gadgets.io.ContentType</exports>
+      <exports type="js">gadgets.io.AuthorizationType</exports>
+    </api>
+  </all>
 </feature>

Modified: shindig/trunk/features/src/main/javascript/features/core.legacy/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/core.legacy/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/core.legacy/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/core.legacy/feature.xml Wed Mar  2 01:20:38 2011
@@ -18,11 +18,39 @@
 -->
 <feature>
   <name>core.legacy</name>
+  <dependency>globals</dependency>
   <dependency>core.json</dependency>
   <dependency>core.io</dependency>
   <dependency>core.prefs</dependency>
   <dependency>core.util</dependency>
   <gadget>
     <script src="legacy.js"/>
+    <api>
+      <exports type="js">JSON</exports>
+      <exports type="js">_IG_Prefs</exports>
+      <exports type="js">_IG_Fetch_wrapper</exports>
+      <exports type="js">_IG_FetchContent</exports>
+      <exports type="js">_IG_FetchXmlContent</exports>
+      <exports type="js">_IG_FetchFeedAsJSON</exports>
+      <exports type="js">_IG_GetCachedUrl</exports>
+      <exports type="js">_IG_GetImageUrl</exports>
+      <exports type="js">_IG_GetImage</exports>
+      <exports type="js">_IG_RegisterOnloadHandler</exports>
+      <exports type="js">_IG_Callback</exports>
+      <exports type="js">_IG_AddDOMEventHandler</exports>
+      <exports type="js">_gel</exports>
+      <exports type="js">_gelstn</exports>
+      <exports type="js">_gelsbyregex</exports>
+      <exports type="js">_esc</exports>
+      <exports type="js">_unesc</exports>
+      <exports type="js">_hesc</exports>
+      <exports type="js">_striptags</exports>
+      <exports type="js">_trim</exports>
+      <exports type="js">_toggle</exports>
+      <exports type="js">_uid</exports>
+      <exports type="js">_min</exports>
+      <exports type="js">_max</exports>
+      <exports type="js">_exportSymbols</exports>
+    </api>
   </gadget>
 </feature>

Modified: shindig/trunk/features/src/main/javascript/features/core.legacy/legacy.js
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/core.legacy/legacy.js?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/core.legacy/legacy.js (original)
+++ shindig/trunk/features/src/main/javascript/features/core.legacy/legacy.js Wed Mar  2 01:20:38 2011
@@ -17,9 +17,6 @@
  * under the License.
  */
 
-/*global gadgets */
-var gadgets;
-
 /**
  * @fileoverview All functions in this file should be treated as deprecated legacy routines.
  * Gadget authors are explicitly discouraged from using any of them.

Modified: shindig/trunk/features/src/main/javascript/features/core.log/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/core.log/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/core.log/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/core.log/feature.xml Wed Mar  2 01:20:38 2011
@@ -20,30 +20,16 @@
   <name>core.log</name>
   <dependency>globals</dependency>
   <dependency>taming</dependency>
-  <gadget>
+  <all>
     <script src="log.js"/>
     <script src="taming.js"/>
     <api>
       <exports type="js">gadgets.error</exports>
-      <exports type="js">gadgets.log</exports>
       <exports type="js">gadgets.log.INFO</exports>
       <exports type="js">gadgets.log.WARNING</exports>
       <exports type="js">gadgets.log.NONE</exports>
       <exports type="js">gadgets.setLogLevel</exports>
       <exports type="js">gadgets.warn</exports>
     </api>
-  </gadget>
-  <container>
-    <script src="log.js"/>
-    <script src="taming.js"/>
-    <api>
-      <exports type="js">gadgets.error</exports>
-      <exports type="js">gadgets.log</exports>
-      <exports type="js">gadgets.log.INFO</exports>
-      <exports type="js">gadgets.log.WARNING</exports>
-      <exports type="js">gadgets.log.NONE</exports>
-      <exports type="js">gadgets.setLogLevel</exports>
-      <exports type="js">gadgets.warn</exports>
-    </api>
-  </container>
+  </all>
 </feature>

Modified: shindig/trunk/features/src/main/javascript/features/core.prefs/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/core.prefs/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/core.prefs/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/core.prefs/feature.xml Wed Mar  2 01:20:38 2011
@@ -24,5 +24,19 @@
   <gadget>
     <script src="prefs.js"/>
     <script src="taming.js"/>
+    <api>
+      <exports type="js">gadgets.Prefs</exports>
+      <exports type="js">gadgets.Prefs.prototype.getString</exports>
+      <exports type="js">gadgets.Prefs.prototype.getInt</exports>
+      <exports type="js">gadgets.Prefs.prototype.getFloat</exports>
+      <exports type="js">gadgets.Prefs.prototype.getBool</exports>
+      <exports type="js">gadgets.Prefs.prototype.set</exports>
+      <exports type="js">gadgets.Prefs.prototype.getArray</exports>
+      <exports type="js">gadgets.Prefs.prototype.setArray</exports>
+      <exports type="js">gadgets.Prefs.prototype.getMsg</exports>
+      <exports type="js">gadgets.Prefs.prototype.getCountry</exports>
+      <exports type="js">gadgets.Prefs.prototype.getLang</exports>
+      <exports type="js">gadgets.Prefs.prototype.getModuleId</exports>
+    </api>
   </gadget>
 </feature>

Modified: shindig/trunk/features/src/main/javascript/features/core.util.urlparams/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/core.util.urlparams/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/core.util.urlparams/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/core.util.urlparams/feature.xml Wed Mar  2 01:20:38 2011
@@ -19,16 +19,10 @@
 <feature>
   <name>core.util.urlparams</name>
   <dependency>globals</dependency>
-  <gadget>
+  <all>
     <script src="urlparams.js"/>
     <api>
       <exports type="js">gadgets.util.getUrlParameters</exports>
     </api>
-  </gadget>
-  <container>
-    <script src="urlparams.js"/>
-    <api>
-      <exports type="js">gadgets.util.getUrlParameters</exports>
-    </api>
-  </container>
+  </all>
 </feature>

Modified: shindig/trunk/features/src/main/javascript/features/core.util/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/core.util/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/core.util/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/core.util/feature.xml Wed Mar  2 01:20:38 2011
@@ -22,7 +22,7 @@
   <dependency>taming</dependency>
   <dependency>core.config</dependency>
   <dependency>core.util.urlparams</dependency>
-  <gadget>
+  <all>
     <script src="util.js"/>
     <script src="taming.js"/>
     <api>
@@ -40,24 +40,5 @@
       <exports type="js">gadgets.util.attachBrowserEvent</exports>
       <exports type="js">gadgets.util.removeBrowserEvent</exports>
     </api>
-  </gadget>
-  <container>
-    <script src="util.js"/>
-    <script src="taming.js"/>
-    <api>
-      <exports type="js">gadgets.util.getUrlParameters</exports>
-      <exports type="js">gadgets.util.makeClosure</exports>
-      <exports type="js">gadgets.util.makeEnum</exports>
-      <exports type="js">gadgets.util.getFeatureParameters</exports>
-      <exports type="js">gadgets.util.hasFeature</exports>
-      <exports type="js">gadgets.util.getServices</exports>
-      <exports type="js">gadgets.util.registerOnLoadHandler</exports>
-      <exports type="js">gadgets.util.runOnLoadHandlers</exports>
-      <exports type="js">gadgets.util.escape</exports>
-      <exports type="js">gadgets.util.escapeString</exports>
-      <exports type="js">gadgets.util.unescapeString</exports>
-      <exports type="js">gadgets.util.attachBrowserEvent</exports>
-      <exports type="js">gadgets.util.removeBrowserEvent</exports>
-    </api>
-  </container>
+  </all>
 </feature>

Modified: shindig/trunk/features/src/main/javascript/features/dynamic-height.height/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/dynamic-height.height/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/dynamic-height.height/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/dynamic-height.height/feature.xml Wed Mar  2 01:20:38 2011
@@ -19,17 +19,13 @@ specific language governing permissions 
 <feature>
   <name>dynamic-height.height</name>
   <dependency>globals</dependency>
+  <dependency>taming</dependency>
   <dependency>dynamic-height.util</dependency>
-  <gadget>
+  <all>
     <script src="dynamic-height-height.js"/>
-    <apis>
+    <script src="taming.js"/>
+    <api>
       <exports type="js">gadgets.window.getHeight</exports>
-    </apis>
-  </gadget>
-  <container>
-    <script src="dynamic-height-height.js"/>
-    <apis>
-      <exports type="js">gadgets.window.getHeight</exports>
-    </apis>
-  </container>
+    </api>
+  </all>
 </feature>

Added: shindig/trunk/features/src/main/javascript/features/dynamic-height.height/taming.js
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/dynamic-height.height/taming.js?rev=1076074&view=auto
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/dynamic-height.height/taming.js (added)
+++ shindig/trunk/features/src/main/javascript/features/dynamic-height.height/taming.js Wed Mar  2 01:20:38 2011
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * @class
+ * Tame and expose core gadgets.window.* API to cajoled gadgets
+ */
+tamings___.push(function(imports) {
+  caja___.whitelistFuncs([
+    [gadgets.window, 'getHeight']
+  ]);
+});

Modified: shindig/trunk/features/src/main/javascript/features/dynamic-height.util/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/dynamic-height.util/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/dynamic-height.util/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/dynamic-height.util/feature.xml Wed Mar  2 01:20:38 2011
@@ -21,14 +21,17 @@ specific language governing permissions 
 <feature>
   <name>dynamic-height.util</name>
   <dependency>globals</dependency>
+  <dependency>taming</dependency>
   <gadget>
     <script src="dynamic-height-util.js"/>
-    <apis>
+    <script src="taming.js"/>
+    <api>
       <exports type="js">gadgets.window.getViewportDimensions</exports>
-    </apis>
+    </api>
   </gadget>
   <container>
     <script src="dynamic-height-util.js"/>
+    <script src="taming.js"/>
     <apis>
       <exports type="js">gadgets.window.getViewportDimensions</exports>
     </apis>

Added: shindig/trunk/features/src/main/javascript/features/dynamic-height.util/taming.js
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/dynamic-height.util/taming.js?rev=1076074&view=auto
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/dynamic-height.util/taming.js (added)
+++ shindig/trunk/features/src/main/javascript/features/dynamic-height.util/taming.js Wed Mar  2 01:20:38 2011
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * @class
+ * Tame and expose core gadgets.window.* API to cajoled gadgets
+ */
+tamings___.push(function(imports) {
+  caja___.whitelistFuncs([
+    [gadgets.window, 'getViewportDimensions']
+  ]);
+});

Modified: shindig/trunk/features/src/main/javascript/features/dynamic-height/taming.js
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/dynamic-height/taming.js?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/dynamic-height/taming.js (original)
+++ shindig/trunk/features/src/main/javascript/features/dynamic-height/taming.js Wed Mar  2 01:20:38 2011
@@ -23,8 +23,6 @@
  */
 tamings___.push(function(imports) {
   caja___.whitelistFuncs([
-    [gadgets.window, 'adjustHeight'],
-    [gadgets.window, 'getHeight'],
-    [gadgets.window, 'getViewportDimensions']
+    [gadgets.window, 'adjustHeight']
   ]);
 });

Modified: shindig/trunk/features/src/main/javascript/features/exportjs/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/exportjs/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/exportjs/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/exportjs/feature.xml Wed Mar  2 01:20:38 2011
@@ -20,8 +20,10 @@ specific language governing permissions 
   <name>exportjs</name>
   <gadget>
     <script src="exportjs.js"/>
+    <!-- do not api+export exportJs -->
   </gadget>
   <container>
     <script src="exportjs.js"/>
+    <!-- do not api+export exportJs -->
   </container>
 </feature>

Modified: shindig/trunk/features/src/main/javascript/features/flash/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/flash/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/flash/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/flash/feature.xml Wed Mar  2 01:20:38 2011
@@ -21,12 +21,16 @@ specific language governing permissions 
   <dependency>globals</dependency>
   <dependency>taming</dependency>
   <dependency>core.io</dependency>
-  <gadget>
+  <all>
     <script src="flash.js"/>
     <script src="taming.js"/>
-  </gadget>
-  <container>
-    <script src="flash.js"/>
-    <script src="taming.js"/>
-  </container>
+    <api>
+      <exports type="js">gadgets.flash.getMajorVersion</exports>
+      <exports type="js">gadgets.flash.embedFlash</exports>
+      <exports type="js">gadgets.flash.embedCachedFlash</exports>
+      <exports type="js">_IG_GetFlashMajorVersion</exports>
+      <exports type="js">_IG_EmbedFlash</exports>
+      <exports type="js">_IG_EmbedCachedFlash</exports>
+    </api>
+  </all>
 </feature>

Modified: shindig/trunk/features/src/main/javascript/features/globals/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/globals/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/globals/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/globals/feature.xml Wed Mar  2 01:20:38 2011
@@ -18,20 +18,12 @@
 -->
 <feature>
   <name>globals</name>
-  <gadget>
+  <all>
     <api>
       <exports type="js">gadgets</exports>
       <exports type="js">shindig</exports>
       <exports type="js">osapi</exports>
     </api>
     <script src="globals.js"/>
-  </gadget>
-  <container>
-    <api>
-      <exports type="js">gadgets</exports>
-      <exports type="js">osapi</exports>
-      <exports type="js">shindig</exports>
-    </api>
-    <script src="globals.js"/>
-  </container>
+  </all>
 </feature>

Modified: shindig/trunk/features/src/main/javascript/features/globals/globals.js
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/globals/globals.js?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/globals/globals.js (original)
+++ shindig/trunk/features/src/main/javascript/features/globals/globals.js Wed Mar  2 01:20:38 2011
@@ -20,16 +20,16 @@
  * @namespace The global gadgets namespace
  * @type {Object}
  */
-var gadgets = gadgets || {};
+var gadgets = window['gadgets'] || {};
 
 /**
  * @namespace The global shindig namespace, used for shindig specific extensions and data
  * @type {Object}
  */
-var shindig = shindig || {};
+var shindig = window['shindig'] || {};
 
 /**
  * @namespace The global osapi namespace, used for opensocial API specific extensions
  * @type {Object}
  */
-var osapi = osapi || {};
+var osapi = window['osapi'] || {};

Modified: shindig/trunk/features/src/main/javascript/features/jsondom/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/jsondom/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/jsondom/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/jsondom/feature.xml Wed Mar  2 01:20:38 2011
@@ -32,5 +32,8 @@ specific language governing permissions 
   <dependency>xmlutil</dependency>
   <gadget>
     <script src="jsondom.js"/>
+    <api>
+      <exports type="js">gadgets.jsondom.parse</exports>
+    </api>
   </gadget>
 </feature>

Modified: shindig/trunk/features/src/main/javascript/features/minimessage/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/minimessage/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/minimessage/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/minimessage/feature.xml Wed Mar  2 01:20:38 2011
@@ -24,5 +24,13 @@ specific language governing permissions 
   <gadget>
     <script src="minimessage.js"/>
     <script src="taming.js"/>
+    <api>
+      <exports type="js">gadgets.MiniMessage</exports>
+      <exports type="js">gadgets.MiniMessage.prototype.createDismissibleMessage</exports>
+      <exports type="js">gadgets.MiniMessage.prototype.createTimerMessage</exports>
+      <exports type="js">gadgets.MiniMessage.prototype.createStaticMessage</exports>
+      <exports type="js">gadgets.MiniMessage.prototype.dismissMessage</exports>
+      <exports type="js">_IG_MiniMessage</exports>
+    </api>
   </gadget>
 </feature>

Modified: shindig/trunk/features/src/main/javascript/features/oauthpopup/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/oauthpopup/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/oauthpopup/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/oauthpopup/feature.xml Wed Mar  2 01:20:38 2011
@@ -21,5 +21,10 @@ specific language governing permissions 
   <dependency>globals</dependency>
   <gadget>
     <script src="oauthpopup.js"/>
+    <api>
+      <exports type="js">gadgets.oauth.Popup</exports>
+      <exports type="js">gadgets.oauth.Popup.prototype.createOpenerOnClick</exports>
+      <exports type="js">gadgets.oauth.Popup.prototype.createApprovedOnClick</exports>
+    </api>
   </gadget>
 </feature>

Modified: shindig/trunk/features/src/main/javascript/features/rpc/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/rpc/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/rpc/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/rpc/feature.xml Wed Mar  2 01:20:38 2011
@@ -22,7 +22,7 @@ specific language governing permissions 
   <dependency>core.config.base</dependency>
   <dependency>core.json</dependency>
   <dependency>core.util.urlparams</dependency>
-  <gadget>
+  <all>
     <api>
       <exports type="js">gadgets.rpc</exports>
       <exports type="js">gadgets.rpc.config</exports>
@@ -50,34 +50,5 @@ specific language governing permissions 
     <script src="rmr.transport.js"/>
     <script src="ifpc.transport.js"/>
     <script src="rpc.js"/>
-  </gadget>
-  <container>
-    <api>
-      <exports type="js">gadgets.rpc</exports>
-      <exports type="js">gadgets.rpc.config</exports>
-      <exports type="js">gadgets.rpc.register</exports>
-      <exports type="js">gadgets.rpc.unregister</exports>
-      <exports type="js">gadgets.rpc.registerDefault</exports>
-      <exports type="js">gadgets.rpc.unregisterDefault</exports>
-      <exports type="js">gadgets.rpc.forceParentVerifiable</exports>
-      <exports type="js">gadgets.rpc.call</exports>
-      <exports type="js">gadgets.rpc.getRelayUrl</exports>
-      <exports type="js">gadgets.rpc.setRelayUrl</exports>
-      <exports type="js">gadgets.rpc.setAuthToken</exports>
-      <exports type="js">gadgets.rpc.setupReceiver</exports>
-      <exports type="js">gadgets.rpc.getAuthToken</exports>
-      <exports type="js">gadgets.rpc.removeReceiver</exports>
-      <exports type="js">gadgets.rpc.getRelayChannel</exports>
-      <exports type="js">gadgets.rpc.receive</exports>
-      <exports type="js">gadgets.rpc.receiveSameDomain</exports>
-      <exports type="js">gadgets.rpc.getOrigin</exports>
-      <exports type="js">gadgets.rpc.getReceiverOrigin</exports>
-    </api>
-    <script src="wpm.transport.js"/>
-    <script src="fe.transport.js"/>
-    <script src="nix.transport.js"/>
-    <script src="rmr.transport.js"/>
-    <script src="ifpc.transport.js"/>
-    <script src="rpc.js"/>
-  </container>
+  </all>
 </feature>

Modified: shindig/trunk/features/src/main/javascript/features/setprefs/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/setprefs/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/setprefs/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/setprefs/feature.xml Wed Mar  2 01:20:38 2011
@@ -23,5 +23,10 @@ specific language governing permissions 
   <dependency>rpc</dependency>
   <gadget>
     <script src="setprefs.js"/>
+    <api>
+      <exports type="js">gadgets.Prefs</exports>
+      <exports type="js">gadgets.Prefs.prototype.set</exports>
+      <exports type="js">gadgets.Prefs.prototype.setArray</exports>
+    </api>
   </gadget>
 </feature>

Modified: shindig/trunk/features/src/main/javascript/features/settitle/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/settitle/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/settitle/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/settitle/feature.xml Wed Mar  2 01:20:38 2011
@@ -23,5 +23,9 @@ specific language governing permissions 
   <dependency>rpc</dependency>
   <gadget>
     <script src="settitle.js"/>
+    <api>
+      <exports type="js">gadgets.window.setTitle</exports>
+      <exports type="js">_IG_SetTitle</exports>
+    </api>
   </gadget>
 </feature>

Modified: shindig/trunk/features/src/main/javascript/features/shindig.auth/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/shindig.auth/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/shindig.auth/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/shindig.auth/feature.xml Wed Mar  2 01:20:38 2011
@@ -20,12 +20,13 @@
   <name>shindig.auth</name>
   <dependency>core.config</dependency>
   <dependency>core.util</dependency>
-  <gadget>
+  <all>
     <script src="auth.js"/>
     <script src="auth-init.js"/>
-  </gadget>
-  <container>
-    <script src="auth.js"/>
-    <script src="auth-init.js"/>
-  </container>
+    <api>
+      <exports type="js">shindig.Auth.getSecurityToken</exports>
+      <exports type="js">shindig.Auth.updateSecurityToken</exports>
+      <exports type="js">shindig.Auth.getTrustedData</exports>
+    </api>
+  </all>
 </feature>

Modified: shindig/trunk/features/src/main/javascript/features/shindig.random/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/shindig.random/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/shindig.random/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/shindig.random/feature.xml Wed Mar  2 01:20:38 2011
@@ -23,16 +23,10 @@ A JavaScript "more-secure-random" implem
   <name>shindig.random</name>
   <dependency>globals</dependency>
   <dependency>shindig.sha1</dependency>
-  <gadget>
+  <all>
     <api>
       <exports type="js">shindig.random</exports>
     </api>
     <script src="random.js"/>
-  </gadget>
-  <container>
-    <api>
-      <exports type="js">shindig.random</exports>
-    </api>
-    <script src="random.js"/>
-  </container>
+  </all>
 </feature>

Modified: shindig/trunk/features/src/main/javascript/features/shindig.sha1/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/shindig.sha1/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/shindig.sha1/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/shindig.sha1/feature.xml Wed Mar  2 01:20:38 2011
@@ -22,7 +22,7 @@ A JavaScript sha1 imlementation.
 -->
   <name>shindig.sha1</name>
   <dependency>globals</dependency>
-  <gadget>
+  <all>
     <api>
       <exports type="js">shindig.sha1.reset</exports>
       <exports type="js">shindig.sha1.update</exports>
@@ -30,14 +30,5 @@ A JavaScript sha1 imlementation.
       <exports type="js">shindig.sha1.digestString</exports>
     </api>
     <script src="sha1.js"/>
-  </gadget>
-  <container>
-    <api>
-      <exports type="js">shindig.sha1.reset</exports>
-      <exports type="js">shindig.sha1.update</exports>
-      <exports type="js">shindig.sha1.digest</exports>
-      <exports type="js">shindig.sha1.digestString</exports>
-    </api>
-    <script src="sha1.js"/>
-  </container>
+  </all>
 </feature>

Modified: shindig/trunk/features/src/main/javascript/features/shindig.uri/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/shindig.uri/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/shindig.uri/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/shindig.uri/feature.xml Wed Mar  2 01:20:38 2011
@@ -22,10 +22,26 @@ specific language governing permissions 
   -->
   <name>shindig.uri</name>
   <dependency>globals</dependency>
-  <gadget>
+  <all>
     <script src="uri.js"/>
-  </gadget>
-  <container>
-    <script src="uri.js"/>
-  </container>
+    <api>
+      <exports type="js">shindig.uri.getSchema</exports>
+      <exports type="js">shindig.uri.getAuthority</exports>
+      <exports type="js">shindig.uri.getOrigin</exports>
+      <exports type="js">shindig.uri.getPath</exports>
+      <exports type="js">shindig.uri.getQuery</exports>
+      <exports type="js">shindig.uri.getFragment</exports>
+      <exports type="js">shindig.uri.getQP</exports>
+      <exports type="js">shindig.uri.getFP</exports>
+      <exports type="js">shindig.uri.setSchema</exports>
+      <exports type="js">shindig.uri.setAuthority</exports>
+      <exports type="js">shindig.uri.setPath</exports>
+      <exports type="js">shindig.uri.setQuery</exports>
+      <exports type="js">shindig.uri.setFragment</exports>
+      <exports type="js">shindig.uri.setQP</exports>
+      <exports type="js">shindig.uri.setFP</exports>
+      <exports type="js">shindig.uri.setExistingP</exports>
+      <exports type="js">shindig.uri.toString</exports>
+    </api>
+  </all>
 </feature>

Modified: shindig/trunk/features/src/main/javascript/features/shindig.xhrwrapper/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/shindig.xhrwrapper/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/shindig.xhrwrapper/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/shindig.xhrwrapper/feature.xml Wed Mar  2 01:20:38 2011
@@ -22,5 +22,15 @@ specific language governing permissions 
   <dependency>xmlutil</dependency>
   <gadget>
     <script src="xhrwrapper.js"/>
+    <api>
+      <exports type="js">shindig.xhrwrapper.createXHR</exports>
+      <exports type="js">shindig.xhrwrapper.XhrWrapper</exports>
+      <exports type="js">shindig.xhrwrapper.XhrWrapper.prototype.abort</exports>
+      <exports type="js">shindig.xhrwrapper.XhrWrapper.prototype.getAllResponseHeaders</exports>
+      <exports type="js">shindig.xhrwrapper.XhrWrapper.prototype.getResponseHeader</exports>
+      <exports type="js">shindig.xhrwrapper.XhrWrapper.prototype.open</exports>
+      <exports type="js">shindig.xhrwrapper.XhrWrapper.prototype.send</exports>
+      <exports type="js">shindig.xhrwrapper.XhrWrapper.prototype.setRequestHeader</exports>
+    </api>
   </gadget>
 </feature>

Modified: shindig/trunk/features/src/main/javascript/features/skins/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/skins/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/skins/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/skins/feature.xml Wed Mar  2 01:20:38 2011
@@ -25,5 +25,10 @@ specific language governing permissions 
   <gadget>
     <script src="skins.js"/>
     <script src="taming.js"/>
+    <api>
+      <exports type="js">gadgets.skins.init</exports>
+      <exports type="js">gadgets.skins.getProperty</exports>
+      <exports type="js">gadgets.skins.Property</exports>
+    </api>
   </gadget>
 </feature>

Modified: shindig/trunk/features/src/main/javascript/features/swfobject/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/swfobject/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/swfobject/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/swfobject/feature.xml Wed Mar  2 01:20:38 2011
@@ -21,5 +21,22 @@ specific language governing permissions 
   <name>swfobject</name>
   <gadget>
     <script src="swfobject.js"/>
+    <api>
+      <exports type="js">swfobject.registerObject</exports>
+      <exports type="js">swfobject.getObjectById</exports>
+      <exports type="js">swfobject.embedSWF</exports>
+      <exports type="js">swfobject.switchOffAutoHideShow</exports>
+      <exports type="js">swfobject.ua</exports>
+      <exports type="js">swfobject.getFlashPlayerVersion</exports>
+      <exports type="js">swfobject.hasFlashPlayerVersion</exports>
+      <exports type="js">swfobject.createSWF</exports>
+      <exports type="js">swfobject.showExpressInstall</exports>
+      <exports type="js">swfobject.removeSWF</exports>
+      <exports type="js">swfobject.createCSS</exports>
+      <exports type="js">swfobject.addDomLoadEvent</exports>
+      <exports type="js">swfobject.addLoadEvent</exports>
+      <exports type="js">swfobject.getQueryParamValue</exports>
+      <exports type="js">swfobject.expressInstallCallback</exports>
+    </api>
   </gadget>
 </feature>

Modified: shindig/trunk/features/src/main/javascript/features/tabs/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/tabs/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/tabs/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/tabs/feature.xml Wed Mar  2 01:20:38 2011
@@ -25,5 +25,25 @@ specific language governing permissions 
   <gadget>
     <script src="tabs.js"/>
     <script src="taming.js"/>
+    <api>
+      <exports type="js">gadgets.Tab</exports>
+      <exports type="js">gadgets.Tab.prototype.getName</exports>
+      <exports type="js">gadgets.Tab.prototype.getNameContainer</exports>
+      <exports type="js">gadgets.Tab.prototype.getContentContainer</exports>
+      <exports type="js">gadgets.Tab.prototype.getCallback</exports>
+      <exports type="js">gadgets.Tab.prototype.getIndex</exports>
+      <exports type="js">gadgets.TabSet</exports>
+      <exports type="js">gadgets.TabSet.prototype.addTab</exports>
+      <exports type="js">gadgets.TabSet.prototype.removeTab</exports>
+      <exports type="js">gadgets.TabSet.prototype.getSelectedTab</exports>
+      <exports type="js">gadgets.TabSet.prototype.setSelectedTab</exports>
+      <exports type="js">gadgets.TabSet.prototype.swapTabs</exports>
+      <exports type="js">gadgets.TabSet.prototype.getTabs</exports>
+      <exports type="js">gadgets.TabSet.prototype.alignTabs</exports>
+      <exports type="js">gadgets.TabSet.prototype.displayTabs</exports>
+      <exports type="js">gadgets.TabSet.prototype.getHeaderContainer</exports>
+      <exports type="js">_IG_Tabs</exports>
+      <exports type="js">_IG_Tabs.prototype.addDynamicTab</exports>
+    </api>
   </gadget>
 </feature>

Modified: shindig/trunk/features/src/main/javascript/features/views/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/views/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/views/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/views/feature.xml Wed Mar  2 01:20:38 2011
@@ -33,5 +33,18 @@ A map of view names to view attributes. 
   <gadget>
     <script src="views.js"/>
     <script src="taming.js"/>
+    <api>
+      <exports type="js">gadgets.views.bind</exports>
+      <exports type="js">gadgets.views.requestNavigateTo</exports>
+      <exports type="js">gadgets.views.getCurrentView</exports>
+      <exports type="js">gadgets.views.getSupportedViews</exports>
+      <exports type="js">gadgets.views.getParams</exports>
+      <exports type="js">gadgets.views.ViewType</exports>
+      <exports type="js">gadgets.views.View</exports>
+      <exports type="js">gadgets.views.View.prototype.getName</exports>
+      <exports type="js">gadgets.views.View.prototype.getUrlTemplate</exports>
+      <exports type="js">gadgets.views.View.prototype.bind</exports>
+      <exports type="js">gadgets.views.View.prototype.isOnlyVisibleGadget</exports>
+    </api>
   </gadget>
 </feature>

Modified: shindig/trunk/features/src/main/javascript/features/xmlutil/feature.xml
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/xmlutil/feature.xml?rev=1076074&r1=1076073&r2=1076074&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/xmlutil/feature.xml (original)
+++ shindig/trunk/features/src/main/javascript/features/xmlutil/feature.xml Wed Mar  2 01:20:38 2011
@@ -22,5 +22,12 @@
   <dependency>globals</dependency>
   <gadget>    
     <script src="xmlutil.js"></script>
+    <api>
+      <exports type="js">opensocial.xmlutil.parseXML</exports>
+      <exports type="js">opensocial.xmlutil.NSMAP</exports>
+      <exports type="js">opensocial.xmlutil.getRequiredNamespaces</exports>
+      <exports type="js">opensocial.xmlutil.ENTITIES</exports>
+      <exports type="js">opensocial.xmlutil.prepareXML</exports>
+    </api>
   </gadget>
 </feature>