@builder.io/sdk-qwik 0.0.8 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +65 -2
- package/lib/index.qwik.cjs +259 -216
- package/lib/index.qwik.mjs +260 -217
- package/package.json +4 -4
- package/src/blocks/button/button.jsx +22 -0
- package/src/blocks/button/component-info.js +41 -0
- package/src/blocks/columns/columns.jsx +97 -0
- package/src/blocks/columns/component-info.js +242 -0
- package/src/blocks/custom-code/component-info.js +31 -0
- package/src/blocks/custom-code/custom-code.jsx +71 -0
- package/src/blocks/embed/component-info.js +44 -0
- package/src/blocks/embed/embed.jsx +63 -0
- package/src/blocks/embed/helpers.js +9 -0
- package/src/blocks/form/builder-blocks.jsx +11 -0
- package/src/blocks/form/component-info.js +262 -0
- package/src/blocks/form/form.jsx +303 -0
- package/src/blocks/fragment/component-info.js +11 -0
- package/src/blocks/fragment/fragment.jsx +11 -0
- package/src/blocks/image/component-info.js +151 -0
- package/src/blocks/image/image.helpers.js +48 -0
- package/src/blocks/image/image.jsx +110 -0
- package/src/blocks/img/component-info.js +20 -0
- package/src/blocks/img/img.jsx +19 -0
- package/src/blocks/input/component-info.js +74 -0
- package/src/blocks/input/input.jsx +21 -0
- package/src/blocks/raw-text/component-info.js +16 -0
- package/src/blocks/raw-text/raw-text.jsx +12 -0
- package/src/blocks/section/component-info.js +49 -0
- package/src/blocks/section/section.jsx +20 -0
- package/src/blocks/select/component-info.js +59 -0
- package/src/blocks/select/select.jsx +24 -0
- package/src/blocks/submit-button/component-info.js +28 -0
- package/src/blocks/submit-button/submit-button.jsx +11 -0
- package/src/blocks/symbol/component-info.js +43 -0
- package/src/blocks/symbol/symbol.jsx +77 -0
- package/src/blocks/text/component-info.js +24 -0
- package/src/blocks/text/text.jsx +7 -0
- package/src/blocks/textarea/component-info.js +47 -0
- package/src/blocks/textarea/textarea.jsx +15 -0
- package/src/blocks/util.js +7 -0
- package/src/blocks/video/component-info.js +106 -0
- package/src/blocks/video/video.jsx +53 -0
- package/src/components/render-block/block-styles.jsx +60 -0
- package/src/components/render-block/render-block.helpers.js +23 -0
- package/src/components/render-block/render-block.jsx +221 -0
- package/src/components/render-block/render-component.jsx +34 -0
- package/src/components/render-block/render-repeated-block.jsx +37 -0
- package/src/components/render-block/types.js +0 -0
- package/src/components/render-blocks.jsx +93 -0
- package/src/components/render-content/components/render-styles.jsx +76 -0
- package/src/components/render-content/index.js +4 -0
- package/src/components/render-content/render-content.jsx +351 -0
- package/src/components/render-inlined-styles.jsx +25 -0
- package/src/constants/builder-registered-components.js +48 -0
- package/src/constants/device-sizes.js +21 -0
- package/src/constants/target.js +4 -0
- package/src/context/builder.context.js +5 -0
- package/src/functions/camel-to-kebab-case.js +4 -0
- package/src/functions/convert-style-object.js +6 -0
- package/src/functions/evaluate.js +28 -0
- package/src/functions/event-handler-name.js +7 -0
- package/src/functions/get-block-actions.js +23 -0
- package/src/functions/get-block-component-options.js +28 -0
- package/src/functions/get-block-properties.js +29 -0
- package/src/functions/get-block-styles.js +34 -0
- package/src/functions/get-block-tag.js +6 -0
- package/src/functions/get-builder-search-params/fn.test.js +13 -0
- package/src/functions/get-builder-search-params/index.js +33 -0
- package/src/functions/get-content/ab-testing.js +38 -0
- package/src/functions/get-content/fn.test.js +31 -0
- package/src/functions/get-content/index.js +96 -0
- package/src/functions/get-content/types.js +0 -0
- package/src/functions/get-fetch.js +34 -0
- package/src/functions/get-global-this.js +18 -0
- package/src/functions/get-processed-block.js +53 -0
- package/src/functions/get-processed-block.test.js +32 -0
- package/src/functions/if-target.js +15 -0
- package/src/functions/is-browser.js +6 -0
- package/src/functions/is-editing.js +7 -0
- package/src/functions/is-iframe.js +7 -0
- package/src/functions/is-previewing.js +14 -0
- package/src/functions/on-change.js +27 -0
- package/src/functions/on-change.test.js +19 -0
- package/src/functions/register-component.js +72 -0
- package/src/functions/register.js +29 -0
- package/src/functions/sanitize-styles.js +5 -0
- package/src/functions/set-editor-settings.js +15 -0
- package/src/functions/set.js +11 -0
- package/src/functions/set.test.js +16 -0
- package/src/functions/track.js +22 -0
- package/src/functions/transform-block.js +6 -0
- package/src/helpers/css.js +12 -0
- package/src/helpers/flatten.js +34 -0
- package/src/index-helpers/blocks-exports.js +22 -0
- package/src/index-helpers/top-of-file.js +4 -0
- package/src/index.js +10 -0
- package/src/scripts/init-editing.js +79 -0
- package/src/types/builder-block.js +0 -0
- package/src/types/builder-content.js +0 -0
- package/src/types/components.js +0 -0
- package/src/types/deep-partial.js +0 -0
- package/src/types/element.js +0 -0
- package/src/types/targets.js +0 -0
- package/src/types/typescript.js +0 -0
- package/types.d.ts +7 -12
- package/root.json +0 -1176
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
32
|
+
const components = [];
|
|
33
|
+
function registerComponent(component, info) {
|
|
34
|
+
components.push(__spreadValues({ component }, info));
|
|
35
|
+
console.warn("registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK.");
|
|
36
|
+
return component;
|
|
37
|
+
}
|
|
38
|
+
const createRegisterComponentMessage = (_a) => {
|
|
39
|
+
var _b = _a, {
|
|
40
|
+
component: _
|
|
41
|
+
} = _b, info = __objRest(_b, [
|
|
42
|
+
"component"
|
|
43
|
+
]);
|
|
44
|
+
return {
|
|
45
|
+
type: "builder.registerComponent",
|
|
46
|
+
data: prepareComponentInfoToSend(info)
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
const fastClone = (obj) => JSON.parse(JSON.stringify(obj));
|
|
50
|
+
const serializeValue = (value) => typeof value === "function" ? serializeFn(value) : fastClone(value);
|
|
51
|
+
const serializeFn = (fnValue) => {
|
|
52
|
+
const fnStr = fnValue.toString().trim();
|
|
53
|
+
const appendFunction = !fnStr.startsWith("function") && !fnStr.startsWith("(");
|
|
54
|
+
return `return (${appendFunction ? "function " : ""}${fnStr}).apply(this, arguments)`;
|
|
55
|
+
};
|
|
56
|
+
const prepareComponentInfoToSend = (_c) => {
|
|
57
|
+
var _d = _c, {
|
|
58
|
+
inputs
|
|
59
|
+
} = _d, info = __objRest(_d, [
|
|
60
|
+
"inputs"
|
|
61
|
+
]);
|
|
62
|
+
return __spreadProps(__spreadValues({}, fastClone(info)), {
|
|
63
|
+
inputs: inputs == null ? void 0 : inputs.map((input) => Object.entries(input).reduce((acc, [key, value]) => __spreadProps(__spreadValues({}, acc), {
|
|
64
|
+
[key]: serializeValue(value)
|
|
65
|
+
}), {}))
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
export {
|
|
69
|
+
components,
|
|
70
|
+
createRegisterComponentMessage,
|
|
71
|
+
registerComponent
|
|
72
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { isBrowser } from "./is-browser.js";
|
|
2
|
+
const registry = {};
|
|
3
|
+
function register(type, info) {
|
|
4
|
+
let typeList = registry[type];
|
|
5
|
+
if (!typeList) {
|
|
6
|
+
typeList = registry[type] = [];
|
|
7
|
+
}
|
|
8
|
+
typeList.push(info);
|
|
9
|
+
if (isBrowser()) {
|
|
10
|
+
const message = {
|
|
11
|
+
type: "builder.register",
|
|
12
|
+
data: {
|
|
13
|
+
type,
|
|
14
|
+
info
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
try {
|
|
18
|
+
parent.postMessage(message, "*");
|
|
19
|
+
if (parent !== window) {
|
|
20
|
+
window.postMessage(message, "*");
|
|
21
|
+
}
|
|
22
|
+
} catch (err) {
|
|
23
|
+
console.debug("Could not postmessage", err);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
register
|
|
29
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { isBrowser } from "./is-browser.js";
|
|
2
|
+
const settings = {};
|
|
3
|
+
function setEditorSettings(newSettings) {
|
|
4
|
+
if (isBrowser()) {
|
|
5
|
+
Object.assign(settings, newSettings);
|
|
6
|
+
const message = {
|
|
7
|
+
type: "builder.settingsChange",
|
|
8
|
+
data: settings
|
|
9
|
+
};
|
|
10
|
+
parent.postMessage(message, "*");
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
setEditorSettings
|
|
15
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const set = (obj, _path, value) => {
|
|
2
|
+
if (Object(obj) !== obj) {
|
|
3
|
+
return obj;
|
|
4
|
+
}
|
|
5
|
+
const path = Array.isArray(_path) ? _path : _path.toString().match(/[^.[\]]+/g);
|
|
6
|
+
path.slice(0, -1).reduce((a, c, i) => Object(a[c]) === a[c] ? a[c] : a[c] = Math.abs(Number(path[i + 1])) >> 0 === +path[i + 1] ? [] : {}, obj)[path[path.length - 1]] = value;
|
|
7
|
+
return obj;
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
set
|
|
11
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { set } from "./set.js";
|
|
2
|
+
test("can shallow set a property", () => {
|
|
3
|
+
const obj = { foo: "bar" };
|
|
4
|
+
set(obj, "foo", "baz");
|
|
5
|
+
expect(obj.foo).toBe("baz");
|
|
6
|
+
});
|
|
7
|
+
test("can deeply set a property", () => {
|
|
8
|
+
const obj = { foo: "bar" };
|
|
9
|
+
set(obj, "foo.bar", "baz");
|
|
10
|
+
expect(obj.foo.bar).toBe("baz");
|
|
11
|
+
});
|
|
12
|
+
test("can deeply create arrays", () => {
|
|
13
|
+
const obj = { foo: "bar" };
|
|
14
|
+
set(obj, "foo.bar.0", "hi");
|
|
15
|
+
expect(obj.foo.bar).toEqual(["hi"]);
|
|
16
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { TARGET } from "../constants/target.js";
|
|
2
|
+
import { isBrowser } from "./is-browser.js";
|
|
3
|
+
import { isEditing } from "./is-editing.js";
|
|
4
|
+
function track(event, properties) {
|
|
5
|
+
if (isEditing()) {
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
if (!(isBrowser() || TARGET === "reactNative")) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
return fetch(`https://builder.io/api/v1/track`, {
|
|
12
|
+
method: "POST",
|
|
13
|
+
body: JSON.stringify({ events: [{ type: event, data: properties }] }),
|
|
14
|
+
headers: {
|
|
15
|
+
"content-type": "application/json"
|
|
16
|
+
},
|
|
17
|
+
mode: "cors"
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
track
|
|
22
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { camelToKebabCase } from "../functions/camel-to-kebab-case";
|
|
2
|
+
const convertStyleMaptoCSS = (style) => {
|
|
3
|
+
const cssProps = Object.entries(style).map(([key, value]) => {
|
|
4
|
+
if (typeof value === "string") {
|
|
5
|
+
return `${camelToKebabCase(key)}: ${value};`;
|
|
6
|
+
}
|
|
7
|
+
});
|
|
8
|
+
return cssProps.join("\n");
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
convertStyleMaptoCSS
|
|
12
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
function flatten(object, path = null, separator = ".") {
|
|
21
|
+
return Object.keys(object).reduce((acc, key) => {
|
|
22
|
+
const value = object[key];
|
|
23
|
+
const newPath = [path, key].filter(Boolean).join(separator);
|
|
24
|
+
const isObject = [
|
|
25
|
+
typeof value === "object",
|
|
26
|
+
value !== null,
|
|
27
|
+
!(Array.isArray(value) && value.length === 0)
|
|
28
|
+
].every(Boolean);
|
|
29
|
+
return isObject ? __spreadValues(__spreadValues({}, acc), flatten(value, newPath, separator)) : __spreadProps(__spreadValues({}, acc), { [newPath]: value });
|
|
30
|
+
}, {});
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
flatten
|
|
34
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as default2 } from "../blocks/columns/columns.jsx";
|
|
2
|
+
import { default as default3 } from "../blocks/image/image.jsx";
|
|
3
|
+
import { default as default4 } from "../blocks/text/text.jsx";
|
|
4
|
+
import { default as default5 } from "../blocks/video/video.jsx";
|
|
5
|
+
import { default as default6 } from "../blocks/symbol/symbol.jsx";
|
|
6
|
+
import { default as default7 } from "../blocks/button/button.jsx";
|
|
7
|
+
import { default as default8 } from "../blocks/section/section.jsx";
|
|
8
|
+
import { default as default9 } from "../blocks/fragment/fragment.jsx";
|
|
9
|
+
import { default as default10 } from "../components/render-content/render-content.jsx";
|
|
10
|
+
import { default as default11 } from "../components/render-blocks.jsx";
|
|
11
|
+
export {
|
|
12
|
+
default7 as Button,
|
|
13
|
+
default2 as Columns,
|
|
14
|
+
default9 as Fragment,
|
|
15
|
+
default3 as Image,
|
|
16
|
+
default11 as RenderBlocks,
|
|
17
|
+
default10 as RenderContent,
|
|
18
|
+
default8 as Section,
|
|
19
|
+
default6 as Symbol,
|
|
20
|
+
default4 as Text,
|
|
21
|
+
default5 as Video
|
|
22
|
+
};
|
package/src/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "./index-helpers/top-of-file.js";
|
|
2
|
+
import "./scripts/init-editing.js";
|
|
3
|
+
export * from "./index-helpers/blocks-exports.js";
|
|
4
|
+
export * from "./functions/is-editing.js";
|
|
5
|
+
export * from "./functions/is-previewing.js";
|
|
6
|
+
export * from "./functions/register-component.js";
|
|
7
|
+
export * from "./functions/register.js";
|
|
8
|
+
export * from "./functions/set-editor-settings.js";
|
|
9
|
+
export * from "./functions/get-content/index.js";
|
|
10
|
+
export * from "./functions/get-builder-search-params/index.js";
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { TARGET } from "../constants/target.js";
|
|
2
|
+
import { isBrowser } from "../functions/is-browser.js";
|
|
3
|
+
import { register } from "../functions/register.js";
|
|
4
|
+
const registerInsertMenu = () => {
|
|
5
|
+
register("insertMenu", {
|
|
6
|
+
name: "_default",
|
|
7
|
+
default: true,
|
|
8
|
+
items: [
|
|
9
|
+
{ name: "Box" },
|
|
10
|
+
{ name: "Text" },
|
|
11
|
+
{ name: "Image" },
|
|
12
|
+
{ name: "Columns" },
|
|
13
|
+
...TARGET === "reactNative" ? [] : [
|
|
14
|
+
{ name: "Core:Section" },
|
|
15
|
+
{ name: "Core:Button" },
|
|
16
|
+
{ name: "Embed" },
|
|
17
|
+
{ name: "Custom Code" }
|
|
18
|
+
]
|
|
19
|
+
]
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
const setupBrowserForEditing = () => {
|
|
23
|
+
var _a;
|
|
24
|
+
if (isBrowser()) {
|
|
25
|
+
(_a = window.parent) == null ? void 0 : _a.postMessage({
|
|
26
|
+
type: "builder.sdkInfo",
|
|
27
|
+
data: {
|
|
28
|
+
target: TARGET,
|
|
29
|
+
supportsPatchUpdates: false
|
|
30
|
+
}
|
|
31
|
+
}, "*");
|
|
32
|
+
window.addEventListener("message", ({ data }) => {
|
|
33
|
+
var _a2, _b;
|
|
34
|
+
if (data) {
|
|
35
|
+
switch (data.type) {
|
|
36
|
+
case "builder.evaluate": {
|
|
37
|
+
const text = data.data.text;
|
|
38
|
+
const args = data.data.arguments || [];
|
|
39
|
+
const id = data.data.id;
|
|
40
|
+
const fn = new Function(text);
|
|
41
|
+
let result;
|
|
42
|
+
let error = null;
|
|
43
|
+
try {
|
|
44
|
+
result = fn.apply(null, args);
|
|
45
|
+
} catch (err) {
|
|
46
|
+
error = err;
|
|
47
|
+
}
|
|
48
|
+
if (error) {
|
|
49
|
+
(_a2 = window.parent) == null ? void 0 : _a2.postMessage({
|
|
50
|
+
type: "builder.evaluateError",
|
|
51
|
+
data: { id, error: error.message }
|
|
52
|
+
}, "*");
|
|
53
|
+
} else {
|
|
54
|
+
if (result && typeof result.then === "function") {
|
|
55
|
+
result.then((finalResult) => {
|
|
56
|
+
var _a3;
|
|
57
|
+
(_a3 = window.parent) == null ? void 0 : _a3.postMessage({
|
|
58
|
+
type: "builder.evaluateResult",
|
|
59
|
+
data: { id, result: finalResult }
|
|
60
|
+
}, "*");
|
|
61
|
+
}).catch(console.error);
|
|
62
|
+
} else {
|
|
63
|
+
(_b = window.parent) == null ? void 0 : _b.postMessage({
|
|
64
|
+
type: "builder.evaluateResult",
|
|
65
|
+
data: { result, id }
|
|
66
|
+
}, "*");
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
export {
|
|
77
|
+
registerInsertMenu,
|
|
78
|
+
setupBrowserForEditing
|
|
79
|
+
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/types.d.ts
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
declare const get: (obj: any, key: string) => any;
|
|
9
|
-
declare const set: (obj: any, key: string, value: any) => void;
|
|
10
|
-
interface CSSProperties {
|
|
11
|
-
flexDirection: any;
|
|
1
|
+
declare module '@builder.io/sdk-qwik' {
|
|
2
|
+
const getContent: (options: {
|
|
3
|
+
model: string;
|
|
4
|
+
apiKey: string;
|
|
5
|
+
userAttributes: Record<string, string>;
|
|
6
|
+
}) => Promise<any>;
|
|
7
|
+
const RenderContent: any;
|
|
12
8
|
}
|
|
13
|
-
declare const BuilderBlocks: (props: any) => any;
|