@neurodyn/react-room-viewer 0.0.19 → 0.0.21
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/index.d.ts +49 -6
- package/dist/index.js +10769 -3969
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -59,6 +59,7 @@ declare const resources: {
|
|
|
59
59
|
readonly privacyPolicy: "Privacy Policy";
|
|
60
60
|
};
|
|
61
61
|
readonly shareMessage: {
|
|
62
|
+
readonly 'wall-panel': "Preview wall panels";
|
|
62
63
|
readonly wallart: "Preview wall art";
|
|
63
64
|
readonly rugs: "Preview rug";
|
|
64
65
|
readonly flooring: "Preview flooring";
|
|
@@ -76,7 +77,6 @@ declare const resources: {
|
|
|
76
77
|
};
|
|
77
78
|
readonly scene: {
|
|
78
79
|
readonly tunePosition: "Tune position";
|
|
79
|
-
readonly position: "Position";
|
|
80
80
|
readonly share: "Share";
|
|
81
81
|
readonly angle: "Angle";
|
|
82
82
|
readonly rotation: "Rotation";
|
|
@@ -91,7 +91,23 @@ declare const resources: {
|
|
|
91
91
|
readonly 'artwork-load-failed': "The image could not be loaded — its link is missing or incorrect in the widget settings.";
|
|
92
92
|
readonly 'room-load-failed': "The room photo could not be loaded. Please try again.";
|
|
93
93
|
};
|
|
94
|
+
readonly wallPanel: {
|
|
95
|
+
readonly loading: "Loading material";
|
|
96
|
+
readonly panelActions: "Panel {{number}} actions";
|
|
97
|
+
readonly retry: "Could not load. Select again to retry.";
|
|
98
|
+
readonly actions: "Panel actions";
|
|
99
|
+
readonly materials: "Materials";
|
|
100
|
+
readonly materialFallback: "Material {{number}}";
|
|
101
|
+
readonly rotate: "Rotate panel";
|
|
102
|
+
readonly delete: "Delete panel";
|
|
103
|
+
};
|
|
94
104
|
readonly resourceType: {
|
|
105
|
+
readonly 'wall-panel': {
|
|
106
|
+
readonly productCategory: "Wall panel";
|
|
107
|
+
readonly productCardTitle: "Selected panel";
|
|
108
|
+
readonly replaceProduct: "Replace panel";
|
|
109
|
+
readonly replaceProductShort: "Replace";
|
|
110
|
+
};
|
|
95
111
|
readonly rugs: {
|
|
96
112
|
readonly productCategory: "Rug";
|
|
97
113
|
readonly productCardTitle: "Selected rug";
|
|
@@ -117,6 +133,9 @@ declare const resources: {
|
|
|
117
133
|
readonly tryAtHomeBody: "Through your phone camera";
|
|
118
134
|
};
|
|
119
135
|
readonly materialSelection: {
|
|
136
|
+
readonly flooring: "Choose flooring";
|
|
137
|
+
readonly rugs: "Choose a rug";
|
|
138
|
+
readonly 'wall-panel': "Choose a panel";
|
|
120
139
|
readonly title: "Material Selection";
|
|
121
140
|
};
|
|
122
141
|
readonly interiorSelection: {
|
|
@@ -178,6 +197,7 @@ declare const resources: {
|
|
|
178
197
|
readonly privacyPolicy: "Политика конфиденциальности";
|
|
179
198
|
};
|
|
180
199
|
readonly shareMessage: {
|
|
200
|
+
readonly 'wall-panel': "Примерить стеновые панели";
|
|
181
201
|
readonly wallart: "Примерить настенный декор";
|
|
182
202
|
readonly rugs: "Примерить ковер";
|
|
183
203
|
readonly flooring: "Примерить напольное покрытие";
|
|
@@ -195,7 +215,6 @@ declare const resources: {
|
|
|
195
215
|
};
|
|
196
216
|
readonly scene: {
|
|
197
217
|
readonly tunePosition: "Настроить положение";
|
|
198
|
-
readonly position: "Положение";
|
|
199
218
|
readonly share: "Поделиться";
|
|
200
219
|
readonly angle: "Угол";
|
|
201
220
|
readonly rotation: "Поворот";
|
|
@@ -210,7 +229,23 @@ declare const resources: {
|
|
|
210
229
|
readonly 'artwork-load-failed': "Не удалось загрузить изображение — ссылка на него отсутствует или указана неверно в настройках виджета.";
|
|
211
230
|
readonly 'room-load-failed': "Не удалось загрузить фото комнаты. Попробуйте ещё раз.";
|
|
212
231
|
};
|
|
232
|
+
readonly wallPanel: {
|
|
233
|
+
readonly loading: "Загрузка материала";
|
|
234
|
+
readonly panelActions: "Действия с панелью {{number}}";
|
|
235
|
+
readonly retry: "Не удалось загрузить. Нажмите ещё раз.";
|
|
236
|
+
readonly actions: "Действия с панелью";
|
|
237
|
+
readonly materials: "Материалы";
|
|
238
|
+
readonly materialFallback: "Материал {{number}}";
|
|
239
|
+
readonly rotate: "Повернуть панель";
|
|
240
|
+
readonly delete: "Удалить панель";
|
|
241
|
+
};
|
|
213
242
|
readonly resourceType: {
|
|
243
|
+
readonly 'wall-panel': {
|
|
244
|
+
readonly productCategory: "Стеновая панель";
|
|
245
|
+
readonly productCardTitle: "Выбранная панель";
|
|
246
|
+
readonly replaceProduct: "Заменить панель";
|
|
247
|
+
readonly replaceProductShort: "Заменить";
|
|
248
|
+
};
|
|
214
249
|
readonly rugs: {
|
|
215
250
|
readonly productCategory: "Ковер";
|
|
216
251
|
readonly productCardTitle: "Выбранный ковер";
|
|
@@ -236,6 +271,9 @@ declare const resources: {
|
|
|
236
271
|
readonly tryAtHomeBody: "Через камеру телефона";
|
|
237
272
|
};
|
|
238
273
|
readonly materialSelection: {
|
|
274
|
+
readonly flooring: "Выберите покрытие";
|
|
275
|
+
readonly rugs: "Выберите ковёр";
|
|
276
|
+
readonly 'wall-panel': "Выберите панель";
|
|
239
277
|
readonly title: "Выбор материала";
|
|
240
278
|
};
|
|
241
279
|
readonly interiorSelection: {
|
|
@@ -273,7 +311,7 @@ declare const resources: {
|
|
|
273
311
|
|
|
274
312
|
export declare function RoomViewer({ type, src, tinuuid, name, language, width, height, dimensionUnit, displayUnit, apiKey, source, widgetSession, className, ...props }: RoomViewerProps & React_2.ComponentProps<'div'>): JSX.Element;
|
|
275
313
|
|
|
276
|
-
export declare function RoomViewerDialog({ type, src, tinuuid, width, height, dimensionUnit, displayUnit, name, language, apiKey, source, widgetSession, disableClose, open, defaultOpen, onOpenChange,
|
|
314
|
+
export declare function RoomViewerDialog({ type, src, tinuuid, width, height, dimensionUnit, displayUnit, name, language, apiKey, source, widgetSession, disableClose, open, defaultOpen, onOpenChange, }: RoomViewerDialogProps): JSX.Element;
|
|
277
315
|
|
|
278
316
|
declare interface RoomViewerDialogProps extends Omit<RoomViewerRootProps, 'showDialogCloseButton' | 'viewerSurface' | 'dialogPortalContainer' | 'viewerDialogOpen' | 'onViewerDialogOpenChange'>, Omit<DialogProps, 'children' | 'modal'> {
|
|
279
317
|
/** Hide close controls and prevent user dismissal for rugs and flooring. Defaults to false. */
|
|
@@ -300,6 +338,11 @@ declare type RoomViewerLanguage = keyof typeof resources;
|
|
|
300
338
|
*/
|
|
301
339
|
export declare type RoomViewerLegacyResourceType = 'poster' | 'carpet';
|
|
302
340
|
|
|
341
|
+
/**
|
|
342
|
+
* What a plane of a Scene is, and therefore the vocabulary a Resource Type's
|
|
343
|
+
* Surface Kind set is drawn from. `ceiling` is groundwork: the inference model
|
|
344
|
+
* does not produce ceiling planes and no Resource Type claims one.
|
|
345
|
+
*/
|
|
303
346
|
export declare type RoomViewerPlaneKind = 'floor' | 'wall' | 'ceiling';
|
|
304
347
|
|
|
305
348
|
export declare interface RoomViewerProps extends Omit<RoomViewerRootProps, 'showDialogCloseButton' | 'viewerSurface'> {
|
|
@@ -309,7 +352,7 @@ export declare interface RoomViewerProps extends Omit<RoomViewerRootProps, 'show
|
|
|
309
352
|
* Canonical Resource Type values. Internal code only ever sees these — legacy
|
|
310
353
|
* inputs are normalized to canonical at the viewer entry.
|
|
311
354
|
*/
|
|
312
|
-
export declare type RoomViewerResourceType = 'wallart' | 'rugs' | 'flooring';
|
|
355
|
+
export declare type RoomViewerResourceType = 'wallart' | 'rugs' | 'flooring' | 'wall-panel';
|
|
313
356
|
|
|
314
357
|
/** Resource Type values accepted at the public boundary (canonical ∪ legacy). */
|
|
315
358
|
export declare type RoomViewerResourceTypeInput = RoomViewerResourceType | RoomViewerLegacyResourceType;
|
|
@@ -323,7 +366,7 @@ export declare interface RoomViewerRoom {
|
|
|
323
366
|
|
|
324
367
|
declare interface RoomViewerRootProps {
|
|
325
368
|
/**
|
|
326
|
-
* Resource Type. Canonical values are `wallart`, `rugs`, and `
|
|
369
|
+
* Resource Type. Canonical values are `wallart`, `rugs`, `flooring`, and `wall-panel`.
|
|
327
370
|
*
|
|
328
371
|
* @remarks
|
|
329
372
|
* `poster` and `carpet` are accepted as deprecated aliases (`poster` →
|
|
@@ -333,7 +376,7 @@ declare interface RoomViewerRootProps {
|
|
|
333
376
|
type: RoomViewerResourceTypeInput;
|
|
334
377
|
/** Wall-art image URL. Used for wall products (`wallart`). */
|
|
335
378
|
src?: string;
|
|
336
|
-
/** The object's tinuuid. Used for
|
|
379
|
+
/** The object's tinuuid. Used for modelled products (`rugs`, `flooring`, `wall-panel`). */
|
|
337
380
|
tinuuid?: string;
|
|
338
381
|
/** Title shown in the dialog header. */
|
|
339
382
|
name: string;
|