@builder.io/sdk-qwik 0.24.1 → 0.25.0
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/blocks/symbol/symbol.helpers.qwik.cjs +1 -1
- package/lib/browser/blocks/symbol/symbol.helpers.qwik.mjs +1 -1
- package/lib/browser/blocks/symbol/symbol.qwik.cjs +7 -3
- package/lib/browser/blocks/symbol/symbol.qwik.mjs +7 -3
- package/lib/browser/constants/sdk-version.qwik.cjs +1 -1
- package/lib/browser/constants/sdk-version.qwik.mjs +1 -1
- package/lib/edge/blocks/symbol/symbol.helpers.qwik.cjs +1 -1
- package/lib/edge/blocks/symbol/symbol.helpers.qwik.mjs +1 -1
- package/lib/edge/blocks/symbol/symbol.qwik.cjs +7 -3
- package/lib/edge/blocks/symbol/symbol.qwik.mjs +7 -3
- package/lib/edge/constants/sdk-version.qwik.cjs +1 -1
- package/lib/edge/constants/sdk-version.qwik.mjs +1 -1
- package/lib/node/blocks/symbol/symbol.helpers.qwik.cjs +1 -1
- package/lib/node/blocks/symbol/symbol.helpers.qwik.mjs +1 -1
- package/lib/node/blocks/symbol/symbol.qwik.cjs +7 -3
- package/lib/node/blocks/symbol/symbol.qwik.mjs +7 -3
- package/lib/node/constants/sdk-version.qwik.cjs +1 -1
- package/lib/node/constants/sdk-version.qwik.mjs +1 -1
- package/package.json +1 -1
- package/types/src/blocks/symbol/symbol.helpers.d.ts +2 -0
- package/types/src/blocks/symbol/symbol.types.d.ts +2 -0
- package/types/src/constants/sdk-version.d.ts +1 -1
|
@@ -7,7 +7,7 @@ const fetchSymbolContent = async ({ builderContextValue, symbol }) => {
|
|
|
7
7
|
(builderContextValue == null ? void 0 : builderContextValue.apiKey))
|
|
8
8
|
return index.fetchOneEntry({
|
|
9
9
|
model: symbol.model,
|
|
10
|
-
apiKey: builderContextValue.apiKey,
|
|
10
|
+
apiKey: symbol.global && symbol.ownerId ? symbol.ownerId : builderContextValue.apiKey,
|
|
11
11
|
apiVersion: builderContextValue.apiVersion,
|
|
12
12
|
...(symbol == null ? void 0 : symbol.entry) && {
|
|
13
13
|
query: {
|
|
@@ -5,7 +5,7 @@ const fetchSymbolContent = async ({ builderContextValue, symbol }) => {
|
|
|
5
5
|
(builderContextValue == null ? void 0 : builderContextValue.apiKey))
|
|
6
6
|
return fetchOneEntry({
|
|
7
7
|
model: symbol.model,
|
|
8
|
-
apiKey: builderContextValue.apiKey,
|
|
8
|
+
apiKey: symbol.global && symbol.ownerId ? symbol.ownerId : builderContextValue.apiKey,
|
|
9
9
|
apiVersion: builderContextValue.apiVersion,
|
|
10
10
|
...(symbol == null ? void 0 : symbol.entry) && {
|
|
11
11
|
query: {
|
|
@@ -72,7 +72,8 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
72
72
|
return props.builderContext.apiVersion;
|
|
73
73
|
},
|
|
74
74
|
get apiKey() {
|
|
75
|
-
|
|
75
|
+
var _a2, _b2;
|
|
76
|
+
return ((_a2 = props.symbol) == null ? void 0 : _a2.global) && ((_b2 = props.symbol) == null ? void 0 : _b2.ownerId) ? props.symbol.ownerId : props.builderContext.apiKey;
|
|
76
77
|
},
|
|
77
78
|
get context() {
|
|
78
79
|
var _a2;
|
|
@@ -112,9 +113,12 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
112
113
|
return contentWrapper.value;
|
|
113
114
|
},
|
|
114
115
|
[qwik._IMMUTABLE]: {
|
|
115
|
-
apiKey: qwik._fnSignal((p0) =>
|
|
116
|
+
apiKey: qwik._fnSignal((p0) => {
|
|
117
|
+
var _a2, _b2;
|
|
118
|
+
return ((_a2 = p0.symbol) == null ? void 0 : _a2.global) && ((_b2 = p0.symbol) == null ? void 0 : _b2.ownerId) ? p0.symbol.ownerId : p0.builderContext.apiKey;
|
|
119
|
+
}, [
|
|
116
120
|
props
|
|
117
|
-
], "p0.builderContext.apiKey"),
|
|
121
|
+
], "p0.symbol?.global&&p0.symbol?.ownerId?p0.symbol.ownerId:p0.builderContext.apiKey"),
|
|
118
122
|
apiVersion: qwik._fnSignal((p0) => p0.builderContext.apiVersion, [
|
|
119
123
|
props
|
|
120
124
|
], "p0.builderContext.apiVersion"),
|
|
@@ -70,7 +70,8 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
70
70
|
return props.builderContext.apiVersion;
|
|
71
71
|
},
|
|
72
72
|
get apiKey() {
|
|
73
|
-
|
|
73
|
+
var _a2, _b2;
|
|
74
|
+
return ((_a2 = props.symbol) == null ? void 0 : _a2.global) && ((_b2 = props.symbol) == null ? void 0 : _b2.ownerId) ? props.symbol.ownerId : props.builderContext.apiKey;
|
|
74
75
|
},
|
|
75
76
|
get context() {
|
|
76
77
|
var _a2;
|
|
@@ -110,9 +111,12 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
110
111
|
return contentWrapper.value;
|
|
111
112
|
},
|
|
112
113
|
[_IMMUTABLE]: {
|
|
113
|
-
apiKey: _fnSignal((p0) =>
|
|
114
|
+
apiKey: _fnSignal((p0) => {
|
|
115
|
+
var _a2, _b2;
|
|
116
|
+
return ((_a2 = p0.symbol) == null ? void 0 : _a2.global) && ((_b2 = p0.symbol) == null ? void 0 : _b2.ownerId) ? p0.symbol.ownerId : p0.builderContext.apiKey;
|
|
117
|
+
}, [
|
|
114
118
|
props
|
|
115
|
-
], "p0.builderContext.apiKey"),
|
|
119
|
+
], "p0.symbol?.global&&p0.symbol?.ownerId?p0.symbol.ownerId:p0.builderContext.apiKey"),
|
|
116
120
|
apiVersion: _fnSignal((p0) => p0.builderContext.apiVersion, [
|
|
117
121
|
props
|
|
118
122
|
], "p0.builderContext.apiVersion"),
|
|
@@ -7,7 +7,7 @@ const fetchSymbolContent = async ({ builderContextValue, symbol }) => {
|
|
|
7
7
|
(builderContextValue == null ? void 0 : builderContextValue.apiKey))
|
|
8
8
|
return index.fetchOneEntry({
|
|
9
9
|
model: symbol.model,
|
|
10
|
-
apiKey: builderContextValue.apiKey,
|
|
10
|
+
apiKey: symbol.global && symbol.ownerId ? symbol.ownerId : builderContextValue.apiKey,
|
|
11
11
|
apiVersion: builderContextValue.apiVersion,
|
|
12
12
|
...(symbol == null ? void 0 : symbol.entry) && {
|
|
13
13
|
query: {
|
|
@@ -5,7 +5,7 @@ const fetchSymbolContent = async ({ builderContextValue, symbol }) => {
|
|
|
5
5
|
(builderContextValue == null ? void 0 : builderContextValue.apiKey))
|
|
6
6
|
return fetchOneEntry({
|
|
7
7
|
model: symbol.model,
|
|
8
|
-
apiKey: builderContextValue.apiKey,
|
|
8
|
+
apiKey: symbol.global && symbol.ownerId ? symbol.ownerId : builderContextValue.apiKey,
|
|
9
9
|
apiVersion: builderContextValue.apiVersion,
|
|
10
10
|
...(symbol == null ? void 0 : symbol.entry) && {
|
|
11
11
|
query: {
|
|
@@ -72,7 +72,8 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
72
72
|
return props.builderContext.apiVersion;
|
|
73
73
|
},
|
|
74
74
|
get apiKey() {
|
|
75
|
-
|
|
75
|
+
var _a2, _b2;
|
|
76
|
+
return ((_a2 = props.symbol) == null ? void 0 : _a2.global) && ((_b2 = props.symbol) == null ? void 0 : _b2.ownerId) ? props.symbol.ownerId : props.builderContext.apiKey;
|
|
76
77
|
},
|
|
77
78
|
get context() {
|
|
78
79
|
var _a2;
|
|
@@ -112,9 +113,12 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
112
113
|
return contentWrapper.value;
|
|
113
114
|
},
|
|
114
115
|
[qwik._IMMUTABLE]: {
|
|
115
|
-
apiKey: qwik._fnSignal((p0) =>
|
|
116
|
+
apiKey: qwik._fnSignal((p0) => {
|
|
117
|
+
var _a2, _b2;
|
|
118
|
+
return ((_a2 = p0.symbol) == null ? void 0 : _a2.global) && ((_b2 = p0.symbol) == null ? void 0 : _b2.ownerId) ? p0.symbol.ownerId : p0.builderContext.apiKey;
|
|
119
|
+
}, [
|
|
116
120
|
props
|
|
117
|
-
], "p0.builderContext.apiKey"),
|
|
121
|
+
], "p0.symbol?.global&&p0.symbol?.ownerId?p0.symbol.ownerId:p0.builderContext.apiKey"),
|
|
118
122
|
apiVersion: qwik._fnSignal((p0) => p0.builderContext.apiVersion, [
|
|
119
123
|
props
|
|
120
124
|
], "p0.builderContext.apiVersion"),
|
|
@@ -70,7 +70,8 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
70
70
|
return props.builderContext.apiVersion;
|
|
71
71
|
},
|
|
72
72
|
get apiKey() {
|
|
73
|
-
|
|
73
|
+
var _a2, _b2;
|
|
74
|
+
return ((_a2 = props.symbol) == null ? void 0 : _a2.global) && ((_b2 = props.symbol) == null ? void 0 : _b2.ownerId) ? props.symbol.ownerId : props.builderContext.apiKey;
|
|
74
75
|
},
|
|
75
76
|
get context() {
|
|
76
77
|
var _a2;
|
|
@@ -110,9 +111,12 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
110
111
|
return contentWrapper.value;
|
|
111
112
|
},
|
|
112
113
|
[_IMMUTABLE]: {
|
|
113
|
-
apiKey: _fnSignal((p0) =>
|
|
114
|
+
apiKey: _fnSignal((p0) => {
|
|
115
|
+
var _a2, _b2;
|
|
116
|
+
return ((_a2 = p0.symbol) == null ? void 0 : _a2.global) && ((_b2 = p0.symbol) == null ? void 0 : _b2.ownerId) ? p0.symbol.ownerId : p0.builderContext.apiKey;
|
|
117
|
+
}, [
|
|
114
118
|
props
|
|
115
|
-
], "p0.builderContext.apiKey"),
|
|
119
|
+
], "p0.symbol?.global&&p0.symbol?.ownerId?p0.symbol.ownerId:p0.builderContext.apiKey"),
|
|
116
120
|
apiVersion: _fnSignal((p0) => p0.builderContext.apiVersion, [
|
|
117
121
|
props
|
|
118
122
|
], "p0.builderContext.apiVersion"),
|
|
@@ -7,7 +7,7 @@ const fetchSymbolContent = async ({ builderContextValue, symbol }) => {
|
|
|
7
7
|
(builderContextValue == null ? void 0 : builderContextValue.apiKey))
|
|
8
8
|
return index.fetchOneEntry({
|
|
9
9
|
model: symbol.model,
|
|
10
|
-
apiKey: builderContextValue.apiKey,
|
|
10
|
+
apiKey: symbol.global && symbol.ownerId ? symbol.ownerId : builderContextValue.apiKey,
|
|
11
11
|
apiVersion: builderContextValue.apiVersion,
|
|
12
12
|
...(symbol == null ? void 0 : symbol.entry) && {
|
|
13
13
|
query: {
|
|
@@ -5,7 +5,7 @@ const fetchSymbolContent = async ({ builderContextValue, symbol }) => {
|
|
|
5
5
|
(builderContextValue == null ? void 0 : builderContextValue.apiKey))
|
|
6
6
|
return fetchOneEntry({
|
|
7
7
|
model: symbol.model,
|
|
8
|
-
apiKey: builderContextValue.apiKey,
|
|
8
|
+
apiKey: symbol.global && symbol.ownerId ? symbol.ownerId : builderContextValue.apiKey,
|
|
9
9
|
apiVersion: builderContextValue.apiVersion,
|
|
10
10
|
...(symbol == null ? void 0 : symbol.entry) && {
|
|
11
11
|
query: {
|
|
@@ -72,7 +72,8 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
72
72
|
return props.builderContext.apiVersion;
|
|
73
73
|
},
|
|
74
74
|
get apiKey() {
|
|
75
|
-
|
|
75
|
+
var _a2, _b2;
|
|
76
|
+
return ((_a2 = props.symbol) == null ? void 0 : _a2.global) && ((_b2 = props.symbol) == null ? void 0 : _b2.ownerId) ? props.symbol.ownerId : props.builderContext.apiKey;
|
|
76
77
|
},
|
|
77
78
|
get context() {
|
|
78
79
|
var _a2;
|
|
@@ -112,9 +113,12 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
112
113
|
return contentWrapper.value;
|
|
113
114
|
},
|
|
114
115
|
[qwik._IMMUTABLE]: {
|
|
115
|
-
apiKey: qwik._fnSignal((p0) =>
|
|
116
|
+
apiKey: qwik._fnSignal((p0) => {
|
|
117
|
+
var _a2, _b2;
|
|
118
|
+
return ((_a2 = p0.symbol) == null ? void 0 : _a2.global) && ((_b2 = p0.symbol) == null ? void 0 : _b2.ownerId) ? p0.symbol.ownerId : p0.builderContext.apiKey;
|
|
119
|
+
}, [
|
|
116
120
|
props
|
|
117
|
-
], "p0.builderContext.apiKey"),
|
|
121
|
+
], "p0.symbol?.global&&p0.symbol?.ownerId?p0.symbol.ownerId:p0.builderContext.apiKey"),
|
|
118
122
|
apiVersion: qwik._fnSignal((p0) => p0.builderContext.apiVersion, [
|
|
119
123
|
props
|
|
120
124
|
], "p0.builderContext.apiVersion"),
|
|
@@ -70,7 +70,8 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
70
70
|
return props.builderContext.apiVersion;
|
|
71
71
|
},
|
|
72
72
|
get apiKey() {
|
|
73
|
-
|
|
73
|
+
var _a2, _b2;
|
|
74
|
+
return ((_a2 = props.symbol) == null ? void 0 : _a2.global) && ((_b2 = props.symbol) == null ? void 0 : _b2.ownerId) ? props.symbol.ownerId : props.builderContext.apiKey;
|
|
74
75
|
},
|
|
75
76
|
get context() {
|
|
76
77
|
var _a2;
|
|
@@ -110,9 +111,12 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
110
111
|
return contentWrapper.value;
|
|
111
112
|
},
|
|
112
113
|
[_IMMUTABLE]: {
|
|
113
|
-
apiKey: _fnSignal((p0) =>
|
|
114
|
+
apiKey: _fnSignal((p0) => {
|
|
115
|
+
var _a2, _b2;
|
|
116
|
+
return ((_a2 = p0.symbol) == null ? void 0 : _a2.global) && ((_b2 = p0.symbol) == null ? void 0 : _b2.ownerId) ? p0.symbol.ownerId : p0.builderContext.apiKey;
|
|
117
|
+
}, [
|
|
114
118
|
props
|
|
115
|
-
], "p0.builderContext.apiKey"),
|
|
119
|
+
], "p0.symbol?.global&&p0.symbol?.ownerId?p0.symbol.ownerId:p0.builderContext.apiKey"),
|
|
116
120
|
apiVersion: _fnSignal((p0) => p0.builderContext.apiVersion, [
|
|
117
121
|
props
|
|
118
122
|
], "p0.builderContext.apiVersion"),
|
package/package.json
CHANGED
|
@@ -7,6 +7,8 @@ export interface SymbolInfo {
|
|
|
7
7
|
content?: BuilderContent;
|
|
8
8
|
inline?: boolean;
|
|
9
9
|
dynamic?: boolean;
|
|
10
|
+
ownerId?: string;
|
|
11
|
+
global?: boolean;
|
|
10
12
|
}
|
|
11
13
|
export interface SymbolProps extends BuilderComponentsProp, BuilderDataProps, BuilderLinkComponentProp {
|
|
12
14
|
symbol?: SymbolInfo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.
|
|
1
|
+
export declare const SDK_VERSION = "0.25.0";
|