@builder.io/sdk-vue 2.0.14-6 → 2.0.15
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/{edge/block-styles-zRPUnWLf.js → browser/block-styles-3kNIHbfo.js} +6 -6
- package/lib/browser/block-styles-mYBwPtv0.cjs +1 -0
- package/lib/browser/{block-wrapper-hPYvxseU.js → block-wrapper-N1PMQPGA.js} +3 -3
- package/lib/browser/{block-wrapper-l_mdj42t.cjs → block-wrapper-mGepkLsD.cjs} +1 -1
- package/lib/browser/{component-ref-dPnPtrON.cjs → component-ref-D4a8WUvU.cjs} +1 -1
- package/lib/browser/{component-ref-JlpkOrad.js → component-ref-eSpEv_vu.js} +2 -2
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/{edge/get-block-properties-PLBPSz3W.js → browser/get-block-properties--gxTb6u9.js} +13 -13
- package/lib/browser/get-block-properties-1Vr9AX-f.cjs +1 -0
- package/lib/browser/{index-ZL8QUFiN.js → index-dh7iM10N.js} +552 -546
- package/lib/browser/index-vQfvmzgX.cjs +166 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-8EN4xN25.js → repeated-block-CnX7KaV3.js} +2 -2
- package/lib/browser/{repeated-block-uV-zuqkw.cjs → repeated-block-zZGzC5Ez.cjs} +1 -1
- package/lib/browser/server-index.d.ts +1 -0
- package/lib/{node/block-styles-gLB-jSXN.js → edge/block-styles-IJpbU1il.js} +12 -13
- package/lib/edge/block-styles-c-t5DB1d.cjs +1 -0
- package/lib/{node/block-wrapper-frfIIST_.js → edge/block-wrapper-UEsTg8bU.js} +3 -3
- package/lib/edge/{block-wrapper-9IWz2vxg.cjs → block-wrapper-cbxxzz21.cjs} +1 -1
- package/lib/{node/component-ref-IbarjSnq.js → edge/component-ref-2h-cUV3Z.js} +2 -2
- package/lib/{node/component-ref-ZlBAzimq.cjs → edge/component-ref-pqmk5wUc.cjs} +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/{node/get-block-properties-QIsIgfnu.js → edge/get-block-properties-S3qjKi7G.js} +16 -17
- package/lib/edge/get-block-properties-egDFLKDW.cjs +1 -0
- package/lib/edge/{index-TGe9_80q.js → index-BN18YEfB.js} +843 -837
- package/lib/edge/{index-5-C3UhJz.cjs → index-NQs12e6I.cjs} +31 -31
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{repeated-block-_9Gs2AOY.js → repeated-block-3py1q2sc.js} +2 -2
- package/lib/{node/repeated-block-ZpVu-xdw.cjs → edge/repeated-block-IMmb2AE9.cjs} +1 -1
- package/lib/edge/server-index.d.ts +1 -0
- package/lib/{browser/block-styles-nWGppwAf.js → node/block-styles-E0MOJgK4.js} +12 -14
- package/lib/node/block-styles-VaKrzGA5.cjs +1 -0
- package/lib/node/{block-wrapper-cCYzfiv5.cjs → block-wrapper-TvqPY7Mt.cjs} +1 -1
- package/lib/{edge/block-wrapper-x7ERONr-.js → node/block-wrapper-cHgl5RuV.js} +5 -5
- package/lib/{edge/component-ref-eV0RBAzs.cjs → node/component-ref-fYSFTWDE.cjs} +1 -1
- package/lib/{edge/component-ref-JRfa9Vwo.js → node/component-ref-gqNpKniv.js} +2 -2
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/{browser/get-block-properties-HzVZCpxa.js → node/get-block-properties-AZMTucap.js} +18 -20
- package/lib/node/get-block-properties-IntKgx2x.cjs +1 -0
- package/lib/node/index-ozkdxROi.cjs +213 -0
- package/lib/node/{index-BugETl2c.js → index-xSGjb-sL.js} +1123 -907
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +16 -17
- package/lib/node/{repeated-block-Z-_chLeZ.js → repeated-block-WqJu5DET.js} +2 -2
- package/lib/{edge/repeated-block-FB2jF4o_.cjs → node/repeated-block-wW6CINnA.cjs} +1 -1
- package/lib/node/server-index.d.ts +1 -0
- package/nuxt.js +0 -13
- package/package.json +2 -8
- package/lib/browser/block-styles-rt4v7rBl.cjs +0 -1
- package/lib/browser/get-block-properties-sInACBRh.cjs +0 -1
- package/lib/browser/index-MDNnQzZB.cjs +0 -166
- package/lib/browser/init.cjs +0 -8
- package/lib/browser/init.d.cts +0 -14
- package/lib/browser/init.d.mts +0 -14
- package/lib/browser/init.mjs +0 -65
- package/lib/browser/logger-0-1mARBa.cjs +0 -1
- package/lib/browser/logger-Hm2e1Xk_.js +0 -12
- package/lib/edge/block-styles-Ta3OQAmE.cjs +0 -1
- package/lib/edge/get-block-properties-Dy3XF05J.cjs +0 -1
- package/lib/edge/init.cjs +0 -8
- package/lib/edge/init.d.cts +0 -14
- package/lib/edge/init.d.mts +0 -14
- package/lib/edge/init.mjs +0 -64
- package/lib/edge/logger-I8FmJD_1.js +0 -11
- package/lib/edge/logger-U9-0vDJK.cjs +0 -1
- package/lib/node/block-styles-u7KGnyuc.cjs +0 -1
- package/lib/node/get-block-properties-2Q2lr9bu.cjs +0 -1
- package/lib/node/index-s5vEnK-M.cjs +0 -166
- package/lib/node/init.cjs +0 -1
- package/lib/node/init.d.cts +0 -14
- package/lib/node/init.d.mts +0 -14
- package/lib/node/init.mjs +0 -11
- package/lib/node/node-runtime-0rF8vJwU.js +0 -233
- package/lib/node/node-runtime-Bqb5TnyM.cjs +0 -48
package/lib/browser/init.d.mts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { IsolateOptions } from 'isolated-vm';
|
|
2
|
-
/**
|
|
3
|
-
* This function initializes the SDK on a Node server. It handles importing the
|
|
4
|
-
* `isolated-vm` package which is needed for dynamic bindings.
|
|
5
|
-
*
|
|
6
|
-
* NOTE: this function cannot be called on the client. You must call this function
|
|
7
|
-
* from a server-only location, such as:
|
|
8
|
-
* - The NextJS Pages router's `_document.tsx`
|
|
9
|
-
* - Your Remix route's `loader`
|
|
10
|
-
* - Qwik's `entry.ssr.tsx` file
|
|
11
|
-
*/
|
|
12
|
-
export declare const initializeNodeRuntime: (args?: {
|
|
13
|
-
ivmIsolateOptions?: IsolateOptions;
|
|
14
|
-
}) => void;
|
package/lib/browser/init.mjs
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import "./style.css";
|
|
2
|
-
import ivm from "isolated-vm";
|
|
3
|
-
import { T as TARGET, l as logger, M as MSG_PREFIX } from "./logger-Hm2e1Xk_.js";
|
|
4
|
-
import { createRequire } from "node:module";
|
|
5
|
-
const SDK_NAME_FOR_TARGET = (() => {
|
|
6
|
-
switch (TARGET) {
|
|
7
|
-
case "rsc":
|
|
8
|
-
return "react-nextjs";
|
|
9
|
-
case "reactNative":
|
|
10
|
-
return "react-native";
|
|
11
|
-
default:
|
|
12
|
-
return TARGET;
|
|
13
|
-
}
|
|
14
|
-
})(), SDK_NAME = `@builder.io/sdk-${SDK_NAME_FOR_TARGET}`, noop = () => {
|
|
15
|
-
};
|
|
16
|
-
let safeDynamicRequire = noop;
|
|
17
|
-
try {
|
|
18
|
-
safeDynamicRequire = createRequire(import.meta.url);
|
|
19
|
-
} catch (error) {
|
|
20
|
-
try {
|
|
21
|
-
safeDynamicRequire = eval("require");
|
|
22
|
-
} catch (t) {
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
const INJECTED_IVM_GLOBAL = "BUILDER_IVM";
|
|
26
|
-
let IVM_INSTANCE = null;
|
|
27
|
-
const setIvm = (t, e = {}) => {
|
|
28
|
-
IVM_INSTANCE = t, setIsolateContext(e);
|
|
29
|
-
}, SHOULD_MENTION_INITIALIZE_SCRIPT = SDK_NAME === "@builder.io/sdk-react-nextjs" || SDK_NAME === "@builder.io/sdk-react" || SDK_NAME === "@builder.io/sdk-qwik", getIvm = () => {
|
|
30
|
-
try {
|
|
31
|
-
if (IVM_INSTANCE)
|
|
32
|
-
return IVM_INSTANCE;
|
|
33
|
-
const e = safeDynamicRequire("isolated-vm");
|
|
34
|
-
if (e)
|
|
35
|
-
return e;
|
|
36
|
-
} catch (e) {
|
|
37
|
-
logger.error("isolated-vm import error.", e);
|
|
38
|
-
}
|
|
39
|
-
const t = `${MSG_PREFIX}could not import \`isolated-vm\` module for safe script execution on a Node server.
|
|
40
|
-
|
|
41
|
-
SOLUTION: In a server-only execution path within your application, do one of the following:
|
|
42
|
-
|
|
43
|
-
${SHOULD_MENTION_INITIALIZE_SCRIPT ? `- import and call \`initializeNodeRuntime()\` from "${SDK_NAME}/node/init".` : ""}
|
|
44
|
-
- add the following import: \`await import('isolated-vm')\`.
|
|
45
|
-
|
|
46
|
-
For more information, visit https://builder.io/c/docs/integration-tips#enabling-data-bindings-in-node-environments`;
|
|
47
|
-
throw new Error(t);
|
|
48
|
-
};
|
|
49
|
-
function setIsolateContext(t = {
|
|
50
|
-
memoryLimit: 128
|
|
51
|
-
}) {
|
|
52
|
-
const e = getIvm(), i = new e.Isolate(t).createContextSync(), o = i.global;
|
|
53
|
-
return o.setSync("global", o.derefInto()), o.setSync("log", function(...r) {
|
|
54
|
-
console.log(...r);
|
|
55
|
-
}), o.setSync(INJECTED_IVM_GLOBAL, e), i;
|
|
56
|
-
}
|
|
57
|
-
const initializeNodeRuntime = (t) => {
|
|
58
|
-
const {
|
|
59
|
-
ivmIsolateOptions: e
|
|
60
|
-
} = t || {};
|
|
61
|
-
setIvm(ivm, e);
|
|
62
|
-
};
|
|
63
|
-
export {
|
|
64
|
-
initializeNodeRuntime
|
|
65
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var n=require("./style.css");const r="vue",e="[Builder.io]: ",l={log:(...o)=>console.log(e,...o),error:(...o)=>console.error(e,...o),warn:(...o)=>console.warn(e,...o),debug:(...o)=>console.debug(e,...o)};exports.MSG_PREFIX=e;exports.TARGET=r;exports.logger=l;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import "./style.css";
|
|
2
|
-
const s = "vue", e = "[Builder.io]: ", l = {
|
|
3
|
-
log: (...o) => console.log(e, ...o),
|
|
4
|
-
error: (...o) => console.error(e, ...o),
|
|
5
|
-
warn: (...o) => console.warn(e, ...o),
|
|
6
|
-
debug: (...o) => console.debug(e, ...o)
|
|
7
|
-
};
|
|
8
|
-
export {
|
|
9
|
-
e as M,
|
|
10
|
-
s as T,
|
|
11
|
-
l
|
|
12
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),s=require("./index-5-C3UhJz.cjs"),f=require("./logger-U9-0vDJK.cjs"),g=r.defineComponent({name:"block-styles",components:{InlinedStyles:s._sfc_main},props:["block","context"],data(){return{TARGET:f.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,l=this.context.content,a=s.getSizesForBreakpoints(((y=l==null?void 0:l.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,l,a,i,d){const c=r.resolveComponent("InlinedStyles");return e.TARGET!=="reactNative"&&e.css&&e.canShowBlock?(r.openBlock(),r.createBlock(c,{key:0,id:"builderio-block",styles:e.css,nonce:e.context.nonce},null,8,["styles","nonce"])):r.createCommentVNode("",!0)}const v=s._export_sfc(g,[["render",b]]);exports.default=v;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const c=require("./logger-U9-0vDJK.cjs"),a=require("./index-5-C3UhJz.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,enableCache:!0});function u(e){const t={},r=e.block.actions??{};for(const o in r){if(!r.hasOwnProperty(o))continue;const s=r[o];let n=i(o);if(e.stripPrefix)switch(c.TARGET){case"vue":n=n.replace("v-on:","");break;case"svelte":n=n.replace("on:","");break}t[n]=l(s,e)}return t}function f({properties:e}){return e}const p=e=>({href:e.href});function d({block:e,context:t}){var o;const r={...p(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 f({properties:r,context:t,block:e})}exports.getBlockActions=u;exports.getBlockProperties=d;
|
package/lib/edge/init.cjs
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ivm=require("isolated-vm"),logger=require("./logger-U9-0vDJK.cjs"),node_module=require("node:module");var _documentCurrentScript=typeof document<"u"?document.currentScript:null;const SDK_NAME_FOR_TARGET=(()=>{switch(logger.TARGET){case"rsc":return"react-nextjs";case"reactNative":return"react-native";default:return logger.TARGET}})(),SDK_NAME=`@builder.io/sdk-${SDK_NAME_FOR_TARGET}`,noop=()=>{};let safeDynamicRequire=noop;try{safeDynamicRequire=node_module.createRequire(typeof document>"u"?require("url").pathToFileURL(__filename).href:_documentCurrentScript&&_documentCurrentScript.src||new URL("init.cjs",document.baseURI).href)}catch(error){try{safeDynamicRequire=eval("require")}catch(t){}}const INJECTED_IVM_GLOBAL="BUILDER_IVM";let IVM_INSTANCE=null;const setIvm=(t,e={})=>{IVM_INSTANCE=t,setIsolateContext(e)},SHOULD_MENTION_INITIALIZE_SCRIPT=SDK_NAME==="@builder.io/sdk-react-nextjs"||SDK_NAME==="@builder.io/sdk-react"||SDK_NAME==="@builder.io/sdk-qwik",getIvm=()=>{try{if(IVM_INSTANCE)return IVM_INSTANCE;const e=safeDynamicRequire("isolated-vm");if(e)return e}catch(e){logger.logger.error("isolated-vm import error.",e)}const t=`${logger.MSG_PREFIX}could not import \`isolated-vm\` module for safe script execution on a Node server.
|
|
2
|
-
|
|
3
|
-
SOLUTION: In a server-only execution path within your application, do one of the following:
|
|
4
|
-
|
|
5
|
-
${SHOULD_MENTION_INITIALIZE_SCRIPT?`- import and call \`initializeNodeRuntime()\` from "${SDK_NAME}/node/init".`:""}
|
|
6
|
-
- add the following import: \`await import('isolated-vm')\`.
|
|
7
|
-
|
|
8
|
-
For more information, visit https://builder.io/c/docs/integration-tips#enabling-data-bindings-in-node-environments`;throw new Error(t)};function setIsolateContext(t={memoryLimit:128}){const e=getIvm(),r=new e.Isolate(t).createContextSync(),o=r.global;return o.setSync("global",o.derefInto()),o.setSync("log",function(...n){console.log(...n)}),o.setSync(INJECTED_IVM_GLOBAL,e),r}const initializeNodeRuntime=t=>{const{ivmIsolateOptions:e}=t||{};setIvm(ivm,e)};exports.initializeNodeRuntime=initializeNodeRuntime;
|
package/lib/edge/init.d.cts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { IsolateOptions } from 'isolated-vm';
|
|
2
|
-
/**
|
|
3
|
-
* This function initializes the SDK on a Node server. It handles importing the
|
|
4
|
-
* `isolated-vm` package which is needed for dynamic bindings.
|
|
5
|
-
*
|
|
6
|
-
* NOTE: this function cannot be called on the client. You must call this function
|
|
7
|
-
* from a server-only location, such as:
|
|
8
|
-
* - The NextJS Pages router's `_document.tsx`
|
|
9
|
-
* - Your Remix route's `loader`
|
|
10
|
-
* - Qwik's `entry.ssr.tsx` file
|
|
11
|
-
*/
|
|
12
|
-
export declare const initializeNodeRuntime: (args?: {
|
|
13
|
-
ivmIsolateOptions?: IsolateOptions;
|
|
14
|
-
}) => void;
|
package/lib/edge/init.d.mts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { IsolateOptions } from 'isolated-vm';
|
|
2
|
-
/**
|
|
3
|
-
* This function initializes the SDK on a Node server. It handles importing the
|
|
4
|
-
* `isolated-vm` package which is needed for dynamic bindings.
|
|
5
|
-
*
|
|
6
|
-
* NOTE: this function cannot be called on the client. You must call this function
|
|
7
|
-
* from a server-only location, such as:
|
|
8
|
-
* - The NextJS Pages router's `_document.tsx`
|
|
9
|
-
* - Your Remix route's `loader`
|
|
10
|
-
* - Qwik's `entry.ssr.tsx` file
|
|
11
|
-
*/
|
|
12
|
-
export declare const initializeNodeRuntime: (args?: {
|
|
13
|
-
ivmIsolateOptions?: IsolateOptions;
|
|
14
|
-
}) => void;
|
package/lib/edge/init.mjs
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import ivm from "isolated-vm";
|
|
2
|
-
import { T as TARGET, l as logger, M as MSG_PREFIX } from "./logger-I8FmJD_1.js";
|
|
3
|
-
import { createRequire } from "node:module";
|
|
4
|
-
const SDK_NAME_FOR_TARGET = (() => {
|
|
5
|
-
switch (TARGET) {
|
|
6
|
-
case "rsc":
|
|
7
|
-
return "react-nextjs";
|
|
8
|
-
case "reactNative":
|
|
9
|
-
return "react-native";
|
|
10
|
-
default:
|
|
11
|
-
return TARGET;
|
|
12
|
-
}
|
|
13
|
-
})(), SDK_NAME = `@builder.io/sdk-${SDK_NAME_FOR_TARGET}`, noop = () => {
|
|
14
|
-
};
|
|
15
|
-
let safeDynamicRequire = noop;
|
|
16
|
-
try {
|
|
17
|
-
safeDynamicRequire = createRequire(import.meta.url);
|
|
18
|
-
} catch (error) {
|
|
19
|
-
try {
|
|
20
|
-
safeDynamicRequire = eval("require");
|
|
21
|
-
} catch (t) {
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
const INJECTED_IVM_GLOBAL = "BUILDER_IVM";
|
|
25
|
-
let IVM_INSTANCE = null;
|
|
26
|
-
const setIvm = (t, e = {}) => {
|
|
27
|
-
IVM_INSTANCE = t, setIsolateContext(e);
|
|
28
|
-
}, SHOULD_MENTION_INITIALIZE_SCRIPT = SDK_NAME === "@builder.io/sdk-react-nextjs" || SDK_NAME === "@builder.io/sdk-react" || SDK_NAME === "@builder.io/sdk-qwik", getIvm = () => {
|
|
29
|
-
try {
|
|
30
|
-
if (IVM_INSTANCE)
|
|
31
|
-
return IVM_INSTANCE;
|
|
32
|
-
const e = safeDynamicRequire("isolated-vm");
|
|
33
|
-
if (e)
|
|
34
|
-
return e;
|
|
35
|
-
} catch (e) {
|
|
36
|
-
logger.error("isolated-vm import error.", e);
|
|
37
|
-
}
|
|
38
|
-
const t = `${MSG_PREFIX}could not import \`isolated-vm\` module for safe script execution on a Node server.
|
|
39
|
-
|
|
40
|
-
SOLUTION: In a server-only execution path within your application, do one of the following:
|
|
41
|
-
|
|
42
|
-
${SHOULD_MENTION_INITIALIZE_SCRIPT ? `- import and call \`initializeNodeRuntime()\` from "${SDK_NAME}/node/init".` : ""}
|
|
43
|
-
- add the following import: \`await import('isolated-vm')\`.
|
|
44
|
-
|
|
45
|
-
For more information, visit https://builder.io/c/docs/integration-tips#enabling-data-bindings-in-node-environments`;
|
|
46
|
-
throw new Error(t);
|
|
47
|
-
};
|
|
48
|
-
function setIsolateContext(t = {
|
|
49
|
-
memoryLimit: 128
|
|
50
|
-
}) {
|
|
51
|
-
const e = getIvm(), i = new e.Isolate(t).createContextSync(), o = i.global;
|
|
52
|
-
return o.setSync("global", o.derefInto()), o.setSync("log", function(...r) {
|
|
53
|
-
console.log(...r);
|
|
54
|
-
}), o.setSync(INJECTED_IVM_GLOBAL, e), i;
|
|
55
|
-
}
|
|
56
|
-
const initializeNodeRuntime = (t) => {
|
|
57
|
-
const {
|
|
58
|
-
ivmIsolateOptions: e
|
|
59
|
-
} = t || {};
|
|
60
|
-
setIvm(ivm, e);
|
|
61
|
-
};
|
|
62
|
-
export {
|
|
63
|
-
initializeNodeRuntime
|
|
64
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
const r = "vue", e = "[Builder.io]: ", s = {
|
|
2
|
-
log: (...o) => console.log(e, ...o),
|
|
3
|
-
error: (...o) => console.error(e, ...o),
|
|
4
|
-
warn: (...o) => console.warn(e, ...o),
|
|
5
|
-
debug: (...o) => console.debug(e, ...o)
|
|
6
|
-
};
|
|
7
|
-
export {
|
|
8
|
-
e as M,
|
|
9
|
-
r as T,
|
|
10
|
-
s as l
|
|
11
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const r="vue",e="[Builder.io]: ",l={log:(...o)=>console.log(e,...o),error:(...o)=>console.error(e,...o),warn:(...o)=>console.warn(e,...o),debug:(...o)=>console.debug(e,...o)};exports.MSG_PREFIX=e;exports.TARGET=r;exports.logger=l;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),s=require("./index-s5vEnK-M.cjs"),f=require("./node-runtime-Bqb5TnyM.cjs"),b=r.defineComponent({name:"block-styles",components:{InlinedStyles:s._sfc_main},props:["block","context"],data(){return{TARGET:f.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,c=this.context.content,a=s.getSizesForBreakpoints(((y=c==null?void 0:c.meta)==null?void 0:y.breakpoints)||{}),i=t==null?void 0:t.large,d=t==null?void 0:t.medium,l=t==null?void 0:t.small,o=e.id;if(!o)return"";const S=i?s.createCssClass({className:o,styles:i}):"",k=d?s.createCssClass({className:o,styles:d,mediaQuery:s.getMaxWidthQueryForSize("medium",a)}):"",C=l?s.createCssClass({className:o,styles:l,mediaQuery:s.getMaxWidthQueryForSize("small",a)}):"",n=e.animations&&e.animations.find(m=>m.trigger==="hover");let u="";if(n){const m=((h=(p=n.steps)==null?void 0:p[1])==null?void 0:h.styles)||{};u=s.createCssClass({className:`${o}:hover`,styles:{...m,transition:`all ${n.duration}s ${s.camelToKebabCase(n.easing)}`,transitionDelay:n.delay?`${n.delay}s`:"0s"}})||""}return[S,k,C,u].join(" ")}}});function g(e,t,c,a,i,d){const l=r.resolveComponent("InlinedStyles");return e.TARGET!=="reactNative"&&e.css&&e.canShowBlock?(r.openBlock(),r.createBlock(l,{key:0,id:"builderio-block",styles:e.css,nonce:e.context.nonce},null,8,["styles","nonce"])):r.createCommentVNode("",!0)}const v=s._export_sfc(b,[["render",g]]);exports.default=v;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const c=require("./node-runtime-Bqb5TnyM.cjs"),a=require("./index-s5vEnK-M.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,enableCache:!0});function u(e){const t={},r=e.block.actions??{};for(const o in r){if(!r.hasOwnProperty(o))continue;const s=r[o];let n=i(o);if(e.stripPrefix)switch(c.TARGET){case"vue":n=n.replace("v-on:","");break;case"svelte":n=n.replace("on:","");break}t[n]=l(s,e)}return t}function f({properties:e}){return e}const p=e=>({href:e.href});function d({block:e,context:t}){var o;const r={...p(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 f({properties:r,context:t,block:e})}exports.getBlockActions=u;exports.getBlockProperties=d;
|