@retailcrm/embed-ui 0.4.1-alpha.18 → 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,11 @@
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))
4
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)
5
10
 
6
11
  ### Bug Fixes
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: () => [],
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: () => [],
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.18",
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
  }