@retailcrm/embed-ui 0.3.6 → 0.3.7

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.3.7](https://github.com/retailcrm/embed-ui/compare/v0.3.6...v0.3.7) (2024-11-25)
6
+
7
+
8
+ ### Fixes
9
+
10
+ * Added generation of meta.json to ci ([1b3b776](https://github.com/retailcrm/embed-ui/commit/1b3b77648a4a7cf71264566f71cd1ff81e792f44))
11
+
5
12
  ### [0.3.6](https://github.com/retailcrm/embed-ui/compare/v0.3.5...v0.3.6) (2024-11-22)
6
13
 
7
14
  ### 0.3.5 (2024-11-22)
package/dist/meta.json ADDED
@@ -0,0 +1,445 @@
1
+ {
2
+ "contexts": {
3
+ "customer/card": [
4
+ {
5
+ "name": "id",
6
+ "type": "number | null",
7
+ "description": {
8
+ "en-GB": "Customer ID",
9
+ "es-ES": "ID del cliente",
10
+ "ru-RU": "ID клиента"
11
+ },
12
+ "readonly": true
13
+ },
14
+ {
15
+ "name": "externalId",
16
+ "type": "string",
17
+ "description": {
18
+ "en-GB": "Customer external ID",
19
+ "es-ES": "ID externo del cliente",
20
+ "ru-RU": "Внешний ID клиента"
21
+ },
22
+ "readonly": true
23
+ },
24
+ {
25
+ "name": "email",
26
+ "type": "string",
27
+ "description": {
28
+ "en-GB": "Customer email",
29
+ "es-ES": "Correo electrónico del cliente",
30
+ "ru-RU": "Email клиента"
31
+ },
32
+ "readonly": true
33
+ },
34
+ {
35
+ "name": "phones",
36
+ "type": "Array<string>",
37
+ "description": {
38
+ "en-GB": "Customer phone list",
39
+ "es-ES": "Lista de teléfonos del cliente",
40
+ "ru-RU": "Список телефонов клиента"
41
+ },
42
+ "readonly": true
43
+ }
44
+ ],
45
+ "customer/card:phone": [
46
+ {
47
+ "name": "value",
48
+ "type": "string",
49
+ "description": {
50
+ "en-GB": "Customer phone",
51
+ "es-ES": "Teléfono del cliente",
52
+ "ru-RU": "Телефон клиента"
53
+ },
54
+ "readonly": true
55
+ },
56
+ {
57
+ "name": "index",
58
+ "type": "number",
59
+ "description": {
60
+ "en-GB": "Serial number of the phone in the list",
61
+ "es-ES": "Número de serie del teléfono en la lista",
62
+ "ru-RU": "Порядковый номер телефона в списке"
63
+ },
64
+ "readonly": true
65
+ }
66
+ ],
67
+ "order/card": [
68
+ {
69
+ "name": "customer.email",
70
+ "type": "string | null",
71
+ "description": {
72
+ "en-GB": "Customer email",
73
+ "es-ES": "Correo electrónico del cliente",
74
+ "ru-RU": "Email клиента"
75
+ },
76
+ "readonly": false
77
+ },
78
+ {
79
+ "name": "customer.phone",
80
+ "type": "string | null",
81
+ "description": {
82
+ "en-GB": "Customer phone",
83
+ "es-ES": "Teléfono del cliente",
84
+ "ru-RU": "Телефон клиента"
85
+ },
86
+ "readonly": false
87
+ },
88
+ {
89
+ "name": "delivery.address",
90
+ "type": "string | null",
91
+ "description": {
92
+ "en-GB": "Delivery address",
93
+ "es-ES": "Dirección de entrega",
94
+ "ru-RU": "Адрес доставки"
95
+ },
96
+ "readonly": false
97
+ }
98
+ ],
99
+ "settings": [
100
+ {
101
+ "name": "order.templates.number.api",
102
+ "type": "string",
103
+ "description": {
104
+ "en-GB": "Number template for orders created with API",
105
+ "es-ES": "Plantilla de número para pedidos creados con API",
106
+ "ru-RU": "Шаблон номера заказов, создаваемых через API"
107
+ },
108
+ "readonly": true
109
+ },
110
+ {
111
+ "name": "order.templates.number.crm",
112
+ "type": "string",
113
+ "description": {
114
+ "en-GB": "Number template for orders created with CRM's interface",
115
+ "es-ES": "Plantilla de número para pedidos creados con la interfaz de CRM",
116
+ "ru-RU": "Шаблон номера заказов, создаваемых через интерфейс CRM"
117
+ },
118
+ "readonly": true
119
+ },
120
+ {
121
+ "name": "system.locale",
122
+ "type": "'en-GB' | 'es-ES' | 'ru-RU'",
123
+ "description": {
124
+ "en-GB": "Current system's locale",
125
+ "es-ES": "Configuración regional actual del sistema",
126
+ "ru-RU": "Текущая локаль системы"
127
+ },
128
+ "readonly": true
129
+ }
130
+ ]
131
+ },
132
+ "targets": [
133
+ {
134
+ "id": "customer/card:phone",
135
+ "description": {
136
+ "en-GB": "Widget for customer phone list item",
137
+ "es-ES": "Widget para el elemento de la lista de teléfonos del cliente",
138
+ "ru-RU": "Виджет для элемента списка телефонов клиента"
139
+ },
140
+ "location": {
141
+ "en-GB": "Right after the phone number in the list",
142
+ "es-ES": "Justo después del número de teléfono en la lista",
143
+ "ru-RU": "Сразу после номера телефона в списке"
144
+ },
145
+ "contexts": [
146
+ "customer/card",
147
+ "customer/card:phone",
148
+ "settings"
149
+ ]
150
+ },
151
+ {
152
+ "id": "order/card:common.before",
153
+ "description": {
154
+ "en-GB": "Widget for the section with common data",
155
+ "es-ES": "Widget para la sección con datos comunes",
156
+ "ru-RU": "Виджет для секции с основными данными"
157
+ },
158
+ "location": {
159
+ "en-GB": "Section start, right above the input fields",
160
+ "es-ES": "Inicio de la sección, justo encima de los campos de entrada",
161
+ "ru-RU": "Начало секции, над полями ввода"
162
+ },
163
+ "contexts": [
164
+ "order/card",
165
+ "settings"
166
+ ]
167
+ },
168
+ {
169
+ "id": "order/card:common.after",
170
+ "description": {
171
+ "en-GB": "Widget for the section with common data",
172
+ "es-ES": "Widget para la sección con datos comunes",
173
+ "ru-RU": "Виджет для секции с основными данными"
174
+ },
175
+ "location": {
176
+ "en-GB": "Section end, right under the input fields",
177
+ "es-ES": "Fin de la sección, justo debajo de los campos de entrada",
178
+ "ru-RU": "Конец секции, под полями ввода"
179
+ },
180
+ "contexts": [
181
+ "order/card",
182
+ "settings"
183
+ ]
184
+ },
185
+ {
186
+ "id": "order/card:customer.before",
187
+ "description": {
188
+ "en-GB": "Widget for the section with customer data",
189
+ "es-ES": "Widget para la sección con datos del cliente",
190
+ "ru-RU": "Виджет для секции с данными клиента"
191
+ },
192
+ "location": {
193
+ "en-GB": "Section start, right above the input fields",
194
+ "es-ES": "Inicio de la sección, justo encima de los campos de entrada",
195
+ "ru-RU": "Начало секции, над полями ввода"
196
+ },
197
+ "contexts": [
198
+ "order/card",
199
+ "settings"
200
+ ]
201
+ },
202
+ {
203
+ "id": "order/card:customer.after",
204
+ "description": {
205
+ "en-GB": "Widget for the section with customer data",
206
+ "es-ES": "Widget para la sección con datos del cliente",
207
+ "ru-RU": "Виджет для секции с данными клиента"
208
+ },
209
+ "location": {
210
+ "en-GB": "Section end, right under the input fields",
211
+ "es-ES": "Fin de la sección, justo debajo de los campos de entrada",
212
+ "ru-RU": "Конец секции, под полями ввода"
213
+ },
214
+ "contexts": [
215
+ "order/card",
216
+ "settings"
217
+ ]
218
+ },
219
+ {
220
+ "id": "order/card:customer.email",
221
+ "description": {
222
+ "en-GB": "Widget for customer email input field",
223
+ "es-ES": "Widget para el campo de entrada del correo electrónico del cliente",
224
+ "ru-RU": "Виджет для поля ввода email клиента"
225
+ },
226
+ "location": {
227
+ "en-GB": "Right after the input field",
228
+ "es-ES": "Justo después del campo de entrada",
229
+ "ru-RU": "Сразу после поля ввода"
230
+ },
231
+ "contexts": [
232
+ "order/card",
233
+ "settings"
234
+ ]
235
+ },
236
+ {
237
+ "id": "order/card:customer.phone",
238
+ "description": {
239
+ "en-GB": "Widget for customer phone input field",
240
+ "es-ES": "Widget para el campo de entrada del teléfono del cliente",
241
+ "ru-RU": "Виджет для поля ввода телефона клиента"
242
+ },
243
+ "location": {
244
+ "en-GB": "Right after the input field",
245
+ "es-ES": "Justo después del campo de entrada",
246
+ "ru-RU": "Сразу после поля ввода"
247
+ },
248
+ "contexts": [
249
+ "order/card",
250
+ "settings"
251
+ ]
252
+ },
253
+ {
254
+ "id": "order/card:list.before",
255
+ "description": {
256
+ "en-GB": "Widget for the list of ordered items",
257
+ "es-ES": "Widget para la lista de artículos pedidos",
258
+ "ru-RU": "Виджет для списка позиций заказа"
259
+ },
260
+ "location": {
261
+ "en-GB": "[Temporary unavailable]",
262
+ "es-ES": "[Temporalmente no disponible]",
263
+ "ru-RU": "[Временно недоступен]"
264
+ },
265
+ "contexts": [
266
+ "order/card",
267
+ "settings"
268
+ ]
269
+ },
270
+ {
271
+ "id": "order/card:list.after",
272
+ "description": {
273
+ "en-GB": "Widget for the list of ordered items",
274
+ "es-ES": "Widget para la lista de artículos pedidos",
275
+ "ru-RU": "Виджет для списка позиций заказа"
276
+ },
277
+ "location": {
278
+ "en-GB": "Section start, right under the list",
279
+ "es-ES": "Inicio de la sección, justo debajo de la lista",
280
+ "ru-RU": "Начало секции, под списком"
281
+ },
282
+ "contexts": [
283
+ "order/card",
284
+ "settings"
285
+ ]
286
+ },
287
+ {
288
+ "id": "order/card:store.before",
289
+ "description": {
290
+ "en-GB": "Widget for the section with warehouse data",
291
+ "es-ES": "Widget para la sección con datos del almacén",
292
+ "ru-RU": "Виджет для секции с данными склада"
293
+ },
294
+ "location": {
295
+ "en-GB": "Section start, right above the input fields",
296
+ "es-ES": "Inicio de la sección, justo encima de los campos de entrada",
297
+ "ru-RU": "Начало секции, над полями ввода"
298
+ },
299
+ "contexts": [
300
+ "order/card",
301
+ "settings"
302
+ ]
303
+ },
304
+ {
305
+ "id": "order/card:dimensions.before",
306
+ "description": {
307
+ "en-GB": "Widget for the section with dimensions and weight",
308
+ "es-ES": "Widget para la sección con dimensiones y peso",
309
+ "ru-RU": "Виджет для секции с данными габаритов и веса"
310
+ },
311
+ "location": {
312
+ "en-GB": "Section start, right above the input fields",
313
+ "es-ES": "Inicio de la sección, justo encima de los campos de entrada",
314
+ "ru-RU": "Начало секции, над полями ввода"
315
+ },
316
+ "contexts": [
317
+ "order/card",
318
+ "settings"
319
+ ]
320
+ },
321
+ {
322
+ "id": "order/card:delivery.before",
323
+ "description": {
324
+ "en-GB": "Widget for the section with delivery data",
325
+ "es-ES": "Widget para la sección con datos de entrega",
326
+ "ru-RU": "Виджет для секции с данными доставки"
327
+ },
328
+ "location": {
329
+ "en-GB": "Section start, right above the input fields",
330
+ "es-ES": "Inicio de la sección, justo encima de los campos de entrada",
331
+ "ru-RU": "Начало секции, над полями ввода"
332
+ },
333
+ "contexts": [
334
+ "order/card",
335
+ "settings"
336
+ ]
337
+ },
338
+ {
339
+ "id": "order/card:delivery.after",
340
+ "description": {
341
+ "en-GB": "Widget for the section with delivery data",
342
+ "es-ES": "Widget para la sección con datos de entrega",
343
+ "ru-RU": "Виджет для секции с данными доставки"
344
+ },
345
+ "location": {
346
+ "en-GB": "Section end, right under the input fields",
347
+ "es-ES": "Fin de la sección, justo debajo de los campos de entrada",
348
+ "ru-RU": "Конец секции, под полями ввода"
349
+ },
350
+ "contexts": [
351
+ "order/card",
352
+ "settings"
353
+ ]
354
+ },
355
+ {
356
+ "id": "order/card:delivery.address",
357
+ "description": {
358
+ "en-GB": "Widget for delivery address input field",
359
+ "es-ES": "Widget para el campo de entrada de la dirección de entrega",
360
+ "ru-RU": "Виджет для поля ввода адреса доставки"
361
+ },
362
+ "location": {
363
+ "en-GB": "Right under the input field",
364
+ "es-ES": "Justo debajo del campo de entrada",
365
+ "ru-RU": "Под полем ввода адреса"
366
+ },
367
+ "contexts": [
368
+ "order/card",
369
+ "settings"
370
+ ]
371
+ },
372
+ {
373
+ "id": "order/card:payment.before",
374
+ "description": {
375
+ "en-GB": "Widget for the section with payment data",
376
+ "es-ES": "Widget para la sección con datos de pago",
377
+ "ru-RU": "Виджет для секции с данными по оплате"
378
+ },
379
+ "location": {
380
+ "en-GB": "Section start, right above the input fields",
381
+ "es-ES": "Inicio de la sección, justo encima de los campos de entrada",
382
+ "ru-RU": "Начало секции, над полями ввода"
383
+ },
384
+ "contexts": [
385
+ "order/card",
386
+ "settings"
387
+ ]
388
+ }
389
+ ],
390
+ "pages": [
391
+ {
392
+ "id": "customer/card",
393
+ "description": {
394
+ "en-GB": "Customer page",
395
+ "es-ES": "Página del cliente",
396
+ "ru-RU": "Страница клиента"
397
+ },
398
+ "targets": [
399
+ "customer/card:phone"
400
+ ]
401
+ },
402
+ {
403
+ "id": "order/card",
404
+ "description": {
405
+ "en-GB": "Page with the order creation/editing form",
406
+ "es-ES": "Página con el formulario de creación/edición de pedidos",
407
+ "ru-RU": "Страница с формой создания/редактирования заказа"
408
+ },
409
+ "targets": [
410
+ "order/card:common.before",
411
+ "order/card:common.after",
412
+ "order/card:customer.before",
413
+ "order/card:customer.after",
414
+ "order/card:customer.email",
415
+ "order/card:customer.phone",
416
+ "order/card:list.before",
417
+ "order/card:list.after",
418
+ "order/card:store.before",
419
+ "order/card:dimensions.before",
420
+ "order/card:delivery.before",
421
+ "order/card:delivery.after",
422
+ "order/card:delivery.address",
423
+ "order/card:payment.before"
424
+ ]
425
+ }
426
+ ],
427
+ "contextsUsage": {
428
+ "customer/card": {
429
+ "import": "import { useCustomerCardContext } from '@retailcrm/embed-ui'",
430
+ "call": "const customer = useCustomerCardContext()"
431
+ },
432
+ "customer/card:phone": {
433
+ "import": "import { useCustomerCardPhoneContext } from '@retailcrm/embed-ui'",
434
+ "call": "const phone = useCustomerCardPhoneContext()"
435
+ },
436
+ "order/card": {
437
+ "import": "import { useOrderCardContext } from '@retailcrm/embed-ui'",
438
+ "call": "const order = useOrderCardContext()"
439
+ },
440
+ "settings": {
441
+ "import": "import { useSettingsContext } from '@retailcrm/embed-ui'",
442
+ "call": "const settings = useSettingsContext()"
443
+ }
444
+ }
445
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@retailcrm/embed-ui",
3
3
  "type": "module",
4
- "version": "0.3.6",
4
+ "version": "0.3.7",
5
5
  "description": "API and components for creating RetailCRM UI extensions",
6
6
  "repository": "git@github.com:retailcrm/embed-ui.git",
7
7
  "author": "RetailDriverLLC <integration@retailcrm.ru>",