@getlupa/client 1.10.2 → 1.10.3

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.
@@ -9197,6 +9197,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9197
9197
  },
9198
9198
  setup(__props) {
9199
9199
  const props = __props;
9200
+ const dynamicDataStore = useDynamicDataStore();
9201
+ const { dynamicDataIdMap } = storeToRefs(dynamicDataStore);
9200
9202
  const positionValue = computed(() => {
9201
9203
  var _a;
9202
9204
  return (_a = props.position) != null ? _a : "card";
@@ -9204,6 +9206,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9204
9206
  const anchorPosition = computed(() => {
9205
9207
  return props.options.anchor;
9206
9208
  });
9209
+ const enhancedProduct = computed(() => {
9210
+ var _a, _b, _c, _d;
9211
+ if (!((_a = props.options.product) == null ? void 0 : _a.id)) {
9212
+ return props.options.product;
9213
+ }
9214
+ const enhancementData = (_d = (_c = dynamicDataIdMap.value) == null ? void 0 : _c[(_b = props.options.product) == null ? void 0 : _b.id]) != null ? _d : {};
9215
+ return __spreadValues2(__spreadValues2({}, props.options.product), enhancementData);
9216
+ });
9207
9217
  const badges = computed(() => {
9208
9218
  if (!props.options.elements) {
9209
9219
  return [];
@@ -9214,8 +9224,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9214
9224
  }).map((x) => {
9215
9225
  var _a;
9216
9226
  return __spreadProps2(__spreadValues2({}, x), {
9217
- value: ((_a = props.options.product) == null ? void 0 : _a[x.key]) || "badge",
9218
- product: props.options.product
9227
+ value: ((_a = enhancedProduct.value) == null ? void 0 : _a[x.key]) || "badge",
9228
+ product: enhancedProduct.value
9219
9229
  });
9220
9230
  });
9221
9231
  });
@@ -9197,6 +9197,8 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
9197
9197
  },
9198
9198
  setup(__props) {
9199
9199
  const props = __props;
9200
+ const dynamicDataStore = useDynamicDataStore();
9201
+ const { dynamicDataIdMap } = storeToRefs(dynamicDataStore);
9200
9202
  const positionValue = computed(() => {
9201
9203
  var _a;
9202
9204
  return (_a = props.position) != null ? _a : "card";
@@ -9204,6 +9206,14 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
9204
9206
  const anchorPosition = computed(() => {
9205
9207
  return props.options.anchor;
9206
9208
  });
9209
+ const enhancedProduct = computed(() => {
9210
+ var _a, _b, _c, _d;
9211
+ if (!((_a = props.options.product) == null ? void 0 : _a.id)) {
9212
+ return props.options.product;
9213
+ }
9214
+ const enhancementData = (_d = (_c = dynamicDataIdMap.value) == null ? void 0 : _c[(_b = props.options.product) == null ? void 0 : _b.id]) != null ? _d : {};
9215
+ return __spreadValues2(__spreadValues2({}, props.options.product), enhancementData);
9216
+ });
9207
9217
  const badges = computed(() => {
9208
9218
  if (!props.options.elements) {
9209
9219
  return [];
@@ -9214,8 +9224,8 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
9214
9224
  }).map((x) => {
9215
9225
  var _a;
9216
9226
  return __spreadProps2(__spreadValues2({}, x), {
9217
- value: ((_a = props.options.product) == null ? void 0 : _a[x.key]) || "badge",
9218
- product: props.options.product
9227
+ value: ((_a = enhancedProduct.value) == null ? void 0 : _a[x.key]) || "badge",
9228
+ product: enhancedProduct.value
9219
9229
  });
9220
9230
  });
9221
9231
  });
@@ -9195,6 +9195,8 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
9195
9195
  },
9196
9196
  setup(__props) {
9197
9197
  const props = __props;
9198
+ const dynamicDataStore = useDynamicDataStore();
9199
+ const { dynamicDataIdMap } = storeToRefs(dynamicDataStore);
9198
9200
  const positionValue = computed(() => {
9199
9201
  var _a;
9200
9202
  return (_a = props.position) != null ? _a : "card";
@@ -9202,6 +9204,14 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
9202
9204
  const anchorPosition = computed(() => {
9203
9205
  return props.options.anchor;
9204
9206
  });
9207
+ const enhancedProduct = computed(() => {
9208
+ var _a, _b, _c, _d;
9209
+ if (!((_a = props.options.product) == null ? void 0 : _a.id)) {
9210
+ return props.options.product;
9211
+ }
9212
+ const enhancementData = (_d = (_c = dynamicDataIdMap.value) == null ? void 0 : _c[(_b = props.options.product) == null ? void 0 : _b.id]) != null ? _d : {};
9213
+ return __spreadValues2(__spreadValues2({}, props.options.product), enhancementData);
9214
+ });
9205
9215
  const badges = computed(() => {
9206
9216
  if (!props.options.elements) {
9207
9217
  return [];
@@ -9212,8 +9222,8 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
9212
9222
  }).map((x) => {
9213
9223
  var _a;
9214
9224
  return __spreadProps2(__spreadValues2({}, x), {
9215
- value: ((_a = props.options.product) == null ? void 0 : _a[x.key]) || "badge",
9216
- product: props.options.product
9225
+ value: ((_a = enhancedProduct.value) == null ? void 0 : _a[x.key]) || "badge",
9226
+ product: enhancedProduct.value
9217
9227
  });
9218
9228
  });
9219
9229
  });
@@ -9199,6 +9199,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9199
9199
  },
9200
9200
  setup(__props) {
9201
9201
  const props = __props;
9202
+ const dynamicDataStore = useDynamicDataStore();
9203
+ const { dynamicDataIdMap } = storeToRefs(dynamicDataStore);
9202
9204
  const positionValue = computed(() => {
9203
9205
  var _a;
9204
9206
  return (_a = props.position) != null ? _a : "card";
@@ -9206,6 +9208,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9206
9208
  const anchorPosition = computed(() => {
9207
9209
  return props.options.anchor;
9208
9210
  });
9211
+ const enhancedProduct = computed(() => {
9212
+ var _a, _b, _c, _d;
9213
+ if (!((_a = props.options.product) == null ? void 0 : _a.id)) {
9214
+ return props.options.product;
9215
+ }
9216
+ const enhancementData = (_d = (_c = dynamicDataIdMap.value) == null ? void 0 : _c[(_b = props.options.product) == null ? void 0 : _b.id]) != null ? _d : {};
9217
+ return __spreadValues2(__spreadValues2({}, props.options.product), enhancementData);
9218
+ });
9209
9219
  const badges = computed(() => {
9210
9220
  if (!props.options.elements) {
9211
9221
  return [];
@@ -9216,8 +9226,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9216
9226
  }).map((x) => {
9217
9227
  var _a;
9218
9228
  return __spreadProps2(__spreadValues2({}, x), {
9219
- value: ((_a = props.options.product) == null ? void 0 : _a[x.key]) || "badge",
9220
- product: props.options.product
9229
+ value: ((_a = enhancedProduct.value) == null ? void 0 : _a[x.key]) || "badge",
9230
+ product: enhancedProduct.value
9221
9231
  });
9222
9232
  });
9223
9233
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlupa/client",
3
- "version": "1.10.2",
3
+ "version": "1.10.3",
4
4
  "main": "dist/lupaSearch.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/src/index.d.ts",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "devDependencies": {
22
22
  "@getlupa/client-sdk": "^1.3.4",
23
- "@getlupa/vue": "0.10.2",
23
+ "@getlupa/vue": "0.10.3",
24
24
  "@rushstack/eslint-patch": "^1.3.2",
25
25
  "@tsconfig/node18": "^2.0.1",
26
26
  "@types/jsdom": "^21.1.1",