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.11.2 to 3.12.0

2

dist/cf-extension-api.js

@@ -30,3 +30,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}({"pBGv":[function(require,module,exports) {

},{"./signal":"HrMX"}],"Y2Q9":[function(require,module,exports) {
function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function e(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?t(Object(i),!0).forEach(function(t){n(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function n(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r=require("./signal"),i=r.Signal;module.exports=function(t,n){var r=new i;return t.addHandler("navigateSlideIn",function(t){r.dispatch(t)}),{openEntry:function(n,r){return t.call("navigateToContentEntity",e({},r,{entityType:"Entry",id:n}))},openNewEntry:function(n,r){return t.call("navigateToContentEntity",e({},r,{entityType:"Entry",id:null,contentTypeId:n}))},openAsset:function(n,r){return t.call("navigateToContentEntity",e({},r,{entityType:"Asset",id:n}))},openNewAsset:function(n){return t.call("navigateToContentEntity",e({},n,{entityType:"Asset",id:null}))},openPageExtension:function(r){return t.call("navigateToPageExtension",e({id:n},r))},onSlideInNavigation:function(t){return r.attach(t)}}};
function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function e(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?t(Object(i),!0).forEach(function(t){n(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function n(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r=require("./signal"),i=r.Signal;module.exports=function(t,n){var r=new i;return t.addHandler("navigateSlideIn",function(t){r.dispatch(t)}),{openEntry:function(n,r){return t.call("navigateToContentEntity",e({},r,{entityType:"Entry",id:n}))},openNewEntry:function(n,r){return t.call("navigateToContentEntity",e({},r,{entityType:"Entry",id:null,contentTypeId:n}))},openBulkEditor:function(n,r){return t.call("navigateToBulkEditor",e({entryId:n},r))},openAsset:function(n,r){return t.call("navigateToContentEntity",e({},r,{entityType:"Asset",id:n}))},openNewAsset:function(n){return t.call("navigateToContentEntity",e({},n,{entityType:"Asset",id:null}))},openPageExtension:function(r){return t.call("navigateToPageExtension",e({id:n},r))},onSlideInNavigation:function(t){return r.attach(t)}}};
},{"./signal":"HrMX"}],"A2T1":[function(require,module,exports) {

@@ -33,0 +33,0 @@ function t(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function n(t){return(n="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})(t)}var e="preInstall",r="postInstall",o=function(t){return"object"===n(t)&&null!==t&&!Array.isArray(t)},u=function(t){return"function"==typeof t},l=function(t){return o(t)&&u(t.then)},a=function(t,n,e){if(!u(t))return Promise.resolve(n);var r;try{r=void 0===e?t():t(e)}catch(i){return Promise.resolve(!1)}var a=r;return l(a)||(a=Promise.resolve(a)),a.then(function(t){return!(t instanceof Error||!1===t)&&(o(t)?t:n)},function(){return!1}).catch(function(){return!1})};module.exports=function(n){var o,l=(t(o={},e,null),t(o,r,null),o),i=function(t,n){if(l[t])throw new Error("Cannot register a handler twice.");if(!u(n))throw new Error("Handler must be a function.");l[t]=n};return n.addHandler("appHook",function(t){var o=t.stage,u=t.installationRequestId,i=t.err;return o===e?a(l[o],{}).then(function(t){return n.send("appHookResult",{stage:o,installationRequestId:u,result:t})}):o===r?a(l[o],void 0,i||null).then(function(){return n.send("appHookResult",{stage:o,installationRequestId:u})}):Promise.resolve()}),{setReady:function(){return n.call("callAppMethod","setReady")},isInstalled:function(){return n.call("callAppMethod","isInstalled")},getParameters:function(){return n.call("callAppMethod","getParameters")},getCurrentState:function(){return n.call("callAppMethod","getCurrentState")},onConfigure:function(t){i(e,t)},onConfigurationCompleted:function(t){i(r,t)}}};

@@ -22,2 +22,8 @@ const { Signal } = require('./signal')

},
openBulkEditor: (entryId, opts) => {
return channel.call('navigateToBulkEditor', {
entryId,
...opts
})
},
openAsset: (id, opts) => {

@@ -24,0 +30,0 @@ return channel.call('navigateToContentEntity', { ...opts, entityType: 'Asset', id })

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

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

@@ -459,2 +459,17 @@ declare module 'contentful-ui-extensions-sdk' {

}>
/** Navigates to a bulk entry editor */
openBulkEditor: (
entryId: string,
options: {
/** ID of the reference field */
fieldId: string
/** Editable locale */
locale: string
/** Focused index */
index: number
}
) => Promise<{
navigated: boolean
slide?: NavigatorSlideInfo
}>
onSlideInNavigation: (fn: (slide: NavigatorSlideInfo) => void) => Function

@@ -461,0 +476,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