useblocks 1.1.102 → 1.1.103

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.
Files changed (43) hide show
  1. package/iframe/.vite/manifest.json +4 -4
  2. package/iframe/{iframe-eblock.1c4e77a0.html → iframe-eblock.b65837b7.html} +2 -2
  3. package/iframe/{iframe.1c4e77a0.html → iframe.b65837b7.html} +2 -2
  4. package/iframe/js/{discussHandlers.Xh4-JUcT.js → discussHandlers.B36tbVEC.js} +44 -44
  5. package/iframe/js/{iframe-eblock.body.1c4e77a0.js → iframe-eblock.body.b65837b7.js} +1 -1
  6. package/iframe/js/iframe-eblock.js +2 -2
  7. package/iframe/js/{iframe.body.1c4e77a0.js → iframe.body.b65837b7.js} +3 -3
  8. package/iframe/js/iframe.js +2 -2
  9. package/package.json +1 -1
  10. package/runtime/react/index.js +1 -1
  11. package/static/core/{b7aa9fec.js → 20098caa.js} +1 -1
  12. package/static/core/{1b68c0f0.js → 29993987.js} +1 -1
  13. package/static/core/{6a671446.js → 2a85f6f1.js} +1 -1
  14. package/static/core/{edf450a1.js → 348ec5fd.js} +1 -1
  15. package/static/core/{26cc947d.js → 3501b0a6.js} +1 -1
  16. package/static/core/{11b821ed.js → 36448ec6.js} +1 -1
  17. package/static/core/{5e7c221f.js → 41dd8b28.js} +13 -13
  18. package/static/core/{44d2c046.js → 47bde21f.js} +1 -1
  19. package/static/core/{f1ee2bef.js → 50c87f51.js} +1 -1
  20. package/static/core/{a98b6879.js → 5c36eb62.js} +1 -1
  21. package/static/core/{f323e60e.js → 5d7aff4e.js} +1 -1
  22. package/static/core/{5d849eef.js → 63f26591.js} +1 -1
  23. package/static/core/{3ec42945.js → 68650ff2.js} +1 -1
  24. package/static/core/{cc180859.js → 69cf8e2c.js} +1 -1
  25. package/static/core/{ca4dad9b.js → 6b904901.js} +2 -2
  26. package/static/core/{3fb172c7.js → 8288f720.js} +1 -1
  27. package/static/core/{91e07171.js → a013bc08.js} +1 -1
  28. package/static/core/{a2e57e5f.js → aa3448fe.js} +1 -1
  29. package/static/core/{448f03f8.js → b7d1fefc.js} +1 -1
  30. package/static/core/{53103851.js → c9a4d1ef.js} +2 -2
  31. package/static/core/{ae22b7f6.js → d74756b9.js} +1 -1
  32. package/static/core/{b653f9c5.js → defdbce4.js} +1 -1
  33. package/static/core/{64be048b.js → ed8a3337.js} +1 -1
  34. package/static/core/{847338a8.js → f8819751.js} +1 -1
  35. package/static/core/{d7666ad0.js → fd8197a8.js} +1 -1
  36. package/static/umd-runtime/{runtime.2paN090q.js → runtime.D3aKaKTc.js} +1 -1
  37. package/useblocks-core.b65837b7.js +859 -0
  38. package/useblocks-esm.js +6 -6
  39. package/{useblocks-po.1c4e77a0.js → useblocks-po.b65837b7.js} +1 -1
  40. package/useblocks.d.ts +31 -6
  41. package/useblocks.js +6 -6
  42. package/vendor/useblocks-ui-kit/package.json +1 -1
  43. package/useblocks-core.1c4e77a0.js +0 -859
@@ -1,4 +1,4 @@
1
- __useblocks__.define("js/iframe-eblock.js",["require","exports","module","js/discussHandlers.Xh4-JUcT.js","js/typograf.all.BbXdyfMT.js"],function(Me,Ct,Pt){const o=Me("./discussHandlers.Xh4-JUcT.js"),qe=Me("./typograf.all.BbXdyfMT.js");function et(e){const i=new Map,t=[],l=[],n=[];for(const d of e)if(d instanceof HTMLLinkElement)d.getAttribute("em-class")?.startsWith("em-font-")&&l.push(d);else if(d instanceof HTMLStyleElement){const m=d.getAttribute("em")||"",a=i.get(m);a?a.push(d):i.set(m,[d])}else if(d instanceof Element)if(d.getAttribute("em")==="block")t.push(d);else{const m=d.querySelector("[em='block']");m&&t.push(m)}else d.textContent===`
1
+ __useblocks__.define("js/iframe-eblock.js",["require","exports","module","js/discussHandlers.B36tbVEC.js","js/typograf.all.BbXdyfMT.js"],function(Me,Ct,Pt){const o=Me("./discussHandlers.B36tbVEC.js"),qe=Me("./typograf.all.BbXdyfMT.js");function et(e){const i=new Map,t=[],l=[],n=[];for(const d of e)if(d instanceof HTMLLinkElement)d.getAttribute("em-class")?.startsWith("em-font-")&&l.push(d);else if(d instanceof HTMLStyleElement){const m=d.getAttribute("em")||"",a=i.get(m);a?a.push(d):i.set(m,[d])}else if(d instanceof Element)if(d.getAttribute("em")==="block")t.push(d);else{const m=d.querySelector("[em='block']");m&&t.push(m)}else d.textContent===`
2
2
  `&&n.push(d);const s=[];for(const d of l)s.push(d);for(const[d,m]of i)if(m.length>1){let a=o.minifyStylesheet(m.map(r=>r.innerHTML).join(`
3
3
  `),{restructure:!0,forceMediaMerge:!0}).css;if(a=cssbeautify(a,{indent:" ",autosemicolon:!0}),a){const r=document.createElement("style");r.innerHTML=`
4
4
  ${a}
@@ -1,7 +1,7 @@
1
1
  var e=window.__useblocks__||(window.__useblocks__={});(function(){"use strict";if(e!==void 0&&e.define)return;e===void 0&&(window.__amdEnv={});var t={},n={},r={},i={},a={},o=null,s={},c={},l=0;function u(e,t){l+=1;try{return e.factory.apply(null,t)}finally{--l}}var d=`./`,f={},p=60,m=`emailmaker:diagnostics`,h=[],g;function _(){if(g!==void 0)return g;g=!1;try{var e=/[?&]diagnostics(?:=([^&]*))?/.exec(window.location.search||``);if(e)return g=e[1]!==`0`,g;if(typeof window.__DIAGNOSTICS__==`boolean`)return g=!!window.__DIAGNOSTICS__,g;g=window.localStorage.getItem(m)===`1`}catch{g=!1}return g}function v(e,t){if(_()){var n={phase:e,at:performance.timeOrigin+performance.now(),kind:`wait`};t&&(n.parent=String(t)),h.push(n)}}function y(e){if(!e||e.__amdLogged)return e;try{Object.defineProperty(e,"__amdLogged",{value:!0,enumerable:!1})}catch{try{e.__amdLogged=!0}catch{}}try{var t=e&&e.message||`loader error`;console.error(`[AMD] `+(t.indexOf(`[AMD]`)===0?t.slice(6):t),e)}catch{}return e}function b(){try{if(e!==void 0&&e&&e.publicPath)return String(e.publicPath)}catch{}return`(not set)`}function x(){var e=b();return String(e).indexOf(`file:`)===0?` The page appears to be opened as a local file (file://) or publicPath was not configured. Serve the host app over HTTP(S) and set publicPath to the origin that serves editor assets (host bundler plugin or __amdEnv.setPublicPath). Current runtime publicPath=`+e+`.`:` Host bundler publicPath may be misconfigured (Vite/Webpack host plugin). In dev, set publicPath to the absolute origin that serves editor assets (for example http://localhost:3001/<outputFolder>/). Current runtime publicPath=`+e+`.`}function S(e){if(typeof fetch!=`function`)return Promise.resolve(``);function t(e){var t=(e.headers.get(`content-type`)||``).toLowerCase();try{e.body&&typeof e.body.cancel==`function`&&e.body.cancel()}catch{}return t.indexOf(`text/html`)>=0?` The URL returned HTML (Content-Type: text/html), not JavaScript — often a SPA fallback when asset paths are wrong.`:e.ok?``:` HTTP status `+e.status+` — the asset URL may be wrong or blocked by the server.`}return fetch(e,{method:`HEAD`,credentials:`omit`,headers:{Accept:`application/javascript,*/*`}}).then(function(n){return n.status===405||n.status===501?fetch(e,{method:`GET`,credentials:`omit`,headers:{Accept:`application/javascript,*/*`}}).then(t):t(n)}).catch(function(){return fetch(e,{method:`GET`,credentials:`omit`,headers:{Accept:`application/javascript,*/*`}}).then(t).catch(function(){return``})})}function C(e,t){var n=Error(`[AMD] Failed to load module "`+e+`"`+(t?`: `+t.message:``));return n.moduleId=e,n.cause=t,n}function w(e,t,n){var r=Error(`[AMD] Failed to resolve dependency "`+t+`" for module "`+e+`"`+(n?`: `+n.message:``));return r.moduleId=e,r.dependencyId=t,r.cause=n,r}function T(e){for(var t=String(e||``).split(`/`),n=[],r=0;r<t.length;r++){var i=t[r];if(i&&i!==`.`){if(i===`..`){n.length>0&&n.pop();continue}n.push(i)}}return n.join(`/`)}function E(e){var t=String(e||``).replace(/\\/g,`/`),n=String(d||`./`).replace(/\\/g,`/`);return n=n.replace(/^\.\/+/,``),n=n.replace(/^\/+/,``),n&&n.slice(-1)!==`/`&&(n+=`/`),n&&t.indexOf(n)===0&&(t=t.slice(n.length)),t.indexOf(`./`)===0&&(t=t.slice(2)),t}function D(e){return{then:function(t,n){return e.then(t,n)},catch:function(t){return e.catch(t)},finally:function(t){return e.finally(t)}}}function O(e,t){var n=String(e||``);if(!n)return n;if(n.indexOf(`./`)!==0&&n.indexOf(`../`)!==0)return E(T(n));var r=t||``;if(Object.prototype.hasOwnProperty.call(f,r)){var i=String(f[r]||``);i&&!k(i)&&i.charAt(0)!==`/`&&(r=i)}var a=T(r),o=a?a.split(`/`):[];o.length>0&&o.pop();for(var s=n.split(`/`),c=0;c<s.length;c++){var l=s[c];if(l&&l!==`.`){if(l===`..`){o.length>0&&o.pop();continue}o.push(l)}}return E(o.join(`/`))}function k(e){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e)||e.indexOf(`//`)===0}function A(e){var t=String(e||``);if(!t||k(t))return t;try{var n=typeof document<`u`&&document.baseURI?document.baseURI:typeof window<`u`&&window.location?window.location.href:``;return n?new URL(t,n).href:t}catch{return t}}function j(){var t=String(d||`./`);if(t.slice(-1)!==`/`&&(t+=`/`),k(t)||t.charAt(0)===`/`)return t;if(e!==void 0&&e&&e.publicPath)try{return new URL(t,A(e.publicPath)).href}catch{}return A(t)}function M(e,t){var n=O(e,t),r=j(),i=Object.prototype.hasOwnProperty.call(f,n)?String(f[n]||``):n;i.slice(-3)!==`.js`&&(i+=`.js`);try{return new URL(i,r).href}catch{return r+i}}function N(){if(typeof document>`u`)return``;var e=document.currentScript;if(e){var t=e.getAttribute(`data-amd-module-id`);if(t)return t}return``}function P(e,n,r){if(Array.isArray(e)?(r=n,n=e,e=N()):typeof e==`function`?(r=e,n=[],e=N()):typeof n==`function`&&(r=n,n=[]),!e)throw Error(`[AMD] Anonymous define() could not be associated with a module id`);e in t||(t[e]={deps:n||[],factory:r})}P.amd={async:!0};function F(e){var t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}P(`vite/preload-helper`,[`exports`],function(e){e.__vitePreload=function(e){return Promise.resolve().then(function(){return e().catch(F)})}});function I(){return function(){}}function L(e,t){return{id:e,exports:t,uri:M(e)}}function R(e,t,n,r){if(Array.isArray(e)){var i=Promise.all(e.map(function(e){return V(e,r)})).then(function(e){return t&&t.apply(null,e),e});return n&&i.catch(n),i}return V(e,r)}function z(e,o){if(Array.isArray(e))throw Error(`[AMD] syncRequire does not support dependency arrays`);var s=O(e,o);if(s in a)throw y(a[s]);if(s in n)return n[s];if(s in r||s in i)throw y(C(s,Error(`Module is still loading asynchronously`)));if(!(s in t))throw y(C(s,Error(`Module is not available for syncRequire`)));return U(s)}function B(e,i){if(o&&e in o){var s={},c=[e];for(s[e]=!0;c.length>0;){var l=o[c.shift()];if(l)for(var u=0;u<l.length;u++){var d=l[u];s[d]||(s[d]=!0,c.push(d),!(d in n||d in a||d in r)&&(d in o?d in t||K(d,i).catch(function(){}):d in t&&V(d).catch(function(){})))}}}}function V(e,i){var o=O(e,i);if(o in a)return Promise.reject(y(a[o]));if(o in n)return Promise.resolve(n[o]);if(o in r)return r[o];if(v(`core:module:`+o+`:ask`,i),o in t)r[o]=H(o);else{var s=M(o);r[o]=K(o).then(function(){return v(`core:module:`+o+`:loaded`,i),o in t?H(o):S(s).then(function(e){var t=C(o,Error(`Module not defined after script load from "`+s+`".`+e+x()));throw a[o]=t,y(t)})}).catch(function(e){delete r[o];var t=e&&e.moduleId===o?e:C(o,e);throw a[o]=t,y(t)})}return B(o),r[o]}function H(e){var i=t[e],o=W(e),s=I(),l=L(e,s);c[e]=s;function d(t){return n[e]=t,delete r[e],delete c[e],n[e]}return Promise.all(i.deps.map(function(t){return t===`exports`?s:t===`require`?o:t===`module`?l:V(t,e).catch(function(n){throw w(e,t,n)})})).then(function(t){v(`core:module:`+e+`:deps`);var n=u(i,t);return n&&typeof n.then==`function`?n.then(function(t){return v(`core:module:`+e+`:ready`),d(t===void 0?l.exports:t)}):(v(`core:module:`+e+`:ready`),d(n===void 0?l.exports:n))}).catch(function(t){throw delete r[e],delete c[e],a[e]=t,y(t)})}function U(e){var r=t[e],i=W(e),o=I(),s=L(e,o);try{var c=u(r,r.deps.map(function(t){if(t===`exports`)return o;if(t===`require`)return i;if(t===`module`)return s;try{return z(t,e)}catch(n){throw w(e,t,n)}}));if(c&&typeof c.then==`function`)throw C(e,Error(`Module resolved asynchronously and cannot be syncRequired`));return n[e]=c===void 0?s.exports:c,n[e]}catch(t){throw a[e]=t,y(t)}}function W(e){var o=function(o,s,u){if(Array.isArray(o))return R(o,s,u,e);var d=O(o,e);if(d in a)throw y(a[d]);return d in n?n[d]:d in c&&l>0?c[d]:d in r||d in i?D(V(o,e)):d in t?z(o,e):D(V(o,e))};return o.resolve=function(t){return O(t,e)},o.toUrl=function(t){return M(t,e)},o.sync=function(t){return z(t,e)},o}function G(t,n){var r=e!==void 0&&e?e.moduleTransport:null;if(typeof r!=`function`||e.blobBlocked)return null;try{var i=r(t,n);return i&&typeof i.then==`function`?i:null}catch{return null}}function K(t,n){if(t in i)return i[t];if(s[t]&&s[t]!==t)return i[t]=K(s[t],n),i[t];var r=M(t);if(document.querySelector(`script[src="`+r+`"]`))return i[t]=Promise.resolve(),i[t];var a=performance.now();function o(e){return J(t,r,!1,n).then(function(n){return q(t,e,a),n})}var c=G(r,t);return c?(i[t]=c.then(function(r){return r?J(t,URL.createObjectURL(r),!0,n).then(function(e){return q(t,`transport`,a),e},function(){return e.blobBlocked=!0,o(`network-after-blob`)}):o(`network-fallback`)},function(){return o(`network-after-transport-error`)}),i[t]):(i[t]=o(`network`),i[t])}function q(t,n,r){_()&&((e.loaderTimings||=[]).push({id:t,via:n,ms:Math.round((performance.now()-r)*10)/10}),typeof e.onLoaderTiming==`function`&&e.onLoaderTiming())}function J(e,t,n,r){return new Promise(function(a,o){var s=!1,c=document.createElement(`script`);c.src=t,c.setAttribute(`data-amd-module-id`,e),c.async=!0,r===`low`&&(c.fetchPriority=`low`);var l=p>0?p*1e3:0,u=null;function d(){u!=null&&(clearTimeout(u),u=null),c.onload=null,c.onerror=null,n&&typeof URL<`u`&&URL.revokeObjectURL&&URL.revokeObjectURL(t)}function f(e){s||(s=!0,d(),e())}l>0&&(u=setTimeout(function(){f(function(){delete i[e],o(y(C(e,Error(`Timed out after `+l+`ms loading script: `+t+`.`+x()))))})},l)),c.onload=function(){f(function(){a()})},c.onerror=function(){f(function(){delete i[e],o(y(C(e,Error(`Failed to load script: `+t+`.`+x()))))})},document.head.appendChild(c)})}R.config=function(e){if(e.baseUrl&&(d=e.baseUrl),e.paths)for(var t in e.paths)Object.prototype.hasOwnProperty.call(e.paths,t)&&(f[t]=e.paths[t]);if(e.bundles){for(var n in e.bundles)if(Object.prototype.hasOwnProperty.call(e.bundles,n))for(var r=0;r<e.bundles[n].length;r++)s[e.bundles[n][r]]=n}if(e.graph)for(var i in o||={},e.graph)Object.prototype.hasOwnProperty.call(e.graph,i)&&(o[i]=e.graph[i]);typeof e.waitSeconds==`number`&&e.waitSeconds>=0&&(p=e.waitSeconds)},R.warm=function(e,r){var i=r&&r.priority;return Promise.all((e||[]).map(function(e){var r=O(e);if(r in a)return Promise.reject(a[r]);var o=r in t||r in n?Promise.resolve():K(r,i);return B(r,i),o})).then(function(){})},R.modules=t,R.resolved=n,R.errors=a,R.toUrl=M,R.sync=z,e.define=P,e.require=R,e.syncRequire=z,e.diagnosticsBuffer=h})(),e.require.config({baseUrl:`./`});
2
2
 
3
- __useblocks__.require.config({ paths: {"js/iframe-eblock.js":"js/iframe-eblock.body.1c4e77a0.js"} });
3
+ __useblocks__.require.config({ paths: {"js/iframe-eblock.js":"js/iframe-eblock.body.b65837b7.js"} });
4
4
 
5
- __useblocks__.require.config({"graph":{"js/iframe-eblock.js":["js/discussHandlers.Xh4-JUcT.js","js/typograf.all.BbXdyfMT.js"],"js/iframe.js":["js/rolldown-runtime.BRlIiq3h.js","js/discussHandlers.Xh4-JUcT.js"],"js/darkreader.CyLMh7_H.js":[],"js/discussHandlers.Xh4-JUcT.js":["js/rolldown-runtime.BRlIiq3h.js"],"js/rolldown-runtime.BRlIiq3h.js":[],"js/rules.CL_BitCE.js":[],"js/typograf.all.BbXdyfMT.js":["js/rolldown-runtime.BRlIiq3h.js"]}});
5
+ __useblocks__.require.config({"graph":{"js/iframe-eblock.js":["js/discussHandlers.B36tbVEC.js","js/typograf.all.BbXdyfMT.js"],"js/iframe.js":["js/rolldown-runtime.BRlIiq3h.js","js/discussHandlers.B36tbVEC.js"],"js/darkreader.CyLMh7_H.js":[],"js/discussHandlers.B36tbVEC.js":["js/rolldown-runtime.BRlIiq3h.js"],"js/rolldown-runtime.BRlIiq3h.js":[],"js/rules.CL_BitCE.js":[],"js/typograf.all.BbXdyfMT.js":["js/rolldown-runtime.BRlIiq3h.js"]}});
6
6
 
7
7
  __useblocks__.require("js/iframe-eblock.js");