@retailcrm/embed-ui 0.5.23-alpha.1 → 0.5.23-alpha.3

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,16 @@
1
1
  # Changelog
2
2
 
3
3
 
4
+ ## [0.5.23-alpha.3](https://github.com/retailcrm/embed-ui/compare/v0.5.23-alpha.2...v0.5.23-alpha.3) (2025-07-11)
5
+
6
+ ### Features
7
+
8
+ * **v1-contexts:** Added discount.amount, discount.percent, discount.total to order/card context ([c0a23a5](https://github.com/retailcrm/embed-ui/commit/c0a23a5bbaa6e73840d79a6d27d06e3d25eb3cde))
9
+ ## [0.5.23-alpha.2](https://github.com/retailcrm/embed-ui/compare/v0.5.23-alpha.1...v0.5.23-alpha.2) (2025-07-03)
10
+
11
+ ### Bug Fixes
12
+
13
+ * **v1-contexts:** Missing order/card:items context in schema list ([2b3d489](https://github.com/retailcrm/embed-ui/commit/2b3d489e45e2a14111bb184814f33a2f7b0d090a))
4
14
  ## [0.5.23-alpha.1](https://github.com/retailcrm/embed-ui/compare/v0.5.22...v0.5.23-alpha.1) (2025-07-03)
5
15
 
6
16
  ### Features
package/dist/meta.json CHANGED
@@ -374,6 +374,48 @@
374
374
  "ru-RU": "Адрес доставки"
375
375
  },
376
376
  "readonly": false
377
+ },
378
+ {
379
+ "name": "discount.amount",
380
+ "type": "number",
381
+ "description": {
382
+ "en-GB": "One-time discount amount in order currency",
383
+ "es-ES": "Importe del descuento único en la moneda del pedido",
384
+ "ru-RU": "Размер одноразовой скидки в валюте заказа"
385
+ },
386
+ "readonly": false
387
+ },
388
+ {
389
+ "name": "discount.percent",
390
+ "type": "number",
391
+ "description": {
392
+ "en-GB": "One-time discount percentage",
393
+ "es-ES": "Porcentaje de descuento único",
394
+ "ru-RU": "Процент одноразовой скидки"
395
+ },
396
+ "readonly": false
397
+ },
398
+ {
399
+ "name": "discount.total",
400
+ "type": "number",
401
+ "description": {
402
+ "en-GB": "Total order discount",
403
+ "es-ES": "Descuento total del pedido",
404
+ "ru-RU": "Общая скидка по заказу"
405
+ },
406
+ "readonly": true
407
+ }
408
+ ],
409
+ "order/card:items": [
410
+ {
411
+ "name": "items",
412
+ "type": "Array<OrderItem>",
413
+ "description": {
414
+ "en-GB": "List of items in the order",
415
+ "es-ES": "Lista de artículos en el pedido",
416
+ "ru-RU": "Список товарных позиций заказа"
417
+ },
418
+ "readonly": true
377
419
  }
378
420
  ],
379
421
  "order/card:settings": [
@@ -1125,6 +1167,10 @@
1125
1167
  "import": "import { useContext } from '@retailcrm/embed-ui-v1-contexts/remote/order/card'",
1126
1168
  "call": "const order = useContext()"
1127
1169
  },
1170
+ "order/card:items": {
1171
+ "import": "import { useContext } from '@retailcrm/embed-ui-v1-contexts/remote/order/card-items'",
1172
+ "call": "const orderItems = useContext()"
1173
+ },
1128
1174
  "order/card:settings": {
1129
1175
  "import": "import { useContext } from '@retailcrm/embed-ui-v1-contexts/remote/order/card-settings'",
1130
1176
  "call": "const orderSettings = useContext()"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@retailcrm/embed-ui",
3
3
  "type": "module",
4
- "version": "0.5.23-alpha.1",
4
+ "version": "0.5.23-alpha.3",
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.5.23-alpha.1",
44
- "@retailcrm/embed-ui-v1-types": "^0.5.23-alpha.1"
43
+ "@retailcrm/embed-ui-v1-contexts": "^0.5.23-alpha.3",
44
+ "@retailcrm/embed-ui-v1-types": "^0.5.23-alpha.3"
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.5.23-alpha.1",
51
+ "@retailcrm/embed-ui-v1-testing": "^0.5.23-alpha.3",
52
52
  "@types/git-semver-tags": "^7.0.0",
53
53
  "@types/node": "^22.7.9",
54
54
  "@types/semver": "^7.5.8",