@neurodyn/room-viewer 0.1.4 → 0.2.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/dist/contract.d.ts +1 -0
- package/dist/contract.js +4 -0
- package/dist/room-viewer.embed.min.js +26 -26
- package/dist/room-viewer.global.min.js +26 -26
- package/dist/room-viewer.js +4 -0
- package/package.json +2 -2
package/dist/contract.d.ts
CHANGED
|
@@ -74,6 +74,7 @@ readonly dimensionUnit: TriggerAttribute<"m" | "cm" | "in" | undefined>;
|
|
|
74
74
|
readonly displayUnit: TriggerAttribute<"cm" | "in" | undefined>;
|
|
75
75
|
readonly language: TriggerAttribute<"en" | "ru" | "ar" | undefined>;
|
|
76
76
|
readonly apiKey: TriggerAttribute<string | undefined>;
|
|
77
|
+
readonly productRef: TriggerAttribute<string | undefined>;
|
|
77
78
|
readonly source: TriggerAttribute<"default" | "shopify" | undefined>;
|
|
78
79
|
readonly disableClose: TriggerAttribute<boolean>;
|
|
79
80
|
readonly widgetSession: OptionOnly;
|
package/dist/contract.js
CHANGED
|
@@ -195,6 +195,10 @@ const roomViewerContract = defineTriggerContract()({
|
|
|
195
195
|
required: true,
|
|
196
196
|
description: 'Public API key sent as `x-api-key`. Not needed when `source` is `shopify`.'
|
|
197
197
|
}),
|
|
198
|
+
productRef: contract_attribute('product-ref', parsers_text(), {
|
|
199
|
+
required: false,
|
|
200
|
+
description: "The shop's own id of the product. Reported with widget events so views are counted per store product. The loader script sets it."
|
|
201
|
+
}),
|
|
198
202
|
source: contract_attribute('source', oneOf(ROOM_VIEWER_SOURCES), {
|
|
199
203
|
required: false,
|
|
200
204
|
defaultValue: '`default`',
|