@threekit-tools/treble 0.0.81 → 0.0.84
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/Treble/Treble.d.ts +11 -5
- package/dist/Treble/Treble.js +41 -12
- package/dist/Treble/index.d.ts +2 -2
- package/dist/Treble/index.js +7 -3
- package/dist/Treble/{Snapshots.d.ts → snapshots.d.ts} +4 -9
- package/dist/Treble/snapshots.js +247 -0
- package/dist/Treble/{Wishlist.d.ts → wishlist.d.ts} +2 -6
- package/dist/Treble/wishlist.js +135 -0
- package/dist/api/catalog.js +6 -6
- package/dist/api/configurations.js +3 -3
- package/dist/api/datatables.js +5 -5
- package/dist/api/index.js +5 -1
- package/dist/api/orders.d.ts +5 -7
- package/dist/api/orders.js +12 -12
- package/dist/api/price.js +2 -2
- package/dist/api/products.js +2 -2
- package/dist/components/Accordion/index.js +6 -7
- package/dist/components/AttributeTitle/index.d.ts +0 -9
- package/dist/components/AttributeTitle/index.js +0 -9
- package/dist/components/AttributeValue/index.d.ts +0 -6
- package/dist/components/AttributeValue/index.js +2 -8
- package/dist/components/Button/index.d.ts +0 -27
- package/dist/components/Button/index.js +0 -27
- package/dist/components/Cards/index.d.ts +2 -55
- package/dist/components/Cards/index.js +3 -60
- package/dist/components/Drawer/index.js +7 -16
- package/dist/components/Dropdown/index.d.ts +2 -59
- package/dist/components/Dropdown/index.js +11 -72
- package/dist/components/FlatForm/index.d.ts +0 -21
- package/dist/components/FlatForm/index.js +10 -25
- package/dist/components/Modal/index.js +2 -15
- package/dist/components/Player/index.d.ts +1 -1
- package/dist/components/PortalToArOverlay/index.js +5 -1
- package/dist/components/PortalToElement/index.js +0 -8
- package/dist/components/ProductDescription/index.d.ts +0 -6
- package/dist/components/ProductDescription/index.js +0 -6
- package/dist/components/ProductName/index.d.ts +0 -9
- package/dist/components/ProductName/index.js +0 -9
- package/dist/components/Share/index.d.ts +0 -12
- package/dist/components/Share/index.js +2 -14
- package/dist/components/Snapshots/index.d.ts +0 -8
- package/dist/components/Snapshots/index.js +2 -10
- package/dist/components/Strips/index.d.ts +2 -55
- package/dist/components/Strips/index.js +3 -60
- package/dist/components/Swatch/index.d.ts +2 -64
- package/dist/components/Swatch/index.js +3 -69
- package/dist/components/Switch/index.d.ts +2 -34
- package/dist/components/Switch/index.js +2 -38
- package/dist/components/Tabs/index.js +5 -1
- package/dist/components/TextInput/index.d.ts +2 -1
- package/dist/components/TextInput/index.js +2 -3
- package/dist/components/ThreekitProvider/index.js +5 -1
- package/dist/components/Tiles/index.d.ts +2 -29
- package/dist/components/Tiles/index.js +3 -33
- package/dist/components/TilesGroup/index.d.ts +2 -26
- package/dist/components/TilesGroup/index.js +3 -30
- package/dist/components/TotalPrice/index.d.ts +0 -6
- package/dist/components/TotalPrice/index.js +0 -6
- package/dist/components/TrebleApp/index.js +5 -1
- package/dist/components/Upload/index.d.ts +2 -1
- package/dist/components/Upload/index.js +21 -17
- package/dist/components/UploadArea/index.d.ts +2 -1
- package/dist/components/UploadArea/index.js +18 -15
- package/dist/components/Wishlist/index.d.ts +0 -3
- package/dist/components/Wishlist/index.js +12 -10
- package/dist/components/Zoom/index.d.ts +0 -17
- package/dist/components/Zoom/index.js +5 -21
- package/dist/components/formComponents.d.ts +12 -0
- package/dist/components/formComponents.js +10 -8
- package/dist/components/message/index.d.ts +0 -9
- package/dist/components/message/index.js +4 -31
- package/dist/connection.js +2 -2
- package/dist/constants.d.ts +0 -49
- package/dist/constants.js +1 -59
- package/dist/hooks/useAttribute/index.d.ts +1 -1
- package/dist/hooks/useAttribute/index.js +6 -6
- package/dist/hooks/useConfigurationLoader/index.js +5 -5
- package/dist/hooks/useNestedConfigurator/index.js +2 -2
- package/dist/hooks/useShare/index.js +3 -3
- package/dist/hooks/useSingleAnimation/index.js +20 -25
- package/dist/http/datatables.js +0 -1
- package/dist/http/index.js +5 -1
- package/dist/http/orders.d.ts +6 -8
- package/dist/icons/Spinner.js +5 -1
- package/dist/icons/index.d.ts +0 -41
- package/dist/icons/index.js +0 -42
- package/dist/index.d.ts +42 -3
- package/dist/index.js +84 -26
- package/dist/store/attributes.d.ts +0 -12
- package/dist/store/attributes.js +2 -15
- package/dist/store/index.d.ts +1 -1
- package/dist/store/price.d.ts +0 -12
- package/dist/store/price.js +2 -16
- package/dist/store/product.d.ts +6 -21
- package/dist/store/product.js +26 -38
- package/dist/store/translations.d.ts +1 -13
- package/dist/store/translations.js +2 -12
- package/dist/store/treble.d.ts +1 -16
- package/dist/store/treble.js +31 -66
- package/dist/store/wishlist.d.ts +0 -12
- package/dist/store/wishlist.js +4 -17
- package/dist/types.d.ts +118 -65
- package/dist/types.js +54 -0
- package/dist/utils.d.ts +10 -10
- package/dist/utils.js +8 -16
- package/package.json +16 -4
- package/dist/Treble/Snapshots.js +0 -251
- package/dist/Treble/Wishlist.js +0 -136
- package/dist/hooks/useImageEditor/index.d.ts +0 -14
- package/dist/hooks/useImageEditor/index.js +0 -320
|
@@ -53,6 +53,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
53
53
|
var react_1 = require("react");
|
|
54
54
|
var useThreekitInitStatus_1 = __importDefault(require("../useThreekitInitStatus"));
|
|
55
55
|
var utils_1 = require("../../utils");
|
|
56
|
+
var types_1 = require("../../types");
|
|
56
57
|
var prepAnimateConfig = function (config) {
|
|
57
58
|
return new Promise(function (resolve) { return __awaiter(void 0, void 0, void 0, function () {
|
|
58
59
|
var totalDuration, player, assetId, nodesRaw, nodes;
|
|
@@ -60,10 +61,10 @@ var prepAnimateConfig = function (config) {
|
|
|
60
61
|
switch (_a.label) {
|
|
61
62
|
case 0:
|
|
62
63
|
totalDuration = config.duration * 1000 || 0;
|
|
63
|
-
player = window.threekit.player.enableApi(
|
|
64
|
-
return [4
|
|
64
|
+
player = window.threekit.player.enableApi(types_1.PRIVATE_APIS.PLAYER);
|
|
65
|
+
return [4, player.getAssetInstance(window.threekit.player.scene.find({
|
|
65
66
|
id: window.threekit.player.instanceId,
|
|
66
|
-
plug:
|
|
67
|
+
plug: types_1.PLUG_TYPES.PROXY,
|
|
67
68
|
property: 'asset',
|
|
68
69
|
}))];
|
|
69
70
|
case 1:
|
|
@@ -81,8 +82,8 @@ var prepAnimateConfig = function (config) {
|
|
|
81
82
|
window.threekit.player.scene.get({
|
|
82
83
|
from: assetId,
|
|
83
84
|
id: nodeId,
|
|
84
|
-
plug:
|
|
85
|
-
property:
|
|
85
|
+
plug: types_1.PLUG_TYPES.TRANSFORM,
|
|
86
|
+
property: types_1.TRANSFORM_PROPERTY_TYPES.TRANSLATION,
|
|
86
87
|
}),
|
|
87
88
|
Object.assign({ x: 0, y: 0, z: 0 }, nodeData.translation),
|
|
88
89
|
],
|
|
@@ -93,8 +94,8 @@ var prepAnimateConfig = function (config) {
|
|
|
93
94
|
window.threekit.player.scene.get({
|
|
94
95
|
from: assetId,
|
|
95
96
|
id: nodeId,
|
|
96
|
-
plug:
|
|
97
|
-
property:
|
|
97
|
+
plug: types_1.PLUG_TYPES.TRANSFORM,
|
|
98
|
+
property: types_1.TRANSFORM_PROPERTY_TYPES.ROTATION,
|
|
98
99
|
}),
|
|
99
100
|
Object.assign({ x: 0, y: 0, z: 0 }, nodeData.rotation),
|
|
100
101
|
],
|
|
@@ -105,8 +106,8 @@ var prepAnimateConfig = function (config) {
|
|
|
105
106
|
window.threekit.player.scene.get({
|
|
106
107
|
from: assetId,
|
|
107
108
|
id: nodeId,
|
|
108
|
-
plug:
|
|
109
|
-
property:
|
|
109
|
+
plug: types_1.PLUG_TYPES.TRANSFORM,
|
|
110
|
+
property: types_1.TRANSFORM_PROPERTY_TYPES.SCALE,
|
|
110
111
|
}),
|
|
111
112
|
Object.assign({ x: 0, y: 0, z: 0 }, nodeData.scale),
|
|
112
113
|
],
|
|
@@ -129,7 +130,7 @@ var prepAnimateConfig = function (config) {
|
|
|
129
130
|
_b));
|
|
130
131
|
}, {});
|
|
131
132
|
resolve([assetId, totalDuration, nodes]);
|
|
132
|
-
return [2
|
|
133
|
+
return [2];
|
|
133
134
|
}
|
|
134
135
|
});
|
|
135
136
|
}); });
|
|
@@ -147,25 +148,19 @@ var useAnimation = function (animationConfig) {
|
|
|
147
148
|
if (!isLoaded)
|
|
148
149
|
return [undefined, undefined];
|
|
149
150
|
var animateFrame = function (timestamp) {
|
|
150
|
-
// if (startTime.current === undefined) startTime.current = timestamp;
|
|
151
|
-
// const elapsed = timestamp - startTime.current;
|
|
152
151
|
if (ref.current.startTime === undefined)
|
|
153
152
|
ref.current.startTime = timestamp;
|
|
154
153
|
var elapsed = timestamp - ref.current.startTime;
|
|
155
154
|
Object.values(ref.current.nodes).forEach(function (nodeConfig) {
|
|
156
155
|
if (!ref.current.isTransformed) {
|
|
157
|
-
// If its too early we don't animate
|
|
158
156
|
if (elapsed < nodeConfig.paddingStart)
|
|
159
157
|
return;
|
|
160
|
-
// If its too early we don't animate
|
|
161
158
|
if (elapsed > nodeConfig.duration + nodeConfig.paddingStart)
|
|
162
159
|
return;
|
|
163
160
|
}
|
|
164
161
|
else if (ref.current.isTransformed) {
|
|
165
|
-
// If its too early we don't animate
|
|
166
162
|
if (elapsed < nodeConfig.paddingEnd)
|
|
167
163
|
return;
|
|
168
|
-
// If its too early we don't animate
|
|
169
164
|
if (elapsed > nodeConfig.duration + nodeConfig.paddingEnd)
|
|
170
165
|
return;
|
|
171
166
|
}
|
|
@@ -190,8 +185,8 @@ var useAnimation = function (animationConfig) {
|
|
|
190
185
|
window.threekit.player.scene.set({
|
|
191
186
|
from: ref.current.assetId,
|
|
192
187
|
id: nodeConfig.nodeId,
|
|
193
|
-
plug:
|
|
194
|
-
property:
|
|
188
|
+
plug: types_1.PLUG_TYPES.TRANSFORM,
|
|
189
|
+
property: types_1.TRANSFORM_PROPERTY_TYPES.TRANSLATION,
|
|
195
190
|
}, translation);
|
|
196
191
|
}
|
|
197
192
|
if ('rotation' in nodeConfig) {
|
|
@@ -208,8 +203,8 @@ var useAnimation = function (animationConfig) {
|
|
|
208
203
|
window.threekit.player.scene.set({
|
|
209
204
|
from: ref.current.assetId,
|
|
210
205
|
id: nodeConfig.nodeId,
|
|
211
|
-
plug:
|
|
212
|
-
property:
|
|
206
|
+
plug: types_1.PLUG_TYPES.TRANSFORM,
|
|
207
|
+
property: types_1.TRANSFORM_PROPERTY_TYPES.ROTATION,
|
|
213
208
|
}, rotation);
|
|
214
209
|
}
|
|
215
210
|
if ('scale' in nodeConfig) {
|
|
@@ -226,8 +221,8 @@ var useAnimation = function (animationConfig) {
|
|
|
226
221
|
window.threekit.player.scene.set({
|
|
227
222
|
from: ref.current.assetId,
|
|
228
223
|
id: nodeConfig.nodeId,
|
|
229
|
-
plug:
|
|
230
|
-
property:
|
|
224
|
+
plug: types_1.PLUG_TYPES.TRANSFORM,
|
|
225
|
+
property: types_1.TRANSFORM_PROPERTY_TYPES.SCALE,
|
|
231
226
|
}, scale);
|
|
232
227
|
}
|
|
233
228
|
});
|
|
@@ -246,8 +241,8 @@ var useAnimation = function (animationConfig) {
|
|
|
246
241
|
switch (_b.label) {
|
|
247
242
|
case 0:
|
|
248
243
|
ref.current.startTime = undefined;
|
|
249
|
-
if (!!ref.current.nodes) return [3
|
|
250
|
-
return [4
|
|
244
|
+
if (!!ref.current.nodes) return [3, 2];
|
|
245
|
+
return [4, prepAnimateConfig(animationConfig)];
|
|
251
246
|
case 1:
|
|
252
247
|
_a = _b.sent(), ref.current.assetId = _a[0], ref.current.totalDuration = _a[1], ref.current.nodes = _a[2];
|
|
253
248
|
ref.current.isTransformed = false;
|
|
@@ -255,7 +250,7 @@ var useAnimation = function (animationConfig) {
|
|
|
255
250
|
case 2:
|
|
256
251
|
setAnimationInProgress(true);
|
|
257
252
|
window.requestAnimationFrame(animateFrame);
|
|
258
|
-
return [2
|
|
253
|
+
return [2];
|
|
259
254
|
}
|
|
260
255
|
});
|
|
261
256
|
}); };
|
package/dist/http/datatables.js
CHANGED
|
@@ -16,7 +16,6 @@ var getDatatable = function (datatableId) {
|
|
|
16
16
|
error = 'Requires a datatableId';
|
|
17
17
|
if (error)
|
|
18
18
|
throw new Error(error);
|
|
19
|
-
// return threekitRequest.get<Array<IDatatable>>(
|
|
20
19
|
return request_1.default.get("".concat(DATATABLES_API_ROUTE, "/").concat(datatableId, "/download"));
|
|
21
20
|
};
|
|
22
21
|
exports.getDatatable = getDatatable;
|
package/dist/http/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/dist/http/orders.d.ts
CHANGED
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import { IMultiPageResponse } from './request';
|
|
2
2
|
export declare type STATUSES = 'List';
|
|
3
|
-
interface ICartItem {
|
|
3
|
+
export interface ICartItem {
|
|
4
4
|
count: number;
|
|
5
|
-
metadata
|
|
5
|
+
metadata?: null | Record<string, string>;
|
|
6
6
|
configurationId: string;
|
|
7
7
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
interface IOrderShared extends ICart {
|
|
12
|
-
name: string;
|
|
8
|
+
interface IOrderShared {
|
|
9
|
+
name?: string;
|
|
13
10
|
orgId: string;
|
|
14
11
|
platform: Record<string, any>;
|
|
15
12
|
metadata: Record<string, string>;
|
|
16
13
|
status: STATUSES;
|
|
14
|
+
cart: Array<ICartItem>;
|
|
17
15
|
}
|
|
18
16
|
interface IOrderRequest extends IOrderShared {
|
|
19
17
|
}
|
|
@@ -30,7 +28,7 @@ interface IOrdersResponse extends IMultiPageResponse {
|
|
|
30
28
|
orders: Array<IOrderResponse>;
|
|
31
29
|
}
|
|
32
30
|
export declare const createOrder: (data: IOrderRequest) => Promise<import("axios").AxiosResponse<IOrderResponse>>;
|
|
33
|
-
export declare const editOrderCart: (orderId: string, data:
|
|
31
|
+
export declare const editOrderCart: (orderId: string, data: Array<ICartItem>) => Promise<import("axios").AxiosResponse<IOrderResponse>>;
|
|
34
32
|
export declare const getOrder: (orderId: string) => Promise<import("axios").AxiosResponse<IOrderResponse>>;
|
|
35
33
|
export declare const fetchOrders: () => Promise<import("axios").AxiosResponse<IOrdersResponse>>;
|
|
36
34
|
export {};
|
package/dist/icons/Spinner.js
CHANGED
|
@@ -5,7 +5,11 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
5
5
|
};
|
|
6
6
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
7
|
if (k2 === undefined) k2 = k;
|
|
8
|
-
Object.
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
9
13
|
}) : (function(o, m, k, k2) {
|
|
10
14
|
if (k2 === undefined) k2 = k;
|
|
11
15
|
o[k2] = m[k];
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -1,49 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import AddIcon from './Add';
|
|
3
|
-
import ArrowLeftIcon from './ArrowLeft';
|
|
4
|
-
import ArrowRightIcon from './ArrowRight';
|
|
5
|
-
import CameraIcon from './Camera';
|
|
6
|
-
import CaretDownIcon from './CaretDown';
|
|
7
|
-
import CaretUpIcon from './CaretUp';
|
|
8
|
-
import CaretLeftIcon from './CaretLeft';
|
|
9
|
-
import CaretRightIcon from './CaretRight';
|
|
10
|
-
import CartIcon from './Cart';
|
|
11
|
-
import CheckmateIcon from './Checkmate';
|
|
12
|
-
import ClipboardIcon from './Clipboard';
|
|
13
|
-
import ColorPickerIcon from './ColorPicker';
|
|
14
|
-
import CopyIcon from './Copy';
|
|
15
|
-
import DeleteIcon from './Delete';
|
|
16
|
-
import DoubleCaretLeftIcon from './DoubleCaretLeft';
|
|
17
|
-
import DoubleCaretRightIcon from './DoubleCaretRight';
|
|
18
|
-
import DownloadIcon from './Download';
|
|
19
|
-
import DragIcon from './Drag';
|
|
20
|
-
import EditIcon from './Edit';
|
|
21
|
-
import HeartIcon from './Heart';
|
|
22
|
-
import ImageIcon from './Image';
|
|
23
|
-
import InfoIcon from './Info';
|
|
24
|
-
import MailIcon from './Mail';
|
|
25
|
-
import MenuIcon from './Menu';
|
|
26
|
-
import MoreIcon from './More';
|
|
27
|
-
import NewWindowIcon from './NewWindow';
|
|
28
|
-
import PauseIcon from './Pause';
|
|
29
|
-
import PlayIcon from './Play';
|
|
30
|
-
import RedoIcon from './Redo';
|
|
31
|
-
import RemoveIcon from './Remove';
|
|
32
|
-
import RulerIcon from './Ruler';
|
|
33
|
-
import SearchIcon from './Search';
|
|
34
|
-
import SettingsIcon from './Settings';
|
|
35
|
-
import ShareIcon from './Share';
|
|
36
|
-
import SwitchIcon from './Switch';
|
|
37
|
-
import TagIcon from './Tag';
|
|
38
|
-
import UndoIcon from './Undo';
|
|
39
|
-
import WishlistIcon from './Wishlist';
|
|
40
|
-
import ZoomInIcon from './ZoomIn';
|
|
41
|
-
import ZoomOutIcon from './ZoomOut';
|
|
42
2
|
import SpinnerIcon from './Spinner';
|
|
43
3
|
export interface IIcon extends React.FC {
|
|
44
4
|
iconName: string;
|
|
45
5
|
}
|
|
46
|
-
export { AddIcon, ArrowLeftIcon, ArrowRightIcon, CameraIcon, CaretDownIcon, CaretUpIcon, CaretLeftIcon, CaretRightIcon, CartIcon, CheckmateIcon, ClipboardIcon, ColorPickerIcon, CopyIcon, DeleteIcon, DoubleCaretLeftIcon, DoubleCaretRightIcon, DownloadIcon, DragIcon, EditIcon, HeartIcon, ImageIcon, InfoIcon, MailIcon, MenuIcon, MoreIcon, NewWindowIcon, PauseIcon, PlayIcon, RedoIcon, RemoveIcon, RulerIcon, SearchIcon, SettingsIcon, ShareIcon, SwitchIcon, TagIcon, UndoIcon, WishlistIcon, ZoomInIcon, ZoomOutIcon, SpinnerIcon, };
|
|
47
6
|
declare const _default: {
|
|
48
7
|
[x: string]: IIcon | typeof SpinnerIcon;
|
|
49
8
|
};
|
package/dist/icons/index.js
CHANGED
|
@@ -4,89 +4,47 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
var _a;
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.SpinnerIcon = exports.ZoomOutIcon = exports.ZoomInIcon = exports.WishlistIcon = exports.UndoIcon = exports.TagIcon = exports.SwitchIcon = exports.ShareIcon = exports.SettingsIcon = exports.SearchIcon = exports.RulerIcon = exports.RemoveIcon = exports.RedoIcon = exports.PlayIcon = exports.PauseIcon = exports.NewWindowIcon = exports.MoreIcon = exports.MenuIcon = exports.MailIcon = exports.InfoIcon = exports.ImageIcon = exports.HeartIcon = exports.EditIcon = exports.DragIcon = exports.DownloadIcon = exports.DoubleCaretRightIcon = exports.DoubleCaretLeftIcon = exports.DeleteIcon = exports.CopyIcon = exports.ColorPickerIcon = exports.ClipboardIcon = exports.CheckmateIcon = exports.CartIcon = exports.CaretRightIcon = exports.CaretLeftIcon = exports.CaretUpIcon = exports.CaretDownIcon = exports.CameraIcon = exports.ArrowRightIcon = exports.ArrowLeftIcon = exports.AddIcon = void 0;
|
|
8
7
|
var Add_1 = __importDefault(require("./Add"));
|
|
9
|
-
exports.AddIcon = Add_1.default;
|
|
10
8
|
var ArrowLeft_1 = __importDefault(require("./ArrowLeft"));
|
|
11
|
-
exports.ArrowLeftIcon = ArrowLeft_1.default;
|
|
12
9
|
var ArrowRight_1 = __importDefault(require("./ArrowRight"));
|
|
13
|
-
exports.ArrowRightIcon = ArrowRight_1.default;
|
|
14
10
|
var Camera_1 = __importDefault(require("./Camera"));
|
|
15
|
-
exports.CameraIcon = Camera_1.default;
|
|
16
11
|
var CaretDown_1 = __importDefault(require("./CaretDown"));
|
|
17
|
-
exports.CaretDownIcon = CaretDown_1.default;
|
|
18
12
|
var CaretUp_1 = __importDefault(require("./CaretUp"));
|
|
19
|
-
exports.CaretUpIcon = CaretUp_1.default;
|
|
20
13
|
var CaretLeft_1 = __importDefault(require("./CaretLeft"));
|
|
21
|
-
exports.CaretLeftIcon = CaretLeft_1.default;
|
|
22
14
|
var CaretRight_1 = __importDefault(require("./CaretRight"));
|
|
23
|
-
exports.CaretRightIcon = CaretRight_1.default;
|
|
24
15
|
var Cart_1 = __importDefault(require("./Cart"));
|
|
25
|
-
exports.CartIcon = Cart_1.default;
|
|
26
16
|
var Checkmate_1 = __importDefault(require("./Checkmate"));
|
|
27
|
-
exports.CheckmateIcon = Checkmate_1.default;
|
|
28
17
|
var Clipboard_1 = __importDefault(require("./Clipboard"));
|
|
29
|
-
exports.ClipboardIcon = Clipboard_1.default;
|
|
30
18
|
var ColorPicker_1 = __importDefault(require("./ColorPicker"));
|
|
31
|
-
exports.ColorPickerIcon = ColorPicker_1.default;
|
|
32
19
|
var Copy_1 = __importDefault(require("./Copy"));
|
|
33
|
-
exports.CopyIcon = Copy_1.default;
|
|
34
20
|
var Delete_1 = __importDefault(require("./Delete"));
|
|
35
|
-
exports.DeleteIcon = Delete_1.default;
|
|
36
21
|
var DoubleCaretLeft_1 = __importDefault(require("./DoubleCaretLeft"));
|
|
37
|
-
exports.DoubleCaretLeftIcon = DoubleCaretLeft_1.default;
|
|
38
22
|
var DoubleCaretRight_1 = __importDefault(require("./DoubleCaretRight"));
|
|
39
|
-
exports.DoubleCaretRightIcon = DoubleCaretRight_1.default;
|
|
40
23
|
var Download_1 = __importDefault(require("./Download"));
|
|
41
|
-
exports.DownloadIcon = Download_1.default;
|
|
42
24
|
var Drag_1 = __importDefault(require("./Drag"));
|
|
43
|
-
exports.DragIcon = Drag_1.default;
|
|
44
25
|
var Edit_1 = __importDefault(require("./Edit"));
|
|
45
|
-
exports.EditIcon = Edit_1.default;
|
|
46
26
|
var Heart_1 = __importDefault(require("./Heart"));
|
|
47
|
-
exports.HeartIcon = Heart_1.default;
|
|
48
27
|
var Image_1 = __importDefault(require("./Image"));
|
|
49
|
-
exports.ImageIcon = Image_1.default;
|
|
50
28
|
var Info_1 = __importDefault(require("./Info"));
|
|
51
|
-
exports.InfoIcon = Info_1.default;
|
|
52
29
|
var Mail_1 = __importDefault(require("./Mail"));
|
|
53
|
-
exports.MailIcon = Mail_1.default;
|
|
54
30
|
var Menu_1 = __importDefault(require("./Menu"));
|
|
55
|
-
exports.MenuIcon = Menu_1.default;
|
|
56
31
|
var More_1 = __importDefault(require("./More"));
|
|
57
|
-
exports.MoreIcon = More_1.default;
|
|
58
32
|
var NewWindow_1 = __importDefault(require("./NewWindow"));
|
|
59
|
-
exports.NewWindowIcon = NewWindow_1.default;
|
|
60
33
|
var Pause_1 = __importDefault(require("./Pause"));
|
|
61
|
-
exports.PauseIcon = Pause_1.default;
|
|
62
34
|
var Play_1 = __importDefault(require("./Play"));
|
|
63
|
-
exports.PlayIcon = Play_1.default;
|
|
64
35
|
var Redo_1 = __importDefault(require("./Redo"));
|
|
65
|
-
exports.RedoIcon = Redo_1.default;
|
|
66
36
|
var Remove_1 = __importDefault(require("./Remove"));
|
|
67
|
-
exports.RemoveIcon = Remove_1.default;
|
|
68
37
|
var Ruler_1 = __importDefault(require("./Ruler"));
|
|
69
|
-
exports.RulerIcon = Ruler_1.default;
|
|
70
38
|
var Search_1 = __importDefault(require("./Search"));
|
|
71
|
-
exports.SearchIcon = Search_1.default;
|
|
72
39
|
var Settings_1 = __importDefault(require("./Settings"));
|
|
73
|
-
exports.SettingsIcon = Settings_1.default;
|
|
74
40
|
var Share_1 = __importDefault(require("./Share"));
|
|
75
|
-
exports.ShareIcon = Share_1.default;
|
|
76
41
|
var Switch_1 = __importDefault(require("./Switch"));
|
|
77
|
-
exports.SwitchIcon = Switch_1.default;
|
|
78
42
|
var Tag_1 = __importDefault(require("./Tag"));
|
|
79
|
-
exports.TagIcon = Tag_1.default;
|
|
80
43
|
var Undo_1 = __importDefault(require("./Undo"));
|
|
81
|
-
exports.UndoIcon = Undo_1.default;
|
|
82
44
|
var Wishlist_1 = __importDefault(require("./Wishlist"));
|
|
83
|
-
exports.WishlistIcon = Wishlist_1.default;
|
|
84
45
|
var ZoomIn_1 = __importDefault(require("./ZoomIn"));
|
|
85
|
-
exports.ZoomInIcon = ZoomIn_1.default;
|
|
86
46
|
var ZoomOut_1 = __importDefault(require("./ZoomOut"));
|
|
87
|
-
exports.ZoomOutIcon = ZoomOut_1.default;
|
|
88
47
|
var Spinner_1 = __importDefault(require("./Spinner"));
|
|
89
|
-
exports.SpinnerIcon = Spinner_1.default;
|
|
90
48
|
exports.default = (_a = {},
|
|
91
49
|
_a[Add_1.default.iconName] = Add_1.default,
|
|
92
50
|
_a[ArrowLeft_1.default.iconName] = ArrowLeft_1.default,
|
package/dist/index.d.ts
CHANGED
|
@@ -44,8 +44,47 @@ import Zoom from './components/Zoom';
|
|
|
44
44
|
import Snapshots from './components/Snapshots';
|
|
45
45
|
import Wishlist from './components/Wishlist';
|
|
46
46
|
import Share from './components/Share';
|
|
47
|
-
import icons from './icons';
|
|
48
|
-
export * from './icons';
|
|
49
47
|
import TrebleApp from './components/TrebleApp';
|
|
50
48
|
import ProductLayout from './components/ProductLayout';
|
|
51
|
-
|
|
49
|
+
import AddIcon from './icons/Add';
|
|
50
|
+
import ArrowLeftIcon from './icons/ArrowLeft';
|
|
51
|
+
import ArrowRightIcon from './icons/ArrowRight';
|
|
52
|
+
import CameraIcon from './icons/Camera';
|
|
53
|
+
import CaretDownIcon from './icons/CaretDown';
|
|
54
|
+
import CaretUpIcon from './icons/CaretUp';
|
|
55
|
+
import CaretLeftIcon from './icons/CaretLeft';
|
|
56
|
+
import CaretRightIcon from './icons/CaretRight';
|
|
57
|
+
import CartIcon from './icons/Cart';
|
|
58
|
+
import CheckmateIcon from './icons/Checkmate';
|
|
59
|
+
import ClipboardIcon from './icons/Clipboard';
|
|
60
|
+
import ColorPickerIcon from './icons/ColorPicker';
|
|
61
|
+
import CopyIcon from './icons/Copy';
|
|
62
|
+
import DeleteIcon from './icons/Delete';
|
|
63
|
+
import DoubleCaretLeftIcon from './icons/DoubleCaretLeft';
|
|
64
|
+
import DoubleCaretRightIcon from './icons/DoubleCaretRight';
|
|
65
|
+
import DownloadIcon from './icons/Download';
|
|
66
|
+
import DragIcon from './icons/Drag';
|
|
67
|
+
import EditIcon from './icons/Edit';
|
|
68
|
+
import HeartIcon from './icons/Heart';
|
|
69
|
+
import ImageIcon from './icons/Image';
|
|
70
|
+
import InfoIcon from './icons/Info';
|
|
71
|
+
import MailIcon from './icons/Mail';
|
|
72
|
+
import MenuIcon from './icons/Menu';
|
|
73
|
+
import MoreIcon from './icons/More';
|
|
74
|
+
import NewWindowIcon from './icons/NewWindow';
|
|
75
|
+
import PauseIcon from './icons/Pause';
|
|
76
|
+
import PlayIcon from './icons/Play';
|
|
77
|
+
import RedoIcon from './icons/Redo';
|
|
78
|
+
import RemoveIcon from './icons/Remove';
|
|
79
|
+
import RulerIcon from './icons/Ruler';
|
|
80
|
+
import SearchIcon from './icons/Search';
|
|
81
|
+
import SettingsIcon from './icons/Settings';
|
|
82
|
+
import ShareIcon from './icons/Share';
|
|
83
|
+
import SwitchIcon from './icons/Switch';
|
|
84
|
+
import TagIcon from './icons/Tag';
|
|
85
|
+
import UndoIcon from './icons/Undo';
|
|
86
|
+
import WishlistIcon from './icons/Wishlist';
|
|
87
|
+
import ZoomInIcon from './icons/ZoomIn';
|
|
88
|
+
import ZoomOutIcon from './icons/ZoomOut';
|
|
89
|
+
import SpinnerIcon from './icons/Spinner';
|
|
90
|
+
export { useAttribute, useConfigurator, useConfigurationLoader, useMetadata, useName, usePlayerLoadingStatus, usePrice, useThreekitInitStatus, useZoom, useSnapshot, useWishlist, useShare, usePlayerPortal, useProductCache, useNestedConfigurator, useLoadingProgress, usePlayer, ThreekitProvider, Player, Button, Cards, Dropdown, Strips, Swatch, Tiles, TilesGroup, Upload, Switch, ProductName, ProductDescription, AttributeTitle, AttributeValue, TotalPrice, message, Modal, Drawer, Accordion, Tabs, PortalToArOverlay, PortalToElement, AwaitThreekitLoad, FlatForm, Zoom, Snapshots, Wishlist, Share, TrebleApp, ProductLayout, AddIcon, ArrowLeftIcon, ArrowRightIcon, CameraIcon, CaretDownIcon, CaretUpIcon, CaretLeftIcon, CaretRightIcon, CartIcon, CheckmateIcon, ClipboardIcon, ColorPickerIcon, CopyIcon, DeleteIcon, DoubleCaretLeftIcon, DoubleCaretRightIcon, DownloadIcon, DragIcon, EditIcon, HeartIcon, ImageIcon, InfoIcon, MailIcon, MenuIcon, MoreIcon, NewWindowIcon, PauseIcon, PlayIcon, RedoIcon, RemoveIcon, RulerIcon, SearchIcon, SettingsIcon, ShareIcon, SwitchIcon, TagIcon, UndoIcon, WishlistIcon, ZoomInIcon, ZoomOutIcon, SpinnerIcon, };
|
package/dist/index.js
CHANGED
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
13
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
4
|
};
|
|
15
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
|
|
6
|
+
exports.ArrowLeftIcon = exports.AddIcon = exports.ProductLayout = exports.TrebleApp = exports.Share = exports.Wishlist = exports.Snapshots = exports.Zoom = exports.FlatForm = exports.AwaitThreekitLoad = exports.PortalToElement = exports.PortalToArOverlay = exports.Tabs = exports.Accordion = exports.Drawer = exports.Modal = exports.message = exports.TotalPrice = exports.AttributeValue = exports.AttributeTitle = exports.ProductDescription = exports.ProductName = exports.Switch = exports.Upload = exports.TilesGroup = exports.Tiles = exports.Swatch = exports.Strips = exports.Dropdown = exports.Cards = exports.Button = exports.Player = exports.ThreekitProvider = exports.usePlayer = exports.useLoadingProgress = exports.useNestedConfigurator = exports.useProductCache = exports.usePlayerPortal = exports.useShare = exports.useWishlist = exports.useSnapshot = exports.useZoom = exports.useThreekitInitStatus = exports.usePrice = exports.usePlayerLoadingStatus = exports.useName = exports.useMetadata = exports.useConfigurationLoader = exports.useConfigurator = exports.useAttribute = void 0;
|
|
7
|
+
exports.SpinnerIcon = exports.ZoomOutIcon = exports.ZoomInIcon = exports.WishlistIcon = exports.UndoIcon = exports.TagIcon = exports.SwitchIcon = exports.ShareIcon = exports.SettingsIcon = exports.SearchIcon = exports.RulerIcon = exports.RemoveIcon = exports.RedoIcon = exports.PlayIcon = exports.PauseIcon = exports.NewWindowIcon = exports.MoreIcon = exports.MenuIcon = exports.MailIcon = exports.InfoIcon = exports.ImageIcon = exports.HeartIcon = exports.EditIcon = exports.DragIcon = exports.DownloadIcon = exports.DoubleCaretRightIcon = exports.DoubleCaretLeftIcon = exports.DeleteIcon = exports.CopyIcon = exports.ColorPickerIcon = exports.ClipboardIcon = exports.CheckmateIcon = exports.CartIcon = exports.CaretRightIcon = exports.CaretLeftIcon = exports.CaretUpIcon = exports.CaretDownIcon = exports.CameraIcon = exports.ArrowRightIcon = void 0;
|
|
18
8
|
var useAttribute_1 = __importDefault(require("./hooks/useAttribute"));
|
|
19
9
|
exports.useAttribute = useAttribute_1.default;
|
|
20
10
|
var useConfigurator_1 = __importDefault(require("./hooks/useConfigurator"));
|
|
@@ -41,7 +31,6 @@ var useShare_1 = __importDefault(require("./hooks/useShare"));
|
|
|
41
31
|
exports.useShare = useShare_1.default;
|
|
42
32
|
var usePlayerPortal_1 = __importDefault(require("./hooks/usePlayerPortal"));
|
|
43
33
|
exports.usePlayerPortal = usePlayerPortal_1.default;
|
|
44
|
-
// import useSingleAnimation from './hooks/useSingleAnimation';
|
|
45
34
|
var useProductCache_1 = __importDefault(require("./hooks/useProductCache"));
|
|
46
35
|
exports.useProductCache = useProductCache_1.default;
|
|
47
36
|
var useNestedConfigurator_1 = __importDefault(require("./hooks/useNestedConfigurator"));
|
|
@@ -50,12 +39,10 @@ var useLoadingProgress_1 = __importDefault(require("./hooks/useLoadingProgress")
|
|
|
50
39
|
exports.useLoadingProgress = useLoadingProgress_1.default;
|
|
51
40
|
var usePlayer_1 = __importDefault(require("./hooks/usePlayer"));
|
|
52
41
|
exports.usePlayer = usePlayer_1.default;
|
|
53
|
-
// Components
|
|
54
42
|
var ThreekitProvider_1 = __importDefault(require("./components/ThreekitProvider"));
|
|
55
43
|
exports.ThreekitProvider = ThreekitProvider_1.default;
|
|
56
44
|
var Player_1 = __importDefault(require("./components/Player"));
|
|
57
45
|
exports.Player = Player_1.default;
|
|
58
|
-
// Form Components
|
|
59
46
|
var Button_1 = __importDefault(require("./components/Button"));
|
|
60
47
|
exports.Button = Button_1.default;
|
|
61
48
|
var Cards_1 = __importDefault(require("./components/Cards"));
|
|
@@ -74,7 +61,6 @@ var Upload_1 = __importDefault(require("./components/Upload"));
|
|
|
74
61
|
exports.Upload = Upload_1.default;
|
|
75
62
|
var Switch_1 = __importDefault(require("./components/Switch"));
|
|
76
63
|
exports.Switch = Switch_1.default;
|
|
77
|
-
// Display
|
|
78
64
|
var ProductName_1 = __importDefault(require("./components/ProductName"));
|
|
79
65
|
exports.ProductName = ProductName_1.default;
|
|
80
66
|
var ProductDescription_1 = __importDefault(require("./components/ProductDescription"));
|
|
@@ -85,10 +71,8 @@ var AttributeValue_1 = __importDefault(require("./components/AttributeValue"));
|
|
|
85
71
|
exports.AttributeValue = AttributeValue_1.default;
|
|
86
72
|
var TotalPrice_1 = __importDefault(require("./components/TotalPrice"));
|
|
87
73
|
exports.TotalPrice = TotalPrice_1.default;
|
|
88
|
-
// Messaging
|
|
89
74
|
var message_1 = __importDefault(require("./components/message"));
|
|
90
75
|
exports.message = message_1.default;
|
|
91
|
-
// Layouts
|
|
92
76
|
var Modal_1 = __importDefault(require("./components/Modal"));
|
|
93
77
|
exports.Modal = Modal_1.default;
|
|
94
78
|
var Drawer_1 = __importDefault(require("./components/Drawer"));
|
|
@@ -97,17 +81,14 @@ var Accordion_1 = __importDefault(require("./components/Accordion"));
|
|
|
97
81
|
exports.Accordion = Accordion_1.default;
|
|
98
82
|
var Tabs_1 = __importDefault(require("./components/Tabs"));
|
|
99
83
|
exports.Tabs = Tabs_1.default;
|
|
100
|
-
// Wrappers
|
|
101
84
|
var PortalToArOverlay_1 = __importDefault(require("./components/PortalToArOverlay"));
|
|
102
85
|
exports.PortalToArOverlay = PortalToArOverlay_1.default;
|
|
103
86
|
var PortalToElement_1 = __importDefault(require("./components/PortalToElement"));
|
|
104
87
|
exports.PortalToElement = PortalToElement_1.default;
|
|
105
88
|
var AwaitThreekitLoad_1 = __importDefault(require("./components/AwaitThreekitLoad"));
|
|
106
89
|
exports.AwaitThreekitLoad = AwaitThreekitLoad_1.default;
|
|
107
|
-
// Forms
|
|
108
90
|
var FlatForm_1 = __importDefault(require("./components/FlatForm"));
|
|
109
91
|
exports.FlatForm = FlatForm_1.default;
|
|
110
|
-
// Widgets
|
|
111
92
|
var Zoom_1 = __importDefault(require("./components/Zoom"));
|
|
112
93
|
exports.Zoom = Zoom_1.default;
|
|
113
94
|
var Snapshots_1 = __importDefault(require("./components/Snapshots"));
|
|
@@ -116,12 +97,89 @@ var Wishlist_1 = __importDefault(require("./components/Wishlist"));
|
|
|
116
97
|
exports.Wishlist = Wishlist_1.default;
|
|
117
98
|
var Share_1 = __importDefault(require("./components/Share"));
|
|
118
99
|
exports.Share = Share_1.default;
|
|
119
|
-
// Icons
|
|
120
|
-
var icons_1 = __importDefault(require("./icons"));
|
|
121
|
-
exports.icons = icons_1.default;
|
|
122
|
-
__exportStar(require("./icons"), exports);
|
|
123
|
-
// Products - Multi-configurtors
|
|
124
100
|
var TrebleApp_1 = __importDefault(require("./components/TrebleApp"));
|
|
125
101
|
exports.TrebleApp = TrebleApp_1.default;
|
|
126
102
|
var ProductLayout_1 = __importDefault(require("./components/ProductLayout"));
|
|
127
103
|
exports.ProductLayout = ProductLayout_1.default;
|
|
104
|
+
var Add_1 = __importDefault(require("./icons/Add"));
|
|
105
|
+
exports.AddIcon = Add_1.default;
|
|
106
|
+
var ArrowLeft_1 = __importDefault(require("./icons/ArrowLeft"));
|
|
107
|
+
exports.ArrowLeftIcon = ArrowLeft_1.default;
|
|
108
|
+
var ArrowRight_1 = __importDefault(require("./icons/ArrowRight"));
|
|
109
|
+
exports.ArrowRightIcon = ArrowRight_1.default;
|
|
110
|
+
var Camera_1 = __importDefault(require("./icons/Camera"));
|
|
111
|
+
exports.CameraIcon = Camera_1.default;
|
|
112
|
+
var CaretDown_1 = __importDefault(require("./icons/CaretDown"));
|
|
113
|
+
exports.CaretDownIcon = CaretDown_1.default;
|
|
114
|
+
var CaretUp_1 = __importDefault(require("./icons/CaretUp"));
|
|
115
|
+
exports.CaretUpIcon = CaretUp_1.default;
|
|
116
|
+
var CaretLeft_1 = __importDefault(require("./icons/CaretLeft"));
|
|
117
|
+
exports.CaretLeftIcon = CaretLeft_1.default;
|
|
118
|
+
var CaretRight_1 = __importDefault(require("./icons/CaretRight"));
|
|
119
|
+
exports.CaretRightIcon = CaretRight_1.default;
|
|
120
|
+
var Cart_1 = __importDefault(require("./icons/Cart"));
|
|
121
|
+
exports.CartIcon = Cart_1.default;
|
|
122
|
+
var Checkmate_1 = __importDefault(require("./icons/Checkmate"));
|
|
123
|
+
exports.CheckmateIcon = Checkmate_1.default;
|
|
124
|
+
var Clipboard_1 = __importDefault(require("./icons/Clipboard"));
|
|
125
|
+
exports.ClipboardIcon = Clipboard_1.default;
|
|
126
|
+
var ColorPicker_1 = __importDefault(require("./icons/ColorPicker"));
|
|
127
|
+
exports.ColorPickerIcon = ColorPicker_1.default;
|
|
128
|
+
var Copy_1 = __importDefault(require("./icons/Copy"));
|
|
129
|
+
exports.CopyIcon = Copy_1.default;
|
|
130
|
+
var Delete_1 = __importDefault(require("./icons/Delete"));
|
|
131
|
+
exports.DeleteIcon = Delete_1.default;
|
|
132
|
+
var DoubleCaretLeft_1 = __importDefault(require("./icons/DoubleCaretLeft"));
|
|
133
|
+
exports.DoubleCaretLeftIcon = DoubleCaretLeft_1.default;
|
|
134
|
+
var DoubleCaretRight_1 = __importDefault(require("./icons/DoubleCaretRight"));
|
|
135
|
+
exports.DoubleCaretRightIcon = DoubleCaretRight_1.default;
|
|
136
|
+
var Download_1 = __importDefault(require("./icons/Download"));
|
|
137
|
+
exports.DownloadIcon = Download_1.default;
|
|
138
|
+
var Drag_1 = __importDefault(require("./icons/Drag"));
|
|
139
|
+
exports.DragIcon = Drag_1.default;
|
|
140
|
+
var Edit_1 = __importDefault(require("./icons/Edit"));
|
|
141
|
+
exports.EditIcon = Edit_1.default;
|
|
142
|
+
var Heart_1 = __importDefault(require("./icons/Heart"));
|
|
143
|
+
exports.HeartIcon = Heart_1.default;
|
|
144
|
+
var Image_1 = __importDefault(require("./icons/Image"));
|
|
145
|
+
exports.ImageIcon = Image_1.default;
|
|
146
|
+
var Info_1 = __importDefault(require("./icons/Info"));
|
|
147
|
+
exports.InfoIcon = Info_1.default;
|
|
148
|
+
var Mail_1 = __importDefault(require("./icons/Mail"));
|
|
149
|
+
exports.MailIcon = Mail_1.default;
|
|
150
|
+
var Menu_1 = __importDefault(require("./icons/Menu"));
|
|
151
|
+
exports.MenuIcon = Menu_1.default;
|
|
152
|
+
var More_1 = __importDefault(require("./icons/More"));
|
|
153
|
+
exports.MoreIcon = More_1.default;
|
|
154
|
+
var NewWindow_1 = __importDefault(require("./icons/NewWindow"));
|
|
155
|
+
exports.NewWindowIcon = NewWindow_1.default;
|
|
156
|
+
var Pause_1 = __importDefault(require("./icons/Pause"));
|
|
157
|
+
exports.PauseIcon = Pause_1.default;
|
|
158
|
+
var Play_1 = __importDefault(require("./icons/Play"));
|
|
159
|
+
exports.PlayIcon = Play_1.default;
|
|
160
|
+
var Redo_1 = __importDefault(require("./icons/Redo"));
|
|
161
|
+
exports.RedoIcon = Redo_1.default;
|
|
162
|
+
var Remove_1 = __importDefault(require("./icons/Remove"));
|
|
163
|
+
exports.RemoveIcon = Remove_1.default;
|
|
164
|
+
var Ruler_1 = __importDefault(require("./icons/Ruler"));
|
|
165
|
+
exports.RulerIcon = Ruler_1.default;
|
|
166
|
+
var Search_1 = __importDefault(require("./icons/Search"));
|
|
167
|
+
exports.SearchIcon = Search_1.default;
|
|
168
|
+
var Settings_1 = __importDefault(require("./icons/Settings"));
|
|
169
|
+
exports.SettingsIcon = Settings_1.default;
|
|
170
|
+
var Share_2 = __importDefault(require("./icons/Share"));
|
|
171
|
+
exports.ShareIcon = Share_2.default;
|
|
172
|
+
var Switch_2 = __importDefault(require("./icons/Switch"));
|
|
173
|
+
exports.SwitchIcon = Switch_2.default;
|
|
174
|
+
var Tag_1 = __importDefault(require("./icons/Tag"));
|
|
175
|
+
exports.TagIcon = Tag_1.default;
|
|
176
|
+
var Undo_1 = __importDefault(require("./icons/Undo"));
|
|
177
|
+
exports.UndoIcon = Undo_1.default;
|
|
178
|
+
var Wishlist_2 = __importDefault(require("./icons/Wishlist"));
|
|
179
|
+
exports.WishlistIcon = Wishlist_2.default;
|
|
180
|
+
var ZoomIn_1 = __importDefault(require("./icons/ZoomIn"));
|
|
181
|
+
exports.ZoomInIcon = ZoomIn_1.default;
|
|
182
|
+
var ZoomOut_1 = __importDefault(require("./icons/ZoomOut"));
|
|
183
|
+
exports.ZoomOutIcon = ZoomOut_1.default;
|
|
184
|
+
var Spinner_1 = __importDefault(require("./icons/Spinner"));
|
|
185
|
+
exports.SpinnerIcon = Spinner_1.default;
|
|
@@ -1,21 +1,9 @@
|
|
|
1
1
|
import { RootState, ThreekitDispatch } from './index';
|
|
2
2
|
import { ISetConfiguration, IThreekitDisplayAttribute } from '../types';
|
|
3
3
|
import { ITranslationMap } from '../api/products';
|
|
4
|
-
/*****************************************************
|
|
5
|
-
* Types and Interfaces
|
|
6
|
-
****************************************************/
|
|
7
4
|
export declare type AttributesState = Record<string, IThreekitDisplayAttribute>;
|
|
8
|
-
/*****************************************************
|
|
9
|
-
* Actions
|
|
10
|
-
****************************************************/
|
|
11
5
|
export declare const setAttributes: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[attributes: IThreekitDisplayAttribute[]], Record<string, IThreekitDisplayAttribute>, "treble/attributes/set-attributes", never, never>;
|
|
12
|
-
/*****************************************************
|
|
13
|
-
* Slice
|
|
14
|
-
****************************************************/
|
|
15
6
|
declare const reducer: import("redux").Reducer<AttributesState, import("redux").AnyAction>;
|
|
16
|
-
/*****************************************************
|
|
17
|
-
* Standard Selectors
|
|
18
|
-
****************************************************/
|
|
19
7
|
export declare const getAttributes: (state: RootState) => AttributesState;
|
|
20
8
|
export declare const getHydrationData: ((state: {
|
|
21
9
|
treble: import("./treble").TrebleState;
|