@builder.io/sdk-qwik 0.7.1-5 → 0.7.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/index.qwik.cjs +332 -234
- package/lib/browser/index.qwik.mjs +333 -235
- package/lib/edge/index.qwik.cjs +339 -241
- package/lib/edge/index.qwik.mjs +340 -242
- package/lib/node/index.qwik.cjs +341 -243
- package/lib/node/index.qwik.mjs +341 -243
- package/lib/node/{node-evaluate-fc9f27d1.cjs → node-evaluate-1a278bf5.cjs} +2 -1
- package/package.json +5 -4
- package/types/src/blocks/button/button.d.ts +2 -1
- package/types/src/blocks/img/img.d.ts +2 -1
- package/types/src/blocks/input/input.d.ts +2 -1
- package/types/src/blocks/section/section.d.ts +2 -1
- package/types/src/blocks/select/select.d.ts +2 -1
- package/types/src/blocks/submit-button/submit-button.d.ts +2 -1
- package/types/src/blocks/symbol/symbol.d.ts +4 -2
- package/types/src/blocks/textarea/textarea.d.ts +2 -1
- package/types/src/components/block/components/block-wrapper.d.ts +2 -1
- package/types/src/constants/sdk-version.d.ts +1 -1
- package/types/src/context/types.d.ts +1 -1
- package/types/src/functions/evaluate/node-runtime/safeDynamicRequire.d.ts +2 -4
- package/types/src/helpers/ab-tests.d.ts +1 -1
- package/types/src/server-index.d.ts +2 -2
- package/lib/index.qwik.js +0 -7609
- package/types/blocks/BaseText.d.ts +0 -5
- package/types/blocks/button/button.d.ts +0 -11
- package/types/blocks/button/component-info.d.ts +0 -2
- package/types/blocks/columns/columns.d.ts +0 -32
- package/types/blocks/columns/component-info.d.ts +0 -2
- package/types/blocks/custom-code/component-info.d.ts +0 -2
- package/types/blocks/custom-code/custom-code.d.ts +0 -7
- package/types/blocks/embed/component-info.d.ts +0 -2
- package/types/blocks/embed/embed.d.ts +0 -6
- package/types/blocks/embed/helpers.d.ts +0 -1
- package/types/blocks/form/component-info.d.ts +0 -2
- package/types/blocks/fragment/component-info.d.ts +0 -2
- package/types/blocks/fragment/fragment.d.ts +0 -7
- package/types/blocks/helpers.d.ts +0 -13
- package/types/blocks/image/component-info.d.ts +0 -2
- package/types/blocks/image/image.d.ts +0 -23
- package/types/blocks/image/image.helpers.d.ts +0 -1
- package/types/blocks/img/component-info.d.ts +0 -2
- package/types/blocks/img/img.d.ts +0 -12
- package/types/blocks/input/component-info.d.ts +0 -2
- package/types/blocks/input/input.d.ts +0 -13
- package/types/blocks/raw-text/component-info.d.ts +0 -2
- package/types/blocks/raw-text/raw-text.d.ts +0 -6
- package/types/blocks/section/component-info.d.ts +0 -2
- package/types/blocks/section/section.d.ts +0 -10
- package/types/blocks/select/component-info.d.ts +0 -2
- package/types/blocks/select/select.d.ts +0 -14
- package/types/blocks/submit-button/component-info.d.ts +0 -2
- package/types/blocks/submit-button/submit-button.d.ts +0 -8
- package/types/blocks/symbol/component-info.d.ts +0 -2
- package/types/blocks/symbol/symbol.d.ts +0 -24
- package/types/blocks/symbol/symbol.helpers.d.ts +0 -14
- package/types/blocks/text/component-info.d.ts +0 -2
- package/types/blocks/text/text.d.ts +0 -5
- package/types/blocks/textarea/component-info.d.ts +0 -2
- package/types/blocks/textarea/textarea.d.ts +0 -11
- package/types/blocks/video/component-info.d.ts +0 -2
- package/types/blocks/video/video.d.ts +0 -19
- package/types/components/block/block.d.ts +0 -9
- package/types/components/block/block.helpers.d.ts +0 -13
- package/types/components/block/components/block-styles.d.ts +0 -8
- package/types/components/block/components/block-wrapper.d.ts +0 -20
- package/types/components/block/components/component-ref/component-ref.d.ts +0 -3
- package/types/components/block/components/component-ref/component-ref.helpers.d.ts +0 -35
- package/types/components/block/components/interactive-element.d.ts +0 -11
- package/types/components/block/components/repeated-block.d.ts +0 -9
- package/types/components/block/types.d.ts +0 -6
- package/types/components/blocks/blocks-wrapper.d.ts +0 -13
- package/types/components/blocks/blocks.d.ts +0 -8
- package/types/components/blocks/deopt.d.ts +0 -4
- package/types/components/content/components/enable-editor.d.ts +0 -21
- package/types/components/content/components/styles.d.ts +0 -8
- package/types/components/content/components/styles.helpers.d.ts +0 -15
- package/types/components/content/content.d.ts +0 -5
- package/types/components/content/content.helpers.d.ts +0 -7
- package/types/components/content/content.types.d.ts +0 -24
- package/types/components/content/index.d.ts +0 -1
- package/types/components/content/wrap-component-ref.d.ts +0 -6
- package/types/components/content-variants/content-variants.d.ts +0 -9
- package/types/components/content-variants/content-variants.types.d.ts +0 -20
- package/types/components/content-variants/helpers.d.ts +0 -41
- package/types/components/inlined-script.d.ts +0 -6
- package/types/components/inlined-styles.d.ts +0 -6
- package/types/constants/builder-registered-components.d.ts +0 -6
- package/types/constants/device-sizes.d.ts +0 -13
- package/types/constants/sdk-version.d.ts +0 -1
- package/types/constants/target.d.ts +0 -2
- package/types/context/builder.context.d.ts +0 -2
- package/types/context/components.context.d.ts +0 -2
- package/types/context/types.d.ts +0 -35
- package/types/functions/apply-patch-with-mutation.d.ts +0 -10
- package/types/functions/camel-to-kebab-case.d.ts +0 -1
- package/types/functions/evaluate/browser-runtime/browser.d.ts +0 -4
- package/types/functions/evaluate/browser-runtime/index.d.ts +0 -1
- package/types/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +0 -2
- package/types/functions/evaluate/edge-runtime/edge-runtime.d.ts +0 -2
- package/types/functions/evaluate/edge-runtime/index.d.ts +0 -1
- package/types/functions/evaluate/evaluate.d.ts +0 -6
- package/types/functions/evaluate/helpers.d.ts +0 -18
- package/types/functions/evaluate/index.d.ts +0 -1
- package/types/functions/evaluate/node-runtime/index.d.ts +0 -1
- package/types/functions/evaluate/non-node-runtime/acorn-interpreter.d.ts +0 -2
- package/types/functions/evaluate/non-node-runtime/index.d.ts +0 -1
- package/types/functions/evaluate/non-node-runtime/non-node-runtime.d.ts +0 -2
- package/types/functions/evaluate/placeholder-runtime.d.ts +0 -2
- package/types/functions/event-handler-name.d.ts +0 -1
- package/types/functions/extract-text-styles.d.ts +0 -4
- package/types/functions/fast-clone.d.ts +0 -4
- package/types/functions/fetch-builder-props.d.ts +0 -40
- package/types/functions/get-block-actions-handler.d.ts +0 -5
- package/types/functions/get-block-actions.d.ts +0 -10
- package/types/functions/get-block-component-options.d.ts +0 -2
- package/types/functions/get-block-properties.d.ts +0 -11
- package/types/functions/get-builder-search-params/index.d.ts +0 -12
- package/types/functions/get-content/generate-content-url.d.ts +0 -2
- package/types/functions/get-content/index.d.ts +0 -28
- package/types/functions/get-content/types.d.ts +0 -51
- package/types/functions/get-fetch.d.ts +0 -1
- package/types/functions/get-global-this.d.ts +0 -4
- package/types/functions/get-processed-block.d.ts +0 -10
- package/types/functions/get-react-native-block-styles.d.ts +0 -7
- package/types/functions/is-browser.d.ts +0 -1
- package/types/functions/is-edge-runtime.d.ts +0 -4
- package/types/functions/is-editing.d.ts +0 -1
- package/types/functions/is-iframe.d.ts +0 -1
- package/types/functions/is-non-node-server.d.ts +0 -4
- package/types/functions/is-previewing.d.ts +0 -1
- package/types/functions/on-change.d.ts +0 -7
- package/types/functions/register-component.d.ts +0 -15
- package/types/functions/register.d.ts +0 -16
- package/types/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/types/functions/set-editor-settings.d.ts +0 -4
- package/types/functions/set.d.ts +0 -7
- package/types/functions/track/helpers.d.ts +0 -5
- package/types/functions/track/index.d.ts +0 -51
- package/types/functions/track/interaction.d.ts +0 -13
- package/types/functions/transform-block-properties.d.ts +0 -1
- package/types/functions/transform-block.d.ts +0 -2
- package/types/helpers/ab-tests.d.ts +0 -9
- package/types/helpers/canTrack.d.ts +0 -1
- package/types/helpers/cookie.d.ts +0 -19
- package/types/helpers/css.d.ts +0 -7
- package/types/helpers/flatten.d.ts +0 -6
- package/types/helpers/localStorage.d.ts +0 -9
- package/types/helpers/logger.d.ts +0 -6
- package/types/helpers/nullable.d.ts +0 -2
- package/types/helpers/preview-lru-cache/get.d.ts +0 -2
- package/types/helpers/preview-lru-cache/helpers.d.ts +0 -0
- package/types/helpers/preview-lru-cache/init.d.ts +0 -6
- package/types/helpers/preview-lru-cache/set.d.ts +0 -7
- package/types/helpers/preview-lru-cache/types.d.ts +0 -0
- package/types/helpers/sessionId.d.ts +0 -6
- package/types/helpers/time.d.ts +0 -1
- package/types/helpers/url.d.ts +0 -6
- package/types/helpers/uuid.d.ts +0 -8
- package/types/helpers/visitorId.d.ts +0 -6
- package/types/index-helpers/blocks-exports.d.ts +0 -21
- package/types/index-helpers/top-of-file.d.ts +0 -1
- package/types/index.d.ts +0 -7
- package/types/scripts/init-editing.d.ts +0 -6
- package/types/server-index.d.ts +0 -15
- package/types/src/components/blocks/deopt.d.ts +0 -4
- package/types/src/functions/evaluate/non-node-runtime/acorn-interpreter.d.ts +0 -2
- package/types/src/functions/evaluate/non-node-runtime/index.d.ts +0 -1
- package/types/src/functions/evaluate/non-node-runtime/non-node-runtime.d.ts +0 -2
- package/types/src/functions/is-non-node-server.d.ts +0 -4
- package/types/types/api-version.d.ts +0 -2
- package/types/types/builder-block.d.ts +0 -66
- package/types/types/builder-content.d.ts +0 -44
- package/types/types/builder-props.d.ts +0 -9
- package/types/types/can-track.d.ts +0 -3
- package/types/types/components.d.ts +0 -111
- package/types/types/deep-partial.d.ts +0 -3
- package/types/types/element.d.ts +0 -59
- package/types/types/enforced-partials.d.ts +0 -21
- package/types/types/input.d.ts +0 -121
- package/types/types/targets.d.ts +0 -1
- package/types/types/typescript.d.ts +0 -11
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const node_module = require("node:module");
|
|
3
|
+
var _documentCurrentScript = typeof document !== "undefined" ? document.currentScript : null;
|
|
3
4
|
const noop = () => null;
|
|
4
5
|
exports.safeDynamicRequire = noop;
|
|
5
6
|
try {
|
|
6
|
-
exports.safeDynamicRequire = node_module.createRequire(typeof document === "undefined" ? require("url").pathToFileURL(__filename).href :
|
|
7
|
+
exports.safeDynamicRequire = node_module.createRequire(typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.src || new URL("node-evaluate-1a278bf5.cjs", document.baseURI).href);
|
|
7
8
|
} catch (error) {
|
|
8
9
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@builder.io/sdk-qwik",
|
|
3
|
-
"version": "0.7.1
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Builder.io Qwik SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/edge/index.qwik.cjs",
|
|
@@ -98,6 +98,9 @@
|
|
|
98
98
|
"build:edge": "SDK_ENV=edge yarn build:one",
|
|
99
99
|
"build:browser": "SDK_ENV=browser yarn build:one"
|
|
100
100
|
},
|
|
101
|
+
"dependencies": {
|
|
102
|
+
"isolated-vm": "^4.6.0"
|
|
103
|
+
},
|
|
101
104
|
"devDependencies": {
|
|
102
105
|
"@builder.io/qwik": "^1.2.6",
|
|
103
106
|
"@builder.io/sdks": "workspace:*",
|
|
@@ -108,9 +111,7 @@
|
|
|
108
111
|
"vite": "^4.3.2"
|
|
109
112
|
},
|
|
110
113
|
"peerDependencies": {
|
|
111
|
-
"@builder.io/qwik": ">=1.0.0"
|
|
112
|
-
"isolated-vm": "^4.6.0",
|
|
113
|
-
"undici": "^5.14.0"
|
|
114
|
+
"@builder.io/qwik": ">=1.0.0"
|
|
114
115
|
},
|
|
115
116
|
"nx": {
|
|
116
117
|
"targets": {
|
|
@@ -2,7 +2,8 @@ import { BuilderContent } from "../../types/builder-content.js";
|
|
|
2
2
|
import { BuilderComponentsProp, PropsWithBuilderData } from "../../types/builder-props.js";
|
|
3
3
|
/**
|
|
4
4
|
* This import is used by the Svelte SDK. Do not remove.
|
|
5
|
-
*/
|
|
5
|
+
*/
|
|
6
|
+
export interface SymbolInfo {
|
|
6
7
|
model?: string;
|
|
7
8
|
entry?: string;
|
|
8
9
|
data?: any;
|
|
@@ -12,7 +13,8 @@ import { BuilderComponentsProp, PropsWithBuilderData } from "../../types/builder
|
|
|
12
13
|
}
|
|
13
14
|
/**
|
|
14
15
|
* This import is used by the Svelte SDK. Do not remove.
|
|
15
|
-
*/
|
|
16
|
+
*/
|
|
17
|
+
export interface SymbolProps extends BuilderComponentsProp {
|
|
16
18
|
symbol?: SymbolInfo;
|
|
17
19
|
dataOnly?: boolean;
|
|
18
20
|
dynamic?: boolean;
|
|
@@ -3,7 +3,8 @@ import { BuilderBlock } from "../../../types/builder-block.js";
|
|
|
3
3
|
import { PropsWithChildren } from "../../../types/typescript.js";
|
|
4
4
|
/**
|
|
5
5
|
* This import is used by the Svelte SDK. Do not remove.
|
|
6
|
-
*/
|
|
6
|
+
*/
|
|
7
|
+
type BlockWrapperProps = {
|
|
7
8
|
Wrapper: string;
|
|
8
9
|
block: BuilderBlock;
|
|
9
10
|
context: BuilderContextInterface;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.7.1
|
|
1
|
+
export declare const SDK_VERSION = "0.7.1";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import type { ApiVersion } from '../types/api-version.js';
|
|
1
2
|
import type { BuilderContent } from '../types/builder-content.js';
|
|
2
3
|
import type { ComponentInfo } from '../types/components.js';
|
|
3
4
|
import type { Dictionary, Nullable } from '../types/typescript.js';
|
|
4
|
-
import type { ApiVersion } from '../types/api-version.js';
|
|
5
5
|
export type RegisteredComponent = ComponentInfo & {
|
|
6
6
|
component: any;
|
|
7
7
|
};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* We use the less hacky, but more modern `createRequire` API
|
|
3
|
-
* not work with
|
|
2
|
+
* We use the less hacky, but more modern `createRequire` API. That's because the `eval('require')` trick does
|
|
3
|
+
* not work with for this framework.
|
|
4
4
|
*/
|
|
5
|
-
/// <reference types="node" />
|
|
6
|
-
/// <reference types="react-native" />
|
|
7
5
|
export declare let safeDynamicRequire: typeof require;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CanTrack } from '../types/can-track.js';
|
|
2
1
|
import type { BuilderContent } from '../types/builder-content.js';
|
|
2
|
+
import type { CanTrack } from '../types/can-track.js';
|
|
3
3
|
import type { Nullable } from '../types/typescript.js';
|
|
4
4
|
export declare const handleABTestingSync: ({ item, canTrack }: {
|
|
5
5
|
item: Nullable<BuilderContent>;
|
|
@@ -6,10 +6,10 @@ export { register } from './functions/register.js';
|
|
|
6
6
|
export type { InsertMenuConfig, InsertMenuItem } from './functions/register.js';
|
|
7
7
|
export { setEditorSettings } from './functions/set-editor-settings.js';
|
|
8
8
|
export type { Settings } from './functions/set-editor-settings.js';
|
|
9
|
-
export { fetchEntries, fetchOneEntry, getAllContent, getContent
|
|
9
|
+
export { _processContentResult, fetchEntries, fetchOneEntry, getAllContent, getContent } from './functions/get-content/index.js';
|
|
10
10
|
export { getBuilderSearchParams } from './functions/get-builder-search-params/index.js';
|
|
11
11
|
export { track } from './functions/track/index.js';
|
|
12
|
+
export type { ContentProps } from './components/content/content.types.js';
|
|
12
13
|
export type { RegisteredComponent } from './context/types.js';
|
|
13
14
|
export type { ComponentInfo } from './types/components.js';
|
|
14
|
-
export type { ContentProps } from './components/content/content.types.js';
|
|
15
15
|
export { fetchBuilderProps } from './functions/fetch-builder-props.js';
|