@epigraph/epigraph-std-lib 5.0.0-alpha → 5.0.0-alpha.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/dist/Epigraph/epigraphBaseSolutions.cjs +1 -1
- package/dist/Epigraph/epigraphBaseSolutions.d.ts +5 -5
- package/dist/Epigraph/epigraphBaseSolutions.js +4 -4
- package/dist/EpigraphLibs/EpigraphAnalytics/epigraphAnalytics.cjs +2 -2
- package/dist/EpigraphLibs/EpigraphAnalytics/epigraphAnalytics.js +171 -166
- package/dist/EpigraphLibs/EpigraphAnalytics/epigraphAnalyticsEventLibrary.d.ts +25 -11
- package/dist/EpigraphLibs/EpigraphNexusApi/epigraphNexusApi.cjs +1 -1
- package/dist/EpigraphLibs/EpigraphNexusApi/epigraphNexusApi.d.ts +14 -1
- package/dist/EpigraphLibs/EpigraphNexusApi/epigraphNexusApi.js +115 -8
- package/dist/epigraph-std-lib.cjs +1 -1
- package/dist/epigraph-std-lib.js +46 -45
- package/package.json +2 -2
|
@@ -25,10 +25,18 @@ declare class BaseAnalyticsEvent implements IAnalyticsEvent {
|
|
|
25
25
|
interactive_event: boolean;
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
+
export declare enum VARIANT_CHANGE_TYPES {
|
|
29
|
+
VARIANT = "variant",
|
|
30
|
+
CATEGORY_VARIANT = "category_variant",
|
|
31
|
+
GEOMETRY = "geometry",
|
|
32
|
+
CATEGORY_GEOMETRY = "category_geometry",
|
|
33
|
+
GLOBAL = "global"
|
|
34
|
+
}
|
|
28
35
|
export declare enum PANEL_TYPE {
|
|
29
36
|
AR = "ar",
|
|
30
37
|
QR = "qr",
|
|
31
38
|
INFO = "info",
|
|
39
|
+
INSTRUCTIONS = "instructions",
|
|
32
40
|
DOWNLOAD = "download",
|
|
33
41
|
PREVIEW_CART = "preview_cart",
|
|
34
42
|
HOTSPOT_PANEL = "hotspot_panel",
|
|
@@ -39,6 +47,13 @@ export declare enum PANEL_TYPE {
|
|
|
39
47
|
MOVE_MODAL = "move_modal",
|
|
40
48
|
OUT_OF_STOCK_MODAL = "out_of_stock_modal"
|
|
41
49
|
}
|
|
50
|
+
export declare enum MODULE_FAILED_ERRORS {
|
|
51
|
+
NETWORK = "network",
|
|
52
|
+
EXPERIENCE_CONFIG_ERROR = "experience-config-error",
|
|
53
|
+
SCENE_LOAD_ERROR = "scene-load-error",
|
|
54
|
+
INITIAL_SCENE_LOAD_ERROR = "initial-scene-load-error",
|
|
55
|
+
AUTHENTICATION_FAILED = "authentication-failed"
|
|
56
|
+
}
|
|
42
57
|
export declare enum TRIGGER_SOURCE {
|
|
43
58
|
AUTO = "auto",
|
|
44
59
|
BUTTON = "button",
|
|
@@ -54,7 +69,8 @@ export declare enum CURRENCY {
|
|
|
54
69
|
export declare enum SUPPORT_TYPE {
|
|
55
70
|
AR = "ar",
|
|
56
71
|
QR = "qr",
|
|
57
|
-
|
|
72
|
+
AR_WEBGL2 = "ar-webgl2",
|
|
73
|
+
QR_WEBGL2 = "qr-webgl2"
|
|
58
74
|
}
|
|
59
75
|
export declare enum BUTTON_TYPE {
|
|
60
76
|
AR_VIEW = "ar_view",
|
|
@@ -77,11 +93,7 @@ export declare enum BUTTON_TYPE {
|
|
|
77
93
|
}
|
|
78
94
|
export declare enum ACTION_PERFORMED {
|
|
79
95
|
ZOOM = "zoom",
|
|
80
|
-
ROTATE = "rotate"
|
|
81
|
-
}
|
|
82
|
-
export declare enum INTERACTION_TYPE {
|
|
83
96
|
ROTATE = "rotate",
|
|
84
|
-
ZOOM = "zoom",
|
|
85
97
|
PAN = "pan"
|
|
86
98
|
}
|
|
87
99
|
export declare enum CONTENT_TYPES {
|
|
@@ -107,14 +119,15 @@ export declare class EpigraphModuleReadyEvent extends BaseAnalyticsEvent {
|
|
|
107
119
|
constructor(isPreConfig: boolean, loadTimeMs: number);
|
|
108
120
|
}
|
|
109
121
|
export declare class EpigraphModuleFailedEvent extends BaseAnalyticsEvent {
|
|
110
|
-
|
|
122
|
+
static readonly MODULE_FAILED_ERRORS: typeof MODULE_FAILED_ERRORS;
|
|
123
|
+
constructor(isPreConfig: boolean, loadTimeMs: number, errorType: MODULE_FAILED_ERRORS | string);
|
|
111
124
|
}
|
|
112
125
|
export declare class EpigraphModuleClosedEvent extends BaseAnalyticsEvent {
|
|
113
126
|
constructor(items: IAnalyticsParameterItems);
|
|
114
127
|
}
|
|
115
128
|
export declare class EpigraphSupportDetectedEvent extends BaseAnalyticsEvent {
|
|
116
129
|
static readonly SUPPORT_TYPE: typeof SUPPORT_TYPE;
|
|
117
|
-
constructor(supportType: SUPPORT_TYPE
|
|
130
|
+
constructor(supportType: SUPPORT_TYPE);
|
|
118
131
|
}
|
|
119
132
|
export declare class EpigraphButtonClickEvent extends BaseAnalyticsEvent {
|
|
120
133
|
static readonly BUTTON_TYPE: typeof BUTTON_TYPE;
|
|
@@ -138,8 +151,8 @@ export declare class EpigraphKeyboardInteractionEvent extends BaseAnalyticsEvent
|
|
|
138
151
|
constructor(actionPerformed: ACTION_PERFORMED);
|
|
139
152
|
}
|
|
140
153
|
export declare class EpigraphTouchInteractionEvent extends BaseAnalyticsEvent {
|
|
141
|
-
static readonly INTERACTION_TYPE: typeof
|
|
142
|
-
constructor(interactionType:
|
|
154
|
+
static readonly INTERACTION_TYPE: typeof ACTION_PERFORMED;
|
|
155
|
+
constructor(interactionType: ACTION_PERFORMED);
|
|
143
156
|
}
|
|
144
157
|
export declare class EpigraphItemAddedEvent extends BaseAnalyticsEvent {
|
|
145
158
|
static readonly CURRENCY: typeof CURRENCY;
|
|
@@ -153,12 +166,13 @@ export declare class EpigraphItemRemovedEvent extends BaseAnalyticsEvent {
|
|
|
153
166
|
constructor(value: number, currency: CURRENCY, quantity: number, items: IAnalyticsParameterItems);
|
|
154
167
|
}
|
|
155
168
|
export declare class EpigraphVariantChangedEvent extends BaseAnalyticsEvent {
|
|
156
|
-
|
|
169
|
+
static readonly VARIANT_CHANGE_TYPES: typeof VARIANT_CHANGE_TYPES;
|
|
170
|
+
constructor(changeType: VARIANT_CHANGE_TYPES, items: IAnalyticsParameterItems);
|
|
157
171
|
}
|
|
158
172
|
export declare class EpigraphContentSharedEvent extends BaseAnalyticsEvent {
|
|
159
173
|
static readonly CONTENT_TYPES: typeof CONTENT_TYPES;
|
|
160
174
|
static readonly SHARE_DESTINATIONS: typeof SHARE_DESTINATIONS;
|
|
161
|
-
constructor(contentType:
|
|
175
|
+
constructor(contentType: CONTENT_TYPES, shareDestination: SHARE_DESTINATIONS, items: IAnalyticsParameterItems);
|
|
162
176
|
}
|
|
163
177
|
export declare class EpigraphCheckoutEvent extends BaseAnalyticsEvent {
|
|
164
178
|
static readonly CURRENCY: typeof CURRENCY;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../EpigraphResultFactory/epigraphResultFactory.cjs");class ${constructor(i="https://api.myepigraph.com/api/",t,e,r="",s="",a="v1/"){this.epigraphXPath="",this.epigraphComponentVersion=r,this.epigraphSessionId=e,this.epigraphXPath=s,this.baseUrl=i+a,this.epgLocation=t}async getButtonBySku(i,t=""){const e={};t!==""&&(e.version_id=t);const r=`experience/button/sku/${i}`,s=this.buildNexusUrl(r,e);return await this.callNexusAPI(s,"GET")}async getButtonByShopifyVariantId(i,t=""){const e={};t!==""&&(e.version_id=t);const r=`experience/button/shopify_variant_id/${i}`,s=this.buildNexusUrl(r,e);return await this.callNexusAPI(s,"GET")}async getButtonByUpc(i,t=""){const e={};t!==""&&(e.version_id=t);const r=`experience/button/upc/${i}`,s=this.buildNexusUrl(r,e);return await this.callNexusAPI(s,"GET")}async getButtonByAsin(i,t=""){const e={};t!==""&&(e.version_id=t);const r=`experience/button/asin/${i}`,s=this.buildNexusUrl(r,e);return await this.callNexusAPI(s,"GET")}async getButtonByUuid(i,t=""){const e={};t!==""&&(e.version_id=t);const r=`experience/button/uuid/${i}`,s=this.buildNexusUrl(r,e);return await this.callNexusAPI(s,"GET")}async getViewerBySku(i,t=""){const e={};t!==""&&(e.version_id=t);const r=`experience/viewer/sku/${i}`,s=this.buildNexusUrl(r,e);return await this.callNexusAPI(s,"GET")}async getViewerByShopifyVariantId(i,t=""){const e={};t!==""&&(e.version_id=t);const r=`experience/viewer/shopify_variant_id/${i}`,s=this.buildNexusUrl(r,e);return await this.callNexusAPI(s,"GET")}async getViewerByUpc(i,t=""){const e={};t!==""&&(e.version_id=t);const r=`experience/viewer/upc/${i}`,s=this.buildNexusUrl(r,e);return await this.callNexusAPI(s,"GET")}async getViewerByAsin(i,t=""){const e={};t!==""&&(e.version_id=t);const r=`experience/viewer/asin/${i}`,s=this.buildNexusUrl(r,e);return await this.callNexusAPI(s,"GET")}async getViewerByUuid(i,t=""){const e={};t!==""&&(e.version_id=t);const r=`experience/viewer/uuid/${i}`,s=this.buildNexusUrl(r,e);return await this.callNexusAPI(s,"GET")}async getTourBySku(i,t=""){const e={};t!==""&&(e.version_id=t);const r=`experience/tour/sku/${i}`,s=this.buildNexusUrl(r,e);return await this.callNexusAPI(s,"GET")}async getTourByShopifyVariantId(i,t=""){const e={};t!==""&&(e.version_id=t);const r=`experience/tour/shopify_variant_id/${i}`,s=this.buildNexusUrl(r,e);return await this.callNexusAPI(s,"GET")}async getTourByUpc(i,t=""){const e={};t!==""&&(e.version_id=t);const r=`experience/tour/upc/${i}`,s=this.buildNexusUrl(r,e);return await this.callNexusAPI(s,"GET")}async getTourByAsin(i,t=""){const e={};t!==""&&(e.version_id=t);const r=`experience/tour/asin/${i}`,s=this.buildNexusUrl(r,e);return await this.callNexusAPI(s,"GET")}async getTourByUuid(i,t=""){const e={};t!==""&&(e.version_id=t);const r=`experience/tour/uuid/${i}`,s=this.buildNexusUrl(r,e);return await this.callNexusAPI(s,"GET")}async getCustomizerBySku(i,t=""){const e={};t!==""&&(e.version_id=t);const r=`experience/customizer/sku/${i}`,s=this.buildNexusUrl(r,e);return await this.callNexusAPI(s,"GET")}async getCustomizerByShopifyVariantId(i,t=""){const e={};t!==""&&(e.version_id=t);const r=`experience/customizer/shopify_variant_id/${i}`,s=this.buildNexusUrl(r,e);return await this.callNexusAPI(s,"GET")}async getCustomizerByUpc(i,t=""){const e={};t!==""&&(e.version_id=t);const r=`experience/customizer/upc/${i}`,s=this.buildNexusUrl(r,e);return await this.callNexusAPI(s,"GET")}async getCustomizerByAsin(i,t=""){const e={};t!==""&&(e.version_id=t);const r=`experience/customizer/asin/${i}`,s=this.buildNexusUrl(r,e);return await this.callNexusAPI(s,"GET")}async getCustomizerByUuid(i,t=""){const e={};t!==""&&(e.version_id=t);const r=`experience/customizer/uuid/${i}`,s=this.buildNexusUrl(r,e);return await this.callNexusAPI(s,"GET")}async getConfiguratorByExperienceId(i,t=""){const e={};t!==""&&(e.version_id=t);const r=`experience/configurator/experience_id/${i}`,s=this.buildNexusUrl(r,e);return await this.callNexusAPI(s,"GET")}async getConfiguratorByClientAccessKey(i,t=""){const e={};t!==""&&(e.version_id=t);const r=`experience/configurator/client_access_key/${i}`,s=this.buildNexusUrl(r,e);return await this.callNexusAPI(s,"GET")}async getConfiguratorLiteByExperienceId(i,t=""){const e={};t!==""&&(e.version_id=t);const r=`experience/configurator-lite/experience_id/${i}`,s=this.buildNexusUrl(r,e);return await this.callNexusAPI(s,"GET")}async getConfiguratorLiteByProjectId(i,t=""){const e={};t!==""&&(e.version_id=t);const r=`experience/configurator-lite/project_id/${i}`,s=this.buildNexusUrl(r,e);return await this.callNexusAPI(s,"GET")}async postExperienceSaveAndShare(i,t){const e=`experience/${i}/save`,r=this.buildNexusUrl(e),s={save_data:JSON.stringify(t)},a=new Headers;return a.set("Content-Type","application/json"),await this.callNexusAPI(r,"POST",JSON.stringify(s),a)}async getExperienceSaveAndShare(i,t){const e=`experience/${i}/save/${t}`,r=this.buildNexusUrl(e);return await this.callNexusAPI(r,"GET")}async callNexusAPI(i,t="GET",e,r=new Headers){r=this.addRequiredHeaders(r);const s={method:t,body:e,headers:r};try{const a=await fetch(i,s),u=await a.json();if(!a.ok){let o="Unable to retrieve configurator experience";return u.message&&(o=u.message),Promise.resolve(c.failureResult(u,a.status,o))}return Promise.resolve(c.successResult(u,a.status))}catch{return Promise.resolve(c.failureResult({},500,"Unknown error"))}}buildNexusUrl(i,t={}){let e=new URL(this.baseUrl);e.pathname+=i;for(const[r,s]of Object.entries(t))e.searchParams.set(r,s);return e}addRequiredHeaders(i){return i.has("accept")||i.set("accept","application/json"),i.has("EPG-Location")||i.set("EPG-location",this.epgLocation),i.has("EPG-Session-ID")||i.set("EPG-Session-ID",this.epigraphSessionId),i.has("EPG-XPATH")||i.set("EPG-XPATH",this.epigraphXPath),i.has("EPG-Version")||i.set("EPG-Version",this.epigraphComponentVersion),i}}var l=(n=>(n.PRODUCTION="https://api.myepigraph.com/api/",n.STAGING="https://nexus.epigraph.dev/api/",n.STAGING_CANARY="https://staging-canary.epigraph.dev/api/",n.LOCAL="https://nexus.test/api/",n))(l||{}),p=(n=>(n.CLIENT_ACCESS_KEY="client_access_key",n.EXPERIENCE_ID="experience_id",n.PROJECT_ID="project_id",n.SKU="sku",n.SHOPIFY_VARIANT_ID="shopify_variant_id",n.UPC="upc",n.ASIN="asin",n.UUID="uuid",n))(p||{}),y=(n=>(n.BUTTON="experience/button",n.VIEWER="experience/viewer",n.TOUR="experience/tour",n.CUSTOMIZER="experience/customizer",n.CONFIGURATOR="experience/configurator",n.CONFIGURATOR_LITE="experience/configurator-lite",n.EXPERIENCE="experience",n.SAVE="save",n))(y||{}),h=(n=>(n.V1="v1/",n))(h||{}),x=(n=>(n.GET="GET",n.POST="POST",n.PUT="PUT",n.DELETE="DELETE",n))(x||{});exports.EpigraphNexusAPI=$;exports.HTTPMethod=x;exports.NexusAPIResourceIdentifier=p;exports.NexusAPIRoutes=y;exports.NexusAPIVersions=h;exports.NexusEndpoints=l;
|
|
@@ -24,6 +24,7 @@ export declare class EpigraphNexusAPI {
|
|
|
24
24
|
getButtonByShopifyVariantId(shopify_variant_id: string, versionId?: string): Promise<Result>;
|
|
25
25
|
getButtonByUpc(upc: string, versionId?: string): Promise<Result>;
|
|
26
26
|
getButtonByAsin(asin: string, versionId?: string): Promise<Result>;
|
|
27
|
+
getButtonByUuid(uuid: string, versionId?: string): Promise<Result>;
|
|
27
28
|
/*******************************************************************************************************************
|
|
28
29
|
* Epigraph Viewer API Calls *
|
|
29
30
|
******************************************************************************************************************/
|
|
@@ -31,6 +32,7 @@ export declare class EpigraphNexusAPI {
|
|
|
31
32
|
getViewerByShopifyVariantId(shopify_variant_id: string, versionId?: string): Promise<Result>;
|
|
32
33
|
getViewerByUpc(upc: string, versionId?: string): Promise<Result>;
|
|
33
34
|
getViewerByAsin(asin: string, versionId?: string): Promise<Result>;
|
|
35
|
+
getViewerByUuid(uuid: string, versionId?: string): Promise<Result>;
|
|
34
36
|
/*******************************************************************************************************************
|
|
35
37
|
* Epigraph Tour API Calls *
|
|
36
38
|
******************************************************************************************************************/
|
|
@@ -38,6 +40,15 @@ export declare class EpigraphNexusAPI {
|
|
|
38
40
|
getTourByShopifyVariantId(shopify_variant_id: string, versionId?: string): Promise<Result>;
|
|
39
41
|
getTourByUpc(upc: string, versionId?: string): Promise<Result>;
|
|
40
42
|
getTourByAsin(asin: string, versionId?: string): Promise<Result>;
|
|
43
|
+
getTourByUuid(uuid: string, versionId?: string): Promise<Result>;
|
|
44
|
+
/*******************************************************************************************************************
|
|
45
|
+
* Epigraph Customizer API Calls *
|
|
46
|
+
******************************************************************************************************************/
|
|
47
|
+
getCustomizerBySku(sku: string, versionId?: string): Promise<Result>;
|
|
48
|
+
getCustomizerByShopifyVariantId(shopify_variant_id: string, versionId?: string): Promise<Result>;
|
|
49
|
+
getCustomizerByUpc(upc: string, versionId?: string): Promise<Result>;
|
|
50
|
+
getCustomizerByAsin(asin: string, versionId?: string): Promise<Result>;
|
|
51
|
+
getCustomizerByUuid(uuid: string, versionId?: string): Promise<Result>;
|
|
41
52
|
/*******************************************************************************************************************
|
|
42
53
|
* Configurator API Calls *
|
|
43
54
|
******************************************************************************************************************/
|
|
@@ -79,6 +90,7 @@ export type QueryParameters = Record<string, any>;
|
|
|
79
90
|
export declare enum NexusEndpoints {
|
|
80
91
|
PRODUCTION = "https://api.myepigraph.com/api/",
|
|
81
92
|
STAGING = "https://nexus.epigraph.dev/api/",
|
|
93
|
+
STAGING_CANARY = "https://staging-canary.epigraph.dev/api/",
|
|
82
94
|
LOCAL = "https://nexus.test/api/"
|
|
83
95
|
}
|
|
84
96
|
export declare enum NexusAPIResourceIdentifier {
|
|
@@ -88,7 +100,8 @@ export declare enum NexusAPIResourceIdentifier {
|
|
|
88
100
|
SKU = "sku",
|
|
89
101
|
SHOPIFY_VARIANT_ID = "shopify_variant_id",
|
|
90
102
|
UPC = "upc",
|
|
91
|
-
ASIN = "asin"
|
|
103
|
+
ASIN = "asin",
|
|
104
|
+
UUID = "uuid"
|
|
92
105
|
}
|
|
93
106
|
export declare enum NexusAPIRoutes {
|
|
94
107
|
BUTTON = "experience/button",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { failureResult as
|
|
1
|
+
import { failureResult as o, successResult as l } from "../EpigraphResultFactory/epigraphResultFactory.js";
|
|
2
2
|
class P {
|
|
3
3
|
/**
|
|
4
4
|
* Constructs a new instance of the class with the provided parameters.
|
|
@@ -69,6 +69,19 @@ class P {
|
|
|
69
69
|
/* GET */
|
|
70
70
|
);
|
|
71
71
|
}
|
|
72
|
+
async getButtonByUuid(i, t = "") {
|
|
73
|
+
const e = {};
|
|
74
|
+
t !== "" && (e.version_id = t);
|
|
75
|
+
const r = `experience/button/uuid/${i}`, s = this.buildNexusUrl(
|
|
76
|
+
r,
|
|
77
|
+
e
|
|
78
|
+
);
|
|
79
|
+
return await this.callNexusAPI(
|
|
80
|
+
s,
|
|
81
|
+
"GET"
|
|
82
|
+
/* GET */
|
|
83
|
+
);
|
|
84
|
+
}
|
|
72
85
|
/*******************************************************************************************************************
|
|
73
86
|
* Epigraph Viewer API Calls *
|
|
74
87
|
******************************************************************************************************************/
|
|
@@ -124,6 +137,19 @@ class P {
|
|
|
124
137
|
/* GET */
|
|
125
138
|
);
|
|
126
139
|
}
|
|
140
|
+
async getViewerByUuid(i, t = "") {
|
|
141
|
+
const e = {};
|
|
142
|
+
t !== "" && (e.version_id = t);
|
|
143
|
+
const r = `experience/viewer/uuid/${i}`, s = this.buildNexusUrl(
|
|
144
|
+
r,
|
|
145
|
+
e
|
|
146
|
+
);
|
|
147
|
+
return await this.callNexusAPI(
|
|
148
|
+
s,
|
|
149
|
+
"GET"
|
|
150
|
+
/* GET */
|
|
151
|
+
);
|
|
152
|
+
}
|
|
127
153
|
/*******************************************************************************************************************
|
|
128
154
|
* Epigraph Tour API Calls *
|
|
129
155
|
******************************************************************************************************************/
|
|
@@ -179,6 +205,87 @@ class P {
|
|
|
179
205
|
/* GET */
|
|
180
206
|
);
|
|
181
207
|
}
|
|
208
|
+
async getTourByUuid(i, t = "") {
|
|
209
|
+
const e = {};
|
|
210
|
+
t !== "" && (e.version_id = t);
|
|
211
|
+
const r = `experience/tour/uuid/${i}`, s = this.buildNexusUrl(
|
|
212
|
+
r,
|
|
213
|
+
e
|
|
214
|
+
);
|
|
215
|
+
return await this.callNexusAPI(
|
|
216
|
+
s,
|
|
217
|
+
"GET"
|
|
218
|
+
/* GET */
|
|
219
|
+
);
|
|
220
|
+
}
|
|
221
|
+
/*******************************************************************************************************************
|
|
222
|
+
* Epigraph Customizer API Calls *
|
|
223
|
+
******************************************************************************************************************/
|
|
224
|
+
async getCustomizerBySku(i, t = "") {
|
|
225
|
+
const e = {};
|
|
226
|
+
t !== "" && (e.version_id = t);
|
|
227
|
+
const r = `experience/customizer/sku/${i}`, s = this.buildNexusUrl(
|
|
228
|
+
r,
|
|
229
|
+
e
|
|
230
|
+
);
|
|
231
|
+
return await this.callNexusAPI(
|
|
232
|
+
s,
|
|
233
|
+
"GET"
|
|
234
|
+
/* GET */
|
|
235
|
+
);
|
|
236
|
+
}
|
|
237
|
+
async getCustomizerByShopifyVariantId(i, t = "") {
|
|
238
|
+
const e = {};
|
|
239
|
+
t !== "" && (e.version_id = t);
|
|
240
|
+
const r = `experience/customizer/shopify_variant_id/${i}`, s = this.buildNexusUrl(
|
|
241
|
+
r,
|
|
242
|
+
e
|
|
243
|
+
);
|
|
244
|
+
return await this.callNexusAPI(
|
|
245
|
+
s,
|
|
246
|
+
"GET"
|
|
247
|
+
/* GET */
|
|
248
|
+
);
|
|
249
|
+
}
|
|
250
|
+
async getCustomizerByUpc(i, t = "") {
|
|
251
|
+
const e = {};
|
|
252
|
+
t !== "" && (e.version_id = t);
|
|
253
|
+
const r = `experience/customizer/upc/${i}`, s = this.buildNexusUrl(
|
|
254
|
+
r,
|
|
255
|
+
e
|
|
256
|
+
);
|
|
257
|
+
return await this.callNexusAPI(
|
|
258
|
+
s,
|
|
259
|
+
"GET"
|
|
260
|
+
/* GET */
|
|
261
|
+
);
|
|
262
|
+
}
|
|
263
|
+
async getCustomizerByAsin(i, t = "") {
|
|
264
|
+
const e = {};
|
|
265
|
+
t !== "" && (e.version_id = t);
|
|
266
|
+
const r = `experience/customizer/asin/${i}`, s = this.buildNexusUrl(
|
|
267
|
+
r,
|
|
268
|
+
e
|
|
269
|
+
);
|
|
270
|
+
return await this.callNexusAPI(
|
|
271
|
+
s,
|
|
272
|
+
"GET"
|
|
273
|
+
/* GET */
|
|
274
|
+
);
|
|
275
|
+
}
|
|
276
|
+
async getCustomizerByUuid(i, t = "") {
|
|
277
|
+
const e = {};
|
|
278
|
+
t !== "" && (e.version_id = t);
|
|
279
|
+
const r = `experience/customizer/uuid/${i}`, s = this.buildNexusUrl(
|
|
280
|
+
r,
|
|
281
|
+
e
|
|
282
|
+
);
|
|
283
|
+
return await this.callNexusAPI(
|
|
284
|
+
s,
|
|
285
|
+
"GET"
|
|
286
|
+
/* GET */
|
|
287
|
+
);
|
|
288
|
+
}
|
|
182
289
|
/*******************************************************************************************************************
|
|
183
290
|
* Configurator API Calls *
|
|
184
291
|
******************************************************************************************************************/
|
|
@@ -278,14 +385,14 @@ class P {
|
|
|
278
385
|
try {
|
|
279
386
|
const a = await fetch(i, s), c = await a.json();
|
|
280
387
|
if (!a.ok) {
|
|
281
|
-
let
|
|
282
|
-
return c.message && (
|
|
283
|
-
|
|
388
|
+
let u = "Unable to retrieve configurator experience";
|
|
389
|
+
return c.message && (u = c.message), Promise.resolve(
|
|
390
|
+
o(c, a.status, u)
|
|
284
391
|
);
|
|
285
392
|
}
|
|
286
393
|
return Promise.resolve(l(c, a.status));
|
|
287
394
|
} catch {
|
|
288
|
-
return Promise.resolve(
|
|
395
|
+
return Promise.resolve(o({}, 500, "Unknown error"));
|
|
289
396
|
}
|
|
290
397
|
}
|
|
291
398
|
buildNexusUrl(i, t = {}) {
|
|
@@ -307,12 +414,12 @@ class P {
|
|
|
307
414
|
return i.has("accept") || i.set("accept", "application/json"), i.has("EPG-Location") || i.set("EPG-location", this.epgLocation), i.has("EPG-Session-ID") || i.set("EPG-Session-ID", this.epigraphSessionId), i.has("EPG-XPATH") || i.set("EPG-XPATH", this.epigraphXPath), i.has("EPG-Version") || i.set("EPG-Version", this.epigraphComponentVersion), i;
|
|
308
415
|
}
|
|
309
416
|
}
|
|
310
|
-
var p = /* @__PURE__ */ ((n) => (n.PRODUCTION = "https://api.myepigraph.com/api/", n.STAGING = "https://nexus.epigraph.dev/api/", n.LOCAL = "https://nexus.test/api/", n))(p || {}),
|
|
417
|
+
var p = /* @__PURE__ */ ((n) => (n.PRODUCTION = "https://api.myepigraph.com/api/", n.STAGING = "https://nexus.epigraph.dev/api/", n.STAGING_CANARY = "https://staging-canary.epigraph.dev/api/", n.LOCAL = "https://nexus.test/api/", n))(p || {}), y = /* @__PURE__ */ ((n) => (n.CLIENT_ACCESS_KEY = "client_access_key", n.EXPERIENCE_ID = "experience_id", n.PROJECT_ID = "project_id", n.SKU = "sku", n.SHOPIFY_VARIANT_ID = "shopify_variant_id", n.UPC = "upc", n.ASIN = "asin", n.UUID = "uuid", n))(y || {}), h = /* @__PURE__ */ ((n) => (n.BUTTON = "experience/button", n.VIEWER = "experience/viewer", n.TOUR = "experience/tour", n.CUSTOMIZER = "experience/customizer", n.CONFIGURATOR = "experience/configurator", n.CONFIGURATOR_LITE = "experience/configurator-lite", n.EXPERIENCE = "experience", n.SAVE = "save", n))(h || {}), x = /* @__PURE__ */ ((n) => (n.V1 = "v1/", n))(x || {}), $ = /* @__PURE__ */ ((n) => (n.GET = "GET", n.POST = "POST", n.PUT = "PUT", n.DELETE = "DELETE", n))($ || {});
|
|
311
418
|
export {
|
|
312
419
|
P as EpigraphNexusAPI,
|
|
313
420
|
$ as HTTPMethod,
|
|
314
|
-
|
|
315
|
-
|
|
421
|
+
y as NexusAPIResourceIdentifier,
|
|
422
|
+
h as NexusAPIRoutes,
|
|
316
423
|
x as NexusAPIVersions,
|
|
317
424
|
p as NexusEndpoints
|
|
318
425
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./Epigraph/epigraph.cjs"),n=require("./Epigraph/epigraphBaseSolutions.cjs"),e=require("./EpigraphLibs/EpigraphAnalytics/epigraphAnalytics.cjs"),E=require("./EpigraphLibs/EpigraphLogger/epigraphLogger.cjs"),p=require("./EpigraphLibs/EpigraphNexusApi/epigraphNexusApi.cjs"),g=require("./EpigraphLibs/EpigraphQrCodeGenerator/epigraphQrCodeGenerator.cjs"),r=require("./EpigraphLibs/EpigraphResultFactory/epigraphResultFactory.cjs"),t=require("./EpigraphLibs/EpigraphUnitsConverter/epigraphUnitsConverter.cjs"),i=require("./EpigraphLibs/EpigraphUrlProcessor/epigraphUrlProcessor.cjs");exports.ENVIRONMENT_TYPE=a.ENVIRONMENT_TYPE;exports.Epigraph=a.Epigraph;exports.EpigraphBaseSolutionHtmlElement=n.EpigraphBaseSolutionHtmlElement;exports.EpigraphBaseSolutionLitElement=n.EpigraphBaseSolutionLitElement;exports.ACTION_PERFORMED=e.ACTION_PERFORMED;exports.BUTTON_TYPE=e.BUTTON_TYPE;exports.CONTENT_TYPES=e.CONTENT_TYPES;exports.CURRENCY=e.CURRENCY;exports.ConsentPluginNames=e.ConsentPluginNames;exports.EpigraphAddToFavouritesEvent=e.EpigraphAddToFavouritesEvent;exports.EpigraphAnalytics=e.EpigraphAnalytics;exports.EpigraphArRequestedEvent=e.EpigraphArRequestedEvent;exports.EpigraphButtonClickEvent=e.EpigraphButtonClickEvent;exports.EpigraphChangeRateEvent=e.EpigraphChangeRateEvent;exports.EpigraphCheckoutEvent=e.EpigraphCheckoutEvent;exports.EpigraphCompletionRateEvent=e.EpigraphCompletionRateEvent;exports.EpigraphContentSharedEvent=e.EpigraphContentSharedEvent;exports.EpigraphConversionEvent=e.EpigraphConversionEvent;exports.EpigraphCustomEvent=e.EpigraphCustomEvent;exports.EpigraphEngagementRateEvent=e.EpigraphEngagementRateEvent;exports.EpigraphItemAddedEvent=e.EpigraphItemAddedEvent;exports.EpigraphItemMovedEvent=e.EpigraphItemMovedEvent;exports.EpigraphItemRemovedEvent=e.EpigraphItemRemovedEvent;exports.EpigraphKeyboardInteractionEvent=e.EpigraphKeyboardInteractionEvent;exports.EpigraphModuleClosedEvent=e.EpigraphModuleClosedEvent;exports.EpigraphModuleFailedEvent=e.EpigraphModuleFailedEvent;exports.EpigraphModuleLoadingEvent=e.EpigraphModuleLoadingEvent;exports.EpigraphModuleReadyEvent=e.EpigraphModuleReadyEvent;exports.EpigraphPanelClosedEvent=e.EpigraphPanelClosedEvent;exports.EpigraphPanelOpenedEvent=e.EpigraphPanelOpenedEvent;exports.EpigraphSupportDetectedEvent=e.EpigraphSupportDetectedEvent;exports.EpigraphTouchInteractionEvent=e.EpigraphTouchInteractionEvent;exports.EpigraphVariantChangedEvent=e.EpigraphVariantChangedEvent;exports.GA4AnalyticsPlugin=e.GA4AnalyticsPlugin;exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./Epigraph/epigraph.cjs"),n=require("./Epigraph/epigraphBaseSolutions.cjs"),e=require("./EpigraphLibs/EpigraphAnalytics/epigraphAnalytics.cjs"),E=require("./EpigraphLibs/EpigraphLogger/epigraphLogger.cjs"),p=require("./EpigraphLibs/EpigraphNexusApi/epigraphNexusApi.cjs"),g=require("./EpigraphLibs/EpigraphQrCodeGenerator/epigraphQrCodeGenerator.cjs"),r=require("./EpigraphLibs/EpigraphResultFactory/epigraphResultFactory.cjs"),t=require("./EpigraphLibs/EpigraphUnitsConverter/epigraphUnitsConverter.cjs"),i=require("./EpigraphLibs/EpigraphUrlProcessor/epigraphUrlProcessor.cjs");exports.ENVIRONMENT_TYPE=a.ENVIRONMENT_TYPE;exports.Epigraph=a.Epigraph;exports.EpigraphBaseSolutionHtmlElement=n.EpigraphBaseSolutionHtmlElement;exports.EpigraphBaseSolutionLitElement=n.EpigraphBaseSolutionLitElement;exports.ACTION_PERFORMED=e.ACTION_PERFORMED;exports.BUTTON_TYPE=e.BUTTON_TYPE;exports.CONTENT_TYPES=e.CONTENT_TYPES;exports.CURRENCY=e.CURRENCY;exports.ConsentPluginNames=e.ConsentPluginNames;exports.EpigraphAddToFavouritesEvent=e.EpigraphAddToFavouritesEvent;exports.EpigraphAnalytics=e.EpigraphAnalytics;exports.EpigraphArRequestedEvent=e.EpigraphArRequestedEvent;exports.EpigraphButtonClickEvent=e.EpigraphButtonClickEvent;exports.EpigraphChangeRateEvent=e.EpigraphChangeRateEvent;exports.EpigraphCheckoutEvent=e.EpigraphCheckoutEvent;exports.EpigraphCompletionRateEvent=e.EpigraphCompletionRateEvent;exports.EpigraphContentSharedEvent=e.EpigraphContentSharedEvent;exports.EpigraphConversionEvent=e.EpigraphConversionEvent;exports.EpigraphCustomEvent=e.EpigraphCustomEvent;exports.EpigraphEngagementRateEvent=e.EpigraphEngagementRateEvent;exports.EpigraphItemAddedEvent=e.EpigraphItemAddedEvent;exports.EpigraphItemMovedEvent=e.EpigraphItemMovedEvent;exports.EpigraphItemRemovedEvent=e.EpigraphItemRemovedEvent;exports.EpigraphKeyboardInteractionEvent=e.EpigraphKeyboardInteractionEvent;exports.EpigraphModuleClosedEvent=e.EpigraphModuleClosedEvent;exports.EpigraphModuleFailedEvent=e.EpigraphModuleFailedEvent;exports.EpigraphModuleLoadingEvent=e.EpigraphModuleLoadingEvent;exports.EpigraphModuleReadyEvent=e.EpigraphModuleReadyEvent;exports.EpigraphPanelClosedEvent=e.EpigraphPanelClosedEvent;exports.EpigraphPanelOpenedEvent=e.EpigraphPanelOpenedEvent;exports.EpigraphSupportDetectedEvent=e.EpigraphSupportDetectedEvent;exports.EpigraphTouchInteractionEvent=e.EpigraphTouchInteractionEvent;exports.EpigraphVariantChangedEvent=e.EpigraphVariantChangedEvent;exports.GA4AnalyticsPlugin=e.GA4AnalyticsPlugin;exports.MODULE_FAILED_ERRORS=e.MODULE_FAILED_ERRORS;exports.NexusAnalyticsPlugin=e.NexusAnalyticsPlugin;exports.OneTrustConsentPlugin=e.OneTrustConsentPlugin;exports.PANEL_TYPE=e.PANEL_TYPE;exports.SHARE_DESTINATIONS=e.SHARE_DESTINATIONS;exports.SUPPORT_TYPE=e.SUPPORT_TYPE;exports.TRIGGER_SOURCE=e.TRIGGER_SOURCE;exports.VARIANT_CHANGE_TYPES=e.VARIANT_CHANGE_TYPES;exports.EpigraphLogger=E.EpigraphLogger;exports.LogTypes=E.LogTypes;exports.LoggerModeNames=E.LoggerModeNames;exports.EpigraphNexusAPI=p.EpigraphNexusAPI;exports.HTTPMethod=p.HTTPMethod;exports.NexusAPIResourceIdentifier=p.NexusAPIResourceIdentifier;exports.NexusAPIRoutes=p.NexusAPIRoutes;exports.NexusAPIVersions=p.NexusAPIVersions;exports.NexusEndpoints=p.NexusEndpoints;exports.EpigraphQrCodeGenerator=g.EpigraphQrCodeGenerator;exports.Result=r.Result;exports.failureResult=r.failureResult;exports.successResult=r.successResult;exports.Distance=t.Distance;exports.DistanceUnits=t.DistanceUnits;exports.UnitTypes=t.UnitTypes;exports.EpigraphUrlProcessor=i.EpigraphUrlProcessor;exports.QUERY_PARAMETER_ACTION_NAMES=i.QUERY_PARAMETER_ACTION_NAMES;exports.QUERY_PARAMETER_NAMES=i.QUERY_PARAMETER_NAMES;
|
package/dist/epigraph-std-lib.js
CHANGED
|
@@ -1,71 +1,72 @@
|
|
|
1
1
|
import { ENVIRONMENT_TYPE as t, Epigraph as p } from "./Epigraph/epigraph.js";
|
|
2
2
|
import { EpigraphBaseSolutionHtmlElement as n, EpigraphBaseSolutionLitElement as o } from "./Epigraph/epigraphBaseSolutions.js";
|
|
3
|
-
import { ACTION_PERFORMED as i, BUTTON_TYPE as g, CONTENT_TYPES as s, CURRENCY as h, ConsentPluginNames as u, EpigraphAddToFavouritesEvent as
|
|
4
|
-
import { EpigraphLogger as
|
|
5
|
-
import { EpigraphNexusAPI as
|
|
6
|
-
import { EpigraphQrCodeGenerator as
|
|
7
|
-
import { Result as
|
|
8
|
-
import { Distance as
|
|
9
|
-
import { EpigraphUrlProcessor as le, QUERY_PARAMETER_ACTION_NAMES as
|
|
3
|
+
import { ACTION_PERFORMED as i, BUTTON_TYPE as g, CONTENT_TYPES as s, CURRENCY as h, ConsentPluginNames as u, EpigraphAddToFavouritesEvent as R, EpigraphAnalytics as l, EpigraphArRequestedEvent as d, EpigraphButtonClickEvent as v, EpigraphChangeRateEvent as T, EpigraphCheckoutEvent as A, EpigraphCompletionRateEvent as N, EpigraphContentSharedEvent as P, EpigraphConversionEvent as m, EpigraphCustomEvent as C, EpigraphEngagementRateEvent as I, EpigraphItemAddedEvent as _, EpigraphItemMovedEvent as c, EpigraphItemRemovedEvent as x, EpigraphKeyboardInteractionEvent as M, EpigraphModuleClosedEvent as S, EpigraphModuleFailedEvent as O, EpigraphModuleLoadingEvent as f, EpigraphModuleReadyEvent as U, EpigraphPanelClosedEvent as Y, EpigraphPanelOpenedEvent as L, EpigraphSupportDetectedEvent as y, EpigraphTouchInteractionEvent as D, EpigraphVariantChangedEvent as G, GA4AnalyticsPlugin as B, MODULE_FAILED_ERRORS as F, NexusAnalyticsPlugin as H, OneTrustConsentPlugin as V, PANEL_TYPE as Q, SHARE_DESTINATIONS as k, SUPPORT_TYPE as b, TRIGGER_SOURCE as q, VARIANT_CHANGE_TYPES as K } from "./EpigraphLibs/EpigraphAnalytics/epigraphAnalytics.js";
|
|
4
|
+
import { EpigraphLogger as w, LogTypes as z, LoggerModeNames as J } from "./EpigraphLibs/EpigraphLogger/epigraphLogger.js";
|
|
5
|
+
import { EpigraphNexusAPI as X, HTTPMethod as Z, NexusAPIResourceIdentifier as $, NexusAPIRoutes as ee, NexusAPIVersions as Ee, NexusEndpoints as te } from "./EpigraphLibs/EpigraphNexusApi/epigraphNexusApi.js";
|
|
6
|
+
import { EpigraphQrCodeGenerator as re } from "./EpigraphLibs/EpigraphQrCodeGenerator/epigraphQrCodeGenerator.js";
|
|
7
|
+
import { Result as oe, failureResult as ae, successResult as ie } from "./EpigraphLibs/EpigraphResultFactory/epigraphResultFactory.js";
|
|
8
|
+
import { Distance as se, DistanceUnits as he, UnitTypes as ue } from "./EpigraphLibs/EpigraphUnitsConverter/epigraphUnitsConverter.js";
|
|
9
|
+
import { EpigraphUrlProcessor as le, QUERY_PARAMETER_ACTION_NAMES as de, QUERY_PARAMETER_NAMES as ve } from "./EpigraphLibs/EpigraphUrlProcessor/epigraphUrlProcessor.js";
|
|
10
10
|
export {
|
|
11
11
|
i as ACTION_PERFORMED,
|
|
12
12
|
g as BUTTON_TYPE,
|
|
13
13
|
s as CONTENT_TYPES,
|
|
14
14
|
h as CURRENCY,
|
|
15
15
|
u as ConsentPluginNames,
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
se as Distance,
|
|
17
|
+
he as DistanceUnits,
|
|
18
18
|
t as ENVIRONMENT_TYPE,
|
|
19
19
|
p as Epigraph,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
R as EpigraphAddToFavouritesEvent,
|
|
21
|
+
l as EpigraphAnalytics,
|
|
22
|
+
d as EpigraphArRequestedEvent,
|
|
23
23
|
n as EpigraphBaseSolutionHtmlElement,
|
|
24
24
|
o as EpigraphBaseSolutionLitElement,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
v as EpigraphButtonClickEvent,
|
|
26
|
+
T as EpigraphChangeRateEvent,
|
|
27
|
+
A as EpigraphCheckoutEvent,
|
|
28
|
+
N as EpigraphCompletionRateEvent,
|
|
29
|
+
P as EpigraphContentSharedEvent,
|
|
30
30
|
m as EpigraphConversionEvent,
|
|
31
31
|
C as EpigraphCustomEvent,
|
|
32
32
|
I as EpigraphEngagementRateEvent,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
_ as EpigraphItemAddedEvent,
|
|
34
|
+
c as EpigraphItemMovedEvent,
|
|
35
|
+
x as EpigraphItemRemovedEvent,
|
|
36
36
|
M as EpigraphKeyboardInteractionEvent,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
w as EpigraphLogger,
|
|
38
|
+
S as EpigraphModuleClosedEvent,
|
|
39
|
+
O as EpigraphModuleFailedEvent,
|
|
40
40
|
f as EpigraphModuleLoadingEvent,
|
|
41
41
|
U as EpigraphModuleReadyEvent,
|
|
42
|
-
|
|
42
|
+
X as EpigraphNexusAPI,
|
|
43
43
|
Y as EpigraphPanelClosedEvent,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
L as EpigraphPanelOpenedEvent,
|
|
45
|
+
re as EpigraphQrCodeGenerator,
|
|
46
|
+
y as EpigraphSupportDetectedEvent,
|
|
47
47
|
D as EpigraphTouchInteractionEvent,
|
|
48
48
|
le as EpigraphUrlProcessor,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
49
|
+
G as EpigraphVariantChangedEvent,
|
|
50
|
+
B as GA4AnalyticsPlugin,
|
|
51
|
+
Z as HTTPMethod,
|
|
52
|
+
z as LogTypes,
|
|
53
|
+
J as LoggerModeNames,
|
|
54
|
+
F as MODULE_FAILED_ERRORS,
|
|
55
|
+
$ as NexusAPIResourceIdentifier,
|
|
56
|
+
ee as NexusAPIRoutes,
|
|
57
|
+
Ee as NexusAPIVersions,
|
|
58
58
|
H as NexusAnalyticsPlugin,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
te as NexusEndpoints,
|
|
60
|
+
V as OneTrustConsentPlugin,
|
|
61
|
+
Q as PANEL_TYPE,
|
|
62
|
+
de as QUERY_PARAMETER_ACTION_NAMES,
|
|
63
|
+
ve as QUERY_PARAMETER_NAMES,
|
|
64
|
+
oe as Result,
|
|
65
65
|
k as SHARE_DESTINATIONS,
|
|
66
66
|
b as SUPPORT_TYPE,
|
|
67
67
|
q as TRIGGER_SOURCE,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
ae as
|
|
68
|
+
ue as UnitTypes,
|
|
69
|
+
K as VARIANT_CHANGE_TYPES,
|
|
70
|
+
ae as failureResult,
|
|
71
|
+
ie as successResult
|
|
71
72
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epigraph/epigraph-std-lib",
|
|
3
|
-
"version": "5.0.0-alpha",
|
|
3
|
+
"version": "5.0.0-alpha.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/epigraph-std-lib.cjs",
|
|
6
6
|
"module": "./dist/epigraph-std-lib.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
|
-
"dev": "vite",
|
|
20
|
+
"dev": "vite --force",
|
|
21
21
|
"build": "tsc -b ./tsconfig.lib.json && vite build",
|
|
22
22
|
"preview": "vite preview",
|
|
23
23
|
"prepublishOnly": "npm run build",
|