@builder.io/sdk-svelte 5.2.8 → 5.2.10
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/constants/sdk-version.d.ts +1 -1
- package/lib/browser/constants/sdk-version.js +1 -1
- package/lib/browser/functions/get-content/generate-content-url.js +8 -1
- package/lib/browser/types/input.d.ts +3 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/constants/sdk-version.js +1 -1
- package/lib/edge/functions/get-content/generate-content-url.js +8 -1
- package/lib/edge/types/input.d.ts +3 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/constants/sdk-version.js +1 -1
- package/lib/node/functions/get-content/generate-content-url.js +8 -1
- package/lib/node/types/input.d.ts +3 -1
- package/package.json +1 -1
- package/src/constants/sdk-version.ts +1 -1
- package/src/functions/get-content/generate-content-url.ts +6 -1
- package/src/types/input.ts +3 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "5.2.
|
|
1
|
+
export declare const SDK_VERSION = "5.2.10";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "5.2.
|
|
1
|
+
export const SDK_VERSION = "5.2.10";
|
|
@@ -76,11 +76,18 @@ export const generateContentUrl = (options) => {
|
|
|
76
76
|
}
|
|
77
77
|
return url;
|
|
78
78
|
};
|
|
79
|
+
const parseStudioUserAttribute = (value) => {
|
|
80
|
+
if (value === 'true')
|
|
81
|
+
return true;
|
|
82
|
+
if (value === 'false')
|
|
83
|
+
return false;
|
|
84
|
+
return value;
|
|
85
|
+
};
|
|
79
86
|
const getUserAttributesFromQueryOptions = (queryOptions) => {
|
|
80
87
|
const newUserAttributes = {};
|
|
81
88
|
for (const key in queryOptions) {
|
|
82
89
|
if (key.startsWith('userAttributes.')) {
|
|
83
|
-
newUserAttributes[key] = queryOptions[key];
|
|
90
|
+
newUserAttributes[key] = parseStudioUserAttribute(queryOptions[key]);
|
|
84
91
|
delete queryOptions[key];
|
|
85
92
|
}
|
|
86
93
|
}
|
|
@@ -117,7 +117,9 @@ export interface Input {
|
|
|
117
117
|
/** @hidden */
|
|
118
118
|
richText?: boolean;
|
|
119
119
|
/** @hidden */
|
|
120
|
-
showIf?: ((options: Map<string, any
|
|
120
|
+
showIf?: ((options: Map<string, any>, parent?: any, parentElements?: any, context?: {
|
|
121
|
+
locale?: string;
|
|
122
|
+
}) => boolean) | string;
|
|
121
123
|
/** @hidden */
|
|
122
124
|
copyOnAdd?: boolean;
|
|
123
125
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "5.2.
|
|
1
|
+
export declare const SDK_VERSION = "5.2.10";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "5.2.
|
|
1
|
+
export const SDK_VERSION = "5.2.10";
|
|
@@ -76,11 +76,18 @@ export const generateContentUrl = (options) => {
|
|
|
76
76
|
}
|
|
77
77
|
return url;
|
|
78
78
|
};
|
|
79
|
+
const parseStudioUserAttribute = (value) => {
|
|
80
|
+
if (value === 'true')
|
|
81
|
+
return true;
|
|
82
|
+
if (value === 'false')
|
|
83
|
+
return false;
|
|
84
|
+
return value;
|
|
85
|
+
};
|
|
79
86
|
const getUserAttributesFromQueryOptions = (queryOptions) => {
|
|
80
87
|
const newUserAttributes = {};
|
|
81
88
|
for (const key in queryOptions) {
|
|
82
89
|
if (key.startsWith('userAttributes.')) {
|
|
83
|
-
newUserAttributes[key] = queryOptions[key];
|
|
90
|
+
newUserAttributes[key] = parseStudioUserAttribute(queryOptions[key]);
|
|
84
91
|
delete queryOptions[key];
|
|
85
92
|
}
|
|
86
93
|
}
|
|
@@ -117,7 +117,9 @@ export interface Input {
|
|
|
117
117
|
/** @hidden */
|
|
118
118
|
richText?: boolean;
|
|
119
119
|
/** @hidden */
|
|
120
|
-
showIf?: ((options: Map<string, any
|
|
120
|
+
showIf?: ((options: Map<string, any>, parent?: any, parentElements?: any, context?: {
|
|
121
|
+
locale?: string;
|
|
122
|
+
}) => boolean) | string;
|
|
121
123
|
/** @hidden */
|
|
122
124
|
copyOnAdd?: boolean;
|
|
123
125
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "5.2.
|
|
1
|
+
export declare const SDK_VERSION = "5.2.10";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "5.2.
|
|
1
|
+
export const SDK_VERSION = "5.2.10";
|
|
@@ -76,11 +76,18 @@ export const generateContentUrl = (options) => {
|
|
|
76
76
|
}
|
|
77
77
|
return url;
|
|
78
78
|
};
|
|
79
|
+
const parseStudioUserAttribute = (value) => {
|
|
80
|
+
if (value === 'true')
|
|
81
|
+
return true;
|
|
82
|
+
if (value === 'false')
|
|
83
|
+
return false;
|
|
84
|
+
return value;
|
|
85
|
+
};
|
|
79
86
|
const getUserAttributesFromQueryOptions = (queryOptions) => {
|
|
80
87
|
const newUserAttributes = {};
|
|
81
88
|
for (const key in queryOptions) {
|
|
82
89
|
if (key.startsWith('userAttributes.')) {
|
|
83
|
-
newUserAttributes[key] = queryOptions[key];
|
|
90
|
+
newUserAttributes[key] = parseStudioUserAttribute(queryOptions[key]);
|
|
84
91
|
delete queryOptions[key];
|
|
85
92
|
}
|
|
86
93
|
}
|
|
@@ -117,7 +117,9 @@ export interface Input {
|
|
|
117
117
|
/** @hidden */
|
|
118
118
|
richText?: boolean;
|
|
119
119
|
/** @hidden */
|
|
120
|
-
showIf?: ((options: Map<string, any
|
|
120
|
+
showIf?: ((options: Map<string, any>, parent?: any, parentElements?: any, context?: {
|
|
121
|
+
locale?: string;
|
|
122
|
+
}) => boolean) | string;
|
|
121
123
|
/** @hidden */
|
|
122
124
|
copyOnAdd?: boolean;
|
|
123
125
|
/**
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "5.2.
|
|
1
|
+
export const SDK_VERSION = "5.2.10"
|
|
@@ -96,11 +96,16 @@ export const generateContentUrl = (options: GetContentOptions): URL => {
|
|
|
96
96
|
}
|
|
97
97
|
return url;
|
|
98
98
|
};
|
|
99
|
+
const parseStudioUserAttribute = (value: unknown) => {
|
|
100
|
+
if (value === 'true') return true;
|
|
101
|
+
if (value === 'false') return false;
|
|
102
|
+
return value;
|
|
103
|
+
};
|
|
99
104
|
const getUserAttributesFromQueryOptions = (queryOptions: any) => {
|
|
100
105
|
const newUserAttributes: any = {};
|
|
101
106
|
for (const key in queryOptions) {
|
|
102
107
|
if (key.startsWith('userAttributes.')) {
|
|
103
|
-
newUserAttributes[key] = queryOptions[key];
|
|
108
|
+
newUserAttributes[key] = parseStudioUserAttribute(queryOptions[key]);
|
|
104
109
|
delete queryOptions[key];
|
|
105
110
|
}
|
|
106
111
|
}
|
package/src/types/input.ts
CHANGED
|
@@ -118,7 +118,9 @@ export interface Input {
|
|
|
118
118
|
/** @hidden */
|
|
119
119
|
richText?: boolean;
|
|
120
120
|
/** @hidden */
|
|
121
|
-
showIf?: ((options: Map<string, any
|
|
121
|
+
showIf?: ((options: Map<string, any>, parent?: any, parentElements?: any, context?: {
|
|
122
|
+
locale?: string;
|
|
123
|
+
}) => boolean) | string;
|
|
122
124
|
/** @hidden */
|
|
123
125
|
copyOnAdd?: boolean;
|
|
124
126
|
/**
|