@retailcrm/embed-ui 0.4.1-alpha.17 → 0.4.1-alpha.19

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.4.1-alpha.19](https://github.com/retailcrm/embed-ui/compare/v0.4.1-alpha.18...v0.4.1-alpha.19) (2024-11-27)
5
+
6
+ ### Features
7
+
8
+ * Added field 'photo' to 'user/current' context ([4d6aece](https://github.com/retailcrm/embed-ui/commit/4d6aece931d23ad74d2afa54fcfc1cc821846ca2))
9
+ ## [0.4.1-alpha.18](https://github.com/retailcrm/embed-ui/compare/v0.4.1-alpha.17...v0.4.1-alpha.18) (2024-11-27)
10
+
11
+ ### Bug Fixes
12
+
13
+ * Missing components info for remote root ([ee0cf4a](https://github.com/retailcrm/embed-ui/commit/ee0cf4a33d5f9fe41462f66eb65b1715081cd8c8))
4
14
  ## [0.4.1-alpha.17](https://github.com/retailcrm/embed-ui/compare/v0.4.1-alpha.16...v0.4.1-alpha.17) (2024-11-27)
5
15
  ## [0.4.1-alpha.16](https://github.com/retailcrm/embed-ui/compare/v0.4.1-alpha.15...v0.4.1-alpha.16) (2024-11-27)
6
16
 
package/dist/index.cjs CHANGED
@@ -100,6 +100,11 @@ const schema$4 = {
100
100
  defaults: () => null,
101
101
  readonly: true
102
102
  },
103
+ "photo": {
104
+ accepts: oneOf(isString, isNull),
105
+ defaults: () => null,
106
+ readonly: true
107
+ },
103
108
  "groups": {
104
109
  accepts: arrayOf(isString),
105
110
  defaults: () => [],
@@ -304,13 +309,13 @@ const createRoot = async (channel) => {
304
309
  "UiError",
305
310
  "UiLink",
306
311
  "UiLoader",
307
- "UiMenuItem",
308
- "UiMenuItemGroup",
309
312
  "UiModalSidebar",
310
313
  "UiModalWindow",
311
314
  "UiModalWindowSurface",
312
315
  "UiScrollBox",
313
316
  "UiTag",
317
+ "UiToolbarButton",
318
+ "UiToolbarLink",
314
319
  "UiTransition",
315
320
  "CrmYandexMap"
316
321
  ]
package/dist/index.mjs CHANGED
@@ -98,6 +98,11 @@ const schema$4 = {
98
98
  defaults: () => null,
99
99
  readonly: true
100
100
  },
101
+ "photo": {
102
+ accepts: oneOf(isString, isNull),
103
+ defaults: () => null,
104
+ readonly: true
105
+ },
101
106
  "groups": {
102
107
  accepts: arrayOf(isString),
103
108
  defaults: () => [],
@@ -302,13 +307,13 @@ const createRoot = async (channel) => {
302
307
  "UiError",
303
308
  "UiLink",
304
309
  "UiLoader",
305
- "UiMenuItem",
306
- "UiMenuItemGroup",
307
310
  "UiModalSidebar",
308
311
  "UiModalWindow",
309
312
  "UiModalWindowSurface",
310
313
  "UiScrollBox",
311
314
  "UiTag",
315
+ "UiToolbarButton",
316
+ "UiToolbarLink",
312
317
  "UiTransition",
313
318
  "CrmYandexMap"
314
319
  ]
package/dist/meta.json CHANGED
@@ -347,6 +347,16 @@
347
347
  },
348
348
  "readonly": true
349
349
  },
350
+ {
351
+ "name": "photo",
352
+ "type": "string | null",
353
+ "description": {
354
+ "en-GB": "User photo",
355
+ "es-ES": "Foto del usuario",
356
+ "ru-RU": "Фото пользователя"
357
+ },
358
+ "readonly": true
359
+ },
350
360
  {
351
361
  "name": "groups",
352
362
  "type": "Array<string>",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@retailcrm/embed-ui",
3
3
  "type": "module",
4
- "version": "0.4.1-alpha.17",
4
+ "version": "0.4.1-alpha.19",
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>",
@@ -6,6 +6,7 @@ export type Schema = {
6
6
  'firstName': ReadonlyField<string | null>;
7
7
  'lastName': ReadonlyField<string | null>;
8
8
  'patronymic': ReadonlyField<string | null>;
9
+ 'photo': ReadonlyField<string | null>;
9
10
  'groups': ReadonlyField<string[]>;
10
11
  'permissions': ReadonlyField<string[]>;
11
12
  }