@retailcrm/embed-ui-v1-contexts 0.5.9 → 0.5.11

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/dist/meta.json CHANGED
@@ -483,6 +483,16 @@
483
483
  },
484
484
  "settings": {
485
485
  "fields": [
486
+ {
487
+ "name": "image.workers",
488
+ "type": "Array<string>",
489
+ "description": {
490
+ "en-GB": "A list of servers that process images.",
491
+ "es-ES": "Una lista de servidores que procesan imágenes.",
492
+ "ru-RU": "Список серверов, обрабатывающих изображения."
493
+ },
494
+ "readonly": true
495
+ },
486
496
  {
487
497
  "name": "system.locale",
488
498
  "type": "\"en-GB\" | \"es-ES\" | \"ru-RU\"",
@@ -5,6 +5,11 @@ const predicates = require("../predicates.cjs.js");
5
5
  const id = "settings";
6
6
  const locales = ["en-GB", "es-ES", "ru-RU"];
7
7
  const schema = {
8
+ "image.workers": {
9
+ accepts: predicates.arrayOf(predicates.isString),
10
+ defaults: () => [],
11
+ readonly: true
12
+ },
8
13
  "system.locale": {
9
14
  accepts: predicates.oneOf(...locales.map(predicates.isExactly)),
10
15
  defaults: () => "en-GB",
@@ -1,8 +1,13 @@
1
1
  import { defineContext } from "../remote.js";
2
- import { o as oneOf, d as isExactly } from "../predicates.es.js";
2
+ import { a as arrayOf, o as oneOf, d as isExactly, i as isString } from "../predicates.es.js";
3
3
  const id = "settings";
4
4
  const locales = ["en-GB", "es-ES", "ru-RU"];
5
5
  const schema = {
6
+ "image.workers": {
7
+ accepts: arrayOf(isString),
8
+ defaults: () => [],
9
+ readonly: true
10
+ },
6
11
  "system.locale": {
7
12
  accepts: oneOf(...locales.map(isExactly)),
8
13
  defaults: () => "en-GB",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@retailcrm/embed-ui-v1-contexts",
3
3
  "description": "Reactive contexts for RetailCRM JS API",
4
4
  "type": "module",
5
- "version": "0.5.9",
5
+ "version": "0.5.11",
6
6
  "license": "MIT",
7
7
  "author": "RetailDriverLLC <integration@retailcrm.ru>",
8
8
  "repository": "git@github.com:retailcrm/embed-ui.git",
@@ -102,10 +102,10 @@
102
102
  "pinia": "^2.2"
103
103
  },
104
104
  "dependencies": {
105
- "@retailcrm/embed-ui-v1-types": "^0.5.9"
105
+ "@retailcrm/embed-ui-v1-types": "^0.5.11"
106
106
  },
107
107
  "devDependencies": {
108
- "@retailcrm/embed-ui-v1-testing": "^0.5.9",
108
+ "@retailcrm/embed-ui-v1-testing": "^0.5.11",
109
109
  "tsx": "^4.19.2",
110
110
  "typescript": "^5.6.3",
111
111
  "vite": "^5.4.11",
@@ -2,5 +2,6 @@ import type { ReadonlyField } from '@retailcrm/embed-ui-v1-types/context'
2
2
 
3
3
  export type Locale = 'en-GB' | 'es-ES' | 'ru-RU'
4
4
  export type Schema = {
5
+ 'image.workers': ReadonlyField<string[]>;
5
6
  'system.locale': ReadonlyField<Locale>;
6
7
  }