@spiffcommerce/preview 2.1.0 → 2.1.2
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/module.js +1356 -1
- package/dist/types.d.ts +0 -1
- package/package.json +18 -4
package/dist/types.d.ts
CHANGED
|
@@ -509,7 +509,6 @@ export class SpiffCommerce3DPreviewService implements ThreeDPreviewService {
|
|
|
509
509
|
onMaterialSelected(cb: (material: MaterialHandle) => void): void;
|
|
510
510
|
listMaterials(): readonly MaterialHandle[];
|
|
511
511
|
setHighlights(materials: readonly MaterialHandle[], color?: readonly [number, number, number]): void;
|
|
512
|
-
initXRExperience(buttonEl: HTMLElement): void;
|
|
513
512
|
}
|
|
514
513
|
/**
|
|
515
514
|
* Adds a tags a base mesh to the scene.
|
package/package.json
CHANGED
|
@@ -1,21 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spiffcommerce/preview",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "An internal implementation of the ThreeDPreviewService interface used by Spiff Commerce",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "dist/main.js",
|
|
7
7
|
"module": "dist/module.js",
|
|
8
|
+
"tree-shake-test": "dist/tree-shake-test.js",
|
|
8
9
|
"types": "dist/types.d.ts",
|
|
9
10
|
"license": "UNLICENSED",
|
|
10
11
|
"scripts": {
|
|
11
|
-
"build": "parcel build",
|
|
12
|
-
"test": "
|
|
12
|
+
"build": "yarn test && parcel build",
|
|
13
|
+
"test": "eslint src --ext .ts && jest && size-limit",
|
|
13
14
|
"prepare": "yarn build"
|
|
14
15
|
},
|
|
15
16
|
"targets": {
|
|
16
17
|
"main": false,
|
|
17
18
|
"module": {
|
|
18
|
-
"optimize":
|
|
19
|
+
"optimize": false
|
|
20
|
+
},
|
|
21
|
+
"tree-shake-test": {
|
|
22
|
+
"isLibrary": true,
|
|
23
|
+
"optimize": false,
|
|
24
|
+
"includeNodeModules": true
|
|
19
25
|
}
|
|
20
26
|
},
|
|
21
27
|
"dependencies": {
|
|
@@ -31,6 +37,7 @@
|
|
|
31
37
|
"@parcel/packager-ts": "2.7.0",
|
|
32
38
|
"@parcel/transformer-typescript-tsc": "^2.7.0",
|
|
33
39
|
"@parcel/transformer-typescript-types": "^2.7.0",
|
|
40
|
+
"@size-limit/preset-big-lib": "^8.1.0",
|
|
34
41
|
"@storybook/addon-actions": "^6.5.12",
|
|
35
42
|
"@storybook/addon-essentials": "^6.5.12",
|
|
36
43
|
"@storybook/addon-interactions": "^6.5.12",
|
|
@@ -55,9 +62,16 @@
|
|
|
55
62
|
"prettier": "^2.7.1",
|
|
56
63
|
"react": "^18.2.0",
|
|
57
64
|
"react-dom": "^18.2.0",
|
|
65
|
+
"size-limit": "^8.1.0",
|
|
58
66
|
"ts-jest": "^29.0.3",
|
|
59
67
|
"typescript": "4.7.2"
|
|
60
68
|
},
|
|
69
|
+
"size-limit": [
|
|
70
|
+
{
|
|
71
|
+
"limit": "405 KB",
|
|
72
|
+
"path": "dist/module.js"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
61
75
|
"files": [
|
|
62
76
|
"dist/module.js",
|
|
63
77
|
"dist/types.d.ts"
|