@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.
@@ -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
- return props.builderContext.apiKey;
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) => p0.builderContext.apiKey, [
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
- return props.builderContext.apiKey;
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) => p0.builderContext.apiKey, [
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"),
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const SDK_VERSION = "0.24.1";
3
+ const SDK_VERSION = "0.25.0";
4
4
  exports.SDK_VERSION = SDK_VERSION;
@@ -1,4 +1,4 @@
1
- const SDK_VERSION = "0.24.1";
1
+ const SDK_VERSION = "0.25.0";
2
2
  export {
3
3
  SDK_VERSION
4
4
  };
@@ -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
- return props.builderContext.apiKey;
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) => p0.builderContext.apiKey, [
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
- return props.builderContext.apiKey;
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) => p0.builderContext.apiKey, [
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"),
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const SDK_VERSION = "0.24.1";
3
+ const SDK_VERSION = "0.25.0";
4
4
  exports.SDK_VERSION = SDK_VERSION;
@@ -1,4 +1,4 @@
1
- const SDK_VERSION = "0.24.1";
1
+ const SDK_VERSION = "0.25.0";
2
2
  export {
3
3
  SDK_VERSION
4
4
  };
@@ -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
- return props.builderContext.apiKey;
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) => p0.builderContext.apiKey, [
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
- return props.builderContext.apiKey;
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) => p0.builderContext.apiKey, [
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"),
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const SDK_VERSION = "0.24.1";
3
+ const SDK_VERSION = "0.25.0";
4
4
  exports.SDK_VERSION = SDK_VERSION;
@@ -1,4 +1,4 @@
1
- const SDK_VERSION = "0.24.1";
1
+ const SDK_VERSION = "0.25.0";
2
2
  export {
3
3
  SDK_VERSION
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-qwik",
3
- "version": "0.24.1",
3
+ "version": "0.25.0",
4
4
  "homepage": "https://github.com/BuilderIO/builder/tree/main/packages/sdks/output/qwik",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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 declare const fetchSymbolContent: ({ builderContextValue, symbol }: {
12
14
  symbol: SymbolInfo | undefined;
@@ -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.24.1";
1
+ export declare const SDK_VERSION = "0.25.0";