@builder.io/sdk-vue 0.0.3-1 → 0.0.3
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.
- package/README.md +2 -14
- package/package.json +5 -4
- package/packages/_vue2/dist/{block-styles.c531694e.cjs → block-styles.7d59e6ba.cjs} +2 -2
- package/packages/_vue2/dist/{block-styles.234651b2.js → block-styles.bc1f94cc.js} +3 -3
- package/packages/_vue2/dist/get-processed-block.73e1ad82.js +40 -0
- package/packages/_vue2/dist/get-processed-block.c83086c1.cjs +1 -0
- package/packages/_vue2/dist/{index.19474a4f.js → index.02cbe11b.js} +302 -300
- package/packages/_vue2/dist/index.1d7bcb8c.cjs +4 -0
- package/packages/_vue2/dist/render-block.4d368620.cjs +3 -0
- package/packages/_vue2/dist/{render-block.3cf39e0e.js → render-block.4fdcffb1.js} +31 -38
- package/packages/_vue2/dist/render-component-with-context.45bddebc.js +53 -0
- package/packages/_vue2/dist/render-component-with-context.83718839.cjs +1 -0
- package/packages/_vue2/dist/{render-component.a9d4efb1.cjs → render-component.4b341c2e.cjs} +1 -1
- package/packages/_vue2/dist/{render-component.56e5101d.js → render-component.a8a981da.js} +3 -3
- package/packages/_vue2/dist/{render-inlined-styles.b6534355.js → render-inlined-styles.198fc516.js} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.9b6439ce.cjs → render-inlined-styles.d903e589.cjs} +1 -1
- package/packages/_vue2/dist/{render-repeated-block.3e536590.js → render-repeated-block.7547b966.js} +2 -2
- package/packages/_vue2/dist/{render-repeated-block.95861e2e.cjs → render-repeated-block.d2d7376a.cjs} +1 -1
- package/packages/_vue2/dist/{render-styles.9d4787d0.cjs → render-styles.2b14f2b8.cjs} +1 -1
- package/packages/_vue2/dist/{render-styles.ad89c45c.js → render-styles.d7585530.js} +2 -2
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.js +4 -4
- package/packages/_vue2/dist/src/blocks/button/button.vue.d.ts +11 -0
- package/packages/_vue2/dist/src/blocks/button/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +306 -0
- package/packages/_vue2/dist/src/blocks/columns/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/custom-code/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/custom-code/custom-code.vue.d.ts +18 -0
- package/packages/_vue2/dist/src/blocks/embed/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/embed/embed.vue.d.ts +22 -0
- package/packages/_vue2/dist/src/blocks/embed/helpers.d.ts +1 -0
- package/packages/_vue2/dist/src/blocks/fragment/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/fragment/fragment.vue.d.ts +10 -0
- package/packages/_vue2/dist/src/blocks/image/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/image/image.helpers.d.ts +1 -0
- package/packages/_vue2/dist/src/blocks/img/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/img/img.vue.d.ts +17 -0
- package/packages/_vue2/dist/src/blocks/section/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/section/section.vue.d.ts +11 -0
- package/packages/_vue2/dist/src/blocks/symbol/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +396 -0
- package/packages/_vue2/dist/src/blocks/text/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/text/text.vue.d.ts +8 -0
- package/packages/_vue2/dist/src/blocks/util.d.ts +1 -0
- package/packages/_vue2/dist/src/blocks/video/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/video/video.vue.d.ts +25 -0
- package/packages/_vue2/dist/src/components/render-block/block-styles.vue.d.ts +31 -0
- package/packages/_vue2/dist/src/components/render-block/render-block.helpers.d.ts +1 -0
- package/packages/_vue2/dist/src/components/render-block/render-block.vue.d.ts +237 -0
- package/packages/_vue2/dist/src/components/render-block/render-component-with-context.vue.d.ts +116 -0
- package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +141 -0
- package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +231 -0
- package/packages/_vue2/dist/src/components/render-block/types.d.ts +6 -0
- package/packages/_vue2/dist/src/components/render-blocks.vue.d.ts +279 -0
- package/packages/_vue2/dist/src/components/render-content/components/render-styles.vue.d.ts +27 -0
- package/packages/_vue2/dist/src/components/render-content/render-content.vue.d.ts +368 -0
- package/packages/_vue2/dist/src/components/render-inlined-styles.vue.d.ts +12 -0
- package/packages/_vue2/dist/src/constants/builder-registered-components.d.ts +6 -0
- package/packages/_vue2/dist/src/constants/device-sizes.d.ts +2 -0
- package/packages/_vue2/dist/src/constants/target.d.ts +2 -0
- package/packages/_vue2/dist/src/context/builder.context.d.ts +2 -0
- package/packages/_vue2/dist/src/context/types.d.ts +17 -0
- package/packages/_vue2/dist/src/functions/camel-to-kebab-case.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/evaluate.d.ts +5 -0
- package/packages/_vue2/dist/src/functions/event-handler-name.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/extract-text-styles.d.ts +4 -0
- package/packages/_vue2/dist/src/functions/fast-clone.d.ts +4 -0
- package/packages/_vue2/dist/src/functions/get-block-actions-handler.d.ts +5 -0
- package/packages/_vue2/dist/src/functions/get-block-actions.d.ts +9 -0
- package/packages/_vue2/dist/src/functions/get-block-component-options.d.ts +2 -0
- package/packages/_vue2/dist/src/functions/get-block-properties.d.ts +5 -0
- package/packages/_vue2/dist/src/functions/get-block-tag.d.ts +3 -0
- package/packages/_vue2/dist/src/functions/get-builder-search-params/index.d.ts +6 -0
- package/packages/_vue2/dist/src/functions/get-content/ab-testing.d.ts +5 -0
- package/packages/_vue2/dist/src/functions/get-content/index.d.ts +9 -0
- package/packages/_vue2/dist/src/functions/get-content/types.d.ts +31 -0
- package/packages/_vue2/dist/src/functions/get-fetch.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/get-global-this.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/get-processed-block.d.ts +10 -0
- package/packages/_vue2/dist/src/functions/get-react-native-block-styles.d.ts +6 -0
- package/packages/_vue2/dist/src/functions/is-browser.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/is-editing.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/is-iframe.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/is-previewing.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/mark-mutable.d.ts +2 -0
- package/packages/_vue2/dist/src/functions/register-component.d.ts +14 -0
- package/packages/_vue2/dist/src/functions/register.d.ts +16 -0
- package/packages/_vue2/dist/src/functions/sanitize-react-native-block-styles.d.ts +3 -0
- package/packages/_vue2/dist/src/functions/set-editor-settings.d.ts +4 -0
- package/packages/_vue2/dist/src/functions/set.d.ts +7 -0
- package/packages/_vue2/dist/src/functions/track.d.ts +21 -0
- package/packages/_vue2/dist/src/functions/transform-block.d.ts +2 -0
- package/packages/_vue2/dist/src/helpers/ab-tests.d.ts +8 -0
- package/packages/_vue2/dist/src/helpers/cookie.d.ts +15 -0
- package/packages/_vue2/dist/src/helpers/css.d.ts +5 -0
- package/packages/_vue2/dist/src/helpers/flatten.d.ts +6 -0
- package/packages/_vue2/dist/src/helpers/localStorage.d.ts +8 -0
- package/packages/_vue2/dist/src/helpers/nullable.d.ts +2 -0
- package/packages/_vue2/dist/src/helpers/sessionId.d.ts +6 -0
- package/packages/_vue2/dist/src/helpers/url.d.ts +6 -0
- package/packages/_vue2/dist/src/helpers/uuid.d.ts +8 -0
- package/packages/_vue2/dist/src/helpers/visitorId.d.ts +6 -0
- package/packages/_vue2/dist/src/index-helpers/blocks-exports.d.ts +10 -0
- package/packages/_vue2/dist/src/index-helpers/top-of-file.d.ts +1 -0
- package/packages/_vue2/dist/src/index.d.ts +8 -0
- package/packages/_vue2/dist/src/scripts/init-editing.d.ts +2 -0
- package/packages/_vue2/dist/src/types/builder-block.d.ts +57 -0
- package/packages/_vue2/dist/src/types/builder-content.d.ts +38 -0
- package/packages/_vue2/dist/src/types/can-track.d.ts +3 -0
- package/packages/_vue2/dist/src/types/components.d.ts +177 -0
- package/packages/_vue2/dist/src/types/deep-partial.d.ts +3 -0
- package/packages/_vue2/dist/src/types/element.d.ts +59 -0
- package/packages/_vue2/dist/src/types/typescript.d.ts +5 -0
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue3/dist/{block-styles.e3632a69.cjs → block-styles.44a21830.cjs} +2 -2
- package/packages/_vue3/dist/{block-styles.88005ace.js → block-styles.4fb6c64e.js} +3 -3
- package/packages/_vue3/dist/get-processed-block.19c3700a.js +40 -0
- package/packages/_vue3/dist/get-processed-block.d0247791.cjs +1 -0
- package/packages/_vue3/dist/index.acbcbf48.cjs +4 -0
- package/packages/_vue3/dist/{index.2472a241.js → index.c45f283d.js} +305 -302
- package/packages/_vue3/dist/render-block.9c91f64e.cjs +3 -0
- package/packages/_vue3/dist/{render-block.593fc01c.js → render-block.a0b27065.js} +78 -95
- package/packages/_vue3/dist/{render-component-with-context.f5cab824.js → render-component-with-context.205a19d1.js} +15 -10
- package/packages/_vue3/dist/render-component-with-context.fd83122c.cjs +1 -0
- package/packages/_vue3/dist/{render-component.06b4587b.cjs → render-component.38a974b8.cjs} +1 -1
- package/packages/_vue3/dist/{render-component.d5c26257.js → render-component.fbf7bbcb.js} +3 -3
- package/packages/_vue3/dist/{render-inlined-styles.be1aba8b.js → render-inlined-styles.3f53b0f1.js} +1 -1
- package/packages/_vue3/dist/{render-inlined-styles.3fab5467.cjs → render-inlined-styles.631d4b7f.cjs} +1 -1
- package/packages/_vue3/dist/{render-repeated-block.d1580cb5.cjs → render-repeated-block.35b18332.cjs} +1 -1
- package/packages/_vue3/dist/{render-repeated-block.1d1c64a8.js → render-repeated-block.4f78496b.js} +2 -2
- package/packages/_vue3/dist/{render-styles.4717b645.cjs → render-styles.1482932c.cjs} +1 -1
- package/packages/_vue3/dist/{render-styles.efaaccdf.js → render-styles.32666ea6.js} +2 -2
- package/packages/_vue3/dist/sdk.cjs +1 -1
- package/packages/_vue3/dist/sdk.js +7 -7
- package/packages/_vue3/dist/src/blocks/button/button.vue.d.ts +11 -0
- package/packages/_vue3/dist/src/blocks/button/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +77 -0
- package/packages/_vue3/dist/src/blocks/columns/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/custom-code/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/custom-code/custom-code.vue.d.ts +18 -0
- package/packages/_vue3/dist/src/blocks/embed/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/embed/embed.vue.d.ts +22 -0
- package/packages/_vue3/dist/src/blocks/embed/helpers.d.ts +1 -0
- package/packages/_vue3/dist/src/blocks/fragment/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/fragment/fragment.vue.d.ts +10 -0
- package/packages/_vue3/dist/src/blocks/image/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/image/image.helpers.d.ts +1 -0
- package/packages/_vue3/dist/src/blocks/image/image.vue.d.ts +31 -0
- package/packages/_vue3/dist/src/blocks/img/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/img/img.vue.d.ts +17 -0
- package/packages/_vue3/dist/src/blocks/section/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/section/section.vue.d.ts +11 -0
- package/packages/_vue3/dist/src/blocks/symbol/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +167 -0
- package/packages/_vue3/dist/src/blocks/text/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/text/text.vue.d.ts +8 -0
- package/packages/_vue3/dist/src/blocks/util.d.ts +1 -0
- package/packages/_vue3/dist/src/blocks/video/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/video/video.vue.d.ts +25 -0
- package/packages/_vue3/dist/src/components/render-block/block-styles.vue.d.ts +31 -0
- package/packages/_vue3/dist/src/components/render-block/render-block.helpers.d.ts +1 -0
- package/packages/_vue3/dist/src/components/render-block/render-block.vue.d.ts +8 -0
- package/packages/_vue3/dist/src/components/render-block/render-component-with-context.vue.d.ts +51 -0
- package/packages/_vue3/dist/src/components/render-block/render-component.vue.d.ts +44 -0
- package/packages/_vue3/dist/src/components/render-block/render-repeated-block.vue.d.ts +2 -0
- package/packages/_vue3/dist/src/components/render-block/types.d.ts +6 -0
- package/packages/_vue3/dist/src/components/render-blocks.vue.d.ts +50 -0
- package/packages/_vue3/dist/src/components/render-content/components/render-styles.vue.d.ts +27 -0
- package/packages/_vue3/dist/src/components/render-content/render-content.vue.d.ts +139 -0
- package/packages/_vue3/dist/src/components/render-inlined-styles.vue.d.ts +12 -0
- package/packages/_vue3/dist/src/constants/builder-registered-components.d.ts +6 -0
- package/packages/_vue3/dist/src/constants/device-sizes.d.ts +2 -0
- package/packages/_vue3/dist/src/constants/target.d.ts +2 -0
- package/packages/_vue3/dist/src/context/builder.context.d.ts +2 -0
- package/packages/_vue3/dist/src/context/types.d.ts +17 -0
- package/packages/_vue3/dist/src/functions/camel-to-kebab-case.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/evaluate.d.ts +5 -0
- package/packages/_vue3/dist/src/functions/event-handler-name.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/extract-text-styles.d.ts +4 -0
- package/packages/_vue3/dist/src/functions/fast-clone.d.ts +4 -0
- package/packages/_vue3/dist/src/functions/get-block-actions-handler.d.ts +5 -0
- package/packages/_vue3/dist/src/functions/get-block-actions.d.ts +9 -0
- package/packages/_vue3/dist/src/functions/get-block-component-options.d.ts +2 -0
- package/packages/_vue3/dist/src/functions/get-block-properties.d.ts +5 -0
- package/packages/_vue3/dist/src/functions/get-block-tag.d.ts +3 -0
- package/packages/_vue3/dist/src/functions/get-builder-search-params/index.d.ts +6 -0
- package/packages/_vue3/dist/src/functions/get-content/ab-testing.d.ts +5 -0
- package/packages/_vue3/dist/src/functions/get-content/index.d.ts +9 -0
- package/packages/_vue3/dist/src/functions/get-content/types.d.ts +31 -0
- package/packages/_vue3/dist/src/functions/get-fetch.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/get-global-this.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/get-processed-block.d.ts +10 -0
- package/packages/_vue3/dist/src/functions/get-react-native-block-styles.d.ts +6 -0
- package/packages/_vue3/dist/src/functions/is-browser.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/is-editing.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/is-iframe.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/is-previewing.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/mark-mutable.d.ts +2 -0
- package/packages/_vue3/dist/src/functions/register-component.d.ts +14 -0
- package/packages/_vue3/dist/src/functions/register.d.ts +16 -0
- package/packages/_vue3/dist/src/functions/sanitize-react-native-block-styles.d.ts +3 -0
- package/packages/_vue3/dist/src/functions/set-editor-settings.d.ts +4 -0
- package/packages/_vue3/dist/src/functions/set.d.ts +7 -0
- package/packages/_vue3/dist/src/functions/track.d.ts +21 -0
- package/packages/_vue3/dist/src/functions/transform-block.d.ts +2 -0
- package/packages/_vue3/dist/src/helpers/ab-tests.d.ts +8 -0
- package/packages/_vue3/dist/src/helpers/cookie.d.ts +15 -0
- package/packages/_vue3/dist/src/helpers/css.d.ts +5 -0
- package/packages/_vue3/dist/src/helpers/flatten.d.ts +6 -0
- package/packages/_vue3/dist/src/helpers/localStorage.d.ts +8 -0
- package/packages/_vue3/dist/src/helpers/nullable.d.ts +2 -0
- package/packages/_vue3/dist/src/helpers/sessionId.d.ts +6 -0
- package/packages/_vue3/dist/src/helpers/url.d.ts +6 -0
- package/packages/_vue3/dist/src/helpers/uuid.d.ts +8 -0
- package/packages/_vue3/dist/src/helpers/visitorId.d.ts +6 -0
- package/packages/_vue3/dist/src/index-helpers/blocks-exports.d.ts +10 -0
- package/packages/_vue3/dist/src/index-helpers/top-of-file.d.ts +1 -0
- package/packages/_vue3/dist/src/index.d.ts +8 -0
- package/packages/_vue3/dist/src/scripts/init-editing.d.ts +2 -0
- package/packages/_vue3/dist/src/types/builder-block.d.ts +57 -0
- package/packages/_vue3/dist/src/types/builder-content.d.ts +38 -0
- package/packages/_vue3/dist/src/types/can-track.d.ts +3 -0
- package/packages/_vue3/dist/src/types/components.d.ts +177 -0
- package/packages/_vue3/dist/src/types/deep-partial.d.ts +3 -0
- package/packages/_vue3/dist/src/types/element.d.ts +59 -0
- package/packages/_vue3/dist/src/types/typescript.d.ts +5 -0
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue2/dist/get-processed-block.1ba91586.js +0 -40
- package/packages/_vue2/dist/get-processed-block.6a23a7de.cjs +0 -1
- package/packages/_vue2/dist/index.e85eb7cf.cjs +0 -4
- package/packages/_vue2/dist/render-block.4f260352.cjs +0 -3
- package/packages/_vue2/dist/render-component-with-context.dcb1f5da.js +0 -53
- package/packages/_vue2/dist/render-component-with-context.f76bfccc.cjs +0 -1
- package/packages/_vue3/dist/get-processed-block.0d475a13.js +0 -40
- package/packages/_vue3/dist/get-processed-block.c75eb6d1.cjs +0 -1
- package/packages/_vue3/dist/index.e7c6fe34.cjs +0 -4
- package/packages/_vue3/dist/render-block.92199649.cjs +0 -3
- package/packages/_vue3/dist/render-component-with-context.fb4f86a9.cjs +0 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),d=require("./index.acbcbf48.cjs"),p=require("./get-processed-block.d0247791.cjs"),h=e=>`v-on:${e.toLowerCase()}`;function k(e,n){return r=>d.evaluate({code:e,context:n.context,state:n.state,event:r})}function y(e){var c;const n={},r=(c=e.block.actions)!=null?c:{};for(const l in r){if(!r.hasOwnProperty(l))continue;const o=r[l];n[h(l)]=k(o,e)}return n}function x(e){var n;return{...(n=e.component)==null?void 0:n.options,...e.options,builderBlock:e}}function b(e){const n={};if(typeof e!="string")return n;const r=e.trim().split(/\\s+/);for(const c of r)n[c]=!0;return n}function C(e){var n;return{...e.properties,"builder-id":e.id,class:b([e.id,"builder-block",e.class,(n=e.properties)==null?void 0:n.class].filter(Boolean).join(" "))}}function g(e){return e.tagName||"div"}const B=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],f=e=>typeof e=="string"&&B.includes(e.toLowerCase()),v=()=>Promise.resolve().then(()=>require("./block-styles.44a21830.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",e),e}),P=()=>Promise.resolve().then(()=>require("./render-repeated-block.35b18332.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderRepeatedBlock at ./render-repeated-block.vue",e),e}),E=()=>Promise.resolve().then(()=>require("./render-component-with-context.fd83122c.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderComponentWithContext at ./render-component-with-context.vue",e),e}),R=()=>Promise.resolve().then(()=>require("./render-component.38a974b8.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderComponent at ./render-component.vue",e),e}),_={name:"render-block",components:{RenderRepeatedBlock:t.defineAsyncComponent(P),BlockStyles:t.defineAsyncComponent(v),RenderComponentWithContext:t.defineAsyncComponent(E),RenderComponent:t.defineAsyncComponent(R)},props:["block","context"],data:()=>({isEmptyHtmlElement:f}),computed:{component(){var r;const e=(r=p.getProcessedBlock({block:this.block,state:this.context.state,context:this.context.context,shouldEvaluateBindings:!1}).component)==null?void 0:r.name;if(!e)return null;const n=this.context.registeredComponents[e];if(n)return n;console.warn(`
|
|
2
|
+
Could not find a registered component named "${e}".
|
|
3
|
+
If you registered it, is the file that registered it imported by the file that needs to render it?`)},tagName(){return g(this.useBlock)},useBlock(){return this.repeatItemData?this.block:p.getProcessedBlock({block:this.block,state:this.context.state,context:this.context.context,shouldEvaluateBindings:!0})},attributes(){return{...C(this.useBlock),...y({block:this.useBlock,state:this.context.state,context:this.context.context})}},shouldWrap(){var e;return!((e=this.component)!=null&&e.noWrap)},renderComponentProps(){var e;return{blockChildren:this.children,componentRef:(e=this.component)==null?void 0:e.component,componentOptions:{...x(this.useBlock),...this.shouldWrap?{}:{attributes:this.attributes}},context:this.childrenContext}},children(){var e;return(e=this.useBlock.children)!=null?e:[]},childrenWithoutParentComponent(){var n;return!((n=this.component)!=null&&n.component)&&!this.repeatItemData?this.children:[]},repeatItemData(){const{repeat:e,...n}=this.block;if(!(e!=null&&e.collection))return;const r=d.evaluate({code:e.collection,state:this.context.state,context:this.context.context});if(!Array.isArray(r))return;const c=e.collection.split(".").pop(),l=e.itemName||(c?c+"Item":"item");return r.map((a,i)=>({context:{...this.context,state:{...this.context.state,$index:i,$item:a,[l]:a,[`$${l}Index`]:i}},block:n}))},inheritedTextStyles(){return{}},childrenContext(){return{apiKey:this.context.apiKey,state:this.context.state,content:this.context.content,context:this.context.context,registeredComponents:this.context.registeredComponents,inheritedStyles:this.inheritedTextStyles}},renderComponentTag(){return"RenderComponent"}}};function w(e,n,r,c,l,o){const a=t.resolveComponent("render-repeated-block"),i=t.resolveComponent("render-block",!0),u=t.resolveComponent("block-styles");return o.shouldWrap?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.isEmptyHtmlElement(o.tagName)?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.tagName),t.normalizeProps(t.mergeProps({key:0},o.attributes)),null,16)):t.createCommentVNode("",!0),!e.isEmptyHtmlElement(o.tagName)&&o.repeatItemData?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(o.repeatItemData,(s,m)=>(t.openBlock(),t.createBlock(a,{key:m,repeatContext:s.context,block:s.block},null,8,["repeatContext","block"]))),128)):t.createCommentVNode("",!0),!e.isEmptyHtmlElement(o.tagName)&&!o.repeatItemData?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.tagName),t.normalizeProps(t.mergeProps({key:2},o.attributes)),{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.renderComponentTag),t.normalizeProps(t.guardReactiveProps(o.renderComponentProps)),null,16)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.childrenWithoutParentComponent,(s,m)=>(t.openBlock(),t.createBlock(i,{key:"render-block-"+s.id,block:s,context:o.childrenContext},null,8,["block","context"]))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.childrenWithoutParentComponent,(s,m)=>(t.openBlock(),t.createBlock(u,{key:"block-style-"+s.id,block:s,context:o.childrenContext},null,8,["block","context"]))),128))]),_:1},16)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.renderComponentTag),t.normalizeProps(t.mergeProps({key:1},o.renderComponentProps)),null,16))}const N=d._export_sfc(_,[["render",w]]);exports.default=N;
|
|
@@ -1,60 +1,57 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { e as B,
|
|
3
|
-
import { g } from "./get-processed-block.
|
|
1
|
+
import { defineAsyncComponent as d, resolveComponent as y, openBlock as r, createElementBlock as u, Fragment as p, createBlock as l, resolveDynamicComponent as h, normalizeProps as k, mergeProps as b, createCommentVNode as f, renderList as C, withCtx as R, guardReactiveProps as _ } from "vue";
|
|
2
|
+
import { e as B, _ as v } from "./index.c45f283d.js";
|
|
3
|
+
import { g } from "./get-processed-block.19c3700a.js";
|
|
4
4
|
const w = (e) => `v-on:${e.toLowerCase()}`;
|
|
5
|
-
function N(e,
|
|
5
|
+
function N(e, t) {
|
|
6
6
|
return (o) => B({
|
|
7
7
|
code: e,
|
|
8
|
-
context:
|
|
9
|
-
state:
|
|
8
|
+
context: t.context,
|
|
9
|
+
state: t.state,
|
|
10
10
|
event: o
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
13
|
function P(e) {
|
|
14
|
-
var
|
|
15
|
-
const
|
|
16
|
-
for (const
|
|
17
|
-
if (!o.hasOwnProperty(
|
|
14
|
+
var c;
|
|
15
|
+
const t = {}, o = (c = e.block.actions) != null ? c : {};
|
|
16
|
+
for (const i in o) {
|
|
17
|
+
if (!o.hasOwnProperty(i))
|
|
18
18
|
continue;
|
|
19
|
-
const
|
|
20
|
-
|
|
19
|
+
const n = o[i];
|
|
20
|
+
t[w(i)] = N(n, e);
|
|
21
21
|
}
|
|
22
|
-
return
|
|
22
|
+
return t;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
var
|
|
24
|
+
function T(e) {
|
|
25
|
+
var t;
|
|
26
26
|
return {
|
|
27
|
-
...(
|
|
27
|
+
...(t = e.component) == null ? void 0 : t.options,
|
|
28
28
|
...e.options,
|
|
29
29
|
builderBlock: e
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
const
|
|
32
|
+
function W(e) {
|
|
33
|
+
const t = {};
|
|
34
34
|
if (typeof e != "string")
|
|
35
|
-
return
|
|
35
|
+
return t;
|
|
36
36
|
const o = e.trim().split(/\\s+/);
|
|
37
|
-
for (const
|
|
38
|
-
|
|
39
|
-
return
|
|
37
|
+
for (const c of o)
|
|
38
|
+
t[c] = !0;
|
|
39
|
+
return t;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
var
|
|
41
|
+
function I(e) {
|
|
42
|
+
var t;
|
|
43
43
|
return {
|
|
44
44
|
...e.properties,
|
|
45
45
|
"builder-id": e.id,
|
|
46
|
-
class:
|
|
47
|
-
[e.id, "builder-block", e.class, (
|
|
46
|
+
class: W(
|
|
47
|
+
[e.id, "builder-block", e.class, (t = e.properties) == null ? void 0 : t.class].filter(Boolean).join(" ")
|
|
48
48
|
)
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
return {};
|
|
53
|
-
}
|
|
54
|
-
function S(e) {
|
|
51
|
+
function A(e) {
|
|
55
52
|
return e.tagName || "div";
|
|
56
53
|
}
|
|
57
|
-
const
|
|
54
|
+
const S = [
|
|
58
55
|
"area",
|
|
59
56
|
"base",
|
|
60
57
|
"br",
|
|
@@ -70,38 +67,38 @@ const H = [
|
|
|
70
67
|
"source",
|
|
71
68
|
"track",
|
|
72
69
|
"wbr"
|
|
73
|
-
],
|
|
70
|
+
], D = (e) => typeof e == "string" && S.includes(e.toLowerCase()), H = () => import("./block-styles.4fb6c64e.js").then((e) => e.default).catch((e) => {
|
|
74
71
|
throw console.error(
|
|
75
72
|
"Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",
|
|
76
73
|
e
|
|
77
74
|
), e;
|
|
78
|
-
}),
|
|
75
|
+
}), O = () => import("./render-repeated-block.4f78496b.js").then((e) => e.default).catch((e) => {
|
|
79
76
|
throw console.error(
|
|
80
77
|
"Error while attempting to dynamically import component RenderRepeatedBlock at ./render-repeated-block.vue",
|
|
81
78
|
e
|
|
82
79
|
), e;
|
|
83
|
-
}),
|
|
80
|
+
}), L = () => import("./render-component-with-context.205a19d1.js").then((e) => e.default).catch((e) => {
|
|
84
81
|
throw console.error(
|
|
85
82
|
"Error while attempting to dynamically import component RenderComponentWithContext at ./render-component-with-context.vue",
|
|
86
83
|
e
|
|
87
84
|
), e;
|
|
88
|
-
}),
|
|
85
|
+
}), j = () => import("./render-component.fbf7bbcb.js").then((e) => e.default).catch((e) => {
|
|
89
86
|
throw console.error(
|
|
90
87
|
"Error while attempting to dynamically import component RenderComponent at ./render-component.vue",
|
|
91
88
|
e
|
|
92
89
|
), e;
|
|
93
|
-
}),
|
|
90
|
+
}), M = {
|
|
94
91
|
name: "render-block",
|
|
95
92
|
components: {
|
|
96
|
-
RenderRepeatedBlock:
|
|
97
|
-
BlockStyles:
|
|
98
|
-
RenderComponentWithContext:
|
|
99
|
-
|
|
93
|
+
RenderRepeatedBlock: d(O),
|
|
94
|
+
BlockStyles: d(H),
|
|
95
|
+
RenderComponentWithContext: d(
|
|
96
|
+
L
|
|
100
97
|
),
|
|
101
|
-
RenderComponent:
|
|
98
|
+
RenderComponent: d(j)
|
|
102
99
|
},
|
|
103
100
|
props: ["block", "context"],
|
|
104
|
-
data: () => ({ isEmptyHtmlElement:
|
|
101
|
+
data: () => ({ isEmptyHtmlElement: D }),
|
|
105
102
|
computed: {
|
|
106
103
|
component() {
|
|
107
104
|
var o;
|
|
@@ -113,15 +110,15 @@ const H = [
|
|
|
113
110
|
}).component) == null ? void 0 : o.name;
|
|
114
111
|
if (!e)
|
|
115
112
|
return null;
|
|
116
|
-
const
|
|
117
|
-
if (
|
|
118
|
-
return
|
|
113
|
+
const t = this.context.registeredComponents[e];
|
|
114
|
+
if (t)
|
|
115
|
+
return t;
|
|
119
116
|
console.warn(`
|
|
120
117
|
Could not find a registered component named "${e}".
|
|
121
118
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
122
119
|
},
|
|
123
120
|
tagName() {
|
|
124
|
-
return
|
|
121
|
+
return A(this.useBlock);
|
|
125
122
|
},
|
|
126
123
|
useBlock() {
|
|
127
124
|
return this.repeatItemData ? this.block : g({
|
|
@@ -133,15 +130,11 @@ const H = [
|
|
|
133
130
|
},
|
|
134
131
|
attributes() {
|
|
135
132
|
return {
|
|
136
|
-
...
|
|
133
|
+
...I(this.useBlock),
|
|
137
134
|
...P({
|
|
138
135
|
block: this.useBlock,
|
|
139
136
|
state: this.context.state,
|
|
140
137
|
context: this.context.context
|
|
141
|
-
}),
|
|
142
|
-
style: D({
|
|
143
|
-
block: this.useBlock,
|
|
144
|
-
context: this.context
|
|
145
138
|
})
|
|
146
139
|
};
|
|
147
140
|
},
|
|
@@ -155,7 +148,7 @@ const H = [
|
|
|
155
148
|
blockChildren: this.children,
|
|
156
149
|
componentRef: (e = this.component) == null ? void 0 : e.component,
|
|
157
150
|
componentOptions: {
|
|
158
|
-
...
|
|
151
|
+
...T(this.useBlock),
|
|
159
152
|
...this.shouldWrap ? {} : {
|
|
160
153
|
attributes: this.attributes
|
|
161
154
|
}
|
|
@@ -168,11 +161,11 @@ const H = [
|
|
|
168
161
|
return (e = this.useBlock.children) != null ? e : [];
|
|
169
162
|
},
|
|
170
163
|
childrenWithoutParentComponent() {
|
|
171
|
-
var
|
|
172
|
-
return !((
|
|
164
|
+
var t;
|
|
165
|
+
return !((t = this.component) != null && t.component) && !this.repeatItemData ? this.children : [];
|
|
173
166
|
},
|
|
174
167
|
repeatItemData() {
|
|
175
|
-
const { repeat: e, ...
|
|
168
|
+
const { repeat: e, ...t } = this.block;
|
|
176
169
|
if (!(e != null && e.collection))
|
|
177
170
|
return;
|
|
178
171
|
const o = B({
|
|
@@ -182,19 +175,19 @@ const H = [
|
|
|
182
175
|
});
|
|
183
176
|
if (!Array.isArray(o))
|
|
184
177
|
return;
|
|
185
|
-
const
|
|
186
|
-
return o.map((
|
|
178
|
+
const c = e.collection.split(".").pop(), i = e.itemName || (c ? c + "Item" : "item");
|
|
179
|
+
return o.map((a, m) => ({
|
|
187
180
|
context: {
|
|
188
181
|
...this.context,
|
|
189
182
|
state: {
|
|
190
183
|
...this.context.state,
|
|
191
|
-
$index:
|
|
192
|
-
$item:
|
|
193
|
-
[
|
|
194
|
-
[`$${
|
|
184
|
+
$index: m,
|
|
185
|
+
$item: a,
|
|
186
|
+
[i]: a,
|
|
187
|
+
[`$${i}Index`]: m
|
|
195
188
|
}
|
|
196
189
|
},
|
|
197
|
-
block:
|
|
190
|
+
block: t
|
|
198
191
|
}));
|
|
199
192
|
},
|
|
200
193
|
inheritedTextStyles() {
|
|
@@ -214,45 +207,35 @@ const H = [
|
|
|
214
207
|
return "RenderComponent";
|
|
215
208
|
}
|
|
216
209
|
}
|
|
217
|
-
}, z = {
|
|
218
|
-
key: 1,
|
|
219
|
-
class: "vue2-root-element-workaround"
|
|
220
210
|
};
|
|
221
|
-
function
|
|
222
|
-
const
|
|
223
|
-
return
|
|
224
|
-
e.isEmptyHtmlElement(
|
|
225
|
-
!e.isEmptyHtmlElement(
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
])) : y("", !0),
|
|
232
|
-
!e.isEmptyHtmlElement(t.tagName) && e.TARGET !== "vue2" && t.repeatItemData ? (r(!0), i(d, { key: 2 }, b(t.repeatItemData, (c, u) => (r(), s(m, {
|
|
233
|
-
key: u,
|
|
234
|
-
repeatContext: c.context,
|
|
235
|
-
block: c.block
|
|
236
|
-
}, null, 8, ["repeatContext", "block"]))), 128)) : y("", !0),
|
|
237
|
-
!e.isEmptyHtmlElement(t.tagName) && !t.repeatItemData ? (r(), s(k(t.tagName), x(C({ key: 3 }, t.attributes)), {
|
|
211
|
+
function K(e, t, o, c, i, n) {
|
|
212
|
+
const a = y("render-repeated-block"), m = y("render-block", !0), E = y("block-styles");
|
|
213
|
+
return n.shouldWrap ? (r(), u(p, { key: 0 }, [
|
|
214
|
+
e.isEmptyHtmlElement(n.tagName) ? (r(), l(h(n.tagName), k(b({ key: 0 }, n.attributes)), null, 16)) : f("", !0),
|
|
215
|
+
!e.isEmptyHtmlElement(n.tagName) && n.repeatItemData ? (r(!0), u(p, { key: 1 }, C(n.repeatItemData, (s, x) => (r(), l(a, {
|
|
216
|
+
key: x,
|
|
217
|
+
repeatContext: s.context,
|
|
218
|
+
block: s.block
|
|
219
|
+
}, null, 8, ["repeatContext", "block"]))), 128)) : f("", !0),
|
|
220
|
+
!e.isEmptyHtmlElement(n.tagName) && !n.repeatItemData ? (r(), l(h(n.tagName), k(b({ key: 2 }, n.attributes)), {
|
|
238
221
|
default: R(() => [
|
|
239
|
-
(r(),
|
|
240
|
-
(r(!0),
|
|
241
|
-
key: "render-block-" +
|
|
242
|
-
block:
|
|
243
|
-
context:
|
|
222
|
+
(r(), l(h(n.renderComponentTag), k(_(n.renderComponentProps)), null, 16)),
|
|
223
|
+
(r(!0), u(p, null, C(n.childrenWithoutParentComponent, (s, x) => (r(), l(m, {
|
|
224
|
+
key: "render-block-" + s.id,
|
|
225
|
+
block: s,
|
|
226
|
+
context: n.childrenContext
|
|
244
227
|
}, null, 8, ["block", "context"]))), 128)),
|
|
245
|
-
(r(!0),
|
|
246
|
-
key: "block-style-" +
|
|
247
|
-
block:
|
|
248
|
-
context:
|
|
228
|
+
(r(!0), u(p, null, C(n.childrenWithoutParentComponent, (s, x) => (r(), l(E, {
|
|
229
|
+
key: "block-style-" + s.id,
|
|
230
|
+
block: s,
|
|
231
|
+
context: n.childrenContext
|
|
249
232
|
}, null, 8, ["block", "context"]))), 128))
|
|
250
233
|
]),
|
|
251
234
|
_: 1
|
|
252
|
-
}, 16)) :
|
|
253
|
-
], 64)) : (r(),
|
|
235
|
+
}, 16)) : f("", !0)
|
|
236
|
+
], 64)) : (r(), l(h(n.renderComponentTag), k(b({ key: 1 }, n.renderComponentProps)), null, 16));
|
|
254
237
|
}
|
|
255
|
-
const
|
|
238
|
+
const V = /* @__PURE__ */ v(M, [["render", K]]);
|
|
256
239
|
export {
|
|
257
|
-
|
|
240
|
+
V as default
|
|
258
241
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { _ as i } from "./index.
|
|
3
|
-
const m = () => import("./render-component.
|
|
1
|
+
import { defineAsyncComponent as o, resolveComponent as r, openBlock as c, createBlock as p } from "vue";
|
|
2
|
+
import { _ as i } from "./index.c45f283d.js";
|
|
3
|
+
const m = () => import("./render-component.fbf7bbcb.js").then((e) => e.default).catch((e) => {
|
|
4
4
|
throw console.error(
|
|
5
5
|
"Error while attempting to dynamically import component RenderComponent at ./render-component.vue",
|
|
6
6
|
e
|
|
7
7
|
), e;
|
|
8
|
-
}),
|
|
8
|
+
}), s = {
|
|
9
9
|
name: "render-component-with-context",
|
|
10
|
-
components: { RenderComponent:
|
|
11
|
-
props: ["context"],
|
|
10
|
+
components: { RenderComponent: o(m) },
|
|
11
|
+
props: ["componentRef", "componentOptions", "blockChildren", "context"],
|
|
12
12
|
provide() {
|
|
13
13
|
const e = this;
|
|
14
14
|
return {
|
|
@@ -35,11 +35,16 @@ const m = () => import("./render-component.d5c26257.js").then((e) => e.default).
|
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
function d(e,
|
|
39
|
-
const
|
|
40
|
-
return
|
|
38
|
+
function d(e, l, t, a, x, h) {
|
|
39
|
+
const n = r("render-component");
|
|
40
|
+
return c(), p(n, {
|
|
41
|
+
componentRef: t.componentRef,
|
|
42
|
+
componentOptions: t.componentOptions,
|
|
43
|
+
blockChildren: t.blockChildren,
|
|
44
|
+
context: t.context
|
|
45
|
+
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context"]);
|
|
41
46
|
}
|
|
42
|
-
const f = /* @__PURE__ */ i(
|
|
47
|
+
const f = /* @__PURE__ */ i(s, [["render", d]]);
|
|
43
48
|
export {
|
|
44
49
|
f as default
|
|
45
50
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),r=require("./index.acbcbf48.cjs"),c=()=>Promise.resolve().then(()=>require("./render-component.38a974b8.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderComponent at ./render-component.vue",e),e}),i={name:"render-component-with-context",components:{RenderComponent:n.defineAsyncComponent(c)},props:["componentRef","componentOptions","blockChildren","context"],provide(){const e=this;return{BuilderContext:{get content(){return e.context.content},get state(){return e.context.state},get context(){return e.context.context},get apiKey(){return e.context.apiKey},get registeredComponents(){return e.context.registeredComponents},get inheritedStyles(){return e.context.inheritedStyles}}}}};function p(e,m,t,d,l,u){const o=n.resolveComponent("render-component");return n.openBlock(),n.createBlock(o,{componentRef:t.componentRef,componentOptions:t.componentOptions,blockChildren:t.blockChildren,context:t.context},null,8,["componentRef","componentOptions","blockChildren","context"])}const s=r._export_sfc(i,[["render",p]]);exports.default=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("./index.acbcbf48.cjs"),a=()=>Promise.resolve().then(()=>require("./block-styles.44a21830.cjs")).then(o=>o.default).catch(o=>{throw console.error("Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",o),o}),m=()=>Promise.resolve().then(()=>require("./render-block.9c91f64e.cjs")).then(o=>o.default).catch(o=>{throw console.error("Error while attempting to dynamically import component RenderBlock at ./render-block.vue",o),o}),k={name:"render-component",components:{RenderBlock:e.defineAsyncComponent(m),BlockStyles:e.defineAsyncComponent(a)},props:["componentRef","componentOptions","blockChildren","context"],data:()=>({markPropsMutable:c.markPropsMutable})};function i(o,u,n,p,b,y){const r=e.resolveComponent("render-block"),l=e.resolveComponent("block-styles");return n.componentRef?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.componentRef),e.normalizeProps(e.mergeProps({key:0},o.markPropsMutable(n.componentOptions))),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.blockChildren,(t,s)=>(e.openBlock(),e.createBlock(r,{key:"render-block-"+t.id,block:t,context:n.context},null,8,["block","context"]))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.blockChildren,(t,s)=>(e.openBlock(),e.createBlock(l,{key:"block-style-"+t.id,block:t,context:n.context},null,8,["block","context"]))),128))]),_:1},16)):e.createCommentVNode("",!0)}const d=c._export_sfc(k,[["render",i]]);exports.default=d;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineAsyncComponent as r, resolveComponent as l, openBlock as n, createBlock as c, resolveDynamicComponent as p, normalizeProps as u, mergeProps as b, withCtx as y, createElementBlock as m, Fragment as a, renderList as s, createCommentVNode as _ } from "vue";
|
|
2
|
-
import { m as f, _ as x } from "./index.
|
|
3
|
-
const h = () => import("./block-styles.
|
|
2
|
+
import { m as f, _ as x } from "./index.c45f283d.js";
|
|
3
|
+
const h = () => import("./block-styles.4fb6c64e.js").then((e) => e.default).catch((e) => {
|
|
4
4
|
throw console.error(
|
|
5
5
|
"Error while attempting to dynamically import component BlockStyles at ./block-styles.vue",
|
|
6
6
|
e
|
|
7
7
|
), e;
|
|
8
|
-
}), B = () => import("./render-block.
|
|
8
|
+
}), B = () => import("./render-block.a0b27065.js").then((e) => e.default).catch((e) => {
|
|
9
9
|
throw console.error(
|
|
10
10
|
"Error while attempting to dynamically import component RenderBlock at ./render-block.vue",
|
|
11
11
|
e
|
package/packages/_vue3/dist/{render-inlined-styles.be1aba8b.js → render-inlined-styles.3f53b0f1.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as t, createElementBlock as s, createBlock as a, resolveDynamicComponent as c, withCtx as i, createTextVNode as l, toDisplayString as o } from "vue";
|
|
2
|
-
import { T as d, _ as m } from "./index.
|
|
2
|
+
import { T as d, _ as m } from "./index.c45f283d.js";
|
|
3
3
|
const p = {
|
|
4
4
|
name: "render-inlined-styles",
|
|
5
5
|
props: ["styles"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index.acbcbf48.cjs"),s={name:"render-inlined-styles",props:["styles"],data:()=>({TARGET:n.TARGET}),computed:{injectedStyleScript(){return`<${this.tagName}>${this.styles}</${this.tagName}>`},tagName(){return"style"}}},i=["innerHTML"];function a(r,o,c,d,u,t){return r.TARGET==="svelte"?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:t.injectedStyleScript},null,8,i)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.tagName),{key:1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.styles),1)]),_:1}))}const l=n._export_sfc(s,[["render",a]]);exports.default=l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./index.acbcbf48.cjs"),c=()=>Promise.resolve().then(()=>require("./render-block.9c91f64e.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderBlock at ./render-block.vue",e),e}),s={name:"render-repeated-block",components:{RenderBlock:t.defineAsyncComponent(c)},props:["block","repeatContext"],provide(){const e=this;return{BuilderContext:{get content(){return e.repeatContext.content},get state(){return e.repeatContext.state},get context(){return e.repeatContext.context},get apiKey(){return e.repeatContext.apiKey},get registeredComponents(){return e.repeatContext.registeredComponents},get inheritedStyles(){return e.repeatContext.inheritedStyles}}}}};function l(e,i,n,d,p,u){const r=t.resolveComponent("render-block");return t.openBlock(),t.createBlock(r,{block:n.block,context:n.repeatContext},null,8,["block","context"])}const a=o._export_sfc(s,[["render",l]]);exports.default=a;
|
package/packages/_vue3/dist/{render-repeated-block.1d1c64a8.js → render-repeated-block.4f78496b.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineAsyncComponent as o, resolveComponent as r, openBlock as c, createBlock as p } from "vue";
|
|
2
|
-
import { _ as a } from "./index.
|
|
3
|
-
const l = () => import("./render-block.
|
|
2
|
+
import { _ as a } from "./index.c45f283d.js";
|
|
3
|
+
const l = () => import("./render-block.a0b27065.js").then((e) => e.default).catch((e) => {
|
|
4
4
|
throw console.error(
|
|
5
5
|
"Error while attempting to dynamically import component RenderBlock at ./render-block.vue",
|
|
6
6
|
e
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),a=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),a=require("./index.acbcbf48.cjs"),f=()=>Promise.resolve().then(()=>require("./render-inlined-styles.631d4b7f.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RenderInlinedStyles at ../../render-inlined-styles.vue",e),e}),m={name:"render-content-styles",components:{RenderInlinedStyles:c.defineAsyncComponent(f)},props:["cssCode","customFonts"],computed:{injectedStyles(){return`
|
|
2
2
|
${this.cssCode||""}
|
|
3
3
|
${this.getFontCss({customFonts:this.customFonts})}`}},methods:{getCssFromFont(e){var i,l;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),n=t.split(",")[0],s=(l=e.fileUrl)!=null?l:(i=e==null?void 0:e.files)==null?void 0:i.regular;let r="";if(s&&t&&n&&(r+=`
|
|
4
4
|
@font-face {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineAsyncComponent as a, resolveComponent as d, openBlock as m, createBlock as f } from "vue";
|
|
2
|
-
import { _ as p } from "./index.
|
|
3
|
-
const y = () => import("./render-inlined-styles.
|
|
2
|
+
import { _ as p } from "./index.c45f283d.js";
|
|
3
|
+
const y = () => import("./render-inlined-styles.3f53b0f1.js").then((e) => e.default).catch((e) => {
|
|
4
4
|
throw console.error(
|
|
5
5
|
"Error while attempting to dynamically import component RenderInlinedStyles at ../../render-inlined-styles.vue",
|
|
6
6
|
e
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.acbcbf48.cjs");require("vue");exports.Button=e.Button;exports.Columns=e.Columns;exports.Fragment=e.Fragment;exports.Image=e.Image;exports.RenderBlocks=e.renderBlocks;exports.RenderContent=e.renderContent;exports.Section=e.Section;exports.Symbol=e.Symbol;exports.Text=e.Text;exports.Video=e.Video;exports.components=e.components;exports.convertSearchParamsToQueryObject=e.convertSearchParamsToQueryObject;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.generateContentUrl=e.generateContentUrl;exports.getAllContent=e.getAllContent;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.getBuilderSearchParamsFromWindow=e.getBuilderSearchParamsFromWindow;exports.getContent=e.getContent;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.normalizeSearchParams=e.normalizeSearchParams;exports.register=e.register;exports.registerComponent=e.registerComponent;exports.setEditorSettings=e.setEditorSettings;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as t, C as r, F as n, I as o, c as i, r as g, b as m, S as c, a as l, V as d,
|
|
1
|
+
import { B as t, C as r, F as n, I as o, c as i, r as g, b as m, S as c, a as l, V as d, g as C, p as S, j as p, n as u, o as h, q as B, t as P, l as b, i as F, d as R, u as j, k, h as v, s as w } from "./index.c45f283d.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
export {
|
|
4
4
|
t as Button,
|
|
@@ -14,15 +14,15 @@ export {
|
|
|
14
14
|
C as components,
|
|
15
15
|
S as convertSearchParamsToQueryObject,
|
|
16
16
|
p as createRegisterComponentMessage,
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
u as generateContentUrl,
|
|
18
|
+
h as getAllContent,
|
|
19
19
|
B as getBuilderSearchParams,
|
|
20
20
|
P as getBuilderSearchParamsFromWindow,
|
|
21
21
|
b as getContent,
|
|
22
22
|
F as isEditing,
|
|
23
23
|
R as isPreviewing,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
j as normalizeSearchParams,
|
|
25
|
+
k as register,
|
|
26
|
+
v as registerComponent,
|
|
27
|
+
w as setEditorSettings
|
|
28
28
|
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { BuilderBlock } from "../../types/builder-block";
|
|
2
|
+
declare type Column = {
|
|
3
|
+
blocks: any;
|
|
4
|
+
width?: number;
|
|
5
|
+
};
|
|
6
|
+
declare type StackColumnsAt = "tablet" | "mobile" | "never";
|
|
7
|
+
export interface ColumnProps {
|
|
8
|
+
columns?: Column[];
|
|
9
|
+
builderBlock: BuilderBlock;
|
|
10
|
+
space?: number;
|
|
11
|
+
stackColumnsAt?: StackColumnsAt;
|
|
12
|
+
reverseColumnsWhenStacked?: boolean;
|
|
13
|
+
}
|
|
14
|
+
import { markMutable } from "../../functions/mark-mutable";
|
|
15
|
+
declare const _sfc_main: {
|
|
16
|
+
name: string;
|
|
17
|
+
components: {
|
|
18
|
+
RenderBlocks: {
|
|
19
|
+
name: string;
|
|
20
|
+
components: {
|
|
21
|
+
RenderBlock: any;
|
|
22
|
+
BlockStyles: {
|
|
23
|
+
name: string;
|
|
24
|
+
components: {
|
|
25
|
+
RenderInlinedStyles: {
|
|
26
|
+
name: string;
|
|
27
|
+
props: string[];
|
|
28
|
+
data: () => {
|
|
29
|
+
TARGET: string;
|
|
30
|
+
};
|
|
31
|
+
computed: {
|
|
32
|
+
injectedStyleScript(): any;
|
|
33
|
+
tagName(): string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
props: string[];
|
|
38
|
+
data: () => {
|
|
39
|
+
TARGET: string;
|
|
40
|
+
};
|
|
41
|
+
computed: {
|
|
42
|
+
useBlock(): any;
|
|
43
|
+
css(): any;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
props: string[];
|
|
48
|
+
inject: {
|
|
49
|
+
builderContext: string;
|
|
50
|
+
};
|
|
51
|
+
computed: {
|
|
52
|
+
className(): any;
|
|
53
|
+
};
|
|
54
|
+
methods: {
|
|
55
|
+
onClick(): void;
|
|
56
|
+
onMouseEnter(): void;
|
|
57
|
+
_classStringToObject(str: any): {};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
props: string[];
|
|
62
|
+
data: () => {
|
|
63
|
+
markMutable: typeof markMutable;
|
|
64
|
+
};
|
|
65
|
+
computed: {
|
|
66
|
+
columnsCssVars(): any;
|
|
67
|
+
columnCssVars(): any;
|
|
68
|
+
};
|
|
69
|
+
methods: {
|
|
70
|
+
getGutterSize(): any;
|
|
71
|
+
getColumns(): any;
|
|
72
|
+
getWidth(index: any): any;
|
|
73
|
+
getColumnCssWidth(index: any): any;
|
|
74
|
+
maybeApplyForTablet(prop: any): any;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface CustomCodeProps {
|
|
2
|
+
code: string;
|
|
3
|
+
replaceNodes?: boolean;
|
|
4
|
+
}
|
|
5
|
+
declare const _sfc_main: {
|
|
6
|
+
name: string;
|
|
7
|
+
props: string[];
|
|
8
|
+
data: () => {
|
|
9
|
+
scriptsInserted: never[];
|
|
10
|
+
scriptsRun: never[];
|
|
11
|
+
};
|
|
12
|
+
mounted(): void;
|
|
13
|
+
methods: {
|
|
14
|
+
findAndRunScripts(): void;
|
|
15
|
+
_classStringToObject(str: any): {};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface EmbedProps {
|
|
2
|
+
content: string;
|
|
3
|
+
}
|
|
4
|
+
declare const _sfc_main: {
|
|
5
|
+
name: string;
|
|
6
|
+
props: string[];
|
|
7
|
+
data: () => {
|
|
8
|
+
scriptsInserted: never[];
|
|
9
|
+
scriptsRun: never[];
|
|
10
|
+
ranInitFn: boolean;
|
|
11
|
+
};
|
|
12
|
+
watch: {
|
|
13
|
+
onUpdateHook0(): void;
|
|
14
|
+
};
|
|
15
|
+
computed: {
|
|
16
|
+
onUpdateHook0(): any;
|
|
17
|
+
};
|
|
18
|
+
methods: {
|
|
19
|
+
findAndRunScripts(): void;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export default _sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isJsScript: (script: HTMLScriptElement) => boolean;
|