@ikas/bp-storefront 0.57.0 → 0.60.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{options as _}from"../../dist/preact.mjs.js";var n,t,o,r,u=0,c=[],e=_,i=e.__b,f=e.__r,a=e.diffed,h=e.__c,m=e.unmount,s=e.__;function v(_,n){e.__h&&e.__h(t,_,u||n),u=0;var o=t.__H||(t.__H={__:[],__h:[]});return _>=o.__.length&&o.__.push({}),o.__[_]}function H(_){return u=5,l(function(){return{current:_}},[])}function l(_,t){var o=v(n++,7);return function(_,n){return!_||_.length!==n.length||n.some(function(n,t){return n!==_[t]})}(o.__H,t)&&(o.__=_(),o.__H=t,o.__h=_),o.__}function d(_,n){return u=8,l(function(){return _},n)}function p(){for(var _;_=c.shift();)if(_.__P&&_.__H)try{_.__H.__h.forEach(A),_.__H.__h.forEach(F),_.__H.__h=[]}catch(n){_.__H.__h=[],e.__e(n,_.__v)}}e.__b=function(_){t=null,i&&i(_)},e.__=function(_,n){_&&n.__k&&n.__k.__m&&(_.__m=n.__k.__m),s&&s(_,n)},e.__r=function(_){f&&f(_),n=0;var r=(t=_.__c).__H;r&&(o===t?(r.__h=[],t.__h=[],r.__.forEach(function(_){_.__N&&(_.__=_.__N),_.u=_.__N=void 0})):(r.__h.forEach(A),r.__h.forEach(F),r.__h=[],n=0)),o=t},e.diffed=function(_){a&&a(_);var n=_.__c;n&&n.__H&&(n.__H.__h.length&&(1!==c.push(n)&&r===e.requestAnimationFrame||((r=e.requestAnimationFrame)||y)(p)),n.__H.__.forEach(function(_){_.u&&(_.__H=_.u),_.u=void 0})),o=t=null},e.__c=function(_,n){n.some(function(_){try{_.__h.forEach(A),_.__h=_.__h.filter(function(_){return!_.__||F(_)})}catch(t){n.some(function(_){_.__h&&(_.__h=[])}),n=[],e.__e(t,_.__v)}}),h&&h(_,n)},e.unmount=function(_){m&&m(_);var n,t=_.__c;t&&t.__H&&(t.__H.__.forEach(function(_){try{A(_)}catch(_){n=_}}),t.__H=void 0,n&&e.__e(n,t.__v))};var E="function"==typeof requestAnimationFrame;function y(_){var n,t=function(){clearTimeout(o),E&&cancelAnimationFrame(n),setTimeout(_)},o=setTimeout(t,35);E&&(n=requestAnimationFrame(t))}function A(_){var n=t,o=_.__c;"function"==typeof o&&(_.__c=void 0,o()),t=n}function F(_){var n=t;_.__c=_.__(),t=n}export{d as useCallback,l as useMemo,H as useRef};
1
+ import{options as _}from"../../dist/preact.mjs.js";var n,t,o,e,u=0,r=[],i=_,c=i.__b,f=i.__r,a=i.diffed,m=i.__c,s=i.unmount,h=i.__;function v(_,n){i.__h&&i.__h(t,_,u||n),u=0;var o=t.__H||(t.__H={__:[],__h:[]});return _>=o.__.length&&o.__.push({}),o.__[_]}function l(_){return u=5,H(function(){return{current:_}},[])}function H(_,t){var o=v(n++,7);return function(_,n){return!_||_.length!==n.length||n.some(function(n,t){return n!==_[t]})}(o.__H,t)&&(o.__=_(),o.__H=t,o.__h=_),o.__}function d(_,n){return u=8,H(function(){return _},n)}function p(){for(var _;_=r.shift();){var n=_.__H;if(_.__P&&n)try{n.__h.some(F),n.__h.some(g),n.__h=[]}catch(t){n.__h=[],i.__e(t,_.__v)}}}i.__b=function(_){t=null,c&&c(_)},i.__=function(_,n){_&&n.__k&&n.__k.__m&&(_.__m=n.__k.__m),h&&h(_,n)},i.__r=function(_){f&&f(_),n=0;var e=(t=_.__c).__H;e&&(o===t?(e.__h=[],t.__h=[],e.__.some(function(_){_.__N&&(_.__=_.__N),_.u=_.__N=void 0})):(e.__h.some(F),e.__h.some(g),e.__h=[],n=0)),o=t},i.diffed=function(_){a&&a(_);var n=_.__c;n&&n.__H&&(n.__H.__h.length&&(1!==r.push(n)&&e===i.requestAnimationFrame||((e=i.requestAnimationFrame)||A)(p)),n.__H.__.some(function(_){_.u&&(_.__H=_.u),_.u=void 0})),o=t=null},i.__c=function(_,n){n.some(function(_){try{_.__h.some(F),_.__h=_.__h.filter(function(_){return!_.__||g(_)})}catch(t){n.some(function(_){_.__h&&(_.__h=[])}),n=[],i.__e(t,_.__v)}}),m&&m(_,n)},i.unmount=function(_){s&&s(_);var n,t=_.__c;t&&t.__H&&(t.__H.__.some(function(_){try{F(_)}catch(_){n=_}}),t.__H=void 0,n&&i.__e(n,t.__v))};var y="function"==typeof requestAnimationFrame;function A(_){var n,t=function(){clearTimeout(o),y&&cancelAnimationFrame(n),setTimeout(_)},o=setTimeout(t,35);y&&(n=requestAnimationFrame(t))}function F(_){var n=t,o=_.__c;"function"==typeof o&&(_.__c=void 0,o()),t=n}function g(_){var n=t;_.__c=_.__(),t=n}export{d as useCallback,H as useMemo,l as useRef};
@@ -1 +1 @@
1
- import{createElement as r}from'./../ext/preact/dist/preact.mjs.js';import{useRef as n,useCallback as t}from'./../ext/preact/hooks/dist/hooks.mjs.js';function e(e){var o=e.components,a=e.parentProps,i=void 0===a?{}:a,c=n([]),s=t(function(r){if(r&&Array.isArray(o)){c.current.forEach(function(r){return r()}),c.current=[],r.innerHTML="";for(var n=0,t=o;n<t.length;n++){var e=t[n],a=document.createElement("div"),s="test-".concat(Math.random().toString(36).substring(2,15));if(a.innerHTML=e.r(i,{},{mainId:s}),r.appendChild(a),e.l){var d=e.l('[id="'.concat(s,'"]'),i,{},{mainId:'[id="'.concat(s,'"]')});"function"==typeof d&&c.current.push(d)}}}},[o,i]);return o&&0!==o.length?r("div",{ref:s}):null}export{e as IkasComponentRenderer};
1
+ import{createElement as r}from'./../ext/preact/dist/preact.mjs.js';import{useRef as t,useCallback as e}from'./../ext/preact/hooks/dist/hooks.mjs.js';function n(n){var o=n.components,a=n.parentProps,i=void 0===a?{}:a,c=t([]),s=e(function(r){if(r&&Array.isArray(o)){c.current.forEach(function(r){return r()}),c.current=[],r.innerHTML="";for(var t=0,e=o;t<e.length;t++){var n=e[t],a=document.createElement("div"),s="test-".concat(Math.random().toString(36).substring(2,15));if(a.innerHTML=n.r(i,{},{id:s}),r.appendChild(a),n.l){var d=n.l('[id="'.concat(s,'"]'),i,{},{id:'[id="'.concat(s,'"]')});"function"==typeof d&&c.current.push(d)}}}},[o,i]);return o&&0!==o.length?r("div",{ref:s}):null}export{n as IkasComponentRenderer};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/bp-storefront",
3
- "version": "0.57.0",
3
+ "version": "0.60.0",
4
4
  "description": "A framework for the ikas blueprint storefronts.",
5
5
  "author": "ikas",
6
6
  "license": "ISC",