Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

contentful-ui-extensions-sdk

Package Overview
Dependencies
Maintainers
4
Versions
195
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

contentful-ui-extensions-sdk - npm Package Compare versions

Comparing version 3.10.3 to 3.10.4

2

dist/cf-extension-api.js

@@ -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"),u=require("./window"),c=require("./entry"),a=require("./space"),s=require("./dialogs"),l=require("./editor"),f=require("./navigator"),O=require("./app"),p=require("./locations"),d=[b,g,v,T,I],y=(t(e={},p.LOCATION_ENTRY_FIELD,d),t(e,p.LOCATION_ENTRY_FIELD_SIDEBAR,d),t(e,p.LOCATION_ENTRY_SIDEBAR,[b,g,T,I]),t(e,p.LOCATION_ENTRY_EDITOR,[b,g,T]),t(e,p.LOCATION_DIALOG,[b,A,I]),t(e,p.LOCATION_PAGE,[b]),t(e,p.LOCATION_APP,[b,E]),e);function b(e,r){var n=r.user,t=r.parameters,o=r.locales,i=r.ids;return{location:{is:function(e){return(r.location||p.LOCATION_ENTRY_FIELD)===e}},user:n,parameters:t,locales:{available:o.available,default:o.default,names:o.names},space:a(e),dialogs:s(e,i.extension),navigator:f(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 I(e,r,n){return{window:u(n,e)}}function T(e,r){var n=r.editorInterface;return{editor:l(e,n)}}function g(e,r){var n=r.locales,t=r.contentType,i=r.entry,u=r.fieldInfo;return{contentType:t,entry:c(e,i,u,function(r){return new o(e,r,n.default)})}}function v(e,r){var n=r.field;return{field:new i(e,n)}}function A(e){return{close:function(r){return e.send("closeDialog",r)}}}function E(e){return{platformAlpha:{app:O(e)}}}module.exports=function(e,r,t){return(y[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"),u=require("./window"),a=require("./entry"),c=require("./space"),l=require("./dialogs"),s=require("./editor"),f=require("./navigator"),O=require("./app"),p=require("./locations"),d=[y,g,v,T,I],b=(t(e={},p.LOCATION_ENTRY_FIELD,d),t(e,p.LOCATION_ENTRY_FIELD_SIDEBAR,d),t(e,p.LOCATION_ENTRY_SIDEBAR,[y,g,T,I]),t(e,p.LOCATION_ENTRY_EDITOR,[y,g,T]),t(e,p.LOCATION_DIALOG,[y,A,I]),t(e,p.LOCATION_PAGE,[y]),t(e,p.LOCATION_APP,[y,E]),e);function y(e,r){var n=r.user,t=r.parameters,o=r.locales,i=r.ids;return{location:{is:function(e){return(r.location||p.LOCATION_ENTRY_FIELD)===e}},user:n,parameters:t,locales:{available:o.available,default:o.default,names:o.names,fallbacks:o.fallbacks},space:c(e),dialogs:l(e,i.extension),navigator:f(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 I(e,r,n){return{window:u(n,e)}}function T(e,r){var n=r.editorInterface;return{editor:s(e,n)}}function g(e,r){var n=r.locales,t=r.contentType,i=r.entry,u=r.fieldInfo;return{contentType:t,entry:a(e,i,u,function(r){return new o(e,r,n.default)})}}function v(e,r){var n=r.field;return{field:new i(e,n)}}function A(e){return{close:function(r){return e.send("closeDialog",r)}}}function E(e){return{platformAlpha:{app:O(e)}}}module.exports=function(e,r,t){return(b[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")

@@ -52,3 +52,4 @@ const Field = require('./field')

default: locales.default,
names: locales.names
names: locales.names,
fallbacks: locales.fallbacks
},

@@ -55,0 +56,0 @@ space: createSpace(channel),

{
"name": "contentful-ui-extensions-sdk",
"description": "SDK to develop custom UI Extension for the Contentful Web App",
"version": "3.10.3",
"version": "3.10.4",
"author": "Contentful GmbH",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -234,2 +234,4 @@ declare module 'contentful-ui-extensions-sdk' {

names: { [key: string]: string }
/** An object with keys of locale codes and values of corresponding fallback locale codes. If there's no fallback then the value is undefined. */
fallbacks: { [key: string]: string }
}

@@ -236,0 +238,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc