zakeke-configurator-react 0.0.47 → 0.0.51
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/declarations/{Components → composer/Components}/ChunkedTask.d.ts +0 -0
- package/dist/declarations/{Components → composer/Components}/Layout/src/Layout.d.ts +0 -0
- package/dist/declarations/{Components → composer/Components}/Widgets/src/Widgets.d.ts +59 -2
- package/dist/declarations/{Module/src/API.d.ts → composer/Module/src/api.d.ts} +0 -0
- package/dist/declarations/{Module → composer/Module}/src/components/customizer.d.ts +0 -0
- package/dist/declarations/{Module → composer/Module}/src/components/sceneViewer.d.ts +0 -0
- package/dist/declarations/{Module → composer/Module}/src/environment.d.ts +6 -2
- package/dist/declarations/{Module → composer/Module}/src/exceptions.d.ts +0 -0
- package/dist/declarations/{Module → composer/Module}/src/helpers.d.ts +0 -0
- package/dist/declarations/{Module → composer/Module}/src/imageUploadTask.d.ts +0 -0
- package/dist/declarations/{Module → composer/Module}/src/index.d.ts +0 -0
- package/dist/declarations/{Module → composer/Module}/src/integrations/Helpers.d.ts +0 -0
- package/dist/declarations/{Module → composer/Module}/src/integrations/Integration.d.ts +0 -0
- package/dist/declarations/{Module → composer/Module}/src/integrations/generic.d.ts +0 -0
- package/dist/declarations/{Module → composer/Module}/src/integrations/preview.d.ts +0 -0
- package/dist/declarations/{Module → composer/Module}/src/models.d.ts +0 -0
- package/dist/declarations/{Module → composer/Module}/src/state/boot.d.ts +0 -0
- package/dist/declarations/{Module → composer/Module}/src/state/provider.d.ts +0 -0
- package/dist/declarations/{Module → composer/Module}/src/state/providerValue.d.ts +3 -2
- package/dist/declarations/{Module → composer/Module}/src/state/reducer.d.ts +0 -0
- package/dist/declarations/{Module → composer/Module}/src/state/state.d.ts +0 -0
- package/dist/globals0.js +5904 -5904
- package/dist/globals1.js +1189 -1189
- package/dist/globals2.js +3384 -3384
- package/dist/index.js +17564 -17356
- package/package.json +2 -2
|
File without changes
|
|
File without changes
|
|
@@ -7,6 +7,7 @@ import { Component, KeyboardEvent } from 'react';
|
|
|
7
7
|
import { Product, ProductButton } from '../../../Admin/src/Models/Common';
|
|
8
8
|
import { Range } from 'react-input-range';
|
|
9
9
|
import { TooltipProps } from 'react-tippy';
|
|
10
|
+
import { FC } from "react";
|
|
10
11
|
interface FormControlProps {
|
|
11
12
|
label?: string | React.ReactNode;
|
|
12
13
|
horizontal?: boolean;
|
|
@@ -78,12 +79,25 @@ export declare class Checkbox extends Component<CheckboxProps, any> {
|
|
|
78
79
|
onClick: () => void;
|
|
79
80
|
render(): JSX.Element;
|
|
80
81
|
}
|
|
82
|
+
export declare function hexToRgb(hex: string): {
|
|
83
|
+
r: number;
|
|
84
|
+
g: number;
|
|
85
|
+
b: number;
|
|
86
|
+
};
|
|
87
|
+
export declare const ColorSelection: FC<{
|
|
88
|
+
colors: string[];
|
|
89
|
+
onChange: (index: number, color: string) => void;
|
|
90
|
+
onAddClick?: () => void;
|
|
91
|
+
onRemoveClick?: (index: number) => void;
|
|
92
|
+
}>;
|
|
93
|
+
export default ColorSelection;
|
|
81
94
|
interface RadioGroupProps {
|
|
82
95
|
defaultValue?: any;
|
|
83
96
|
value: any;
|
|
84
97
|
style?: any;
|
|
85
98
|
vertical?: boolean;
|
|
86
99
|
onChange?: (value: any) => void;
|
|
100
|
+
dataTrack?: string;
|
|
87
101
|
}
|
|
88
102
|
export declare class RadioGroup extends Component<RadioGroupProps, any> {
|
|
89
103
|
constructor(props: RadioGroupProps);
|
|
@@ -94,6 +108,7 @@ interface RadioButtonProps {
|
|
|
94
108
|
checked?: boolean;
|
|
95
109
|
value: any;
|
|
96
110
|
onClick?: (value: any) => void;
|
|
111
|
+
dataTrack?: string;
|
|
97
112
|
}
|
|
98
113
|
export declare class RadioButton extends Component<RadioButtonProps, any> {
|
|
99
114
|
private onClick;
|
|
@@ -184,6 +199,7 @@ interface SearchableProductsListProps {
|
|
|
184
199
|
hasMore: boolean;
|
|
185
200
|
onLoadMore: (page: number) => void;
|
|
186
201
|
buttons?: ProductButton[];
|
|
202
|
+
dataTrack?: string;
|
|
187
203
|
}
|
|
188
204
|
export declare function SearchableProductsList(props: SearchableProductsListProps & {
|
|
189
205
|
children?: React.ReactNode;
|
|
@@ -377,6 +393,7 @@ export declare class MaterialsListDialog extends React.Component<DialogProps & M
|
|
|
377
393
|
}
|
|
378
394
|
interface MaterialsLibraryDialogProps {
|
|
379
395
|
onMaterialsSelected: (zkMaterials: Zakeke.Material[]) => void;
|
|
396
|
+
dataTrack?: string;
|
|
380
397
|
}
|
|
381
398
|
interface MaterialsLibraryDialogState {
|
|
382
399
|
materials: Zakeke.Material[];
|
|
@@ -411,6 +428,7 @@ interface PropertiesPanelPropertyProps {
|
|
|
411
428
|
className?: string;
|
|
412
429
|
disabled?: boolean;
|
|
413
430
|
onClick?: () => void;
|
|
431
|
+
dataTrack?: string;
|
|
414
432
|
}
|
|
415
433
|
export declare class PropertiesPanelProperty extends Component<PropertiesPanelPropertyProps, any> {
|
|
416
434
|
constructor(props: PropertiesPanelPropertyProps);
|
|
@@ -418,6 +436,7 @@ export declare class PropertiesPanelProperty extends Component<PropertiesPanelPr
|
|
|
418
436
|
}
|
|
419
437
|
interface PropertiesPanelGroupProps {
|
|
420
438
|
label: string;
|
|
439
|
+
dataTrack?: string;
|
|
421
440
|
}
|
|
422
441
|
interface PropertiesPanelGroupState {
|
|
423
442
|
isOpened: boolean;
|
|
@@ -432,6 +451,7 @@ interface PropertiesPanelSubpanelProps {
|
|
|
432
451
|
iconsSet?: IconsSet;
|
|
433
452
|
panelClassName?: string;
|
|
434
453
|
disabled?: boolean;
|
|
454
|
+
dataTrack?: string;
|
|
435
455
|
}
|
|
436
456
|
interface PropertiesPanelSubpanelState {
|
|
437
457
|
isOpened: boolean;
|
|
@@ -450,6 +470,12 @@ export declare class PropertiesPanelSliderProperty extends Component<any, any> {
|
|
|
450
470
|
onTextInputChange: (inputValue: string) => void;
|
|
451
471
|
render(): JSX.Element;
|
|
452
472
|
}
|
|
473
|
+
export declare class SliderWithNumber extends Component<any, any> {
|
|
474
|
+
constructor(props: any);
|
|
475
|
+
onSliderChange: (sliderValue: number | Range) => void;
|
|
476
|
+
onTextInputChange: (inputValue: string) => void;
|
|
477
|
+
render(): JSX.Element;
|
|
478
|
+
}
|
|
453
479
|
export declare class PropertiesPanelColorProperty extends Component<any, any> {
|
|
454
480
|
constructor(props: any);
|
|
455
481
|
render(): JSX.Element;
|
|
@@ -488,6 +514,7 @@ interface PropertiesPanelMaterialPreviewPropertyProps {
|
|
|
488
514
|
onRemove: (index: number) => void;
|
|
489
515
|
loading: boolean;
|
|
490
516
|
photos: string[];
|
|
517
|
+
dataTrack?: string;
|
|
491
518
|
}
|
|
492
519
|
export declare class PropertiesPanelMaterialPreviewProperty extends Component<PropertiesPanelMaterialPreviewPropertyProps & PropertiesPanelPropertyProps, any> {
|
|
493
520
|
private input;
|
|
@@ -526,7 +553,7 @@ export declare enum IconsSet {
|
|
|
526
553
|
MDI = 1
|
|
527
554
|
}
|
|
528
555
|
export interface IconProps {
|
|
529
|
-
icon
|
|
556
|
+
icon?: string;
|
|
530
557
|
set?: IconsSet;
|
|
531
558
|
onClick?: any;
|
|
532
559
|
tooltip?: string;
|
|
@@ -573,6 +600,7 @@ export interface ImageUploadProps {
|
|
|
573
600
|
hideColorButton?: boolean;
|
|
574
601
|
onChange: (key: string | null, url: string | null) => void;
|
|
575
602
|
className?: string;
|
|
603
|
+
dataTrack?: string;
|
|
576
604
|
}
|
|
577
605
|
export declare class ImageUpload extends Component<ImageUploadProps, any> {
|
|
578
606
|
private input;
|
|
@@ -633,4 +661,33 @@ export declare abstract class Card<P, S> extends React.Component<CardProps & P,
|
|
|
633
661
|
abstract renderButtons: () => React.ReactNode;
|
|
634
662
|
render(): JSX.Element;
|
|
635
663
|
}
|
|
636
|
-
export {
|
|
664
|
+
export declare const Accordion: FC<{
|
|
665
|
+
title: string;
|
|
666
|
+
children: any;
|
|
667
|
+
isOpened: boolean;
|
|
668
|
+
onClick?: (e: any) => void;
|
|
669
|
+
}>;
|
|
670
|
+
export declare const MenuItem: FC<{
|
|
671
|
+
isLeft?: boolean;
|
|
672
|
+
}>;
|
|
673
|
+
export declare const MenuItemContent: FC<{
|
|
674
|
+
onClick: () => void;
|
|
675
|
+
}>;
|
|
676
|
+
export declare const AngleDown: FC<{
|
|
677
|
+
className?: string;
|
|
678
|
+
fill?: string;
|
|
679
|
+
}>;
|
|
680
|
+
export declare const PopupMenu: FC<{
|
|
681
|
+
isLeft?: boolean;
|
|
682
|
+
}>;
|
|
683
|
+
export declare const PopupArrow: FC<{
|
|
684
|
+
isLeft?: boolean;
|
|
685
|
+
}>;
|
|
686
|
+
export declare const PopupMenuItemLarge: FC<{
|
|
687
|
+
href: string;
|
|
688
|
+
target?: string;
|
|
689
|
+
}>;
|
|
690
|
+
export declare const PopupMenuItemLargeIcon: FC<{}>;
|
|
691
|
+
export declare const PopupMenuItemLargeNewProduct: FC<{}>;
|
|
692
|
+
export declare const IconMenuContainer: FC<{}>;
|
|
693
|
+
export declare const ToolsMenu: FC<{}>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PlatformAttributeSelection } from "./integrations/Integration";
|
|
2
2
|
import { Group, Product, Camera, FontFamily, ImageMacroCategory, Image, Template, Item } from "./models";
|
|
3
3
|
import _ from "lodash";
|
|
4
|
-
import { FocusAttributesEventListener } from "
|
|
4
|
+
import { FocusAttributesEventListener } from "../../../3D/src";
|
|
5
5
|
export declare class ZakekeEnvironment {
|
|
6
6
|
private token;
|
|
7
7
|
private platformAttributesSelection;
|
|
@@ -59,6 +59,7 @@ export declare class ZakekeEnvironment {
|
|
|
59
59
|
private handleSceneLoaded;
|
|
60
60
|
private getComposition;
|
|
61
61
|
loadComposition: (id: string | null) => Promise<void>;
|
|
62
|
+
private internalLoadComposition;
|
|
62
63
|
private handleAttributeSelectionChanged;
|
|
63
64
|
private handleAttributeEnabled;
|
|
64
65
|
private handleAttributeDisabled;
|
|
@@ -124,6 +125,7 @@ export declare class ZakekeEnvironment {
|
|
|
124
125
|
setItemColor: (guid: string, color: string) => void;
|
|
125
126
|
setItemFontFamily: (guid: string, fontFamily: string) => Promise<void>;
|
|
126
127
|
createImage: (file: File, progress?: ((percentage: number) => void) | undefined) => Promise<Image>;
|
|
128
|
+
createImageFromUrl: (url: string) => Promise<Image>;
|
|
127
129
|
addItemImage: (id: number, areaId: number) => Promise<void>;
|
|
128
130
|
setItemImageFromFile: (guid: string, file: File, progress?: ((percentage: number) => void) | undefined) => Promise<void>;
|
|
129
131
|
setItemImageFromBase64: (guid: string, base64: any) => Promise<void>;
|
|
@@ -140,9 +142,11 @@ export declare class ZakekeEnvironment {
|
|
|
140
142
|
getOnlineScreenshot: (width: number, height: number) => Promise<string>;
|
|
141
143
|
private buildModelViewerUrl;
|
|
142
144
|
isSceneArEnabled: () => boolean;
|
|
145
|
+
private getPregeneratedARUrl;
|
|
143
146
|
getQrCodeArUrl: (device: 'iOS' | 'Android') => Promise<string>;
|
|
144
|
-
getMobileArUrl: () => Promise<string | null>;
|
|
147
|
+
getMobileArUrl: (useCacheWithDesign?: boolean | undefined) => Promise<string | null>;
|
|
145
148
|
openArMobile: (url: string) => void;
|
|
149
|
+
private registerView;
|
|
146
150
|
addFocusAttributesListener: (listenerFunction: FocusAttributesEventListener) => void;
|
|
147
151
|
clearListeners: () => void;
|
|
148
152
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FontFamily, Group, Template, Item, Product } from "..";
|
|
2
2
|
import { AppState } from "./state";
|
|
3
3
|
import { Image, ImageMacroCategory, Camera } from "../models";
|
|
4
|
-
import { FocusAttributesEventListener } from "
|
|
4
|
+
import { FocusAttributesEventListener } from "../../../../3D/src";
|
|
5
5
|
export interface ProviderValue {
|
|
6
6
|
internalProduct: MPlaza.Model | null;
|
|
7
7
|
internalScene: Zakeke.Scene | null;
|
|
@@ -41,6 +41,7 @@ export interface ProviderValue {
|
|
|
41
41
|
setItemImageFromFile: (guid: string, file: File) => Promise<void>;
|
|
42
42
|
addItemImage: (id: number, areaId: number) => Promise<void>;
|
|
43
43
|
createImage: (file: File, progress?: (percentage: number) => void) => Promise<Image>;
|
|
44
|
+
createImageFromUrl: (url: string) => Promise<Image>;
|
|
44
45
|
setItemImage: (guid: string, imageId: number) => Promise<void>;
|
|
45
46
|
setItemFontFamily: (guid: string, fontFamily: string) => void;
|
|
46
47
|
setItemColor: (guid: string, color: string) => void;
|
|
@@ -67,7 +68,7 @@ export interface ProviderValue {
|
|
|
67
68
|
clearListeners: () => void;
|
|
68
69
|
addFocusAttributesListener: (listenerFunction: FocusAttributesEventListener) => void;
|
|
69
70
|
getQrCodeArUrl: (device: 'iOS' | 'Android') => Promise<string>;
|
|
70
|
-
getMobileArUrl: () => Promise<string | null>;
|
|
71
|
+
getMobileArUrl: (useCacheWithDesign?: boolean) => Promise<string | null>;
|
|
71
72
|
openArMobile: (url: string) => void;
|
|
72
73
|
isSceneArEnabled: () => boolean;
|
|
73
74
|
IS_ANDROID: boolean;
|
|
File without changes
|
|
File without changes
|