@uniformdev/canvas
Advanced tools
Comparing version 12.0.1-alpha.87 to 12.0.1-alpha.94
@@ -1,1 +0,1 @@ | ||
"use strict";var __read=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,a=n.call(e),l=[];try{for(;(void 0===t||0<t--)&&!(o=a.next()).done;)l.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return l},__spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,a=t.length;r<a;r++)!o&&r in t||((o=o||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};function walkComponentTree(e,s){for(var c=[{ancestorsAndSelf:[{component:e,parentSlot:void 0,parentSlotIndex:void 0}]}];function(){var o=c.pop();if(!o)return;var t=o.ancestorsAndSelf[0];s(t.component,o.ancestorsAndSelf,{replaceComponent:function(e){Object.assign(t.component,e)},removeComponent:function(){var e=o.ancestorsAndSelf[0],t=e.parentSlot,n=e.parentSlotIndex,e=o.ancestorsAndSelf[1];if(!t||void 0===n)throw new Error("Unable to delete composition.");e.component.slots[t].splice(n,1)}});var e=t.component.slots;if(e)for(var n=Object.keys(e),r=n.length-1;0<=r;r--)for(var a=n[r],l=e[a],p=l.length-1;0<=p;p--)c.push({ancestorsAndSelf:__spreadArray([{component:l[p],parentSlot:a,parentSlotIndex:p}],__read(o.ancestorsAndSelf),!1)})}(),0<c.length;);}function getComponentPath(e){for(var t=[],n=e.length-1;0<=n;n--){var o=e[n],r=o.parentSlot,o=o.parentSlotIndex;r&&void 0!==o&&t.push(r+"["+o+"]")}return"."+t.join(".")}Object.defineProperty(exports,"__esModule",{value:!0}),exports.getComponentPath=exports.walkComponentTree=void 0,exports.walkComponentTree=walkComponentTree,exports.getComponentPath=getComponentPath; | ||
"use strict";var __read=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,a=n.call(e),l=[];try{for(;(void 0===t||0<t--)&&!(o=a.next()).done;)l.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return l},__spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,a=t.length;r<a;r++)!o&&r in t||((o=o||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};function walkComponentTree(e,s){for(var c=[{ancestorsAndSelf:[{component:e,parentSlot:void 0,parentSlotIndex:void 0}]}];function(){var o=c.pop();if(!o)return;var n=o.ancestorsAndSelf[0];s(n.component,o.ancestorsAndSelf,{replaceComponent:function(t){Object.assign(n.component,t);["parameters","variant","slots","data","_pattern","_patternError"].forEach(function(e){t[e]||delete n.component[e]})},removeComponent:function(){var e=o.ancestorsAndSelf[0],t=e.parentSlot,n=e.parentSlotIndex,e=o.ancestorsAndSelf[1];if(!t||void 0===n)throw new Error("Unable to delete composition.");e.component.slots[t].splice(n,1)}});var e=n.component.slots;if(e)for(var t=Object.keys(e),r=t.length-1;0<=r;r--)for(var a=t[r],l=e[a],p=l.length-1;0<=p;p--)c.push({ancestorsAndSelf:__spreadArray([{component:l[p],parentSlot:a,parentSlotIndex:p}],__read(o.ancestorsAndSelf),!1)})}(),0<c.length;);}function getComponentPath(e){for(var t=[],n=e.length-1;0<=n;n--){var o=e[n],r=o.parentSlot,o=o.parentSlotIndex;r&&void 0!==o&&t.push(r+"["+o+"]")}return"."+t.join(".")}Object.defineProperty(exports,"__esModule",{value:!0}),exports.getComponentPath=exports.walkComponentTree=void 0,exports.walkComponentTree=walkComponentTree,exports.getComponentPath=getComponentPath; |
@@ -17,1 +17,2 @@ export * from './types'; | ||
export * from './preview/EventNames'; | ||
export * from './enhancement/localize'; |
@@ -1,1 +0,1 @@ | ||
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,r,t,n){void 0===n&&(n=t),Object.defineProperty(e,n,{enumerable:!0,get:function(){return r[t]}})}:function(e,r,t,n){e[n=void 0===n?t:n]=r[t]}),__exportStar=this&&this.__exportStar||function(e,r){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(r,t)||__createBinding(r,e,t)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./types"),exports),__exportStar(require("./enhancement/walkComponentTree"),exports),__exportStar(require("./enhancement/UniqueBatchEntries"),exports),__exportStar(require("./enhancement/EnhancerBuilder"),exports),__exportStar(require("./enhancement/batchEnhancer"),exports),__exportStar(require("./enhancement/enhance"),exports),__exportStar(require("./enhancement/compose"),exports),__exportStar(require("./enhancement/createLimitPolicy"),exports),__exportStar(require("./CanvasClient"),exports),__exportStar(require("./utils/constants"),exports),__exportStar(require("./utils/isSystemComponentDefinition"),exports),__exportStar(require("./utils/mapSlotToPersonalizedVariations"),exports),__exportStar(require("./preview/createEventBus"),exports),__exportStar(require("./preview/getChannelName"),exports),__exportStar(require("./preview/subscribeToComposition"),exports),__exportStar(require("./preview/EventNames"),exports); | ||
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,r,t,n){void 0===n&&(n=t),Object.defineProperty(e,n,{enumerable:!0,get:function(){return r[t]}})}:function(e,r,t,n){e[n=void 0===n?t:n]=r[t]}),__exportStar=this&&this.__exportStar||function(e,r){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(r,t)||__createBinding(r,e,t)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./types"),exports),__exportStar(require("./enhancement/walkComponentTree"),exports),__exportStar(require("./enhancement/UniqueBatchEntries"),exports),__exportStar(require("./enhancement/EnhancerBuilder"),exports),__exportStar(require("./enhancement/batchEnhancer"),exports),__exportStar(require("./enhancement/enhance"),exports),__exportStar(require("./enhancement/compose"),exports),__exportStar(require("./enhancement/createLimitPolicy"),exports),__exportStar(require("./CanvasClient"),exports),__exportStar(require("./utils/constants"),exports),__exportStar(require("./utils/isSystemComponentDefinition"),exports),__exportStar(require("./utils/mapSlotToPersonalizedVariations"),exports),__exportStar(require("./preview/createEventBus"),exports),__exportStar(require("./preview/getChannelName"),exports),__exportStar(require("./preview/subscribeToComposition"),exports),__exportStar(require("./preview/EventNames"),exports),__exportStar(require("./enhancement/localize"),exports); |
@@ -1,1 +0,1 @@ | ||
var __read=this&&this.__read||function(n,e){var t="function"==typeof Symbol&&n[Symbol.iterator];if(!t)return n;var o,r,a=t.call(n),l=[];try{for(;(void 0===e||0<e--)&&!(o=a.next()).done;)l.push(o.value)}catch(n){r={error:n}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(r)throw r.error}}return l},__spreadArray=this&&this.__spreadArray||function(n,e,t){if(t||2===arguments.length)for(var o,r=0,a=e.length;r<a;r++)!o&&r in e||((o=o||Array.prototype.slice.call(e,0,r))[r]=e[r]);return n.concat(o||Array.prototype.slice.call(e))};function walkComponentTree(n,c){for(var s=[{ancestorsAndSelf:[{component:n,parentSlot:void 0,parentSlotIndex:void 0}]}];function(){var o=s.pop();if(!o)return;var e=o.ancestorsAndSelf[0];c(e.component,o.ancestorsAndSelf,{replaceComponent:function(n){Object.assign(e.component,n)},removeComponent:function(){var n=o.ancestorsAndSelf[0],e=n.parentSlot,t=n.parentSlotIndex,n=o.ancestorsAndSelf[1];if(!e||void 0===t)throw new Error("Unable to delete composition.");n.component.slots[e].splice(t,1)}});var n=e.component.slots;if(n)for(var t=Object.keys(n),r=t.length-1;0<=r;r--)for(var a=t[r],l=n[a],p=l.length-1;0<=p;p--)s.push({ancestorsAndSelf:__spreadArray([{component:l[p],parentSlot:a,parentSlotIndex:p}],__read(o.ancestorsAndSelf),!1)})}(),0<s.length;);}function getComponentPath(n){for(var e=[],t=n.length-1;0<=t;t--){var o=n[t],r=o.parentSlot,o=o.parentSlotIndex;r&&void 0!==o&&e.push(r+"["+o+"]")}return"."+e.join(".")}export{walkComponentTree,getComponentPath}; | ||
var __read=this&&this.__read||function(n,e){var t="function"==typeof Symbol&&n[Symbol.iterator];if(!t)return n;var r,o,a=t.call(n),l=[];try{for(;(void 0===e||0<e--)&&!(r=a.next()).done;)l.push(r.value)}catch(n){o={error:n}}finally{try{r&&!r.done&&(t=a.return)&&t.call(a)}finally{if(o)throw o.error}}return l},__spreadArray=this&&this.__spreadArray||function(n,e,t){if(t||2===arguments.length)for(var r,o=0,a=e.length;o<a;o++)!r&&o in e||((r=r||Array.prototype.slice.call(e,0,o))[o]=e[o]);return n.concat(r||Array.prototype.slice.call(e))};function walkComponentTree(n,c){for(var s=[{ancestorsAndSelf:[{component:n,parentSlot:void 0,parentSlotIndex:void 0}]}];function(){var r=s.pop();if(!r)return;var t=r.ancestorsAndSelf[0];c(t.component,r.ancestorsAndSelf,{replaceComponent:function(e){Object.assign(t.component,e);["parameters","variant","slots","data","_pattern","_patternError"].forEach(function(n){e[n]||delete t.component[n]})},removeComponent:function(){var n=r.ancestorsAndSelf[0],e=n.parentSlot,t=n.parentSlotIndex,n=r.ancestorsAndSelf[1];if(!e||void 0===t)throw new Error("Unable to delete composition.");n.component.slots[e].splice(t,1)}});var n=t.component.slots;if(n)for(var e=Object.keys(n),o=e.length-1;0<=o;o--)for(var a=e[o],l=n[a],p=l.length-1;0<=p;p--)s.push({ancestorsAndSelf:__spreadArray([{component:l[p],parentSlot:a,parentSlotIndex:p}],__read(r.ancestorsAndSelf),!1)})}(),0<s.length;);}function getComponentPath(n){for(var e=[],t=n.length-1;0<=t;t--){var r=n[t],o=r.parentSlot,r=r.parentSlotIndex;o&&void 0!==r&&e.push(o+"["+r+"]")}return"."+e.join(".")}export{walkComponentTree,getComponentPath}; |
@@ -17,1 +17,2 @@ export * from './types'; | ||
export * from './preview/EventNames'; | ||
export * from './enhancement/localize'; |
@@ -1,1 +0,1 @@ | ||
export*from"./types";export*from"./enhancement/walkComponentTree";export*from"./enhancement/UniqueBatchEntries";export*from"./enhancement/EnhancerBuilder";export*from"./enhancement/batchEnhancer";export*from"./enhancement/enhance";export*from"./enhancement/compose";export*from"./enhancement/createLimitPolicy";export*from"./CanvasClient";export*from"./utils/constants";export*from"./utils/isSystemComponentDefinition";export*from"./utils/mapSlotToPersonalizedVariations";export*from"./preview/createEventBus";export*from"./preview/getChannelName";export*from"./preview/subscribeToComposition";export*from"./preview/EventNames"; | ||
export*from"./types";export*from"./enhancement/walkComponentTree";export*from"./enhancement/UniqueBatchEntries";export*from"./enhancement/EnhancerBuilder";export*from"./enhancement/batchEnhancer";export*from"./enhancement/enhance";export*from"./enhancement/compose";export*from"./enhancement/createLimitPolicy";export*from"./CanvasClient";export*from"./utils/constants";export*from"./utils/isSystemComponentDefinition";export*from"./utils/mapSlotToPersonalizedVariations";export*from"./preview/createEventBus";export*from"./preview/getChannelName";export*from"./preview/subscribeToComposition";export*from"./preview/EventNames";export*from"./enhancement/localize"; |
{ | ||
"name": "@uniformdev/canvas", | ||
"version": "12.0.1-alpha.87+0c1226dd", | ||
"version": "12.0.1-alpha.94+0290763c", | ||
"description": "Common functionality and types for Uniform Canvas", | ||
@@ -46,7 +46,7 @@ "license": "SEE LICENSE IN LICENSE.txt", | ||
"@types/jest": "27.0.2", | ||
"@types/js-yaml": "4.0.3", | ||
"@types/js-yaml": "4.0.4", | ||
"@types/lodash.isequalwith": "4.4.6", | ||
"@types/node": "16.7.1", | ||
"@types/yargs": "17.0.3", | ||
"@uniformdev/cli": "^12.0.1-alpha.87+0c1226dd", | ||
"@uniformdev/cli": "^12.0.1-alpha.94+0290763c", | ||
"eslint": "7.32.0", | ||
@@ -65,4 +65,4 @@ "eslint-plugin-react": "7.26.1", | ||
"dependencies": { | ||
"@uniformdev/optimize-common": "^12.0.1-alpha.87+0c1226dd", | ||
"@uniformdev/optimize-tracker-common": "^12.0.1-alpha.87+0c1226dd", | ||
"@uniformdev/optimize-common": "^12.0.1-alpha.94+0290763c", | ||
"@uniformdev/optimize-tracker-common": "^12.0.1-alpha.94+0290763c", | ||
"chalk": "^4.1.2", | ||
@@ -84,3 +84,3 @@ "diff": "^5.0.0", | ||
}, | ||
"gitHead": "0c1226dd231f429b74e0a08d3c9ccb6be0b13ede" | ||
"gitHead": "0290763c5d9801ad4293fd59cb4cbeb35f5e1408" | ||
} |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
291612
1640