contentful-ui-extensions-sdk
Advanced tools
Comparing version 3.10.6 to 3.10.7
@@ -36,5 +36,5 @@ 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}({"pBGv":[function(require,module,exports) { | ||
},{}],"LVu9":[function(require,module,exports) { | ||
var e;function r(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,t)}return n}function n(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?r(Object(o),!0).forEach(function(r){t(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function t(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var o=require("./field"),i=require("./field-locale"),a=require("./window"),u=require("./entry"),c=require("./space"),O=require("./dialogs"),l=require("./editor"),s=require("./navigator"),f=require("./app"),p=require("./locations"),d=[A,_,y,P,b],I=(t(e={},p.LOCATION_ENTRY_FIELD,d),t(e,p.LOCATION_ENTRY_FIELD_SIDEBAR,d),t(e,p.LOCATION_ENTRY_SIDEBAR,[A,_,P,b]),t(e,p.LOCATION_ENTRY_EDITOR,[A,_,P]),t(e,p.LOCATION_DIALOG,[A,N,b]),t(e,p.LOCATION_PAGE,[A]),t(e,p.LOCATION_APP,[A,T]),t(e,p.LOCATION_APP_CONFIG,[A,T]),e);function A(e,r){var n=r.user,t=r.parameters,o=r.locales,i=r.ids;return{location:{is:function(e){var n=r.location||p.LOCATION_ENTRY_FIELD;return n===p.LOCATION_APP&&(n=p.LOCATION_APP_CONFIG),e===p.LOCATION_APP&&(e=p.LOCATION_APP_CONFIG),n===e}},user:n,parameters:t,locales:{available:o.available,default:o.default,names:o.names,fallbacks:o.fallbacks},space:c(e),dialogs:O(e,i),navigator:s(e,i.extension),notifier:{success:function(r){return e.send("notify",{type:"success",message:r})},error:function(r){return e.send("notify",{type:"error",message:r})}},ids:i}}function b(e,r,n){return{window:a(n,e)}}function P(e,r){var n=r.editorInterface;return{editor:l(e,n)}}function _(e,r){var n=r.locales,t=r.contentType,i=r.entry,a=r.fieldInfo;return{contentType:t,entry:u(e,i,a,function(r){return new o(e,r,n.default)})}}function y(e,r){var n=r.field;return{field:new i(e,n)}}function N(e){return{close:function(r){return e.send("closeDialog",r)}}}function T(e){var r=f(e);return{app:r,platformAlpha:{app:r}}}module.exports=function(e,r,t){return(I[r.location]||d).reduce(function(o,i){return n({},o,{},i(e,r,t))},{})}; | ||
var e;function r(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,t)}return n}function n(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?r(Object(o),!0).forEach(function(r){t(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function t(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var o=require("./field"),i=require("./field-locale"),a=require("./window"),c=require("./entry"),u=require("./space"),l=require("./dialogs"),O=require("./editor"),s=require("./navigator"),f=require("./app"),p=require("./locations"),d=[A,_,y,P,b],I=(t(e={},p.LOCATION_ENTRY_FIELD,d),t(e,p.LOCATION_ENTRY_FIELD_SIDEBAR,d),t(e,p.LOCATION_ENTRY_SIDEBAR,[A,_,P,b]),t(e,p.LOCATION_ENTRY_EDITOR,[A,_,P]),t(e,p.LOCATION_DIALOG,[A,N,b]),t(e,p.LOCATION_PAGE,[A]),t(e,p.LOCATION_APP,[A,T]),t(e,p.LOCATION_APP_CONFIG,[A,T]),e);function A(e,r){var n=r.user,t=r.parameters,o=r.locales,i=r.ids;return{location:{is:function(e){var n=r.location||p.LOCATION_ENTRY_FIELD;return n===p.LOCATION_APP&&(n=p.LOCATION_APP_CONFIG),e===p.LOCATION_APP&&(e=p.LOCATION_APP_CONFIG),n===e}},user:n,parameters:t,locales:{available:o.available,default:o.default,names:o.names,fallbacks:o.fallbacks,optional:o.optional,direction:o.direction},space:u(e),dialogs:l(e,i),navigator:s(e,i.extension),notifier:{success:function(r){return e.send("notify",{type:"success",message:r})},error:function(r){return e.send("notify",{type:"error",message:r})}},ids:i}}function b(e,r,n){return{window:a(n,e)}}function P(e,r){var n=r.editorInterface;return{editor:O(e,n)}}function _(e,r){var n=r.locales,t=r.contentType,i=r.entry,a=r.fieldInfo;return{contentType:t,entry:c(e,i,a,function(r){return new o(e,r,n.default)})}}function y(e,r){var n=r.field;return{field:new i(e,n)}}function N(e){return{close:function(r){return e.send("closeDialog",r)}}}function T(e){var r=f(e);return{app:r,platformAlpha:{app:r}}}module.exports=function(e,r,t){return(I[r.location]||d).reduce(function(o,i){return n({},o,{},i(e,r,t))},{})}; | ||
},{"./field":"daBI","./field-locale":"GnXy","./window":"XV20","./entry":"BZ3n","./space":"iabO","./dialogs":"GEtI","./editor":"fqJo","./navigator":"Y2Q9","./app":"A2T1","./locations":"CHnp"}],"Focm":[function(require,module,exports) { | ||
var i=require("./initialize"),e=require("./api"),r=require("./locations");module.exports={init:i(window,e),locations:r}; | ||
},{"./initialize":"Mq5l","./api":"LVu9","./locations":"CHnp"}]},{},["Focm"], "contentfulExtension") |
@@ -64,3 +64,5 @@ const Field = require('./field') | ||
names: locales.names, | ||
fallbacks: locales.fallbacks | ||
fallbacks: locales.fallbacks, | ||
optional: locales.optional, | ||
direction: locales.direction | ||
}, | ||
@@ -67,0 +69,0 @@ space: createSpace(channel), |
{ | ||
"name": "contentful-ui-extensions-sdk", | ||
"description": "SDK to develop custom UI Extension for the Contentful Web App", | ||
"version": "3.10.6", | ||
"version": "3.10.7", | ||
"author": "Contentful GmbH", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -236,2 +236,6 @@ declare module 'contentful-ui-extensions-sdk' { | ||
fallbacks: { [key: string]: string } | ||
/** An object with keys of locale codes and values of corresponding boolean value indicating if the locale is optional or not. */ | ||
optional: { [key: string]: boolean } | ||
/** An object with keys of locale codes and values of corresponding information indicating if the locale is right-to-left or left-to-right language. */ | ||
direction: { [key: string]: 'ltr' | 'rtl' } | ||
} | ||
@@ -238,0 +242,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
89252
1862