@retailcrm/embed-ui 0.5.9 → 0.5.10

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,13 @@
1
1
  # Changelog
2
2
 
3
3
 
4
+ ## [0.5.10](https://github.com/retailcrm/embed-ui/compare/v0.5.9...v0.5.10) (2025-01-21)
5
+
6
+ ### Features
7
+
8
+ * Added UiImage to known components list ([316e39c](https://github.com/retailcrm/embed-ui/commit/316e39cd784aa43cab2d6a3919aeacd0073ba73a))
9
+ * **v1-components:** Added logic for image optimizing: resize/crop, UiImage component that implements optimization logic, UiAvatar images optimized by default, if workers array is provided ([6d7dcfa](https://github.com/retailcrm/embed-ui/commit/6d7dcfa34a30fe48684be85082ed8a968c4965a8))
10
+ * **v1-contexts:** Added field 'image.workers' to settings context ([38355b2](https://github.com/retailcrm/embed-ui/commit/38355b28dd037c54cebe8dcfd77e9264f3a3560c))
4
11
  ## [0.5.9](https://github.com/retailcrm/embed-ui/compare/v0.5.8...v0.5.9) (2025-01-15)
5
12
 
6
13
  ### Features
package/dist/index.cjs CHANGED
@@ -56,6 +56,7 @@ const createRoot = async (channel) => {
56
56
  "UiButton",
57
57
  "UiCheckbox",
58
58
  "UiError",
59
+ "UiImage",
59
60
  "UiLink",
60
61
  "UiLoader",
61
62
  "UiModalSidebar",
package/dist/index.mjs CHANGED
@@ -54,6 +54,7 @@ const createRoot = async (channel) => {
54
54
  "UiButton",
55
55
  "UiCheckbox",
56
56
  "UiError",
57
+ "UiImage",
57
58
  "UiLink",
58
59
  "UiLoader",
59
60
  "UiModalSidebar",
package/dist/meta.json CHANGED
@@ -459,6 +459,16 @@
459
459
  }
460
460
  ],
461
461
  "settings": [
462
+ {
463
+ "name": "image.workers",
464
+ "type": "Array<string>",
465
+ "description": {
466
+ "en-GB": "A list of servers that process images.",
467
+ "es-ES": "Una lista de servidores que procesan imágenes.",
468
+ "ru-RU": "Список серверов, обрабатывающих изображения."
469
+ },
470
+ "readonly": true
471
+ },
462
472
  {
463
473
  "name": "system.locale",
464
474
  "type": "\"en-GB\" | \"es-ES\" | \"ru-RU\"",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@retailcrm/embed-ui",
3
3
  "type": "module",
4
- "version": "0.5.9",
4
+ "version": "0.5.10",
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>",
@@ -37,13 +37,13 @@
37
37
  "dependencies": {
38
38
  "@omnicajs/vue-remote": "^0.2.5",
39
39
  "@remote-ui/rpc": "^1.4.5",
40
- "@retailcrm/embed-ui-v1-contexts": "^0.5.9",
41
- "@retailcrm/embed-ui-v1-types": "^0.5.9"
40
+ "@retailcrm/embed-ui-v1-contexts": "^0.5.10",
41
+ "@retailcrm/embed-ui-v1-types": "^0.5.10"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@eslint/eslintrc": "^3.0.2",
45
45
  "@eslint/js": "^9.13.0",
46
- "@retailcrm/embed-ui-v1-testing": "^0.5.9",
46
+ "@retailcrm/embed-ui-v1-testing": "^0.5.10",
47
47
  "@types/git-semver-tags": "^7.0.0",
48
48
  "@types/node": "^22.7.9",
49
49
  "@types/semver": "^7.5.8",