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.7.0 to 3.7.1

typings.d.ts

4

dist/cf-extension-api.js

@@ -22,3 +22,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) {

},{}],"97BZ":[function(require,module,exports) {
var n=require("./signal"),e=n.MemoizedSignal;module.exports=function(n,r,t,i){var u=r.sys,a=new e(u);return n.addHandler("sysChanged",function(n){u=n,a.dispatch(u)}),{getSys:function(){return u},onSysChanged:function(n){return a.attach(n)},fields:t.reduce(function(n,e){return n[e.id]=i(e),n},{})}};
var n=require("./signal"),t=n.MemoizedSignal;module.exports=function(n,e,i,r){var a=e.sys,d=new t(a);n.addHandler("sysChanged",function(n){a=n,d.dispatch(a)});var u=!1,c=new t(u);return n.addHandler("editorActivityChanged",function(n){u=n,c.dispatch(u)}),{getSys:function(){return a},onSysChanged:function(n){return d.attach(n)},onEditorActivityChanged:function(n){return c.attach(n)},fields:i.reduce(function(n,t){return n[t.id]=r(t),n},{})}};
},{"./signal":"HrMX"}],"iabO":[function(require,module,exports) {

@@ -33,3 +33,3 @@ 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};

},{}],"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"),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))},{})};
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))},{})};
},{"./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,4 +54,3 @@ const Field = require('./field')

error: message => channel.send('notify', { type: 'error', message })
},
request: options => channel.call('___internal___request', options)
}
}

@@ -58,0 +57,0 @@ }

@@ -12,2 +12,10 @@ const { MemoizedSignal } = require('./signal')

let active = false
const activityChanged = new MemoizedSignal(active)
channel.addHandler('editorActivityChanged', (_active) => {
active = _active
activityChanged.dispatch(active)
})
return {

@@ -20,2 +28,5 @@ getSys () {

},
onEditorActivityChanged (handler) {
return activityChanged.attach(handler)
},
fields: fieldInfo.reduce((acc, info) => {

@@ -22,0 +33,0 @@ acc[info.id] = createEntryField(info)

{
"name": "contentful-ui-extensions-sdk",
"description": "SDK to develop custom UI Extension for the Contentful Web App",
"version": "3.7.0",
"version": "3.7.1",
"author": "Contentful GmbH",
"license": "MIT",
"main": "dist/cf-extension-api.js",
"types": "./typings.d.ts",
"files": [

@@ -12,3 +13,4 @@ "dist/cf-extension-api.js",

"dist/cf-extension.css",
"lib/**/*.js"
"lib/**/*.js",
"typings.d.ts"
],

@@ -15,0 +17,0 @@ "scripts": {

@@ -18,2 +18,3 @@ # Contentful UI Extensions SDK

- [`contentful-ui-extensions-sdk` at npm](https://www.npmjs.com/package/contentful-ui-extensions-sdk)
- [`create-contentful-extension`](https://github.com/contentful/create-contentful-extension) - CLI tool for developing extensions without the hassle of managing build configurations

@@ -20,0 +21,0 @@ ## Getting help

Sorry, the diff of this file is not supported yet

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