@builder.io/sdk-vue 0.13.1 → 0.13.2
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/{block-styles.443192e0.cjs → block-styles.119ae070.cjs} +1 -1
- package/lib/browser/{block-styles.f235a6b3.js → block-styles.234c76cc.js} +1 -1
- package/lib/browser/{block-wrapper.5c142781.cjs → block-wrapper.632a0344.cjs} +1 -1
- package/lib/browser/{block-wrapper.0326cf92.js → block-wrapper.87efb259.js} +3 -3
- package/lib/browser/blocks/form/form/component-info.d.ts +2 -0
- package/lib/browser/blocks/form/form/form.vue.d.ts +112 -0
- package/lib/browser/blocks/form/input/component-info.d.ts +2 -0
- package/lib/browser/blocks/form/input/input.vue.d.ts +43 -0
- package/lib/browser/blocks/form/select/component-info.d.ts +2 -0
- package/lib/browser/blocks/form/select/select.vue.d.ts +38 -0
- package/lib/browser/blocks/form/submit-button/component-info.d.ts +2 -0
- package/lib/browser/blocks/form/submit-button/submit-button.vue.d.ts +21 -0
- package/lib/browser/blocks/slot/slot.vue.d.ts +6 -6
- package/lib/browser/{component-ref.4425a615.js → component-ref.3863762f.js} +2 -2
- package/lib/browser/{component-ref.1182befe.cjs → component-ref.3afd884d.cjs} +1 -1
- package/lib/browser/constants/extra-components.d.ts +7 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/get-env.d.ts +2 -0
- package/lib/browser/functions/get.d.ts +1 -0
- package/lib/browser/{get-block-properties.73425f09.js → get-block-properties.954bd25c.js} +1 -1
- package/lib/browser/get-block-properties.f75a4388.cjs +1 -0
- package/lib/browser/index.30ba40a5.cjs +166 -0
- package/lib/browser/{index.5f9ed15d.js → index.5e2629c5.js} +1628 -1013
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.js +1 -1
- package/lib/browser/{repeated-block.ea7178d4.js → repeated-block.83b91a53.js} +2 -2
- package/lib/browser/{repeated-block.4b8c3ea0.cjs → repeated-block.ff7c6ac4.cjs} +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/edge/{block-styles.c430e392.js → block-styles.445302ca.js} +1 -1
- package/lib/edge/{block-styles.ae042612.cjs → block-styles.8957f0b3.cjs} +1 -1
- package/lib/edge/{block-wrapper.f04e7d06.js → block-wrapper.c973027d.js} +3 -3
- package/lib/edge/{block-wrapper.53b24038.cjs → block-wrapper.e5bbd06c.cjs} +1 -1
- package/lib/edge/blocks/form/form/component-info.d.ts +2 -0
- package/lib/edge/blocks/form/form/form.vue.d.ts +112 -0
- package/lib/edge/blocks/form/input/component-info.d.ts +2 -0
- package/lib/edge/blocks/form/input/input.vue.d.ts +43 -0
- package/lib/edge/blocks/form/select/component-info.d.ts +2 -0
- package/lib/edge/blocks/form/select/select.vue.d.ts +38 -0
- package/lib/edge/blocks/form/submit-button/component-info.d.ts +2 -0
- package/lib/edge/blocks/form/submit-button/submit-button.vue.d.ts +21 -0
- package/lib/edge/blocks/slot/slot.vue.d.ts +6 -6
- package/lib/edge/{component-ref.ebab0bd9.js → component-ref.297cbfe7.js} +2 -2
- package/lib/edge/{component-ref.62a7f1bd.cjs → component-ref.c47dd754.cjs} +1 -1
- package/lib/edge/constants/extra-components.d.ts +7 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/get-env.d.ts +2 -0
- package/lib/edge/functions/get.d.ts +1 -0
- package/lib/{node/get-block-properties.5a8121c0.js → edge/get-block-properties.4ea261a1.js} +1 -1
- package/lib/{node/get-block-properties.310a39f2.cjs → edge/get-block-properties.8ae4a0af.cjs} +1 -1
- package/lib/edge/index.8f395d9b.cjs +186 -0
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/{index.ae2d13a8.js → index.f5711364.js} +2300 -1685
- package/lib/edge/index.js +1 -1
- package/lib/edge/{repeated-block.391f9aec.cjs → repeated-block.afb8bacc.cjs} +1 -1
- package/lib/edge/{repeated-block.8c46a7c6.js → repeated-block.bb60007b.js} +2 -2
- package/lib/edge/style.css +1 -1
- package/lib/node/{block-styles.5c506171.js → block-styles.bc53b639.js} +1 -1
- package/lib/node/{block-styles.b0758e84.cjs → block-styles.f0d350eb.cjs} +1 -1
- package/lib/node/{block-wrapper.779562b4.js → block-wrapper.745530a0.js} +3 -3
- package/lib/node/{block-wrapper.4b4b32dd.cjs → block-wrapper.a0037a74.cjs} +1 -1
- package/lib/node/blocks/form/form/component-info.d.ts +2 -0
- package/lib/node/blocks/form/form/form.vue.d.ts +112 -0
- package/lib/node/blocks/form/input/component-info.d.ts +2 -0
- package/lib/node/blocks/form/input/input.vue.d.ts +43 -0
- package/lib/node/blocks/form/select/component-info.d.ts +2 -0
- package/lib/node/blocks/form/select/select.vue.d.ts +38 -0
- package/lib/node/blocks/form/submit-button/component-info.d.ts +2 -0
- package/lib/node/blocks/form/submit-button/submit-button.vue.d.ts +21 -0
- package/lib/node/blocks/slot/slot.vue.d.ts +6 -6
- package/lib/node/{component-ref.471ae470.cjs → component-ref.3f3377ee.cjs} +1 -1
- package/lib/node/{component-ref.616a1d7e.js → component-ref.50b4a2f9.js} +2 -2
- package/lib/node/constants/extra-components.d.ts +7 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/get-env.d.ts +2 -0
- package/lib/node/functions/get.d.ts +1 -0
- package/lib/{edge/get-block-properties.ef38da5e.cjs → node/get-block-properties.414a1d7e.cjs} +1 -1
- package/lib/{edge/get-block-properties.3eea9a11.js → node/get-block-properties.9d97d213.js} +1 -1
- package/lib/node/{index.f804c64d.js → index.2fe76754.js} +1001 -387
- package/lib/node/{index.9cc8fd23.cjs → index.9ac19b66.cjs} +8 -7
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.js +1 -1
- package/lib/node/{repeated-block.4fe417ba.js → repeated-block.17f75fe4.js} +2 -2
- package/lib/node/{repeated-block.fc61b1ce.cjs → repeated-block.e79fb518.cjs} +1 -1
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
- package/lib/browser/blocks/form/component-info.d.ts +0 -2
- package/lib/browser/blocks/input/component-info.d.ts +0 -2
- package/lib/browser/blocks/select/component-info.d.ts +0 -2
- package/lib/browser/blocks/submit-button/component-info.d.ts +0 -2
- package/lib/browser/get-block-properties.75a4033c.cjs +0 -1
- package/lib/browser/index.ea2f8191.cjs +0 -165
- package/lib/edge/blocks/form/component-info.d.ts +0 -2
- package/lib/edge/blocks/input/component-info.d.ts +0 -2
- package/lib/edge/blocks/select/component-info.d.ts +0 -2
- package/lib/edge/blocks/submit-button/component-info.d.ts +0 -2
- package/lib/edge/index.6a49244b.cjs +0 -185
- package/lib/node/blocks/form/component-info.d.ts +0 -2
- package/lib/node/blocks/input/component-info.d.ts +0 -2
- package/lib/node/blocks/select/component-info.d.ts +0 -2
- package/lib/node/blocks/submit-button/component-info.d.ts +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
var y=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),e=require("./index.
|
|
1
|
+
var y=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),e=require("./index.30ba40a5.cjs"),h=o.defineComponent({name:"block-styles",components:{InlinedStyles:e.InlinedStyles},props:["block","context"],data(){return{TARGET:e.TARGET}},computed:{canShowBlock(){const t=e.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0});return e.checkIsDefined(t.hide)?!t.hide:e.checkIsDefined(t.show)?t.show:!0},css(){var d;const t=e.getProcessedBlock({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context,shouldEvaluateBindings:!0}),s=t.responsiveStyles,n=this.context.content,r=e.getSizesForBreakpoints(((d=n==null?void 0:n.meta)==null?void 0:d.breakpoints)||{}),a=s==null?void 0:s.large,i=s==null?void 0:s.medium,c=s==null?void 0:s.small,l=t.id;if(!l)return"";const u=a?e.createCssClass({className:l,styles:a}):"",S=i?e.createCssClass({className:l,styles:i,mediaQuery:e.getMaxWidthQueryForSize("medium",r)}):"",m=c?e.createCssClass({className:l,styles:c,mediaQuery:e.getMaxWidthQueryForSize("small",r)}):"";return[u,S,m].join(" ")}}});function k(t,s,n,r,a,i){const c=o.resolveComponent("inlined-styles");return t.TARGET!=="reactNative"&&t.css&&t.canShowBlock?(o.openBlock(),o.createBlock(c,{key:0,styles:t.css},null,8,["styles"])):o.createCommentVNode("v-if",!0)}const p=e._export_sfc(h,[["render",k],["__file","/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/components/block-styles.vue"]]);exports.default=p;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
import { defineComponent as k, resolveComponent as y, openBlock as f, createBlock as x, createCommentVNode as b } from "vue";
|
|
3
|
-
import { I as B, T as g, g as d, c as u, a as _, b as r, d as m, _ as v } from "./index.
|
|
3
|
+
import { I as B, T as g, g as d, c as u, a as _, b as r, d as m, _ as v } from "./index.5e2629c5.js";
|
|
4
4
|
const C = k({
|
|
5
5
|
name: "block-styles",
|
|
6
6
|
components: { InlinedStyles: B },
|
|
@@ -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.f75a4388.cjs"),n=require("./index.30ba40a5.cjs"),c=()=>Promise.resolve().then(()=>require("./index.30ba40a5.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,u,m){const r=t.resolveComponent("dynamic-renderer");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],["__file","/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/components/block-wrapper.vue"]]);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 p, renderSlot as i } from "vue";
|
|
3
|
-
import { g as s, a as l } from "./get-block-properties.
|
|
4
|
-
import { _ as m } from "./index.
|
|
5
|
-
const d = () => import("./index.
|
|
3
|
+
import { g as s, a as l } from "./get-block-properties.954bd25c.js";
|
|
4
|
+
import { _ as m } from "./index.5e2629c5.js";
|
|
5
|
+
const d = () => import("./index.5e2629c5.js").then((e) => e.J).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
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import type { BuilderBlock } from "../../../types/builder-block.js";
|
|
2
|
+
import type { BuilderComponentsProp, BuilderLinkComponentProp, PropsWithBuilderData } from "../../../types/builder-props.js";
|
|
3
|
+
import type { Dictionary } from "../../../types/typescript.js";
|
|
4
|
+
import { filterAttrs } from "../../helpers.js";
|
|
5
|
+
/**
|
|
6
|
+
* This import is used by the Svelte SDK. Do not remove.
|
|
7
|
+
*/
|
|
8
|
+
export type FormProps = PropsWithBuilderData<BuilderComponentsProp & BuilderLinkComponentProp & {
|
|
9
|
+
attributes?: any;
|
|
10
|
+
name?: string;
|
|
11
|
+
action?: string;
|
|
12
|
+
validate?: boolean;
|
|
13
|
+
method?: string;
|
|
14
|
+
sendSubmissionsTo?: string;
|
|
15
|
+
sendSubmissionsToEmail?: string;
|
|
16
|
+
sendWithJs?: boolean;
|
|
17
|
+
contentType?: string;
|
|
18
|
+
customHeaders?: {
|
|
19
|
+
[key: string]: string;
|
|
20
|
+
};
|
|
21
|
+
successUrl?: string;
|
|
22
|
+
previewState?: FormState;
|
|
23
|
+
successMessage?: BuilderBlock[];
|
|
24
|
+
errorMessage?: BuilderBlock[];
|
|
25
|
+
sendingMessage?: BuilderBlock[];
|
|
26
|
+
resetFormOnSubmit?: boolean;
|
|
27
|
+
errorMessagePath?: string;
|
|
28
|
+
}>;
|
|
29
|
+
/**
|
|
30
|
+
* This import is used by the Svelte SDK. Do not remove.
|
|
31
|
+
*/
|
|
32
|
+
export type FormState = "unsubmitted" | "sending" | "success" | "error";
|
|
33
|
+
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
34
|
+
name?: any;
|
|
35
|
+
builderContext?: any;
|
|
36
|
+
attributes?: any;
|
|
37
|
+
builderLinkComponent?: any;
|
|
38
|
+
builderBlock?: any;
|
|
39
|
+
builderComponents?: any;
|
|
40
|
+
js?: any;
|
|
41
|
+
previewState?: any;
|
|
42
|
+
sendWithJs?: any;
|
|
43
|
+
sendSubmissionsTo?: any;
|
|
44
|
+
action?: any;
|
|
45
|
+
customHeaders?: any;
|
|
46
|
+
contentType?: any;
|
|
47
|
+
sendSubmissionsToEmail?: any;
|
|
48
|
+
method?: any;
|
|
49
|
+
errorMessagePath?: any;
|
|
50
|
+
resetFormOnSubmit?: any;
|
|
51
|
+
successUrl?: any;
|
|
52
|
+
validate?: any;
|
|
53
|
+
errorMessage?: any;
|
|
54
|
+
sendingMessage?: any;
|
|
55
|
+
successMessage?: any;
|
|
56
|
+
}>, unknown, {
|
|
57
|
+
formState: string;
|
|
58
|
+
responseData: null;
|
|
59
|
+
formErrorMessage: string;
|
|
60
|
+
filterAttrs: typeof filterAttrs;
|
|
61
|
+
}, {}, {
|
|
62
|
+
mergeNewRootState(newData: Dictionary<any>): void;
|
|
63
|
+
submissionState(): any;
|
|
64
|
+
onSubmit(event: any): void;
|
|
65
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
66
|
+
name?: any;
|
|
67
|
+
builderContext?: any;
|
|
68
|
+
attributes?: any;
|
|
69
|
+
builderLinkComponent?: any;
|
|
70
|
+
builderBlock?: any;
|
|
71
|
+
builderComponents?: any;
|
|
72
|
+
js?: any;
|
|
73
|
+
previewState?: any;
|
|
74
|
+
sendWithJs?: any;
|
|
75
|
+
sendSubmissionsTo?: any;
|
|
76
|
+
action?: any;
|
|
77
|
+
customHeaders?: any;
|
|
78
|
+
contentType?: any;
|
|
79
|
+
sendSubmissionsToEmail?: any;
|
|
80
|
+
method?: any;
|
|
81
|
+
errorMessagePath?: any;
|
|
82
|
+
resetFormOnSubmit?: any;
|
|
83
|
+
successUrl?: any;
|
|
84
|
+
validate?: any;
|
|
85
|
+
errorMessage?: any;
|
|
86
|
+
sendingMessage?: any;
|
|
87
|
+
successMessage?: any;
|
|
88
|
+
}>>>, {
|
|
89
|
+
readonly name?: any;
|
|
90
|
+
readonly builderContext?: any;
|
|
91
|
+
readonly attributes?: any;
|
|
92
|
+
readonly builderLinkComponent?: any;
|
|
93
|
+
readonly builderBlock?: any;
|
|
94
|
+
readonly builderComponents?: any;
|
|
95
|
+
readonly js?: any;
|
|
96
|
+
readonly previewState?: any;
|
|
97
|
+
readonly sendWithJs?: any;
|
|
98
|
+
readonly sendSubmissionsTo?: any;
|
|
99
|
+
readonly action?: any;
|
|
100
|
+
readonly customHeaders?: any;
|
|
101
|
+
readonly contentType?: any;
|
|
102
|
+
readonly sendSubmissionsToEmail?: any;
|
|
103
|
+
readonly method?: any;
|
|
104
|
+
readonly errorMessagePath?: any;
|
|
105
|
+
readonly resetFormOnSubmit?: any;
|
|
106
|
+
readonly successUrl?: any;
|
|
107
|
+
readonly validate?: any;
|
|
108
|
+
readonly errorMessage?: any;
|
|
109
|
+
readonly sendingMessage?: any;
|
|
110
|
+
readonly successMessage?: any;
|
|
111
|
+
}, {}>;
|
|
112
|
+
export default _default;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { isEditing } from "../../../functions/is-editing.js";
|
|
2
|
+
import { filterAttrs } from "../../helpers.js";
|
|
3
|
+
/**
|
|
4
|
+
* This import is used by the Svelte SDK. Do not remove.
|
|
5
|
+
*/
|
|
6
|
+
export interface FormInputProps {
|
|
7
|
+
type?: string;
|
|
8
|
+
attributes?: any;
|
|
9
|
+
name?: string;
|
|
10
|
+
value?: string;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
defaultValue?: string;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
16
|
+
name?: any;
|
|
17
|
+
attributes?: any;
|
|
18
|
+
value?: any;
|
|
19
|
+
type?: any;
|
|
20
|
+
defaultValue?: any;
|
|
21
|
+
placeholder?: any;
|
|
22
|
+
required?: any;
|
|
23
|
+
}>, unknown, {
|
|
24
|
+
isEditing: typeof isEditing;
|
|
25
|
+
filterAttrs: typeof filterAttrs;
|
|
26
|
+
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
27
|
+
name?: any;
|
|
28
|
+
attributes?: any;
|
|
29
|
+
value?: any;
|
|
30
|
+
type?: any;
|
|
31
|
+
defaultValue?: any;
|
|
32
|
+
placeholder?: any;
|
|
33
|
+
required?: any;
|
|
34
|
+
}>>>, {
|
|
35
|
+
readonly name?: any;
|
|
36
|
+
readonly attributes?: any;
|
|
37
|
+
readonly value?: any;
|
|
38
|
+
readonly type?: any;
|
|
39
|
+
readonly defaultValue?: any;
|
|
40
|
+
readonly placeholder?: any;
|
|
41
|
+
readonly required?: any;
|
|
42
|
+
}, {}>;
|
|
43
|
+
export default _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { isEditing } from "../../../functions/is-editing.js";
|
|
2
|
+
import { filterAttrs } from "../../helpers.js";
|
|
3
|
+
/**
|
|
4
|
+
* This import is used by the Svelte SDK. Do not remove.
|
|
5
|
+
*/
|
|
6
|
+
export interface FormSelectProps {
|
|
7
|
+
options?: {
|
|
8
|
+
name?: string;
|
|
9
|
+
value: string;
|
|
10
|
+
}[];
|
|
11
|
+
attributes?: any;
|
|
12
|
+
name?: string;
|
|
13
|
+
value?: string;
|
|
14
|
+
defaultValue?: string;
|
|
15
|
+
}
|
|
16
|
+
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
17
|
+
name?: any;
|
|
18
|
+
attributes?: any;
|
|
19
|
+
value?: any;
|
|
20
|
+
defaultValue?: any;
|
|
21
|
+
options?: any;
|
|
22
|
+
}>, unknown, {
|
|
23
|
+
isEditing: typeof isEditing;
|
|
24
|
+
filterAttrs: typeof filterAttrs;
|
|
25
|
+
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
26
|
+
name?: any;
|
|
27
|
+
attributes?: any;
|
|
28
|
+
value?: any;
|
|
29
|
+
defaultValue?: any;
|
|
30
|
+
options?: any;
|
|
31
|
+
}>>>, {
|
|
32
|
+
readonly name?: any;
|
|
33
|
+
readonly attributes?: any;
|
|
34
|
+
readonly value?: any;
|
|
35
|
+
readonly defaultValue?: any;
|
|
36
|
+
readonly options?: any;
|
|
37
|
+
}, {}>;
|
|
38
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { filterAttrs } from "../../helpers.js";
|
|
2
|
+
/**
|
|
3
|
+
* This import is used by the Svelte SDK. Do not remove.
|
|
4
|
+
*/
|
|
5
|
+
export interface ButtonProps {
|
|
6
|
+
attributes?: any;
|
|
7
|
+
text?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
10
|
+
text?: any;
|
|
11
|
+
attributes?: any;
|
|
12
|
+
}>, unknown, {
|
|
13
|
+
filterAttrs: typeof filterAttrs;
|
|
14
|
+
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
15
|
+
text?: any;
|
|
16
|
+
attributes?: any;
|
|
17
|
+
}>>>, {
|
|
18
|
+
readonly text?: any;
|
|
19
|
+
readonly attributes?: any;
|
|
20
|
+
}, {}>;
|
|
21
|
+
export default _default;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
export interface DropzoneProps {
|
|
1
|
+
import type { PropsWithBuilderData } from "../../types/builder-props.js";
|
|
2
|
+
export type DropzoneProps = PropsWithBuilderData<{
|
|
4
3
|
name: string;
|
|
5
|
-
builderBlock: BuilderBlock;
|
|
6
|
-
builderContext: BuilderContextInterface;
|
|
7
4
|
attributes: any;
|
|
8
|
-
}
|
|
5
|
+
}>;
|
|
9
6
|
declare const _default: import("vue").DefineComponent<Readonly<{
|
|
10
7
|
name?: any;
|
|
11
8
|
builderContext?: any;
|
|
9
|
+
js?: any;
|
|
12
10
|
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
13
11
|
name?: any;
|
|
14
12
|
builderContext?: any;
|
|
13
|
+
js?: any;
|
|
15
14
|
}>>>, {
|
|
16
15
|
readonly name?: any;
|
|
17
16
|
readonly builderContext?: any;
|
|
17
|
+
readonly js?: any;
|
|
18
18
|
}, {}>;
|
|
19
19
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
import { defineComponent as m, openBlock as r, createBlock as i, resolveDynamicComponent as k, mergeProps as u, withCtx as d, renderSlot as v, resolveComponent as P, normalizeProps as g, createElementBlock as B, Fragment as $, renderList as h, createCommentVNode as w } from "vue";
|
|
3
|
-
import { _ as f, B as S, w as W } from "./index.
|
|
4
|
-
import { g as R, a as b } from "./get-block-properties.
|
|
3
|
+
import { _ as f, B as S, w as W } from "./index.5e2629c5.js";
|
|
4
|
+
import { g as R, a as b } from "./get-block-properties.954bd25c.js";
|
|
5
5
|
const I = m({
|
|
6
6
|
name: "interactive-element",
|
|
7
7
|
props: ["wrapperProps", "includeBlockProps", "block", "context", "Wrapper"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var C=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),c=require("./index.
|
|
1
|
+
var C=require("./style.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),c=require("./index.30ba40a5.cjs"),a=require("./get-block-properties.f75a4388.cjs"),u=o.defineComponent({name:"interactive-element",props:["wrapperProps","includeBlockProps","block","context","Wrapper"],data(){return{getBlockActions:a.getBlockActions,getBlockProperties:a.getBlockProperties}}});function d(e,t,p,s,n,l){return o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.Wrapper),o.mergeProps({attributes:e.includeBlockProps?{...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=c._export_sfc(u,[["render",d],["__file","/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/components/interactive-element.vue"]]),b=({componentOptions:e,builderBlock:t,context:p,componentRef:s,includeBlockProps:n,isInteractive:l,contextValue:i})=>{const r={...e,...n?{attributes:a.getBlockProperties({block:t,context:i})}:{}};return l?{Wrapper:s,block:t,context:p,wrapperProps:e,includeBlockProps:n}:r},f=o.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 B(e,t,p,s,n,l){const i=o.resolveComponent("block");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,linkComponent:e.linkComponent,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}))),{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.blockChildren,(r,k)=>(o.openBlock(),o.createBlock(i,{key:r.id,block:r,context:e.context,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["block","context","registeredComponents","linkComponent"]))),128))]),_:1},16)):o.createCommentVNode("v-if",!0)}const g=c._export_sfc(f,[["render",B],["__file","/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/components/component-ref/component-ref.vue"]]);exports.default=g;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* These are in a separate file because React Native does not support them (yet).
|
|
3
|
+
* Having them in a separate file allows us to override it to be empty in the
|
|
4
|
+
* React Native SDK.
|
|
5
|
+
*/
|
|
6
|
+
import type { RegisteredComponent } from '../context/types.js';
|
|
7
|
+
export declare const getExtraComponents: () => RegisteredComponent[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.13.
|
|
1
|
+
export declare const SDK_VERSION = "0.13.2";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const get: (obj: any, path: string, defaultValue?: any) => any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var v=require("./style.css");const a=require("./index.30ba40a5.cjs"),i=e=>`v-on:${e.toLowerCase()}`,l=(e,t)=>r=>a.evaluate({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1});function u(e){var o;const t={},r=(o=e.block.actions)!=null?o:{};for(const s in r){if(!r.hasOwnProperty(s))continue;const c=r[s];let n=i(s);if(e.stripPrefix)switch(a.TARGET){case"vue":n=n.replace("v-on:","");break;case"svelte":n=n.replace("on:","");break}t[n]=l(c,e)}return t}function p({properties:e}){return e}const f=e=>({href:e.href});function d({block:e,context:t}){var o;const r={...f(e),...e.properties,"builder-id":e.id,style:a.getStyle({block:e,context:t}),[a.getClassPropName()]:[e.id,"builder-block",e.class,(o=e.properties)==null?void 0:o.class].filter(Boolean).join(" ")};return p({properties:r,context:t,block:e})}exports.getBlockActions=u;exports.getBlockProperties=d;
|