@retailcrm/embed-ui-v1-contexts 0.9.23-alpha.3 → 0.9.23
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
|
@@ -1570,9 +1570,9 @@
|
|
|
1570
1570
|
"name": "image.workers",
|
|
1571
1571
|
"type": "Array<string>",
|
|
1572
1572
|
"description": {
|
|
1573
|
-
"en-GB": "
|
|
1574
|
-
"es-ES": "
|
|
1575
|
-
"ru-RU": "Список
|
|
1573
|
+
"en-GB": "List of image preview worker hosts used to build resized or cropped image URLs.",
|
|
1574
|
+
"es-ES": "Lista de hosts de workers de previsualización de imágenes usados para crear URLs de imágenes redimensionadas o recortadas.",
|
|
1575
|
+
"ru-RU": "Список host-ов image preview workers для построения URL уменьшенных или обрезанных изображений."
|
|
1576
1576
|
},
|
|
1577
1577
|
"readonly": true
|
|
1578
1578
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"context": "customer/card:phone"
|
|
2
|
-
"summary": "
|
|
2
|
+
"summary": "Readonly context for a single customer phone row target with phone value and row index."
|
|
3
3
|
"language": "en-GB"
|
|
4
4
|
"audience": "ai"
|
|
5
5
|
"public_import":
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"type": "string"
|
|
12
12
|
"readonly": true
|
|
13
13
|
"description": "Customer phone"
|
|
14
|
+
"source_of_truth": "Phone number value for the phone row where the widget is mounted."
|
|
14
15
|
"mutation":
|
|
15
16
|
"mode": "readonly"
|
|
16
17
|
"notes": "Readonly context field; use it for reading and UI calculations."
|
|
@@ -21,6 +22,7 @@
|
|
|
21
22
|
"type": "number"
|
|
22
23
|
"readonly": true
|
|
23
24
|
"description": "Serial number of the phone in the list"
|
|
25
|
+
"source_of_truth": "Zero-based position of the phone row inside the customer phone list."
|
|
24
26
|
"mutation":
|
|
25
27
|
"mode": "readonly"
|
|
26
28
|
"notes": "Readonly context field; use it for reading and UI calculations."
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"context": "customer/card"
|
|
2
|
-
"summary": "
|
|
2
|
+
"summary": "Readonly customer card context with customer identifiers, primary email, and phone list."
|
|
3
3
|
"language": "en-GB"
|
|
4
4
|
"audience": "ai"
|
|
5
5
|
"public_import":
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"type": "number|null"
|
|
12
12
|
"readonly": true
|
|
13
13
|
"description": "Customer ID"
|
|
14
|
+
"source_of_truth": "CRM customer identifier for the opened customer card."
|
|
14
15
|
"mutation":
|
|
15
16
|
"mode": "readonly"
|
|
16
17
|
"notes": "Readonly context field; use it for reading and UI calculations."
|
|
@@ -21,6 +22,7 @@
|
|
|
21
22
|
"type": "string"
|
|
22
23
|
"readonly": true
|
|
23
24
|
"description": "Customer external ID"
|
|
25
|
+
"source_of_truth": "External customer identifier from the source system."
|
|
24
26
|
"mutation":
|
|
25
27
|
"mode": "readonly"
|
|
26
28
|
"notes": "Readonly context field; use it for reading and UI calculations."
|
|
@@ -35,7 +37,8 @@
|
|
|
35
37
|
"mode": "readonly"
|
|
36
38
|
"notes": "Readonly context field; use it for reading and UI calculations."
|
|
37
39
|
"related_actions": []
|
|
38
|
-
"ai_notes":
|
|
40
|
+
"ai_notes":
|
|
41
|
+
- "Use as the current customer email shown on the customer card; it is not a writable order-form field."
|
|
39
42
|
-
|
|
40
43
|
"name": "phones"
|
|
41
44
|
"type": "Array<string>"
|
|
@@ -45,7 +48,8 @@
|
|
|
45
48
|
"mode": "readonly"
|
|
46
49
|
"notes": "Readonly context field; use it for reading and UI calculations."
|
|
47
50
|
"related_actions": []
|
|
48
|
-
"ai_notes":
|
|
51
|
+
"ai_notes":
|
|
52
|
+
- "Use for customer-card phone display and selection logic. For a widget attached to one phone row, prefer the customer/card:phone context."
|
|
49
53
|
"field_groups": []
|
|
50
54
|
"types": []
|
|
51
55
|
"usage":
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"context": "settings"
|
|
2
|
-
"summary": "Readonly CRM settings context with locale,
|
|
2
|
+
"summary": "Readonly CRM settings context with UI locale, Symfony router data, and image preview worker hosts."
|
|
3
3
|
"language": "en-GB"
|
|
4
4
|
"audience": "ai"
|
|
5
5
|
"public_import":
|
|
@@ -10,18 +10,22 @@
|
|
|
10
10
|
"name": "image.workers"
|
|
11
11
|
"type": "Array<string>"
|
|
12
12
|
"readonly": true
|
|
13
|
-
"description": "
|
|
13
|
+
"description": "List of image preview worker hosts used to build resized or cropped image URLs."
|
|
14
|
+
"source_of_truth": "List of image preview worker hosts used to build resized or cropped image URLs."
|
|
14
15
|
"mutation":
|
|
15
16
|
"mode": "readonly"
|
|
16
17
|
"notes": "Readonly context field; use it for reading and UI calculations."
|
|
17
18
|
"related_actions": []
|
|
18
19
|
"ai_notes":
|
|
19
|
-
- "
|
|
20
|
+
- "Pass these workers to usePreview or @retailcrm/image-preview preview()."
|
|
21
|
+
- "If the list is empty, preview helpers return the original image URL."
|
|
22
|
+
- "Workers are used for image preview resizing and cropping, not for uploading or storing images."
|
|
20
23
|
-
|
|
21
24
|
"name": "system.locale"
|
|
22
25
|
"type": "\"en-GB\"|\"es-ES\"|\"ru-RU\""
|
|
23
26
|
"readonly": true
|
|
24
27
|
"description": "Current system's locale"
|
|
28
|
+
"source_of_truth": "Current CRM UI locale for the opened account session."
|
|
25
29
|
"mutation":
|
|
26
30
|
"mode": "readonly"
|
|
27
31
|
"notes": "Readonly context field; use it for reading and UI calculations."
|
|
@@ -33,12 +37,14 @@
|
|
|
33
37
|
"type": "RoutingData"
|
|
34
38
|
"readonly": true
|
|
35
39
|
"description": "Data for Symfony's JS router"
|
|
40
|
+
"source_of_truth": "Symfony router dump for CRM routes available to the extension."
|
|
36
41
|
"mutation":
|
|
37
42
|
"mode": "readonly"
|
|
38
43
|
"notes": "Readonly context field; use it for reading and UI calculations."
|
|
39
44
|
"related_actions": []
|
|
40
45
|
"ai_notes":
|
|
41
46
|
- "Use this Symfony router data to build CRM route URLs."
|
|
47
|
+
- "Pass the routing data to @omnicajs/symfony-router instead of concatenating CRM URLs manually."
|
|
42
48
|
"field_groups": []
|
|
43
49
|
"types": []
|
|
44
50
|
"usage":
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
},
|
|
7
7
|
"description": "Reactive contexts for RetailCRM JS API",
|
|
8
8
|
"type": "module",
|
|
9
|
-
"version": "0.9.23
|
|
9
|
+
"version": "0.9.23",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"author": "RetailDriverLLC <integration@retailcrm.ru>",
|
|
12
12
|
"repository": {
|
|
@@ -123,11 +123,11 @@
|
|
|
123
123
|
"dependencies": {
|
|
124
124
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
125
125
|
"@omnicajs/symfony-router": "^1.0.0",
|
|
126
|
-
"@retailcrm/embed-ui-v1-types": "^0.9.23
|
|
126
|
+
"@retailcrm/embed-ui-v1-types": "^0.9.23"
|
|
127
127
|
},
|
|
128
128
|
"devDependencies": {
|
|
129
129
|
"@remote-ui/rpc": "^1.4.7",
|
|
130
|
-
"@retailcrm/embed-ui-v1-testing": "^0.9.23
|
|
130
|
+
"@retailcrm/embed-ui-v1-testing": "^0.9.23",
|
|
131
131
|
"tsx": "^4.21.0",
|
|
132
132
|
"typescript": "^5.9.3",
|
|
133
133
|
"vite": "^7.3.2",
|