@epigraph/solutions 1.0.12-alpha → 1.0.12

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Epigraph
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Epigraph
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,21 +1,21 @@
1
- A collection of solutions offered by Epigraph. The intent of this initiative to provide easy and streamlined access to the offerings we have in a single place. For now, the supported solutions are mentioned below, but more are expected to be added in the future.
2
-
3
- ## `<epigraph-button/>`
4
- - Quickstart Guide: https://docs.myepigraph.com/docs/epigraph-button-quickstart#/
5
- - Knowledgebase: https://docs.myepigraph.com/update/docs/epigraph-button-knowledgebase#/
6
-
7
- ## `<epigraph-viewer/>`
8
- - Quickstart Guide: https://docs.myepigraph.com/docs/epigraph-viewer-quickstart#/
9
- - Knowledgebase: https://docs.myepigraph.com/update/docs/epigraph-viewer-knowledgebase#/
10
-
11
- ## `<epigraph-tour/>`
12
- - Quickstart Guide: https://docs.myepigraph.com/docs/epigraph-tour-quickstart#/
13
- - Knowledgebase: https://docs.myepigraph.com/update/docs/epigraph-tour-knowledgebase#/
14
-
15
- ## `<epigraph-previewer/>`
16
- - Quickstart Guide: https://docs.myepigraph.com/docs/epigraph-tour-quickstart#/
17
- - Knowledgebase: https://docs.myepigraph.com/update/docs/epigraph-tour-knowledgebase#/
18
-
19
- ## `<epigraph-hotspot-tool/>`
20
- - Quickstart Guide: https://docs.myepigraph.com/docs/epigraph-tour-quickstart#/
21
- - Knowledgebase: https://docs.myepigraph.com/update/docs/epigraph-tour-knowledgebase#/
1
+ A collection of solutions offered by Epigraph. The intent of this initiative to provide easy and streamlined access to the offerings we have in a single place. For now, the supported solutions are mentioned below, but more are expected to be added in the future.
2
+
3
+ ## `<epigraph-button/>`
4
+ - Quickstart Guide: https://docs.myepigraph.com/docs/epigraph-button-quickstart#/
5
+ - Knowledgebase: https://docs.myepigraph.com/update/docs/epigraph-button-knowledgebase#/
6
+
7
+ ## `<epigraph-viewer/>`
8
+ - Quickstart Guide: https://docs.myepigraph.com/docs/epigraph-viewer-quickstart#/
9
+ - Knowledgebase: https://docs.myepigraph.com/update/docs/epigraph-viewer-knowledgebase#/
10
+
11
+ ## `<epigraph-tour/>`
12
+ - Quickstart Guide: https://docs.myepigraph.com/docs/epigraph-tour-quickstart#/
13
+ - Knowledgebase: https://docs.myepigraph.com/update/docs/epigraph-tour-knowledgebase#/
14
+
15
+ ## `<epigraph-previewer/>`
16
+ - Quickstart Guide: https://docs.myepigraph.com/docs/epigraph-tour-quickstart#/
17
+ - Knowledgebase: https://docs.myepigraph.com/update/docs/epigraph-tour-knowledgebase#/
18
+
19
+ ## `<epigraph-hotspot-tool/>`
20
+ - Quickstart Guide: https://docs.myepigraph.com/docs/epigraph-tour-quickstart#/
21
+ - Knowledgebase: https://docs.myepigraph.com/update/docs/epigraph-tour-knowledgebase#/
@@ -31,7 +31,7 @@ var gf=(o=>(o.Release="release",o.Staging="staging",o.Dev="dev",o))(gf||{});let
31
31
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32
32
  * See the License for the specific language governing permissions and
33
33
  * limitations under the License.
34
- */var ET;const Pu=Symbol("analyticsPluginsMap");ET=Pu;class hR{constructor(e,t){this[ET]=new Map,this.__consentPlugin=null,e&&t&&(this.__consentPlugin=this.buildConsentPlugin(e,t)),window.addEventListener("epigraphAnalyticsConsentChange",this.__onConsentChangeFromEvent)}__onConsentChangeFromEvent(e){let t=e;this.__overrideConsent=t.detail.hasConsent;for(const i of this[Pu].values())this.__hasConsent()||i.setStatus(wa.RESTRICTED)}addEventPlugin(e){this[Pu].has(e.getUniquePluginIdentifier())||(this[Pu].set(e.getUniquePluginIdentifier(),e),e.setupPlugin())}__hasConsent(){let e=!0;return this.__overrideConsent!==void 0?(e=this.__overrideConsent,e):(this.__consentPlugin&&(e=this.__consentPlugin.hasConsent()),e)}sendEvent(e){this[Pu].forEach(t=>{t.sendEvent(e,this.__hasConsent())})}buildConsentPlugin(e,t){return e.toLowerCase()===AT.OneTrust.toLowerCase()?new oR(t):null}}let xT=class{constructor(e,t,i,s=""){this._success=e,this._payload=t,this._status=i,this._message=s}get success(){return this._success}get payload(){return this._payload}get status(){return this._status}get message(){return this._message}};function dR(o,e,t=""){return new xT(!0,o,e,t)}function Wy(o,e,t=""){return new xT(!1,o,e,t)}let E0=class{constructor(e="https://api.myepigraph.com/api/",t,i,s="",l="",u="v1/"){this.epigraphXPath="",this.epigraphComponentVersion=s,this.epigraphSessionId=i,this.epigraphXPath=l,this.baseUrl=e+u,this.epgLocation=t}async getButtonBySku(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/button/sku/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getButtonByShopifyVariantId(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/button/shopify_variant_id/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getButtonByUpc(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/button/upc/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getButtonByAsin(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/button/asin/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getButtonByUuid(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/button/uuid/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getViewerBySku(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/viewer/sku/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getViewerByShopifyVariantId(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/viewer/shopify_variant_id/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getViewerByUpc(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/viewer/upc/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getViewerByAsin(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/viewer/asin/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getViewerByUuid(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/viewer/uuid/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getTourBySku(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/tour/sku/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getTourByShopifyVariantId(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/tour/shopify_variant_id/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getTourByUpc(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/tour/upc/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getTourByAsin(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/tour/asin/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getTourByUuid(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/tour/uuid/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getCustomizerBySku(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/customizer/sku/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getCustomizerByShopifyVariantId(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/customizer/shopify_variant_id/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getCustomizerByUpc(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/customizer/upc/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getCustomizerByAsin(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/customizer/asin/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getCustomizerByUuid(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/customizer/uuid/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getConfiguratorByExperienceId(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/configurator/experience_id/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getConfiguratorByClientAccessKey(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/configurator/client_access_key/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getConfiguratorLiteByExperienceId(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/configurator-lite/experience_id/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getConfiguratorLiteByProjectId(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/configurator-lite/project_id/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async postExperienceSaveAndShare(e,t){const i=`experience/${e}/save`,s=this.buildNexusUrl(i),l={save_data:JSON.stringify(t)},u=new Headers;return u.set("Content-Type","application/json"),await this.callNexusAPI(s,"POST",JSON.stringify(l),u)}async getExperienceSaveAndShare(e,t){const i=`experience/${e}/save/${t}`,s=this.buildNexusUrl(i);return await this.callNexusAPI(s,"GET")}async callNexusAPI(e,t="GET",i,s=new Headers){s=this.addRequiredHeaders(s);const l={method:t,body:i,headers:s};try{const u=await fetch(e,l),d=await u.json();if(!u.ok){let f="Unable to retrieve configurator experience";return d.message&&(f=d.message),Promise.resolve(Wy(d,u.status,f))}return Promise.resolve(dR(d,u.status))}catch{return Promise.resolve(Wy({},500,"Unknown error"))}}buildNexusUrl(e,t={}){let i=new URL(this.baseUrl);i.pathname+=e;for(const[s,l]of Object.entries(t))i.searchParams.set(s,l);return i}addRequiredHeaders(e){return e.has("accept")||e.set("accept","application/json"),e.has("EPG-Location")||e.set("EPG-location",this.epgLocation),e.has("EPG-Session-ID")||e.set("EPG-Session-ID",this.epigraphSessionId),e.has("EPG-XPATH")||e.set("EPG-XPATH",this.epigraphXPath),e.has("EPG-Version")||e.set("EPG-Version",this.epigraphComponentVersion),e}};var Af=(o=>(o.PRODUCTION="https://api.myepigraph.com/api/",o.STAGING="https://nexus.epigraph.dev/api/",o.LOCAL="https://nexus.test/api/",o))(Af||{});/**
34
+ */var ET;const Pu=Symbol("analyticsPluginsMap");ET=Pu;class hR{constructor(e,t){this[ET]=new Map,this.__consentPlugin=null,e&&t&&(this.__consentPlugin=this.buildConsentPlugin(e,t)),window.addEventListener("epigraphAnalyticsConsentChange",this.__onConsentChangeFromEvent)}__onConsentChangeFromEvent(e){let t=e;this.__overrideConsent=t.detail.hasConsent;for(const i of this[Pu].values())this.__hasConsent()||i.setStatus(wa.RESTRICTED)}addEventPlugin(e){this[Pu].has(e.getUniquePluginIdentifier())||(this[Pu].set(e.getUniquePluginIdentifier(),e),e.setupPlugin())}__hasConsent(){let e=!0;return this.__overrideConsent!==void 0?(e=this.__overrideConsent,e):(this.__consentPlugin&&(e=this.__consentPlugin.hasConsent()),e)}sendEvent(e){this[Pu].forEach(t=>{t.sendEvent(e,this.__hasConsent())})}buildConsentPlugin(e,t){return e.toLowerCase()===AT.OneTrust.toLowerCase()?new oR(t):null}}let xT=class{constructor(e,t,i,s=""){this._success=e,this._payload=t,this._status=i,this._message=s}get success(){return this._success}get payload(){return this._payload}get status(){return this._status}get message(){return this._message}};function dR(o,e,t=""){return new xT(!0,o,e,t)}function Wy(o,e,t=""){return new xT(!1,o,e,t)}let E0=class{constructor(e="https://api.myepigraph.com/api/",t,i,s="",l="",u="v1/"){this.epigraphXPath="",this.epigraphComponentVersion=s,this.epigraphSessionId=i,this.epigraphXPath=l,this.baseUrl=e+u,this.epgLocation=t}async getButtonBySku(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/button/sku/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getButtonByShopifyVariantId(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/button/shopify_variant_id/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getButtonByUpc(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/button/upc/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getButtonByAsin(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/button/asin/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getButtonByUuid(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/button/uuid/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getViewerBySku(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/viewer/sku/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getViewerByShopifyVariantId(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/viewer/shopify_variant_id/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getViewerByUpc(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/viewer/upc/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getViewerByAsin(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/viewer/asin/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getViewerByUuid(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/viewer/uuid/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getTourBySku(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/tour/sku/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getTourByShopifyVariantId(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/tour/shopify_variant_id/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getTourByUpc(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/tour/upc/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getTourByAsin(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/tour/asin/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getTourByUuid(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/tour/uuid/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getCustomizerBySku(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/customizer/sku/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getCustomizerByShopifyVariantId(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/customizer/shopify_variant_id/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getCustomizerByUpc(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/customizer/upc/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getCustomizerByAsin(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/customizer/asin/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getCustomizerByUuid(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/customizer/uuid/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getConfiguratorByExperienceId(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/configurator/experience_id/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getConfiguratorByClientAccessKey(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/configurator/client_access_key/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getConfiguratorLiteByExperienceId(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/configurator-lite/experience_id/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async getConfiguratorLiteByProjectId(e,t=""){const i={};t!==""&&(i.version_id=t);const s=`experience/configurator-lite/project_id/${e}`,l=this.buildNexusUrl(s,i);return await this.callNexusAPI(l,"GET")}async postExperienceSaveAndShare(e,t){const i=`experience/${e}/save`,s=this.buildNexusUrl(i),l={save_data:JSON.stringify(t)},u=new Headers;return u.set("Content-Type","application/json"),await this.callNexusAPI(s,"POST",JSON.stringify(l),u)}async getExperienceSaveAndShare(e,t){const i=`experience/${e}/save/${t}`,s=this.buildNexusUrl(i);return await this.callNexusAPI(s,"GET")}async callNexusAPI(e,t="GET",i,s=new Headers){s=this.addRequiredHeaders(s);const l={method:t,body:i,headers:s};try{const u=await fetch(e,l),d=await u.json();if(!u.ok){let f="Unable to retrieve configurator experience";return d.message&&(f=d.message),Promise.resolve(Wy(d,u.status,f))}return Promise.resolve(dR(d,u.status))}catch(u){return console.log(u),Promise.resolve(Wy({},500,"Unknown error"))}}buildNexusUrl(e,t={}){let i=new URL(this.baseUrl);i.pathname+=e;for(const[s,l]of Object.entries(t))i.searchParams.set(s,l);return i}addRequiredHeaders(e){return e.has("accept")||e.set("accept","application/json"),e.has("EPG-Location")||e.set("EPG-location",this.epgLocation),e.has("EPG-Session-ID")||e.set("EPG-Session-ID",this.epigraphSessionId),e.has("EPG-XPATH")||e.set("EPG-XPATH",this.epigraphXPath),e.has("EPG-Version")||e.set("EPG-Version",this.epigraphComponentVersion),e}};var Af=(o=>(o.PRODUCTION="https://api.myepigraph.com/api/",o.STAGING="https://nexus.epigraph.dev/api/",o.LOCAL="https://nexus.test/api/",o))(Af||{});/**
35
35
  * @license
36
36
  * Copyright 2019 Google LLC
37
37
  * SPDX-License-Identifier: BSD-3-Clause
package/package.json CHANGED
@@ -1,76 +1,76 @@
1
- {
2
- "name": "@epigraph/solutions",
3
- "version": "1.0.12-alpha",
4
- "type": "module",
5
- "main": "./dist/epigraph-solutions.js",
6
- "files": [
7
- "dist"
8
- ],
9
- "scripts": {
10
- "component:create": "node ./npm-scripts/createNewUiComponent.js",
11
- "dev": "vite --force",
12
- "build:ui-components": "cross-env NODE_ENV=production && tsc && vite build --config ui-components-vite.config.ts",
13
- "build:epigraph-solutions": "cross-env NODE_ENV=production && tsc && vite build",
14
- "build:epigraph-previewer": "cross-env NODE_ENV=production && tsc && vite build --config epigraph-previewer-vite.config.ts",
15
- "build:demo-pages": "cross-env NODE_ENV=production && tsc && vite build --config demo-pages-vite.config.ts",
16
- "build": "npm run build:ui-components && npm run build:epigraph-solutions && npm run build:epigraph-previewer",
17
- "docs": "typedoc ./lib/solutions/Solutions/**/*.api.ts",
18
- "chromatic": "cross-env NODE_ENV=production && npx chromatic --project-token=chpt_cb7e103f37516af",
19
- "preview": "vite preview",
20
- "prepublishOnly": "npm run build:epigraph-solutions",
21
- "storybook": "storybook dev -p 6007",
22
- "build-storybook": "storybook build",
23
- "format": "tsc --noEmit && prettier . --write && eslint . --fix"
24
- },
25
- "husky": {
26
- "hooks": {
27
- "pre-commit": "npm run format"
28
- }
29
- },
30
- "lint-staged": {
31
- "*.{js,jsx,ts,tsx,json,css,md}": [
32
- "npm run format"
33
- ]
34
- },
35
- "devDependencies": {
36
- "@babel/core": "^7.26.0",
37
- "@chromatic-com/storybook": "^3.2.6",
38
- "@epigraph/epigraph-std-lib": "5.0.0-alpha.8",
39
- "@gltf-transform/functions": "^4.1.3",
40
- "@google/model-viewer": "^4.1.0",
41
- "@storybook/addon-actions": "^8.5.8",
42
- "@storybook/addon-essentials": "^8.6.12",
43
- "@storybook/addon-links": "^8.5.8",
44
- "@storybook/addon-mdx-gfm": "^8.5.8",
45
- "@storybook/blocks": "^8.6.12",
46
- "@storybook/builder-vite": "^8.5.8",
47
- "@storybook/test": "^8.6.12",
48
- "@storybook/web-components": "^8.6.12",
49
- "@storybook/web-components-vite": "^8.6.12",
50
- "@tweenjs/tween.js": "^25.0.0",
51
- "@types/node": "^22.14.0",
52
- "@types/three": "^0.172.0",
53
- "babel-loader": "^8.2.3",
54
- "camera-controls": "^3.1.0",
55
- "chromatic": "^13.0.1",
56
- "eslint": "^9.26.0",
57
- "gltf-validator": "^2.0.0-dev.3.10",
58
- "inquirer": "^12.4.1",
59
- "prettier": "^3.5.3",
60
- "storybook": "^8.6.12",
61
- "three": "^0.172.0",
62
- "typedoc": "^0.28.16",
63
- "typedoc-plugin-markdown": "^4.9.0",
64
- "typescript": "^5.8.2",
65
- "vite": "^6.2.0",
66
- "vite-plugin-dts": "^4.5.4"
67
- },
68
- "dependencies": {
69
- "@pmndrs/vanilla": "^1.25.0",
70
- "@typescript-eslint/eslint-plugin": "^8.32.1",
71
- "cross-env": "^7.0.3",
72
- "dompurify": "^3.2.6",
73
- "lit": "^3.3.0",
74
- "swiper": "^11.2.8"
75
- }
76
- }
1
+ {
2
+ "name": "@epigraph/solutions",
3
+ "version": "1.0.12",
4
+ "type": "module",
5
+ "main": "./dist/epigraph-solutions.js",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "scripts": {
10
+ "component:create": "node ./npm-scripts/createNewUiComponent.js",
11
+ "dev": "vite --force",
12
+ "build:ui-components": "cross-env NODE_ENV=production && tsc && vite build --config ui-components-vite.config.ts",
13
+ "build:epigraph-solutions": "cross-env NODE_ENV=production && tsc && vite build",
14
+ "build:epigraph-previewer": "cross-env NODE_ENV=production && tsc && vite build --config epigraph-previewer-vite.config.ts",
15
+ "build:demo-pages": "cross-env NODE_ENV=production && tsc && vite build --config demo-pages-vite.config.ts",
16
+ "build": "npm run build:ui-components && npm run build:epigraph-solutions && npm run build:epigraph-previewer",
17
+ "docs": "typedoc ./lib/solutions/Solutions/**/*.api.ts",
18
+ "chromatic": "cross-env NODE_ENV=production && npx chromatic --project-token=chpt_cb7e103f37516af",
19
+ "preview": "vite preview",
20
+ "prepublishOnly": "npm run build:epigraph-solutions",
21
+ "storybook": "storybook dev -p 6007",
22
+ "build-storybook": "storybook build",
23
+ "format": "tsc --noEmit && prettier . --write && eslint . --fix"
24
+ },
25
+ "husky": {
26
+ "hooks": {
27
+ "pre-commit": "npm run format"
28
+ }
29
+ },
30
+ "lint-staged": {
31
+ "*.{js,jsx,ts,tsx,json,css,md}": [
32
+ "npm run format"
33
+ ]
34
+ },
35
+ "devDependencies": {
36
+ "@babel/core": "^7.26.0",
37
+ "@chromatic-com/storybook": "^3.2.6",
38
+ "@epigraph/epigraph-std-lib": "5.0.0-alpha.8",
39
+ "@gltf-transform/functions": "^4.1.3",
40
+ "@google/model-viewer": "^4.1.0",
41
+ "@storybook/addon-actions": "^8.5.8",
42
+ "@storybook/addon-essentials": "^8.6.12",
43
+ "@storybook/addon-links": "^8.5.8",
44
+ "@storybook/addon-mdx-gfm": "^8.5.8",
45
+ "@storybook/blocks": "^8.6.12",
46
+ "@storybook/builder-vite": "^8.5.8",
47
+ "@storybook/test": "^8.6.12",
48
+ "@storybook/web-components": "^8.6.12",
49
+ "@storybook/web-components-vite": "^8.6.12",
50
+ "@tweenjs/tween.js": "^25.0.0",
51
+ "@types/node": "^22.14.0",
52
+ "@types/three": "^0.172.0",
53
+ "babel-loader": "^8.2.3",
54
+ "camera-controls": "^3.1.0",
55
+ "chromatic": "^13.0.1",
56
+ "eslint": "^9.26.0",
57
+ "gltf-validator": "^2.0.0-dev.3.10",
58
+ "inquirer": "^12.4.1",
59
+ "prettier": "^3.5.3",
60
+ "storybook": "^8.6.12",
61
+ "three": "^0.172.0",
62
+ "typedoc": "^0.28.16",
63
+ "typedoc-plugin-markdown": "^4.9.0",
64
+ "typescript": "^5.8.2",
65
+ "vite": "^6.2.0",
66
+ "vite-plugin-dts": "^4.5.4"
67
+ },
68
+ "dependencies": {
69
+ "@pmndrs/vanilla": "^1.25.0",
70
+ "@typescript-eslint/eslint-plugin": "^8.32.1",
71
+ "cross-env": "^7.0.3",
72
+ "dompurify": "^3.2.6",
73
+ "lit": "^3.3.0",
74
+ "swiper": "^11.2.8"
75
+ }
76
+ }