@builder.io/sdk-react-nextjs 0.7.1-2 → 0.7.1-4
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/{USE_CLIENT_BUNDLE-11d41596.js → USE_CLIENT_BUNDLE-1cdce03b.cjs} +1 -1
- package/lib/{node/USE_CLIENT_BUNDLE-e041d92c.mjs → browser/USE_CLIENT_BUNDLE-2dd6963b.js} +2 -2
- package/lib/{edge/USE_SERVER_BUNDLE-66d4b8c4.mjs → browser/USE_SERVER_BUNDLE-97369f61.js} +1 -1
- package/lib/browser/USE_SERVER_BUNDLE-c110917b.cjs +1 -0
- package/lib/browser/{bundle-242ae8b5.mjs → bundle-31003427.js} +2 -2
- package/lib/browser/{bundle-05622db1.js → bundle-cbc690cf.cjs} +2 -2
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.d.cts +1066 -0
- package/lib/browser/index.d.mts +1066 -0
- package/lib/browser/index.mjs +3 -3
- package/lib/{node/USE_CLIENT_BUNDLE-8147b412.js → edge/USE_CLIENT_BUNDLE-ba263633.cjs} +1 -1
- package/lib/{browser/USE_CLIENT_BUNDLE-48d9356f.mjs → edge/USE_CLIENT_BUNDLE-ee929cd6.js} +2 -2
- package/lib/edge/USE_SERVER_BUNDLE-133fe486.cjs +1 -0
- package/lib/{node/USE_SERVER_BUNDLE-1634816a.mjs → edge/USE_SERVER_BUNDLE-2a1fc947.js} +1 -1
- package/lib/edge/{bundle-3d31ba5d.mjs → bundle-1c5ceddb.js} +2 -2
- package/lib/edge/{bundle-1b9b93c7.js → bundle-cfdeec4b.cjs} +2 -2
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.d.cts +1066 -0
- package/lib/edge/index.d.mts +1066 -0
- package/lib/edge/index.mjs +3 -3
- package/lib/{edge/USE_CLIENT_BUNDLE-6eb1ee54.mjs → node/USE_CLIENT_BUNDLE-32bb8c8f.js} +2 -2
- package/lib/{edge/USE_CLIENT_BUNDLE-bba76732.js → node/USE_CLIENT_BUNDLE-7a982d7c.cjs} +1 -1
- package/lib/node/USE_SERVER_BUNDLE-25f4a46f.cjs +1 -0
- package/lib/{browser/USE_SERVER_BUNDLE-3875256b.mjs → node/USE_SERVER_BUNDLE-86e8b7c7.js} +1 -1
- package/lib/node/{bundle-7ebcd79e.mjs → bundle-844e3979.js} +2 -2
- package/lib/node/{bundle-4203318d.js → bundle-b13f5899.cjs} +2 -2
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.d.cts +1066 -0
- package/lib/node/index.d.mts +1066 -0
- package/lib/node/index.mjs +3 -3
- package/package.json +8 -26
- package/lib/browser/USE_SERVER_BUNDLE-568694d9.js +0 -1
- package/lib/edge/USE_SERVER_BUNDLE-305bf94a.js +0 -1
- package/lib/node/USE_SERVER_BUNDLE-8c1ae1f0.js +0 -1
- 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 -17
- 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/fragment/component-info.d.ts +0 -2
- package/types/blocks/fragment/fragment.d.ts +0 -8
- 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 -22
- 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 -13
- package/types/blocks/section/component-info.d.ts +0 -2
- package/types/blocks/section/section.d.ts +0 -11
- 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 -6
- package/types/blocks/video/component-info.d.ts +0 -2
- package/types/blocks/video/video.d.ts +0 -20
- package/types/components/block/block.d.ts +0 -10
- package/types/components/block/block.helpers.d.ts +0 -13
- package/types/components/block/components/block-styles.d.ts +0 -9
- package/types/components/block/components/block-wrapper.d.ts +0 -17
- package/types/components/block/components/component-ref/component-ref.d.ts +0 -4
- package/types/components/block/components/component-ref/component-ref.helpers.d.ts +0 -28
- package/types/components/block/components/interactive-element.d.ts +0 -12
- package/types/components/block/components/repeated-block.d.ts +0 -10
- package/types/components/block/types.d.ts +0 -6
- package/types/components/blocks/blocks-wrapper.d.ts +0 -11
- package/types/components/blocks/blocks.d.ts +0 -9
- package/types/components/content/components/enable-editor.d.ts +0 -10
- package/types/components/content/components/styles.d.ts +0 -9
- package/types/components/content/components/styles.helpers.d.ts +0 -15
- package/types/components/content/content.d.ts +0 -4
- package/types/components/content/content.helpers.d.ts +0 -7
- package/types/components/content/content.types.d.ts +0 -24
- package/types/components/content/wrap-component-ref.d.ts +0 -6
- package/types/components/content-variants/content-variants.d.ts +0 -10
- 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 -7
- package/types/components/inlined-styles.d.ts +0 -7
- 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 -3
- package/types/context/components.context.d.ts +0 -3
- package/types/context/types.d.ts +0 -35
- package/types/functions/camel-to-kebab-case.d.ts +0 -1
- package/types/functions/deopt.d.ts +0 -4
- 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/choose-eval.d.ts +0 -6
- package/types/functions/evaluate/evaluate.d.ts +0 -2
- package/types/functions/evaluate/helpers.d.ts +0 -24
- package/types/functions/evaluate/index.d.ts +0 -1
- 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 -53
- package/types/functions/get-block-actions-handler.d.ts +0 -8
- 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 -6
- 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 -142
- 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-editing.d.ts +0 -1
- package/types/functions/is-iframe.d.ts +0 -1
- package/types/functions/is-previewing.d.ts +0 -1
- 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 -1
- package/types/helpers/preview-lru-cache/helpers.d.ts +0 -1
- 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 -12
- package/types/helpers/sessionId.d.ts +0 -6
- 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 -19
- 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/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 -110
- 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
package/types/types/input.d.ts
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
export interface Input {
|
|
2
|
-
/** This is the name of the component prop this input represents */
|
|
3
|
-
name: string;
|
|
4
|
-
/** A friendlier name to show in the UI if the component prop name is not ideal for end users */
|
|
5
|
-
friendlyName?: string;
|
|
6
|
-
/** @hidden @deprecated */
|
|
7
|
-
description?: string;
|
|
8
|
-
/** A default value to use */
|
|
9
|
-
defaultValue?: any;
|
|
10
|
-
/**
|
|
11
|
-
* The type of input to use, such as 'text'
|
|
12
|
-
*
|
|
13
|
-
* See all available inputs [here](https://www.builder.io/c/docs/custom-react-components#input-types)
|
|
14
|
-
* and you can create your own custom input types and associated editor UIs with [plugins](https://www.builder.io/c/docs/extending/plugins)
|
|
15
|
-
*/
|
|
16
|
-
type: string;
|
|
17
|
-
/** Is this input mandatory or not */
|
|
18
|
-
required?: boolean;
|
|
19
|
-
/** @hidden */
|
|
20
|
-
autoFocus?: boolean;
|
|
21
|
-
subFields?: Input[];
|
|
22
|
-
/**
|
|
23
|
-
* Additional text to render in the UI to give guidance on how to use this
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```js
|
|
27
|
-
* helperText: 'Be sure to use a proper URL, starting with "https://"'
|
|
28
|
-
* 111
|
|
29
|
-
*/
|
|
30
|
-
helperText?: string;
|
|
31
|
-
/** @hidden */
|
|
32
|
-
allowedFileTypes?: string[];
|
|
33
|
-
/** @hidden */
|
|
34
|
-
imageHeight?: number;
|
|
35
|
-
/** @hidden */
|
|
36
|
-
imageWidth?: number;
|
|
37
|
-
/** @hidden */
|
|
38
|
-
mediaHeight?: number;
|
|
39
|
-
/** @hidden */
|
|
40
|
-
mediaWidth?: number;
|
|
41
|
-
/** @hidden */
|
|
42
|
-
hideFromUI?: boolean;
|
|
43
|
-
/** @hidden */
|
|
44
|
-
modelId?: string;
|
|
45
|
-
/**
|
|
46
|
-
* Number field type validation maximum accepted input
|
|
47
|
-
*/
|
|
48
|
-
max?: number;
|
|
49
|
-
/**
|
|
50
|
-
* Number field type validation minimum accepted input
|
|
51
|
-
*/
|
|
52
|
-
min?: number;
|
|
53
|
-
/**
|
|
54
|
-
* Number field type step size when using arrows
|
|
55
|
-
*/
|
|
56
|
-
step?: number;
|
|
57
|
-
/**
|
|
58
|
-
* Set this to `true` to show the editor for this input when
|
|
59
|
-
* children of this component are selected. This is useful for things
|
|
60
|
-
* like Tabs, such that users may not always select the Tabs component
|
|
61
|
-
* directly but will still be looking for how to add additional tabs
|
|
62
|
-
*/
|
|
63
|
-
broadcast?: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Set this to `true` to show the editor for this input when
|
|
66
|
-
* group locked parents of this component are selected. This is useful
|
|
67
|
-
* to bubble up important inputs for locked groups, like text and images
|
|
68
|
-
*/
|
|
69
|
-
bubble?: boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Set this to `true` if you want this component to be translatable
|
|
72
|
-
*/
|
|
73
|
-
localized?: boolean;
|
|
74
|
-
/** @hidden */
|
|
75
|
-
options?: {
|
|
76
|
-
[key: string]: any;
|
|
77
|
-
};
|
|
78
|
-
/**
|
|
79
|
-
* For "text" input type, specifying an enum will show a dropdown of options instead
|
|
80
|
-
*/
|
|
81
|
-
enum?: string[] | {
|
|
82
|
-
label: string;
|
|
83
|
-
value: any;
|
|
84
|
-
helperText?: string;
|
|
85
|
-
}[];
|
|
86
|
-
/** Regex field validation for all string types (text, longText, html, url, etc) */
|
|
87
|
-
regex?: {
|
|
88
|
-
/** pattern to test, like "^\/[a-z]$" */
|
|
89
|
-
pattern: string;
|
|
90
|
-
/** flags for the RegExp constructor, e.g. "gi" */
|
|
91
|
-
options?: string;
|
|
92
|
-
/**
|
|
93
|
-
* Friendly message to display to end-users if the regex fails, e.g.
|
|
94
|
-
* "You must use a relative url starting with '/...' "
|
|
95
|
-
*/
|
|
96
|
-
message: string;
|
|
97
|
-
};
|
|
98
|
-
/**
|
|
99
|
-
* Set this to `true` to put this under the "show more" section of
|
|
100
|
-
* the options editor. Useful for things that are more advanced
|
|
101
|
-
* or more rarely used and don't need to be too prominent
|
|
102
|
-
*/
|
|
103
|
-
advanced?: boolean;
|
|
104
|
-
/** @hidden */
|
|
105
|
-
/** @hidden */
|
|
106
|
-
code?: boolean;
|
|
107
|
-
/** @hidden */
|
|
108
|
-
richText?: boolean;
|
|
109
|
-
/** @hidden */
|
|
110
|
-
showIf?: ((options: Map<string, any>) => boolean) | string;
|
|
111
|
-
/** @hidden */
|
|
112
|
-
copyOnAdd?: boolean;
|
|
113
|
-
/**
|
|
114
|
-
* Use optionally with inputs of type `reference`. Restricts the content entry picker to a specific model by name.
|
|
115
|
-
*/
|
|
116
|
-
model?: string;
|
|
117
|
-
valueType?: {
|
|
118
|
-
type?: string;
|
|
119
|
-
};
|
|
120
|
-
onChange?: ((options: Map<string, any>) => void | Promise<void>) | string;
|
|
121
|
-
}
|
package/types/types/targets.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type Target = 'vue3' | 'vue2' | 'reactNative' | 'svelte' | 'qwik' | 'react' | 'solid' | 'rsc';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type Nullable<T> = T | null | undefined;
|
|
2
|
-
export type Dictionary<T> = {
|
|
3
|
-
[key: string]: T;
|
|
4
|
-
};
|
|
5
|
-
export type Overwrite<T, U> = keyof U extends keyof T ? Pick<T, Exclude<keyof T, keyof U>> & U : never;
|
|
6
|
-
export type Prettify<T> = {
|
|
7
|
-
[K in keyof T]: T[K];
|
|
8
|
-
} & {};
|
|
9
|
-
export type PropsWithChildren<P> = P & {
|
|
10
|
-
children?: any;
|
|
11
|
-
};
|