@retailcrm/embed-ui 0.9.0 → 0.9.1-alpha.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/CHANGELOG.md CHANGED
@@ -1,6 +1,17 @@
1
1
  # Changelog
2
2
 
3
3
 
4
+ ## [0.9.1-alpha.2](https://github.com/retailcrm/embed-ui/compare/v0.9.1-alpha.1...v0.9.1-alpha.2) (2025-11-12)
5
+
6
+ ### Features
7
+
8
+ * ref [#102071](https://github.com/retailcrm/embed-ui/issues/102071) Implementation of a general scheme for a card in the orders section and in chats ([ade5857](https://github.com/retailcrm/embed-ui/commit/ade58571a689a073c9b97b36e424ee5c13ab7162))
9
+ ## [0.9.1-alpha.1](https://github.com/retailcrm/embed-ui/compare/v0.9.0...v0.9.1-alpha.1) (2025-11-05)
10
+
11
+ ### Features
12
+
13
+ * ref [#102071](https://github.com/retailcrm/embed-ui/issues/102071) Embed targets of the order form in chats ([e3fe25e](https://github.com/retailcrm/embed-ui/commit/e3fe25e90cde30a347d025ad0736da7c131fd3ed))
14
+ * **v-contexts:** ref [#102071](https://github.com/retailcrm/embed-ui/issues/102071) Context for embed targets of the order form in chats ([7c3aae2](https://github.com/retailcrm/embed-ui/commit/7c3aae267c04e8709548214106bc2d02ee2f8fbb))
4
15
  ## [0.9.0](https://github.com/retailcrm/embed-ui/compare/v0.8.4...v0.9.0) (2025-09-12)
5
16
 
6
17
  ### ⚠ BREAKING CHANGES
package/Makefile CHANGED
@@ -16,6 +16,11 @@ build: ## Builds the package
16
16
  $(TARGET_HEADER)
17
17
  $(YARN) workspaces foreach -A --topological-dev run build
18
18
 
19
+ .PHONY: build
20
+ prepare: ## Builds the package
21
+ $(TARGET_HEADER)
22
+ $(YARN) workspaces foreach -A --topological-dev run prepare
23
+
19
24
  .PHONY: release
20
25
  release: ## Bumps version and creates tag
21
26
  $(TARGET_HEADER)
@@ -48,4 +53,4 @@ $(call computable,CC_BLUE,$(shell tput -Txterm setaf 4 2>/dev/null))
48
53
  $(call computable,CC_MAGENTA,$(shell tput -Txterm setaf 5 2>/dev/null))
49
54
  $(call computable,CC_CYAN,$(shell tput -Txterm setaf 6 2>/dev/null))
50
55
  $(call computable,CC_WHITE,$(shell tput -Txterm setaf 7 2>/dev/null))
51
- $(call computable,CC_END,$(shell tput -Txterm sgr0 2>/dev/null))
56
+ $(call computable,CC_END,$(shell tput -Txterm sgr0 2>/dev/null))
package/dist/meta.json CHANGED
@@ -73,6 +73,101 @@
73
73
  }
74
74
  ]
75
75
  },
76
+ {
77
+ "name": "Offer",
78
+ "fields": [
79
+ {
80
+ "name": "id",
81
+ "type": "number",
82
+ "description": {
83
+ "en-GB": "ID",
84
+ "es-ES": "ID",
85
+ "ru-RU": "Идентификатор"
86
+ }
87
+ },
88
+ {
89
+ "name": "name",
90
+ "type": "string",
91
+ "description": {
92
+ "en-GB": "Name",
93
+ "es-ES": "Nombre",
94
+ "ru-RU": "Наименование"
95
+ }
96
+ },
97
+ {
98
+ "name": "image",
99
+ "type": "string|null",
100
+ "description": {
101
+ "en-GB": "Image URL",
102
+ "es-ES": "URL de la imagen",
103
+ "ru-RU": "URL изображения"
104
+ }
105
+ },
106
+ {
107
+ "name": "dimensions",
108
+ "type": "Dimensions",
109
+ "description": {
110
+ "en-GB": "Product dimensions L - length, W - width, H - height",
111
+ "es-ES": "Dimensiones del producto L - longitud, W - ancho, H - altura",
112
+ "ru-RU": "Размеры товара L - длина, W - ширина, H - высота"
113
+ }
114
+ },
115
+ {
116
+ "name": "weight",
117
+ "type": "Weight|null",
118
+ "description": {
119
+ "en-GB": "Weight",
120
+ "es-ES": "Peso",
121
+ "ru-RU": "Вес"
122
+ }
123
+ },
124
+ {
125
+ "name": "article",
126
+ "type": "string|null",
127
+ "description": {
128
+ "en-GB": "Article",
129
+ "es-ES": "Artículo",
130
+ "ru-RU": "Артикул"
131
+ }
132
+ },
133
+ {
134
+ "name": "barcode",
135
+ "type": "string|null",
136
+ "description": {
137
+ "en-GB": "Barcode",
138
+ "es-ES": "Código de barras",
139
+ "ru-RU": "Штрих-код"
140
+ }
141
+ },
142
+ {
143
+ "name": "properties",
144
+ "type": "Array<Property>",
145
+ "description": {
146
+ "en-GB": "Array of custom properties",
147
+ "es-ES": "Matriz de propiedades personalizadas",
148
+ "ru-RU": "Массив пользовательских свойств"
149
+ }
150
+ },
151
+ {
152
+ "name": "unit",
153
+ "type": "string|null",
154
+ "description": {
155
+ "en-GB": "Unit of quantity measurement, if not specified (null), will be set to \"pcs.\"",
156
+ "es-ES": "Unidad de medida de cantidad, si no se especifica (null), se establecerá en \"pcs.\"",
157
+ "ru-RU": "Единица измерения количества, если не указана (null), будет указано \"шт.\""
158
+ }
159
+ },
160
+ {
161
+ "name": "purchasePrice",
162
+ "type": "Money|null",
163
+ "description": {
164
+ "en-GB": "Purchase price, value + currency",
165
+ "es-ES": "Precio de compra, valor + moneda",
166
+ "ru-RU": "Закупочная цена, значение + валюта"
167
+ }
168
+ }
169
+ ]
170
+ },
76
171
  {
77
172
  "name": "PriceType",
78
173
  "fields": [
@@ -282,101 +377,6 @@
282
377
  }
283
378
  ]
284
379
  },
285
- {
286
- "name": "Offer",
287
- "fields": [
288
- {
289
- "name": "id",
290
- "type": "number",
291
- "description": {
292
- "en-GB": "ID",
293
- "es-ES": "ID",
294
- "ru-RU": "Идентификатор"
295
- }
296
- },
297
- {
298
- "name": "name",
299
- "type": "string",
300
- "description": {
301
- "en-GB": "Name",
302
- "es-ES": "Nombre",
303
- "ru-RU": "Наименование"
304
- }
305
- },
306
- {
307
- "name": "image",
308
- "type": "string|null",
309
- "description": {
310
- "en-GB": "Image URL",
311
- "es-ES": "URL de la imagen",
312
- "ru-RU": "URL изображения"
313
- }
314
- },
315
- {
316
- "name": "dimensions",
317
- "type": "Dimensions",
318
- "description": {
319
- "en-GB": "Product dimensions L - length, W - width, H - height",
320
- "es-ES": "Dimensiones del producto L - longitud, W - ancho, H - altura",
321
- "ru-RU": "Размеры товара L - длина, W - ширина, H - высота"
322
- }
323
- },
324
- {
325
- "name": "weight",
326
- "type": "Weight|null",
327
- "description": {
328
- "en-GB": "Weight",
329
- "es-ES": "Peso",
330
- "ru-RU": "Вес"
331
- }
332
- },
333
- {
334
- "name": "article",
335
- "type": "string|null",
336
- "description": {
337
- "en-GB": "Article",
338
- "es-ES": "Artículo",
339
- "ru-RU": "Артикул"
340
- }
341
- },
342
- {
343
- "name": "barcode",
344
- "type": "string|null",
345
- "description": {
346
- "en-GB": "Barcode",
347
- "es-ES": "Código de barras",
348
- "ru-RU": "Штрих-код"
349
- }
350
- },
351
- {
352
- "name": "properties",
353
- "type": "Array<Property>",
354
- "description": {
355
- "en-GB": "Array of custom properties",
356
- "es-ES": "Matriz de propiedades personalizadas",
357
- "ru-RU": "Массив пользовательских свойств"
358
- }
359
- },
360
- {
361
- "name": "unit",
362
- "type": "string|null",
363
- "description": {
364
- "en-GB": "Unit of quantity measurement, if not specified (null), will be set to \"pcs.\"",
365
- "es-ES": "Unidad de medida de cantidad, si no se especifica (null), se establecerá en \"pcs.\"",
366
- "ru-RU": "Единица измерения количества, если не указана (null), будет указано \"шт.\""
367
- }
368
- },
369
- {
370
- "name": "purchasePrice",
371
- "type": "Money|null",
372
- "description": {
373
- "en-GB": "Purchase price, value + currency",
374
- "es-ES": "Precio de compra, valor + moneda",
375
- "ru-RU": "Закупочная цена, значение + валюта"
376
- }
377
- }
378
- ]
379
- },
380
380
  {
381
381
  "name": "OrderItem",
382
382
  "fields": [
@@ -2032,6 +2032,156 @@
2032
2032
  "actions": [
2033
2033
  "order/card"
2034
2034
  ]
2035
+ },
2036
+ {
2037
+ "id": "order/mg:list.before",
2038
+ "description": {
2039
+ "en-GB": "Widget for the block \"Order items\"",
2040
+ "es-ES": "Widget para el bloque \"Artículos del pedido\"",
2041
+ "ru-RU": "Виджет для блока \"Состав заказа\""
2042
+ },
2043
+ "location": {
2044
+ "en-GB": "Section start, right above the list of order items",
2045
+ "es-ES": "Inicio de la sección, justo encima de la lista de artículos del pedido",
2046
+ "ru-RU": "Начало секции, над списком товарных позиций"
2047
+ },
2048
+ "contexts": [
2049
+ "order/card",
2050
+ "order/card:settings",
2051
+ "user/current",
2052
+ "settings"
2053
+ ],
2054
+ "customContexts": [
2055
+ "order"
2056
+ ],
2057
+ "actions": [
2058
+ "order/card"
2059
+ ]
2060
+ },
2061
+ {
2062
+ "id": "order/mg:list.after",
2063
+ "description": {
2064
+ "en-GB": "Widget for the block \"Order items\"",
2065
+ "es-ES": "Widget para el bloque \"Artículos del pedido\"",
2066
+ "ru-RU": "Виджет для блока \"Состав заказа\""
2067
+ },
2068
+ "location": {
2069
+ "en-GB": "Section end, right after the list of order items and before the discount, privilege selection, etc. input fields",
2070
+ "es-ES": "Fin de la sección, justo después de la lista de artículos del pedido y antes de los campos de entrada de descuento, selección de privilegios, etc.",
2071
+ "ru-RU": "Конец секции, сразу после списка товарных позиций и до полей ввода скидки, выбора привилегии и т.п."
2072
+ },
2073
+ "contexts": [
2074
+ "order/card",
2075
+ "order/card:settings",
2076
+ "user/current",
2077
+ "settings"
2078
+ ],
2079
+ "customContexts": [
2080
+ "order"
2081
+ ],
2082
+ "actions": [
2083
+ "order/card"
2084
+ ]
2085
+ },
2086
+ {
2087
+ "id": "order/mg:delivery.before",
2088
+ "description": {
2089
+ "en-GB": "Widget for the block \"Delivery\"",
2090
+ "es-ES": "Widget para el bloque \"Entrega\"",
2091
+ "ru-RU": "Виджет для блока \"Доставка\""
2092
+ },
2093
+ "location": {
2094
+ "en-GB": "Section start, right above the input field",
2095
+ "es-ES": "Inicio de la sección, justo encima del campo de entrada",
2096
+ "ru-RU": "Начало секции, над полем ввода"
2097
+ },
2098
+ "contexts": [
2099
+ "order/card",
2100
+ "order/card:settings",
2101
+ "user/current",
2102
+ "settings"
2103
+ ],
2104
+ "customContexts": [
2105
+ "order"
2106
+ ],
2107
+ "actions": [
2108
+ "order/card"
2109
+ ]
2110
+ },
2111
+ {
2112
+ "id": "order/mg:delivery.after",
2113
+ "description": {
2114
+ "en-GB": "Widget for the block \"Delivery\"",
2115
+ "es-ES": "Widget para el bloque \"Entrega\"",
2116
+ "ru-RU": "Виджет для блока \"Доставка\""
2117
+ },
2118
+ "location": {
2119
+ "en-GB": "Section end, right under the input fields",
2120
+ "es-ES": "Fin de la sección, justo debajo de los campos de entrada",
2121
+ "ru-RU": "Конец секции, под полями ввода"
2122
+ },
2123
+ "contexts": [
2124
+ "order/card",
2125
+ "order/card:settings",
2126
+ "user/current",
2127
+ "settings"
2128
+ ],
2129
+ "customContexts": [
2130
+ "order"
2131
+ ],
2132
+ "actions": [
2133
+ "order/card"
2134
+ ]
2135
+ },
2136
+ {
2137
+ "id": "order/mg:payment.before",
2138
+ "description": {
2139
+ "en-GB": "Widget for the block \"Payment\"",
2140
+ "es-ES": "Widget para el bloque \"Pago\"",
2141
+ "ru-RU": "Виджет для блока \"Оплата\""
2142
+ },
2143
+ "location": {
2144
+ "en-GB": "Section start, right above the input field",
2145
+ "es-ES": "Inicio de la sección, justo encima del campo de entrada",
2146
+ "ru-RU": "Начало секции, над полем ввода"
2147
+ },
2148
+ "contexts": [
2149
+ "order/card",
2150
+ "order/card:settings",
2151
+ "user/current",
2152
+ "settings"
2153
+ ],
2154
+ "customContexts": [
2155
+ "order"
2156
+ ],
2157
+ "actions": [
2158
+ "order/card"
2159
+ ]
2160
+ },
2161
+ {
2162
+ "id": "order/mg:payment.after",
2163
+ "description": {
2164
+ "en-GB": "Widget for the block \"Payment\"",
2165
+ "es-ES": "Widget para el bloque \"Pago\"",
2166
+ "ru-RU": "Виджет для блока \"Оплата\""
2167
+ },
2168
+ "location": {
2169
+ "en-GB": "Section end, after the list of payments, controls, and custom fields",
2170
+ "es-ES": "Fin de la sección, después de la lista de pagos, controles y campos personalizados",
2171
+ "ru-RU": "Конец секции, после списка оплат, контролов и пользовательских полей"
2172
+ },
2173
+ "contexts": [
2174
+ "order/card",
2175
+ "order/card:settings",
2176
+ "user/current",
2177
+ "settings"
2178
+ ],
2179
+ "customContexts": [
2180
+ "order"
2181
+ ],
2182
+ "actions": [
2183
+ "order/card"
2184
+ ]
2035
2185
  }
2036
2186
  ],
2037
2187
  "pages": [
@@ -2073,6 +2223,22 @@
2073
2223
  "order/card:payment.before",
2074
2224
  "order/card:comment.manager.before"
2075
2225
  ]
2226
+ },
2227
+ {
2228
+ "id": "order/mg",
2229
+ "description": {
2230
+ "en-GB": "Page with the order creation/editing form in chats",
2231
+ "es-ES": "Página con el formulario de creación/edición de pedidos en los chats",
2232
+ "ru-RU": "Страница с формой создания/редактирования заказа в чатах"
2233
+ },
2234
+ "targets": [
2235
+ "order/mg:list.before",
2236
+ "order/mg:list.after",
2237
+ "order/mg:delivery.before",
2238
+ "order/mg:delivery.after",
2239
+ "order/mg:payment.before",
2240
+ "order/mg:payment.after"
2241
+ ]
2076
2242
  }
2077
2243
  ]
2078
2244
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@retailcrm/embed-ui",
3
3
  "type": "module",
4
- "version": "0.9.0",
4
+ "version": "0.9.1-alpha.2",
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>",
@@ -40,15 +40,15 @@
40
40
  "@omnicajs/symfony-router": "^1.0.0",
41
41
  "@omnicajs/vue-remote": "^0.2.5",
42
42
  "@remote-ui/rpc": "^1.4.5",
43
- "@retailcrm/embed-ui-v1-contexts": "^0.9.0",
44
- "@retailcrm/embed-ui-v1-types": "^0.9.0"
43
+ "@retailcrm/embed-ui-v1-contexts": "^0.9.1-alpha.2",
44
+ "@retailcrm/embed-ui-v1-types": "^0.9.1-alpha.2"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@eslint/eslintrc": "^3.0.2",
48
48
  "@eslint/js": "^9.13.0",
49
49
  "@modulify/git-toolkit": "^0.0.2",
50
50
  "@modulify/pkg": "^1.0.1",
51
- "@retailcrm/embed-ui-v1-testing": "^0.9.0",
51
+ "@retailcrm/embed-ui-v1-testing": "^0.9.1-alpha.2",
52
52
  "@types/git-semver-tags": "^7.0.0",
53
53
  "@types/node": "^22.7.9",
54
54
  "@types/semver": "^7.5.8",
package/types/widget.d.ts CHANGED
@@ -127,5 +127,41 @@ export type SchemaListByTarget = {
127
127
  | 'order/card'
128
128
  | 'user/current'
129
129
  | 'settings'
130
- >
130
+ >;
131
+ 'order/mg:list.before': Pick<SchemaList,
132
+ | 'order/card'
133
+ | 'order/card:settings'
134
+ | 'user/current'
135
+ | 'settings'
136
+ >;
137
+ 'order/mg:list.after': Pick<SchemaList,
138
+ | 'order/card'
139
+ | 'order/card:settings'
140
+ | 'user/current'
141
+ | 'settings'
142
+ >;
143
+ 'order/mg:delivery.before': Pick<SchemaList,
144
+ | 'order/card'
145
+ | 'order/card:settings'
146
+ | 'user/current'
147
+ | 'settings'
148
+ >;
149
+ 'order/mg:delivery.after': Pick<SchemaList,
150
+ | 'order/card'
151
+ | 'order/card:settings'
152
+ | 'user/current'
153
+ | 'settings'
154
+ >;
155
+ 'order/mg:payment.before': Pick<SchemaList,
156
+ | 'order/card'
157
+ | 'order/card:settings'
158
+ | 'user/current'
159
+ | 'settings'
160
+ >;
161
+ 'order/mg:payment.after': Pick<SchemaList,
162
+ | 'order/card'
163
+ | 'order/card:settings'
164
+ | 'user/current'
165
+ | 'settings'
166
+ >;
131
167
  }