contentful-ui-extensions-sdk
Advanced tools
Comparing version 3.19.0 to 3.20.0
@@ -24,3 +24,3 @@ parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"Wswr":[function(require,module,exports) { | ||
},{"./signal":"Wswr"}],"EVxB":[function(require,module,exports) { | ||
"use strict";function t(n){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(n)}Object.defineProperty(exports,"__esModule",{value:!0});var n="preInstall",e="postInstall",r=function(n){return"object"===t(n)&&null!==n&&!Array.isArray(n)},o=function(t){return"function"==typeof t},u=function(t){return r(t)&&o(t.then)},l=function(t,n,e){if(!o(t))return Promise.resolve(n);var l;try{l=void 0===e?t():t(e)}catch(i){return Promise.resolve(!1)}var a=l;return u(a)||(a=Promise.resolve(a)),a.then(function(t){return!(t instanceof Error||!1===t)&&(r(t)?t:n)},function(){return!1}).catch(function(){return!1})};function a(t){var r,u=((r={})[n]=null,r[e]=null,r),a=function(t,n){if(!o(n))throw new Error("Handler must be a function.");u[t]=n};return t.addHandler("appHook",function(r){var o=r.stage,a=r.installationRequestId,i=r.err;return o===n?l(u[o],{}).then(function(n){return t.send("appHookResult",{stage:o,installationRequestId:a,result:n})}):o===e?l(u[o],void 0,i||null).then(function(){return t.send("appHookResult",{stage:o,installationRequestId:a})}):Promise.resolve()}),{setReady:function(){return t.call("callAppMethod","setReady")},isInstalled:function(){return t.call("callAppMethod","isInstalled")},getParameters:function(){return t.call("callAppMethod","getParameters")},getCurrentState:function(){return t.call("callAppMethod","getCurrentState")},onConfigure:function(t){a(n,t)},onConfigurationCompleted:function(t){a(e,t)}}}exports.default=a; | ||
"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}Object.defineProperty(exports,"__esModule",{value:!0});var e="preInstall",n="postInstall",r=function(e){return"object"===t(e)&&null!==e&&!Array.isArray(e)},o=function(t){return"function"==typeof t},u=function(t){return r(t)&&o(t.then)},l=function(t){return console.error(t),Promise.resolve(!1)},a=function(t,e,n){if(!o(t))return Promise.resolve(e);var a;try{a=void 0===n?t():t(n)}catch(s){return l(s)}var i=a;return u(i)||(i=Promise.resolve(i)),i.then(function(t){return t instanceof Error?Promise.reject(t):!1!==t&&(r(t)?t:e)},l).catch(l)};function i(t){var r,u=((r={})[e]=null,r[n]=null,r),l=function(t,e){if(!o(e))throw new Error("Handler must be a function.");u[t]=e};return t.addHandler("appHook",function(r){var o=r.stage,l=r.installationRequestId,i=r.err;return o===e?a(u[o],{}).then(function(e){return t.send("appHookResult",{stage:o,installationRequestId:l,result:e})}):o===n?a(u[o],void 0,i||null).then(function(){return t.send("appHookResult",{stage:o,installationRequestId:l})}):Promise.resolve()}),{setReady:function(){return t.call("callAppMethod","setReady")},isInstalled:function(){return t.call("callAppMethod","isInstalled")},getParameters:function(){return t.call("callAppMethod","getParameters")},getCurrentState:function(){return t.call("callAppMethod","getCurrentState")},onConfigure:function(t){l(e,t)},onConfigurationCompleted:function(t){l(n,t)}}}exports.default=i; | ||
},{}],"m7zR":[function(require,module,exports) { | ||
@@ -27,0 +27,0 @@ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={LOCATION_ENTRY_FIELD:"entry-field",LOCATION_ENTRY_FIELD_SIDEBAR:"entry-field-sidebar",LOCATION_ENTRY_SIDEBAR:"entry-sidebar",LOCATION_DIALOG:"dialog",LOCATION_ENTRY_EDITOR:"entry-editor",LOCATION_PAGE:"page",LOCATION_APP_CONFIG:"app-config"};exports.default=e; |
{ | ||
"name": "contentful-ui-extensions-sdk", | ||
"description": "SDK to develop custom UI Extension for the Contentful Web App", | ||
"version": "3.19.0", | ||
"version": "3.20.0", | ||
"author": "Contentful GmbH", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -62,7 +62,7 @@ export declare type EntityType = 'Entry' | 'Asset'; | ||
type: string; | ||
/** Indicates if a value for this field is required **/ | ||
/** Indicates if a value for this field is required */ | ||
required: boolean; | ||
/** A list of validations for this field that are defined in the content type. */ | ||
validations: Object[]; | ||
/** Defines the shape of array items **/ | ||
/** Defines the shape of array items */ | ||
items?: Items; | ||
@@ -94,7 +94,7 @@ /** Gets the current value of the field and locale. */ | ||
type: string; | ||
/** Indicates if a value for this field is required **/ | ||
/** Indicates if a value for this field is required */ | ||
required: boolean; | ||
/** A list of validations for this field that are defined in the content type. */ | ||
validations: Object[]; | ||
/** Defines the shape of array items **/ | ||
/** Defines the shape of array items */ | ||
items?: Items; | ||
@@ -554,11 +554,11 @@ /** Gets the current value of the field and locale. */ | ||
setReady: () => Promise<void>; | ||
/** Returns true if an App is installed **/ | ||
/** Returns true if an App is installed */ | ||
isInstalled: () => Promise<boolean>; | ||
/** Returns current state of an App **/ | ||
getCurrentState: () => Promise<AppState>; | ||
/** Returns parameters of an App, null otherwise **/ | ||
/** Returns current state of an App */ | ||
getCurrentState: () => Promise<AppState | null>; | ||
/** Returns parameters of an App, null otherwise */ | ||
getParameters: <T = Object>() => Promise<null | T>; | ||
/** Registers a handler to be called to produce parameters for an App **/ | ||
/** Registers a handler to be called to produce parameters for an App */ | ||
onConfigure: (handler: Function) => Promise<void>; | ||
/** Registers a handler to be called once configuration was finished **/ | ||
/** Registers a handler to be called once configuration was finished */ | ||
onConfigurationCompleted: (handler: Function) => Promise<void>; | ||
@@ -565,0 +565,0 @@ } |
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
65356