@builder.io/sdk-vue 2.0.31 → 3.0.1
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/lib/browser/{awaiter-CBFYn8Rc.js → awaiter-W9NCtbGd.js} +1 -1
- package/lib/browser/{awaiter-zzvk2NgH.cjs → awaiter-mEQ0ZDTH.cjs} +1 -1
- package/lib/browser/{block-styles-1TjUGG0M.js → block-styles-YR66YUMW.js} +1 -1
- package/lib/browser/{block-styles-eG8aHEnR.cjs → block-styles-iE_AMMov.cjs} +1 -1
- package/lib/browser/{block-wrapper-t1YyB3qf.cjs → block-wrapper-uCoTCnWV.cjs} +1 -1
- package/lib/browser/{block-wrapper-mHstZCm3.js → block-wrapper-zPfAxV1K.js} +3 -3
- package/lib/browser/blocks/form/select/select.vue.d.ts +3 -3
- package/lib/browser/{component-ref-SiTniDkf.js → component-ref-1sJWCSnM.js} +3 -3
- package/lib/browser/{component-ref-4iD2JOXe.cjs → component-ref-KQElTQuz.cjs} +1 -1
- package/lib/browser/components/block/block.helpers.d.ts +4 -3
- package/lib/browser/components/content/components/enable-editor.helpers.d.ts +11 -0
- package/lib/browser/components/content/components/enable-editor.vue.d.ts +8 -6
- package/lib/browser/components/content/content.vue.d.ts +7 -6
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +6 -6
- package/lib/browser/constants/file-types.d.ts +2 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/context/builder.context.d.ts +1 -0
- package/lib/browser/context/types.d.ts +1 -0
- package/lib/browser/functions/extract-localized-values.d.ts +2 -0
- package/lib/browser/functions/get-content/index.d.ts +1 -1
- package/lib/browser/functions/traverse.d.ts +34 -0
- package/lib/browser/{get-block-properties-qCNopliW.cjs → get-block-properties-28x9iJbv.cjs} +1 -1
- package/lib/browser/{get-block-properties-WnxZnXsK.js → get-block-properties-6nHJC7Bl.js} +1 -1
- package/lib/browser/{index-nG43II0w.js → index-96lMP92Z.js} +703 -652
- package/lib/browser/index-vh-1AohY.cjs +166 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-Zrynel2G.cjs → repeated-block-alcf4ekM.cjs} +1 -1
- package/lib/browser/{repeated-block-WkFOmnw-.js → repeated-block-zdJEPXeM.js} +2 -2
- package/lib/browser/style.css +1 -1
- package/lib/browser/types/components.d.ts +3 -0
- package/lib/edge/{awaiter-ETIQ3Y1O.js → awaiter-AmWo0klS.js} +1 -1
- package/lib/edge/{awaiter-tqyHYP24.cjs → awaiter-b7-kYxAd.cjs} +1 -1
- package/lib/edge/{block-styles-UFZvXK12.cjs → block-styles-ZxATOs5j.cjs} +1 -1
- package/lib/edge/{block-styles-xeGiE5b9.js → block-styles-p5UoOXs6.js} +1 -1
- package/lib/edge/{block-wrapper-rWfNhUAl.js → block-wrapper-7wzSncci.js} +3 -3
- package/lib/edge/{block-wrapper-Kx9lGbVC.cjs → block-wrapper-M-L3jacN.cjs} +1 -1
- package/lib/edge/blocks/form/select/select.vue.d.ts +3 -3
- package/lib/edge/{component-ref-jL8V5feH.cjs → component-ref-ObIZSCWX.cjs} +1 -1
- package/lib/edge/{component-ref-2gTfqFWa.js → component-ref-fsAjiPgJ.js} +3 -3
- package/lib/edge/components/block/block.helpers.d.ts +4 -3
- package/lib/edge/components/content/components/enable-editor.helpers.d.ts +11 -0
- package/lib/edge/components/content/components/enable-editor.vue.d.ts +8 -6
- package/lib/edge/components/content/content.vue.d.ts +7 -6
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +6 -6
- package/lib/edge/constants/file-types.d.ts +2 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/context/builder.context.d.ts +1 -0
- package/lib/edge/context/types.d.ts +1 -0
- package/lib/edge/functions/extract-localized-values.d.ts +2 -0
- package/lib/edge/functions/get-content/index.d.ts +1 -1
- package/lib/edge/functions/traverse.d.ts +34 -0
- package/lib/edge/{get-block-properties-U4aZTxWN.cjs → get-block-properties-BwEXZmo9.cjs} +1 -1
- package/lib/edge/{get-block-properties-rSB9DXAm.js → get-block-properties-pBTZazws.js} +1 -1
- package/lib/edge/index-8CRS7AwO.cjs +184 -0
- package/lib/edge/{index-61CJkECh.js → index-8E5G8ahg.js} +1289 -1238
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/{node/repeated-block-z6QgHzWM.cjs → edge/repeated-block-G7v60Rfo.cjs} +1 -1
- package/lib/edge/{repeated-block-sibYzFQC.js → repeated-block-kbuQgIKA.js} +2 -2
- package/lib/edge/style.css +1 -1
- package/lib/edge/types/components.d.ts +3 -0
- package/lib/node/{awaiter-YeTQ3hOV.cjs → awaiter--VUu-0lf.cjs} +1 -1
- package/lib/node/{awaiter--0e1RmdV.js → awaiter-mRA2J5Tn.js} +1 -1
- package/lib/node/{block-styles-OsL48K76.cjs → block-styles-m8QMKLNf.cjs} +1 -1
- package/lib/node/{block-styles-mmmG5Zvb.js → block-styles-mnvxO4c9.js} +1 -1
- package/lib/node/{block-wrapper-6FrZVnI8.js → block-wrapper-TDtFNLpV.js} +3 -3
- package/lib/node/{block-wrapper-hK9iEXhq.cjs → block-wrapper-nmivaReB.cjs} +1 -1
- package/lib/node/blocks/form/select/select.vue.d.ts +3 -3
- package/lib/node/{component-ref-yN1A7uFk.cjs → component-ref-G822HD6s.cjs} +1 -1
- package/lib/node/{component-ref-u2wfD4PU.js → component-ref-nu3ur2Zz.js} +3 -3
- package/lib/node/components/block/block.helpers.d.ts +4 -3
- package/lib/node/components/content/components/enable-editor.helpers.d.ts +11 -0
- package/lib/node/components/content/components/enable-editor.vue.d.ts +8 -6
- package/lib/node/components/content/content.vue.d.ts +7 -6
- package/lib/node/components/content-variants/content-variants.vue.d.ts +6 -6
- package/lib/node/constants/file-types.d.ts +2 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/context/builder.context.d.ts +1 -0
- package/lib/node/context/types.d.ts +1 -0
- package/lib/node/functions/extract-localized-values.d.ts +2 -0
- package/lib/node/functions/get-content/index.d.ts +1 -1
- package/lib/node/functions/traverse.d.ts +34 -0
- package/lib/node/{get-block-properties-QhUhlrxy.js → get-block-properties-2BCkBOZG.js} +1 -1
- package/lib/node/{get-block-properties-EkNcjp0K.cjs → get-block-properties-fBgYSGfR.cjs} +1 -1
- package/lib/node/index-SmPbrgmX.cjs +166 -0
- package/lib/node/{index-GJHkrBmN.js → index-dZfvXbI_.js} +837 -786
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/{edge/repeated-block-YThkmdHp.cjs → node/repeated-block-WDR29-D_.cjs} +1 -1
- package/lib/node/{repeated-block-h-cU9AMQ.js → repeated-block-XwjQQ8Do.js} +2 -2
- package/lib/node/style.css +1 -1
- package/lib/node/types/components.d.ts +3 -0
- package/package.json +1 -1
- package/lib/browser/index-EOpyZR3_.cjs +0 -166
- package/lib/edge/index-1wQww2g6.cjs +0 -184
- package/lib/node/index-EBQK2Vx-.cjs +0 -166
|
@@ -1 +1 @@
|
|
|
1
|
-
var p=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-
|
|
1
|
+
var p=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-vh-1AohY.cjs"),n=e.defineComponent({name:"awaiter",props:[],mounted(){}});function o(t,a,i,c,u,d){return e.renderSlot(t.$slots,"default")}const s=r._export_sfc(n,[["render",o]]);exports.default=s;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
import { defineComponent as C, resolveComponent as g, openBlock as $, createBlock as v, createCommentVNode as B } from "vue";
|
|
3
|
-
import { _, T, c as h, g as w, a as l, b as k, d as I, e as N } from "./index-
|
|
3
|
+
import { _, T, c as h, g as w, a as l, b as k, d as I, e as N } from "./index-96lMP92Z.js";
|
|
4
4
|
const z = C({
|
|
5
5
|
name: "block-styles",
|
|
6
6
|
components: { InlinedStyles: _ },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var v=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),s=require("./index-
|
|
1
|
+
var v=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),s=require("./index-vh-1AohY.cjs"),f=l.defineComponent({name:"block-styles",components:{InlinedStyles:s._sfc_main},props:["block","context"],data(){return{TARGET:s.TARGET}},computed:{canShowBlock(){const e=this.block;return s.checkIsDefined(e.hide)?!e.hide:s.checkIsDefined(e.show)?e.show:!0},css(){var y,p,h;const e=this.block,t=e.responsiveStyles,r=this.context.content,a=s.getSizesForBreakpoints(((y=r==null?void 0:r.meta)==null?void 0:y.breakpoints)||{}),i=t==null?void 0:t.large,d=t==null?void 0:t.medium,c=t==null?void 0:t.small,n=e.id;if(!n)return"";const S=i?s.createCssClass({className:n,styles:i}):"",k=d?s.createCssClass({className:n,styles:d,mediaQuery:s.getMaxWidthQueryForSize("medium",a)}):"",C=c?s.createCssClass({className:n,styles:c,mediaQuery:s.getMaxWidthQueryForSize("small",a)}):"",o=e.animations&&e.animations.find(m=>m.trigger==="hover");let u="";if(o){const m=((h=(p=o.steps)==null?void 0:p[1])==null?void 0:h.styles)||{};u=s.createCssClass({className:`${n}:hover`,styles:{...m,transition:`all ${o.duration}s ${s.camelToKebabCase(o.easing)}`,transitionDelay:o.delay?`${o.delay}s`:"0s"}})||""}return[S,k,C,u].join(" ")}}});function b(e,t,r,a,i,d){const c=l.resolveComponent("InlinedStyles");return e.TARGET!=="reactNative"&&e.css&&e.canShowBlock?(l.openBlock(),l.createBlock(c,{key:0,id:"builderio-block",styles:e.css,nonce:e.context.nonce},null,8,["styles","nonce"])):l.createCommentVNode("",!0)}const g=s._export_sfc(f,[["render",b]]);exports.default=g;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var k=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./get-block-properties-
|
|
1
|
+
var k=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("./get-block-properties-28x9iJbv.cjs"),n=require("./index-vh-1AohY.cjs"),c=()=>Promise.resolve().then(()=>require("./index-vh-1AohY.cjs")).then(e=>e.dynamicRenderer).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component DynamicRenderer at ../../dynamic-renderer/dynamic-renderer.vue",e),e}),a=t.defineComponent({name:"block-wrapper",components:{DynamicRenderer:t.defineAsyncComponent(c)},props:["Wrapper","block","context"],data(){return{getBlockActions:o.getBlockActions,getBlockProperties:o.getBlockProperties}}});function i(e,l,p,d,m,u){const r=t.resolveComponent("DynamicRenderer");return t.openBlock(),t.createBlock(r,{TagName:e.Wrapper,attributes:e.getBlockProperties({block:e.block,context:e.context}),actionAttributes: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},8,["TagName","attributes","actionAttributes"])}const s=n._export_sfc(a,[["render",i]]);exports.default=s;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
import { defineComponent as o, defineAsyncComponent as r, resolveComponent as n, openBlock as a, createBlock as c, withCtx as i, renderSlot as p } from "vue";
|
|
3
|
-
import { g as s, a as l } from "./get-block-properties-
|
|
4
|
-
import { e as m } from "./index-
|
|
5
|
-
const d = () => import("./index-
|
|
3
|
+
import { g as s, a as l } from "./get-block-properties-6nHJC7Bl.js";
|
|
4
|
+
import { e as m } from "./index-96lMP92Z.js";
|
|
5
|
+
const d = () => import("./index-96lMP92Z.js").then((e) => e.E).then((e) => e.default).catch((e) => {
|
|
6
6
|
throw console.error(
|
|
7
7
|
"Error while attempting to dynamically import component DynamicRenderer at ../../dynamic-renderer/dynamic-renderer.vue",
|
|
8
8
|
e
|
|
@@ -17,8 +17,8 @@ export interface FormSelectProps {
|
|
|
17
17
|
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
18
18
|
name?: any;
|
|
19
19
|
value?: any;
|
|
20
|
-
attributes?: any;
|
|
21
20
|
options?: any;
|
|
21
|
+
attributes?: any;
|
|
22
22
|
defaultValue?: any;
|
|
23
23
|
required?: any;
|
|
24
24
|
}>, unknown, {
|
|
@@ -27,15 +27,15 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
27
27
|
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
28
28
|
name?: any;
|
|
29
29
|
value?: any;
|
|
30
|
-
attributes?: any;
|
|
31
30
|
options?: any;
|
|
31
|
+
attributes?: any;
|
|
32
32
|
defaultValue?: any;
|
|
33
33
|
required?: any;
|
|
34
34
|
}>>>, {
|
|
35
35
|
readonly name?: any;
|
|
36
36
|
readonly value?: any;
|
|
37
|
-
readonly attributes?: any;
|
|
38
37
|
readonly options?: any;
|
|
38
|
+
readonly attributes?: any;
|
|
39
39
|
readonly defaultValue?: any;
|
|
40
40
|
readonly required?: any;
|
|
41
41
|
}, {}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
import { defineComponent as d, defineAsyncComponent as P, resolveComponent as k, openBlock as o, createBlock as a, withCtx as l, renderSlot as m, resolveDynamicComponent as f, mergeProps as b, normalizeProps as B, createElementBlock as g, Fragment as $, renderList as v, createCommentVNode as W } from "vue";
|
|
3
|
-
import { e as h, B as S, w as y } from "./index-
|
|
4
|
-
import { a as C, g as A } from "./get-block-properties-
|
|
5
|
-
const R = () => import("./awaiter-
|
|
3
|
+
import { e as h, B as S, w as y } from "./index-96lMP92Z.js";
|
|
4
|
+
import { a as C, g as A } from "./get-block-properties-6nHJC7Bl.js";
|
|
5
|
+
const R = () => import("./awaiter-W9NCtbGd.js").then((e) => e.default).catch((e) => {
|
|
6
6
|
throw console.error(
|
|
7
7
|
"Error while attempting to dynamically import component Awaiter at ../../awaiter.vue",
|
|
8
8
|
e
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var P=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-
|
|
1
|
+
var P=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-vh-1AohY.cjs"),a=require("./get-block-properties-28x9iJbv.cjs"),u=()=>Promise.resolve().then(()=>require("./awaiter-mEQ0ZDTH.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component Awaiter at ../../awaiter.vue",e),e}),d=t.defineComponent({name:"interactive-element",components:{Awaiter:t.defineAsyncComponent(u)},props:["includeBlockProps","block","context","Wrapper","wrapperProps"],computed:{attributes(){return this.includeBlockProps?{...a.getBlockProperties({block:this.block,context:this.context}),...a.getBlockActions({block:this.block,rootState:this.context.rootState,rootSetState:this.context.rootSetState,localState:this.context.localState,context:this.context.context})}:{}}}});function f(e,n,s,i,r,l){const o=t.resolveComponent("Awaiter");return e.Wrapper.load?(t.openBlock(),t.createBlock(o,{key:0,load:e.Wrapper.load,fallback:e.Wrapper.fallback,props:e.wrapperProps,attributes:e.attributes},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["load","fallback","props","attributes"])):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.Wrapper),t.mergeProps({key:1,attributes:e.attributes},e.wrapperProps),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["attributes"]))}const m=c._export_sfc(d,[["render",f]]),b=({componentOptions:e,builderBlock:n,context:s,componentRef:i,includeBlockProps:r,isInteractive:l,contextValue:o})=>{const p={...e,...r?{attributes:a.getBlockProperties({block:n,context:o})}:{}};return l?{Wrapper:i,block:n,context:s,wrapperProps:e,includeBlockProps:r}:p},B=t.defineComponent({name:"component-ref",components:{Block:c.Block,InteractiveElement:m},props:["isInteractive","componentRef","componentOptions","builderBlock","context","linkComponent","includeBlockProps","blockChildren","registeredComponents"],data(){return{Wrapper:this.isInteractive?c.wrapComponentRef(m):this.componentRef,getWrapperProps:b}}});function C(e,n,s,i,r,l){const o=t.resolveComponent("Block");return e.componentRef?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.Wrapper),t.normalizeProps(t.mergeProps({key:0},e.getWrapperProps({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,linkComponent:e.linkComponent,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}))),{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.blockChildren,(p,k)=>(t.openBlock(),t.createBlock(o,{key:p.id,block:p,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["block","context","registeredComponents","linkComponent"]))),128))]),_:1},16)):t.createCommentVNode("",!0)}const h=c._export_sfc(B,[["render",C]]);exports.default=h;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { BuilderContextInterface, RegisteredComponent, RegisteredComponents } from '../../context/types';
|
|
2
2
|
import type { BuilderBlock } from '../../types/builder-block';
|
|
3
3
|
import type { RepeatData } from './types';
|
|
4
|
-
export declare const getComponent: ({ block, registeredComponents }: {
|
|
4
|
+
export declare const getComponent: ({ block, registeredComponents, model }: {
|
|
5
5
|
block: BuilderBlock;
|
|
6
6
|
registeredComponents: RegisteredComponents;
|
|
7
|
+
model: string;
|
|
7
8
|
}) => RegisteredComponent | null | undefined;
|
|
8
9
|
export declare const getRepeatItemData: ({ block, context }: {
|
|
9
10
|
block: BuilderBlock;
|
|
@@ -18,8 +19,8 @@ export declare const provideLinkComponent: (block: RegisteredComponent | null |
|
|
|
18
19
|
} | {
|
|
19
20
|
builderLinkComponent?: undefined;
|
|
20
21
|
};
|
|
21
|
-
export declare const provideRegisteredComponents: (block: RegisteredComponent | null | undefined, registeredComponents: RegisteredComponents) => {
|
|
22
|
-
builderComponents:
|
|
22
|
+
export declare const provideRegisteredComponents: (block: RegisteredComponent | null | undefined, registeredComponents: RegisteredComponents, model: string) => {
|
|
23
|
+
builderComponents: any;
|
|
23
24
|
} | {
|
|
24
25
|
builderComponents?: undefined;
|
|
25
26
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Target } from '../../../types/targets';
|
|
2
|
+
/**
|
|
3
|
+
* SDKS that use the elementRef approach to enable visual editing.
|
|
4
|
+
* We don't need to render the div for other SDKs as they attach event listeners to the window.
|
|
5
|
+
*/
|
|
6
|
+
export declare const SDKS_USING_ELEMENT_REF_APPROACH: Target[];
|
|
7
|
+
/**
|
|
8
|
+
* We need to attach this div only when content exists or isPreviewing/isEditing even when content is null,
|
|
9
|
+
* as we need to set the elementRef and allow previewing and visual editing
|
|
10
|
+
*/
|
|
11
|
+
export declare const needsElementRefDivForEditing: () => boolean;
|
|
@@ -5,12 +5,12 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
5
5
|
context?: any;
|
|
6
6
|
content?: any;
|
|
7
7
|
apiKey?: any;
|
|
8
|
+
model?: any;
|
|
8
9
|
canTrack?: any;
|
|
10
|
+
locale?: any;
|
|
9
11
|
apiHost?: any;
|
|
10
|
-
model?: any;
|
|
11
12
|
trustedHosts?: any;
|
|
12
13
|
showContent?: any;
|
|
13
|
-
locale?: any;
|
|
14
14
|
enrich?: any;
|
|
15
15
|
contentWrapper?: any;
|
|
16
16
|
contentWrapperProps?: any;
|
|
@@ -35,9 +35,11 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
35
35
|
BlocksWrapper: string;
|
|
36
36
|
BlocksWrapperProps: {};
|
|
37
37
|
nonce: string;
|
|
38
|
+
model: string;
|
|
38
39
|
};
|
|
39
40
|
key: symbol;
|
|
40
41
|
};
|
|
42
|
+
needsElementRefDivForEditing: () => boolean;
|
|
41
43
|
getWrapperClassName: (variationId?: string | undefined) => string;
|
|
42
44
|
}, {
|
|
43
45
|
showContentProps(): {
|
|
@@ -73,12 +75,12 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
73
75
|
context?: any;
|
|
74
76
|
content?: any;
|
|
75
77
|
apiKey?: any;
|
|
78
|
+
model?: any;
|
|
76
79
|
canTrack?: any;
|
|
80
|
+
locale?: any;
|
|
77
81
|
apiHost?: any;
|
|
78
|
-
model?: any;
|
|
79
82
|
trustedHosts?: any;
|
|
80
83
|
showContent?: any;
|
|
81
|
-
locale?: any;
|
|
82
84
|
enrich?: any;
|
|
83
85
|
contentWrapper?: any;
|
|
84
86
|
contentWrapperProps?: any;
|
|
@@ -89,12 +91,12 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
89
91
|
readonly context?: any;
|
|
90
92
|
readonly content?: any;
|
|
91
93
|
readonly apiKey?: any;
|
|
94
|
+
readonly model?: any;
|
|
92
95
|
readonly canTrack?: any;
|
|
96
|
+
readonly locale?: any;
|
|
93
97
|
readonly apiHost?: any;
|
|
94
|
-
readonly model?: any;
|
|
95
98
|
readonly trustedHosts?: any;
|
|
96
99
|
readonly showContent?: any;
|
|
97
|
-
readonly locale?: any;
|
|
98
100
|
readonly enrich?: any;
|
|
99
101
|
readonly contentWrapper?: any;
|
|
100
102
|
readonly contentWrapperProps?: any;
|
|
@@ -8,15 +8,15 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
8
8
|
apiKey?: any;
|
|
9
9
|
apiVersion?: any;
|
|
10
10
|
nonce?: any;
|
|
11
|
+
model?: any;
|
|
11
12
|
canTrack?: any;
|
|
13
|
+
locale?: any;
|
|
12
14
|
apiHost?: any;
|
|
13
|
-
model?: any;
|
|
14
15
|
trustedHosts?: any;
|
|
15
16
|
showContent?: any;
|
|
16
17
|
isSsrAbTest?: any;
|
|
17
18
|
customComponents?: any;
|
|
18
19
|
linkComponent?: any;
|
|
19
|
-
locale?: any;
|
|
20
20
|
enrich?: any;
|
|
21
21
|
contentWrapper?: any;
|
|
22
22
|
contentWrapperProps?: any;
|
|
@@ -42,6 +42,7 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
42
42
|
BlocksWrapper: any;
|
|
43
43
|
BlocksWrapperProps: any;
|
|
44
44
|
nonce: any;
|
|
45
|
+
model: any;
|
|
45
46
|
};
|
|
46
47
|
TARGET: import("../../types/targets").Target;
|
|
47
48
|
}, {}, {
|
|
@@ -53,15 +54,15 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
53
54
|
apiKey?: any;
|
|
54
55
|
apiVersion?: any;
|
|
55
56
|
nonce?: any;
|
|
57
|
+
model?: any;
|
|
56
58
|
canTrack?: any;
|
|
59
|
+
locale?: any;
|
|
57
60
|
apiHost?: any;
|
|
58
|
-
model?: any;
|
|
59
61
|
trustedHosts?: any;
|
|
60
62
|
showContent?: any;
|
|
61
63
|
isSsrAbTest?: any;
|
|
62
64
|
customComponents?: any;
|
|
63
65
|
linkComponent?: any;
|
|
64
|
-
locale?: any;
|
|
65
66
|
enrich?: any;
|
|
66
67
|
contentWrapper?: any;
|
|
67
68
|
contentWrapperProps?: any;
|
|
@@ -75,15 +76,15 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
75
76
|
readonly apiKey?: any;
|
|
76
77
|
readonly apiVersion?: any;
|
|
77
78
|
readonly nonce?: any;
|
|
79
|
+
readonly model?: any;
|
|
78
80
|
readonly canTrack?: any;
|
|
81
|
+
readonly locale?: any;
|
|
79
82
|
readonly apiHost?: any;
|
|
80
|
-
readonly model?: any;
|
|
81
83
|
readonly trustedHosts?: any;
|
|
82
84
|
readonly showContent?: any;
|
|
83
85
|
readonly isSsrAbTest?: any;
|
|
84
86
|
readonly customComponents?: any;
|
|
85
87
|
readonly linkComponent?: any;
|
|
86
|
-
readonly locale?: any;
|
|
87
88
|
readonly enrich?: any;
|
|
88
89
|
readonly contentWrapper?: any;
|
|
89
90
|
readonly contentWrapperProps?: any;
|
|
@@ -5,13 +5,13 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
5
5
|
apiKey?: any;
|
|
6
6
|
apiVersion?: any;
|
|
7
7
|
nonce?: any;
|
|
8
|
+
model?: any;
|
|
8
9
|
canTrack?: any;
|
|
10
|
+
locale?: any;
|
|
9
11
|
apiHost?: any;
|
|
10
|
-
model?: any;
|
|
11
12
|
trustedHosts?: any;
|
|
12
13
|
customComponents?: any;
|
|
13
14
|
linkComponent?: any;
|
|
14
|
-
locale?: any;
|
|
15
15
|
enrich?: any;
|
|
16
16
|
contentWrapper?: any;
|
|
17
17
|
contentWrapperProps?: any;
|
|
@@ -57,13 +57,13 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
57
57
|
apiKey?: any;
|
|
58
58
|
apiVersion?: any;
|
|
59
59
|
nonce?: any;
|
|
60
|
+
model?: any;
|
|
60
61
|
canTrack?: any;
|
|
62
|
+
locale?: any;
|
|
61
63
|
apiHost?: any;
|
|
62
|
-
model?: any;
|
|
63
64
|
trustedHosts?: any;
|
|
64
65
|
customComponents?: any;
|
|
65
66
|
linkComponent?: any;
|
|
66
|
-
locale?: any;
|
|
67
67
|
enrich?: any;
|
|
68
68
|
contentWrapper?: any;
|
|
69
69
|
contentWrapperProps?: any;
|
|
@@ -77,13 +77,13 @@ declare const _default: import("vue").DefineComponent<Readonly<{
|
|
|
77
77
|
readonly apiKey?: any;
|
|
78
78
|
readonly apiVersion?: any;
|
|
79
79
|
readonly nonce?: any;
|
|
80
|
+
readonly model?: any;
|
|
80
81
|
readonly canTrack?: any;
|
|
82
|
+
readonly locale?: any;
|
|
81
83
|
readonly apiHost?: any;
|
|
82
|
-
readonly model?: any;
|
|
83
84
|
readonly trustedHosts?: any;
|
|
84
85
|
readonly customComponents?: any;
|
|
85
86
|
readonly linkComponent?: any;
|
|
86
|
-
readonly locale?: any;
|
|
87
87
|
readonly enrich?: any;
|
|
88
88
|
readonly contentWrapper?: any;
|
|
89
89
|
readonly contentWrapperProps?: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "
|
|
1
|
+
export declare const SDK_VERSION = "3.0.1";
|
|
@@ -14,5 +14,5 @@ export declare const _processContentResult: (options: GetContentOptions, content
|
|
|
14
14
|
/**
|
|
15
15
|
* Returns a paginated array of entries that match the given options.
|
|
16
16
|
*/
|
|
17
|
-
export declare function fetchEntries(options: GetContentOptions): Promise<BuilderContent[]
|
|
17
|
+
export declare function fetchEntries(options: GetContentOptions): Promise<BuilderContent[]>;
|
|
18
18
|
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
type TraverseCallback = (value: any, update: (newValue: any) => void) => void;
|
|
2
|
+
/**
|
|
3
|
+
* Recursively traverses an object or array, invoking a callback on each value.
|
|
4
|
+
*
|
|
5
|
+
* @param {any} obj - The object or array to traverse. Can also handle primitives, null, or undefined.
|
|
6
|
+
* @param {TraverseCallback} callback - The function to invoke on each value. Receives the current value
|
|
7
|
+
* and an `update` function to modify the value in its parent container.
|
|
8
|
+
* @param {any} [parent=null] - The parent object or array of the current value. Used internally.
|
|
9
|
+
* @param {any} [key=null] - The key or index of the current value in its parent. Used internally.
|
|
10
|
+
* @param {WeakSet} [visited=new WeakSet()] - Tracks visited objects to handle circular references. Used internally.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* // Example: Doubling all numbers in an object
|
|
14
|
+
* const obj = { a: 1, b: [2, 3, { c: 4 }] };
|
|
15
|
+
* traverse(obj, (value, update) => {
|
|
16
|
+
* if (typeof value === 'number') {
|
|
17
|
+
* update(value * 2);
|
|
18
|
+
* }
|
|
19
|
+
* });
|
|
20
|
+
* console.log(obj); // { a: 2, b: [4, 6, { c: 8 }] }
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* // Example: Handling circular references
|
|
24
|
+
* const obj = { a: 1 };
|
|
25
|
+
* obj.self = obj;
|
|
26
|
+
* traverse(obj, (value, update) => {
|
|
27
|
+
* if (typeof value === 'number') {
|
|
28
|
+
* update(value * 2);
|
|
29
|
+
* }
|
|
30
|
+
* });
|
|
31
|
+
* console.log(obj.a); // 2
|
|
32
|
+
*/
|
|
33
|
+
export declare function traverse(obj: any, callback: TraverseCallback, parent?: any, key?: any, visited?: WeakSet<object>): void;
|
|
34
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var d=require("./style.css");const s=require("./index-
|
|
1
|
+
var d=require("./style.css");const s=require("./index-vh-1AohY.cjs"),c=e=>`v-on:${e.toLowerCase()}`,i=(e,t)=>r=>s.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1});function l(e){const t={},r=e.block.actions??{};for(const o in r){if(!r.hasOwnProperty(o))continue;const a=r[o];let n=c(o);if(e.stripPrefix)switch(s.TARGET){case"vue":n=n.replace("v-on:","");break;case"svelte":n=n.replace("on:","");break}t[n]=i(a,e)}return t}function u({properties:e}){return e}const p=e=>({href:e.href});function f({block:e,context:t}){var o;const r={...p(e),...e.properties,"builder-id":e.id,style:s.getStyle({block:e,context:t}),[s.getClassPropName()]:[e.id,"builder-block",e.class,(o=e.properties)==null?void 0:o.class].filter(Boolean).join(" ")};return u({properties:r,context:t,block:e})}exports.getBlockActions=l;exports.getBlockProperties=f;
|