@builder.io/sdk-vue 0.5.7 → 0.5.9
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/package.json +1 -1
- package/packages/_vue2/dist/{block-styles.4aca252e.js → block-styles.2f2d681c.js} +5 -5
- package/packages/_vue2/dist/{block-styles.d4e625bc.cjs → block-styles.e0c362f1.cjs} +1 -1
- package/packages/_vue2/dist/{block-wrapper.df62a070.cjs → block-wrapper.60491ece.cjs} +1 -1
- package/packages/_vue2/dist/{block-wrapper.266a0ef3.js → block-wrapper.675417b1.js} +5 -5
- package/packages/_vue2/dist/{block.1c14e1e8.cjs → block.2b1ac86c.cjs} +2 -2
- package/packages/_vue2/dist/{block.33475f0d.js → block.b10ffc8d.js} +7 -7
- package/packages/_vue2/dist/{blocks-wrapper.030b1bc5.js → blocks-wrapper.1f4e53ec.js} +1 -1
- package/packages/_vue2/dist/{blocks-wrapper.42eb4446.cjs → blocks-wrapper.87c356a1.cjs} +1 -1
- package/packages/_vue2/dist/{component-ref.2a5e1ada.js → component-ref.d1a3e1db.js} +16 -16
- package/packages/_vue2/dist/component-ref.e0e18275.cjs +1 -0
- package/packages/_vue2/dist/{content.ea0a72d4.js → content.4dd9bed9.js} +5 -5
- package/packages/_vue2/dist/{content.e5d197c3.cjs → content.e0c272e6.cjs} +1 -1
- package/packages/_vue2/dist/{css.dd09e65b.js → css.3b52add0.js} +1 -1
- package/packages/_vue2/dist/{css.21080882.cjs → css.5b6afc6e.cjs} +1 -1
- package/packages/_vue2/dist/{enable-editor.472fc3ec.cjs → enable-editor.29678a79.cjs} +1 -1
- package/packages/_vue2/dist/{enable-editor.6c4a1aca.js → enable-editor.c8c377d7.js} +22 -22
- package/packages/_vue2/dist/evaluate.585803ce.cjs +1 -0
- package/packages/_vue2/dist/evaluate.b622b309.js +97 -0
- package/packages/_vue2/dist/{get-block-actions.982724b1.js → get-block-actions.17f0418a.js} +2 -2
- package/packages/_vue2/dist/{get-block-actions.2fa72e92.cjs → get-block-actions.cc26a1a3.cjs} +1 -1
- package/packages/_vue2/dist/{get-block-properties.008d318f.js → get-block-properties.3a4c9314.js} +2 -2
- package/packages/_vue2/dist/{get-block-properties.094bfc1a.cjs → get-block-properties.fbe48fae.cjs} +1 -1
- package/packages/_vue2/dist/{get-processed-block.06b725b4.cjs → get-processed-block.5937bfa6.cjs} +1 -1
- package/packages/_vue2/dist/{get-processed-block.cabbf7c1.js → get-processed-block.92e6395c.js} +2 -2
- package/packages/_vue2/dist/{index.d24a9f20.cjs → index.04a22940.cjs} +7 -7
- package/packages/_vue2/dist/{index.da59485b.js → index.835b8ee0.js} +102 -101
- package/packages/_vue2/dist/{inlined-script.7d9f29c5.cjs → inlined-script.0c7f9ce3.cjs} +1 -1
- package/packages/_vue2/dist/{inlined-script.d5b1456d.js → inlined-script.3ec95873.js} +1 -1
- package/packages/_vue2/dist/{inlined-styles.ef691e26.cjs → inlined-styles.89ce41e1.cjs} +1 -1
- package/packages/_vue2/dist/{inlined-styles.4fd4586c.js → inlined-styles.ccff7c47.js} +1 -1
- package/packages/_vue2/dist/{interactive-element.7172524e.js → interactive-element.fa779554.js} +5 -5
- package/packages/_vue2/dist/interactive-element.fdd261bc.cjs +1 -0
- package/packages/_vue2/dist/{non-node-runtime.fac94d56.cjs → non-node-runtime.ddfeed94.cjs} +9 -9
- package/packages/{_vue3/dist/non-node-runtime.cac77d48.js → _vue2/dist/non-node-runtime.eb7f6595.js} +66 -65
- package/packages/_vue2/dist/{repeated-block.2b3065cd.js → repeated-block.3c989659.js} +2 -2
- package/packages/_vue2/dist/{repeated-block.27283bd9.cjs → repeated-block.48fbaaab.cjs} +1 -1
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.js +6 -6
- package/packages/_vue2/dist/src/components/content/content.types.d.ts +2 -2
- package/packages/_vue2/dist/src/components/content-variants/content-variants.types.d.ts +1 -1
- package/packages/_vue2/dist/src/constants/sdk-version.d.ts +1 -1
- package/packages/_vue2/dist/src/functions/evaluate/browser-runtime/browser.d.ts +4 -0
- package/packages/_vue2/dist/src/functions/evaluate/evaluate.d.ts +4 -8
- package/packages/_vue2/dist/src/functions/evaluate/helpers.d.ts +18 -0
- package/packages/_vue2/dist/src/functions/evaluate/index.d.ts +1 -1
- package/packages/_vue2/dist/src/functions/evaluate/non-node-runtime/non-node-runtime.d.ts +2 -2
- package/packages/_vue2/dist/src/functions/fetch-builder-props.d.ts +2 -2
- package/packages/_vue2/dist/src/index.d.ts +5 -14
- package/packages/_vue2/dist/src/server-index.d.ts +15 -0
- package/packages/_vue2/dist/{styles.d53197f4.js → styles.22b87564.js} +2 -2
- package/packages/_vue2/dist/{styles.39410f45.cjs → styles.a3209286.cjs} +2 -2
- package/packages/_vue3/dist/{block-wrapper.f6009433.cjs → block-wrapper.4abbfa5d.cjs} +1 -1
- package/packages/_vue3/dist/{block-wrapper.c5fdd37d.js → block-wrapper.e6a959ca.js} +2 -2
- package/packages/_vue3/dist/component-ref.16c18e90.cjs +1 -0
- package/packages/_vue3/dist/{component-ref.513230d1.js → component-ref.b3232d22.js} +19 -19
- package/packages/_vue3/dist/{get-block-actions.98c78ed5.js → get-block-actions.48118020.js} +1 -1
- package/packages/_vue3/dist/{get-block-actions.63f93beb.cjs → get-block-actions.83a66ea4.cjs} +1 -1
- package/packages/_vue3/dist/{index.b87be7b3.js → index.ee80c2d7.js} +430 -411
- package/packages/_vue3/dist/index.f36face2.cjs +69 -0
- package/packages/{_vue2/dist/non-node-runtime.2372bfdf.js → _vue3/dist/non-node-runtime.15581a63.js} +62 -64
- package/packages/_vue3/dist/{non-node-runtime.73787d0f.cjs → non-node-runtime.fb2b33d0.cjs} +8 -8
- package/packages/_vue3/dist/{repeated-block.8758f41a.cjs → repeated-block.33f567b4.cjs} +1 -1
- package/packages/_vue3/dist/{repeated-block.3a92872a.js → repeated-block.53ae8c41.js} +2 -2
- package/packages/_vue3/dist/sdk.cjs +1 -1
- package/packages/_vue3/dist/sdk.js +2 -2
- package/packages/_vue3/dist/src/components/content/content.types.d.ts +2 -2
- package/packages/_vue3/dist/src/components/content-variants/content-variants.types.d.ts +1 -1
- package/packages/_vue3/dist/src/constants/sdk-version.d.ts +1 -1
- package/packages/_vue3/dist/src/functions/evaluate/browser-runtime/browser.d.ts +4 -0
- package/packages/_vue3/dist/src/functions/evaluate/evaluate.d.ts +4 -8
- package/packages/_vue3/dist/src/functions/evaluate/helpers.d.ts +18 -0
- package/packages/_vue3/dist/src/functions/evaluate/index.d.ts +1 -1
- package/packages/_vue3/dist/src/functions/evaluate/non-node-runtime/non-node-runtime.d.ts +2 -2
- package/packages/_vue3/dist/src/functions/fetch-builder-props.d.ts +2 -2
- package/packages/_vue3/dist/src/index.d.ts +5 -14
- package/packages/_vue3/dist/src/server-index.d.ts +15 -0
- package/packages/_vue2/dist/component-ref.c0ab9fe2.cjs +0 -1
- package/packages/_vue2/dist/evaluate.79598493.cjs +0 -4
- package/packages/_vue2/dist/evaluate.9bc5efc5.js +0 -79
- package/packages/_vue2/dist/interactive-element.0a1def03.cjs +0 -1
- package/packages/_vue2/dist/src/functions/evaluate/types.d.ts +0 -11
- package/packages/_vue3/dist/component-ref.5807e495.cjs +0 -1
- package/packages/_vue3/dist/index.9693ab51.cjs +0 -72
- package/packages/_vue3/dist/src/functions/evaluate/types.d.ts +0 -11
- /package/packages/_vue2/dist/src/functions/evaluate/{acorn-interpreter.d.ts → non-node-runtime/acorn-interpreter.d.ts} +0 -0
- /package/packages/_vue3/dist/src/functions/evaluate/{acorn-interpreter.d.ts → non-node-runtime/acorn-interpreter.d.ts} +0 -0
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
export * from './index-helpers/top-of-file.js';
|
|
2
2
|
export * from './index-helpers/blocks-exports.js';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
export { setEditorSettings } from './functions/set-editor-settings.js';
|
|
9
|
-
export type { Settings } from './functions/set-editor-settings.js';
|
|
10
|
-
export { fetchEntries, fetchOneEntry, getAllContent, getContent, _processContentResult } from './functions/get-content/index.js';
|
|
11
|
-
export { getBuilderSearchParams } from './functions/get-builder-search-params/index.js';
|
|
12
|
-
export { track } from './functions/track/index.js';
|
|
13
|
-
export type { RegisteredComponent } from './context/types.js';
|
|
14
|
-
export type { ComponentInfo } from './types/components.js';
|
|
15
|
-
export type { ContentProps } from './components/content/content.types.js';
|
|
16
|
-
export { fetchBuilderProps } from './functions/fetch-builder-props.js';
|
|
3
|
+
/**
|
|
4
|
+
* We have a separate entry point to the SDKs that guarantees no components are being imported. This is useful
|
|
5
|
+
* for React SDK, which would break in the NextJS App directory because the component imports have `use client` in them.
|
|
6
|
+
*/
|
|
7
|
+
export * from './server-index.js';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './index-helpers/top-of-file.js';
|
|
2
|
+
export { isEditing } from './functions/is-editing.js';
|
|
3
|
+
export { isPreviewing } from './functions/is-previewing.js';
|
|
4
|
+
export { createRegisterComponentMessage } from './functions/register-component.js';
|
|
5
|
+
export { register } from './functions/register.js';
|
|
6
|
+
export type { InsertMenuConfig, InsertMenuItem } from './functions/register.js';
|
|
7
|
+
export { setEditorSettings } from './functions/set-editor-settings.js';
|
|
8
|
+
export type { Settings } from './functions/set-editor-settings.js';
|
|
9
|
+
export { fetchEntries, fetchOneEntry, getAllContent, getContent, _processContentResult } from './functions/get-content/index.js';
|
|
10
|
+
export { getBuilderSearchParams } from './functions/get-builder-search-params/index.js';
|
|
11
|
+
export { track } from './functions/track/index.js';
|
|
12
|
+
export type { RegisteredComponent } from './context/types.js';
|
|
13
|
+
export type { ComponentInfo } from './types/components.js';
|
|
14
|
+
export type { ContentProps } from './components/content/content.types.js';
|
|
15
|
+
export { fetchBuilderProps } from './functions/fetch-builder-props.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as f } from "vue";
|
|
2
|
-
import { n as c } from "./index.
|
|
2
|
+
import { n as c } from "./index.835b8ee0.js";
|
|
3
3
|
const m = (t) => {
|
|
4
4
|
var o, a;
|
|
5
5
|
const e = t.family + (t.kind && !t.kind.includes("#") ? ", " + t.kind : ""), i = e.split(",")[0], r = (a = t.fileUrl) != null ? a : (o = t == null ? void 0 : t.files) == null ? void 0 : o.regular;
|
|
@@ -34,7 +34,7 @@ font-weight: ${n};
|
|
|
34
34
|
}, d = ({
|
|
35
35
|
cssCode: t,
|
|
36
36
|
contentId: e
|
|
37
|
-
}) => t ? e ? (t == null ? void 0 : t.replace(/&/g, `div[builder-content-id="${e}"]`)) || "" : t : "", p = () => import("./inlined-styles.
|
|
37
|
+
}) => t ? e ? (t == null ? void 0 : t.replace(/&/g, `div[builder-content-id="${e}"]`)) || "" : t : "", p = () => import("./inlined-styles.ccff7c47.js").then((t) => t.default).catch((t) => {
|
|
38
38
|
throw console.error(
|
|
39
39
|
"Error while attempting to dynamically import component InlinedStyles at ../../inlined-styles.vue",
|
|
40
40
|
t
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),f=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),f=require("./index.04a22940.cjs"),u=e=>{var o,a;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),i=t.split(",")[0],r=(a=e.fileUrl)!=null?a:(o=e==null?void 0:e.files)==null?void 0:o.regular;let l="";if(r&&t&&i&&(l+=`
|
|
2
2
|
@font-face {
|
|
3
3
|
font-family: "${t}";
|
|
4
4
|
src: local("${i}"), url('${r}') format('woff2');
|
|
@@ -12,7 +12,7 @@ src: url('${s}') format('woff2');
|
|
|
12
12
|
font-display: fallback;
|
|
13
13
|
font-weight: ${n};
|
|
14
14
|
}
|
|
15
|
-
`.trim())}return l},d=({customFonts:e})=>{var t;return((t=e==null?void 0:e.map(i=>u(i)))==null?void 0:t.join(" "))||""},m=({cssCode:e,contentId:t})=>e?t?(e==null?void 0:e.replace(/&/g,`div[builder-content-id="${t}"]`))||"":e:"",p=()=>Promise.resolve().then(()=>require("./inlined-styles.
|
|
15
|
+
`.trim())}return l},d=({customFonts:e})=>{var t;return((t=e==null?void 0:e.map(i=>u(i)))==null?void 0:t.join(" "))||""},m=({cssCode:e,contentId:t})=>e?t?(e==null?void 0:e.replace(/&/g,`div[builder-content-id="${t}"]`))||"":e:"",p=()=>Promise.resolve().then(()=>require("./inlined-styles.89ce41e1.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component InlinedStyles at ../../inlined-styles.vue",e),e}),h=c.defineComponent({name:"content-styles",components:{"inlined-styles":p},props:["cssCode","contentId","customFonts"],data(){return{injectedStyles:`
|
|
16
16
|
${m({cssCode:this.cssCode,contentId:this.contentId})}
|
|
17
17
|
${d({customFonts:this.customFonts})}
|
|
18
18
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./get-block-actions.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./get-block-actions.83a66ea4.cjs"),r=require("./index.f36face2.cjs"),n=t.defineComponent({name:"block-wrapper",props:["Wrapper","block","context","hasChildren"],data(){return{getBlockActions:o.getBlockActions,getBlockProperties:o.getBlockProperties}}});function c(e,a,s,i,p,k){return e.hasChildren?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.Wrapper),t.mergeProps({key:0},e.getBlockProperties({block:e.block,context:e.context}),t.toHandlers(e.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}))),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16)):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.Wrapper),t.mergeProps({key:1},e.getBlockProperties({block:e.block,context:e.context}),t.toHandlers(e.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}))),null,16))}const l=r._export_sfc(n,[["render",c]]);exports.default=l;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as l, openBlock as o, createBlock as e, resolveDynamicComponent as r, mergeProps as n, toHandlers as a, withCtx as c, renderSlot as p } from "vue";
|
|
2
|
-
import { g as s, a as i } from "./get-block-actions.
|
|
3
|
-
import { _ as k } from "./index.
|
|
2
|
+
import { g as s, a as i } from "./get-block-actions.48118020.js";
|
|
3
|
+
import { _ as k } from "./index.ee80c2d7.js";
|
|
4
4
|
const S = l({
|
|
5
5
|
name: "block-wrapper",
|
|
6
6
|
props: ["Wrapper", "block", "context", "hasChildren"],
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),n=require("./index.f36face2.cjs"),a=require("./get-block-actions.83a66ea4.cjs"),d=o.defineComponent({name:"interactive-element",props:["wrapperProps","block","context","Wrapper"],data(){return{getBlockActions:a.getBlockActions,getBlockProperties:a.getBlockProperties}}});function B(e,r,c,l,s,p){return o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.Wrapper),o.mergeProps({attributes:{...e.getBlockProperties({block:e.block,context:e.context}),...e.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})}},e.wrapperProps),{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3},16,["attributes"])}const m=n._export_sfc(d,[["render",B]]),b=({componentOptions:e,builderBlock:r,context:c,componentRef:l,includeBlockProps:s,isInteractive:p,contextValue:i})=>p?{Wrapper:l,block:r,context:c,wrapperProps:e}:{...e,...s?{attributes:a.getBlockProperties({block:r,context:i})}:{}},f=o.defineComponent({name:"component-ref",components:{Block:n.Block,BlockStyles:n.BlockStyles,InteractiveElement:m},props:["isInteractive","componentRef","componentOptions","builderBlock","context","includeBlockProps","blockChildren","registeredComponents"],data(){return{Wrapper:this.isInteractive?n.wrapComponentRef(m):this.componentRef,getWrapperProps:b}}});function g(e,r,c,l,s,p){const i=o.resolveComponent("block"),k=o.resolveComponent("block-styles");return e.componentRef?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.Wrapper),o.normalizeProps(o.mergeProps({key:0},e.getWrapperProps({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}))),{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.blockChildren,(t,u)=>(o.openBlock(),o.createBlock(i,{key:"block-"+t.id,block:t,context:e.context,registeredComponents:e.registeredComponents},null,8,["block","context","registeredComponents"]))),128)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.blockChildren,(t,u)=>(o.openBlock(),o.createBlock(k,{key:"block-style-"+t.id,block:t,context:e.context},null,8,["block","context"]))),128))]),_:1},16)):o.createCommentVNode("",!0)}const P=n._export_sfc(f,[["render",g]]);exports.default=P;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as f, openBlock as o, createBlock as r, resolveDynamicComponent as B, mergeProps as P, withCtx as g, renderSlot as S, resolveComponent as m, normalizeProps as y, createElementBlock as k, Fragment as u, renderList as d, createCommentVNode as
|
|
2
|
-
import { _ as C, a as
|
|
3
|
-
import { g as I, a as $ } from "./get-block-actions.
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as f, openBlock as o, createBlock as r, resolveDynamicComponent as B, mergeProps as P, withCtx as g, renderSlot as S, resolveComponent as m, normalizeProps as y, createElementBlock as k, Fragment as u, renderList as d, createCommentVNode as R } from "vue";
|
|
2
|
+
import { _ as C, a as W, b as h, w } from "./index.ee80c2d7.js";
|
|
3
|
+
import { g as I, a as $ } from "./get-block-actions.48118020.js";
|
|
4
|
+
const E = f({
|
|
5
5
|
name: "interactive-element",
|
|
6
6
|
props: ["wrapperProps", "block", "context", "Wrapper"],
|
|
7
7
|
data() {
|
|
8
8
|
return { getBlockActions: I, getBlockProperties: $ };
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
function
|
|
11
|
+
function A(e, n, c, p, s, l) {
|
|
12
12
|
return o(), r(B(e.Wrapper), P({
|
|
13
13
|
attributes: {
|
|
14
14
|
...e.getBlockProperties({
|
|
@@ -30,32 +30,32 @@ function E(e, n, c, s, p, l) {
|
|
|
30
30
|
_: 3
|
|
31
31
|
}, 16, ["attributes"]);
|
|
32
32
|
}
|
|
33
|
-
const b = /* @__PURE__ */ C(
|
|
33
|
+
const b = /* @__PURE__ */ C(E, [["render", A]]), O = ({
|
|
34
34
|
componentOptions: e,
|
|
35
35
|
builderBlock: n,
|
|
36
36
|
context: c,
|
|
37
|
-
componentRef:
|
|
38
|
-
includeBlockProps:
|
|
37
|
+
componentRef: p,
|
|
38
|
+
includeBlockProps: s,
|
|
39
39
|
isInteractive: l,
|
|
40
40
|
contextValue: a
|
|
41
41
|
}) => l ? {
|
|
42
|
-
Wrapper:
|
|
42
|
+
Wrapper: p,
|
|
43
43
|
block: n,
|
|
44
44
|
context: c,
|
|
45
45
|
wrapperProps: e
|
|
46
46
|
} : {
|
|
47
47
|
...e,
|
|
48
|
-
...
|
|
48
|
+
...s ? {
|
|
49
49
|
attributes: $({
|
|
50
50
|
block: n,
|
|
51
51
|
context: a
|
|
52
52
|
})
|
|
53
53
|
} : {}
|
|
54
|
-
},
|
|
54
|
+
}, V = f({
|
|
55
55
|
name: "component-ref",
|
|
56
56
|
components: {
|
|
57
|
-
Block:
|
|
58
|
-
BlockStyles:
|
|
57
|
+
Block: W,
|
|
58
|
+
BlockStyles: h,
|
|
59
59
|
InteractiveElement: b
|
|
60
60
|
},
|
|
61
61
|
props: [
|
|
@@ -70,12 +70,12 @@ const b = /* @__PURE__ */ C(w, [["render", E]]), A = ({
|
|
|
70
70
|
],
|
|
71
71
|
data() {
|
|
72
72
|
return {
|
|
73
|
-
Wrapper: this.isInteractive ? b : this.componentRef,
|
|
74
|
-
getWrapperProps:
|
|
73
|
+
Wrapper: this.isInteractive ? w(b) : this.componentRef,
|
|
74
|
+
getWrapperProps: O
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
|
-
function
|
|
78
|
+
function x(e, n, c, p, s, l) {
|
|
79
79
|
const a = m("block"), i = m("block-styles");
|
|
80
80
|
return e.componentRef ? (o(), r(B(e.Wrapper), y(P(
|
|
81
81
|
{ key: 0 },
|
|
@@ -103,9 +103,9 @@ function V(e, n, c, s, p, l) {
|
|
|
103
103
|
}, null, 8, ["block", "context"]))), 128))
|
|
104
104
|
]),
|
|
105
105
|
_: 1
|
|
106
|
-
}, 16)) :
|
|
106
|
+
}, 16)) : R("", !0);
|
|
107
107
|
}
|
|
108
|
-
const
|
|
108
|
+
const L = /* @__PURE__ */ C(V, [["render", x]]);
|
|
109
109
|
export {
|
|
110
|
-
|
|
110
|
+
L as default
|
|
111
111
|
};
|
package/packages/_vue3/dist/{get-block-actions.63f93beb.cjs → get-block-actions.83a66ea4.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const o=require("./index.f36face2.cjs");function i(e){const t={};if(typeof e!="string")return t;const r=e.trim().split(/\\s+/);for(const s of r)t[s]=!0;return t}function l(e){return e.class=i(e.class),e}const u=e=>({href:e.href});function f({block:e,context:t}){var s;const r={...u(e),...e.properties,"builder-id":e.id,style:e.style?v(e.style):void 0,class:[e.id,"builder-block",e.class,(s=e.properties)==null?void 0:s.class].filter(Boolean).join(" ")};return l(r)}function v(e){switch(o.TARGET){case"svelte":case"vue2":case"vue3":case"solid":return o.convertStyleMapToCSSArray(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}const p=e=>`v-on:${e.toLowerCase()}`,d=(e,t)=>r=>o.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1});function S(e){var s;const t={},r=(s=e.block.actions)!=null?s:{};for(const n in r){if(!r.hasOwnProperty(n))continue;const a=r[n];let c=p(n);if(e.stripPrefix)switch(o.TARGET){case"vue2":case"vue3":c=c.replace("v-on:","");break;case"svelte":c=c.replace("on:","");break}t[c]=d(a,e)}return t}exports.getBlockActions=S;exports.getBlockProperties=f;
|