contentful-ui-extensions-sdk
Advanced tools
Comparing version 3.6.0 to 3.7.0
@@ -24,3 +24,3 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRequire,o="function"==typeof require&&require;function u(n,t){if(!r[n]){if(!e[n]){var f="function"==typeof parcelRequire&&parcelRequire;if(!t&&f)return f(n,!0);if(i)return i(n,!0);if(o&&"string"==typeof n)return o(n);var c=new Error("Cannot find module '"+n+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[n][1][r]||r},p.cache={};var l=r[n]=new u.Module(n);e[n][0].call(l.exports,p,l,l.exports,this)}return r[n].exports;function p(e){return u(p.resolve(e))}}u.isParcelRequire=!0,u.Module=function(e){this.id=e,this.bundle=u,this.exports={}},u.modules=e,u.cache=r,u.parent=i,u.register=function(r,n){e[r]=[function(e,r){r.exports=n},{}]};for(var f=0;f<n.length;f++)u(n[f]);if(n.length){var c=u(n[n.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=c:"function"==typeof define&&define.amd?define(function(){return c}):t&&(this[t]=c)}return u}({"pBGv":[function(require,module,exports) { | ||
},{"./signal":"HrMX"}],"iabO":[function(require,module,exports) { | ||
var e=["getContentType","getEntry","getEntrySnapshots","getAsset","getPublishedEntries","getPublishedAssets","getContentTypes","getEntries","getAssets","createContentType","createEntry","createAsset","updateContentType","updateEntry","updateAsset","deleteContentType","deleteEntry","deleteAsset","publishEntry","publishAsset","unpublishEntry","unpublishAsset","archiveEntry","archiveAsset","unarchiveEntry","unarchiveAsset","processAsset","getUsers"];module.exports=function(t){var s={};return e.forEach(function(e){s[e]=function(){for(var s=arguments.length,n=new Array(s),r=0;r<s;r++)n[r]=arguments[r];return t.call("callSpaceMethod",e,n)}}),s}; | ||
var e=["getContentType","getEntry","getEntrySnapshots","getAsset","getPublishedEntries","getPublishedAssets","getContentTypes","getEntries","getAssets","createContentType","createEntry","createAsset","updateContentType","updateEntry","updateAsset","deleteContentType","deleteEntry","deleteAsset","publishEntry","publishAsset","unpublishEntry","unpublishAsset","archiveEntry","archiveAsset","unarchiveEntry","unarchiveAsset","createUpload","processAsset","waitUntilAssetProcessed","getUsers"];module.exports=function(t){var s={};return e.forEach(function(e){s[e]=function(){for(var s=arguments.length,n=new Array(s),r=0;r<s;r++)n[r]=arguments[r];return t.call("callSpaceMethod",e,n)}}),s}; | ||
},{}],"6GEt":[function(require,module,exports) { | ||
@@ -33,3 +33,3 @@ function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}module.exports=function(t){return{openAlert:e.bind(null,"alert"),openConfirm:e.bind(null,"confirm"),openPrompt:e.bind(null,"prompt"),openExtension:e.bind(null,"extension"),selectSingleEntry:l.bind(null,"Entry",!1),selectSingleAsset:l.bind(null,"Asset",!1),selectMultipleEntries:l.bind(null,"Entry",!0),selectMultipleAssets:l.bind(null,"Asset",!0)};function e(n,e){return t.call("openDialog",n,o(e))}function l(n,e,l){return(l=o(l)).entityType=n,l.multiple=e,t.call("openDialog","entitySelector",l)}function o(t){return"object"===n(t)&&null!==t&&!Array.isArray(t)?t:{}}}; | ||
},{}],"LVu9":[function(require,module,exports) { | ||
var e;function r(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},o=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.forEach(function(r){n(e,r,t[r])})}return e}function n(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var t=require("./field"),o=require("./field-locale"),i=require("./window"),u=require("./entry"),a=require("./space"),c=require("./dialogs"),l=require("./navigator"),s=require("./locations"),f=[d,y,p],O=(n(e={},s.LOCATION_ENTRY_FIELD,f),n(e,s.LOCATION_ENTRY_FIELD_SIDEBAR,f),n(e,s.LOCATION_ENTRY_SIDEBAR,[d,y]),n(e,s.LOCATION_DIALOG,[d,b]),e);function d(e,r,n){var t=r.user,o=r.parameters,u=r.locales;return{location:{is:function(e){return(r.location||s.LOCATION_ENTRY_FIELD)===e}},user:t,parameters:o,locales:{available:u.available,default:u.default,names:u.names},space:a(e),window:i(n,e),dialogs:c(e),navigator:l(e),notifier:{success:function(r){return e.send("notify",{type:"success",message:r})},error:function(r){return e.send("notify",{type:"error",message:r})}}}}function y(e,r){var n=r.locales,o=r.contentType,i=r.entry,a=r.fieldInfo;return{contentType:o,entry:u(e,i,a,function(r){return new t(e,r,n.default)})}}function p(e,r){var n=r.field;return{field:new o(e,n)}}function b(e){return{close:function(r){return e.send("closeDialog",r)}}}module.exports=function(e,n,t){return(O[n.location]||f).reduce(function(o,i){return r({},o,i(e,n,t))},{})}; | ||
var e;function r(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},o=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.forEach(function(r){n(e,r,t[r])})}return e}function n(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var t=require("./field"),o=require("./field-locale"),u=require("./window"),i=require("./entry"),a=require("./space"),c=require("./dialogs"),l=require("./navigator"),s=require("./locations"),f=[d,y,_],O=(n(e={},s.LOCATION_ENTRY_FIELD,f),n(e,s.LOCATION_ENTRY_FIELD_SIDEBAR,f),n(e,s.LOCATION_ENTRY_SIDEBAR,[d,y]),n(e,s.LOCATION_DIALOG,[d,p]),e);function d(e,r,n){var t=r.user,o=r.parameters,i=r.locales;return{location:{is:function(e){return(r.location||s.LOCATION_ENTRY_FIELD)===e}},user:t,parameters:o,locales:{available:i.available,default:i.default,names:i.names},space:a(e),window:u(n,e),dialogs:c(e),navigator:l(e),notifier:{success:function(r){return e.send("notify",{type:"success",message:r})},error:function(r){return e.send("notify",{type:"error",message:r})}},request:function(r){return e.call("___internal___request",r)}}}function y(e,r){var n=r.locales,o=r.contentType,u=r.entry,a=r.fieldInfo;return{contentType:o,entry:i(e,u,a,function(r){return new t(e,r,n.default)})}}function _(e,r){var n=r.field;return{field:new o(e,n)}}function p(e){return{close:function(r){return e.send("closeDialog",r)}}}module.exports=function(e,n,t){return(O[n.location]||f).reduce(function(o,u){return r({},o,u(e,n,t))},{})}; | ||
},{"./field":"daBI","./field-locale":"GnXy","./window":"XV20","./entry":"97BZ","./space":"iabO","./dialogs":"6GEt","./navigator":"Y2Q9","./locations":"CHnp"}],"Focm":[function(require,module,exports) { | ||
@@ -36,0 +36,0 @@ var i=require("./initialize"),e=require("./api"),r=require("./locations");module.exports={init:i(window,e),locations:r}; |
@@ -54,3 +54,4 @@ const Field = require('./field') | ||
error: message => channel.send('notify', { type: 'error', message }) | ||
} | ||
}, | ||
request: options => channel.call('___internal___request', options) | ||
} | ||
@@ -57,0 +58,0 @@ } |
@@ -35,3 +35,5 @@ const spaceMethods = [ | ||
'createUpload', | ||
'processAsset', | ||
'waitUntilAssetProcessed', | ||
@@ -38,0 +40,0 @@ 'getUsers' |
{ | ||
"name": "contentful-ui-extensions-sdk", | ||
"description": "SDK to develop custom UI Extension for the Contentful Web App", | ||
"version": "3.6.0", | ||
"version": "3.7.0", | ||
"author": "Contentful GmbH", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
139132
1205