@retailcrm/embed-ui 0.5.1-alpha.3 → 0.5.1-alpha.5

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,18 @@
1
1
  # Changelog
2
2
 
3
3
 
4
+ ## [0.5.1-alpha.5](https://github.com/retailcrm/embed-ui/compare/v0.5.1-alpha.4...v0.5.1-alpha.5) (2024-12-19)
5
+
6
+ ### Features
7
+
8
+ * **v1-contexts:** Adjusted validator to changed custom fields' kinds ([3f730be](https://github.com/retailcrm/embed-ui/commit/3f730bedae5fd2489f7ffcf7bd3cd43e92d0f9f6))
9
+ * **v1-contexts:** Removed before & last filters from custom dictionary query ([9e53e28](https://github.com/retailcrm/embed-ui/commit/9e53e28de6da07dfe3e02c92ec9a717e412b6f1f))
10
+ * **v1-types:** Renamed custom field kinds, additional custom fields ([0100148](https://github.com/retailcrm/embed-ui/commit/0100148b435b0e188dffd1fa8b4c7563e6f9af20))
11
+ ## [0.5.1-alpha.4](https://github.com/retailcrm/embed-ui/compare/v0.5.1-alpha.3...v0.5.1-alpha.4) (2024-12-17)
12
+
13
+ ### Bug Fixes
14
+
15
+ * Missing useCustomField declaration in index.d.ts ([4babd03](https://github.com/retailcrm/embed-ui/commit/4babd0373e2047288e12dd712cc636a530e25a41))
4
16
  ## [0.5.1-alpha.3](https://github.com/retailcrm/embed-ui/compare/v0.5.1-alpha.2...v0.5.1-alpha.3) (2024-12-16)
5
17
 
6
18
  ### Features
package/index.d.ts CHANGED
@@ -49,6 +49,11 @@ export declare const useField: <S extends ContextSchema, F extends keyof S>(
49
49
  ? ComputedRef<TypeOf<S[F]>>
50
50
  : WritableComputedRef<TypeOf<S[F]>>
51
51
 
52
+ export declare const useCustomField: <T extends string>(
53
+ store: CustomContextStore<T>,
54
+ code: string
55
+ ) => WritableComputedRef<CustomFieldType>
56
+
52
57
  export declare const useHost = () => RemoteCallable<Callable>
53
58
 
54
59
  declare module 'pinia' {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@retailcrm/embed-ui",
3
3
  "type": "module",
4
- "version": "0.5.1-alpha.3",
4
+ "version": "0.5.1-alpha.5",
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>",
@@ -33,8 +33,8 @@
33
33
  "dependencies": {
34
34
  "@omnicajs/vue-remote": "^0.2.3",
35
35
  "@remote-ui/rpc": "^1.4.5",
36
- "@retailcrm/embed-ui-v1-contexts": "^0.5.1-alpha.3",
37
- "@retailcrm/embed-ui-v1-types": "^0.5.1-alpha.3"
36
+ "@retailcrm/embed-ui-v1-contexts": "^0.5.1-alpha.5",
37
+ "@retailcrm/embed-ui-v1-types": "^0.5.1-alpha.5"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "pinia": "^2.2",
@@ -43,7 +43,7 @@
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.1-alpha.3",
46
+ "@retailcrm/embed-ui-v1-testing": "^0.5.1-alpha.5",
47
47
  "@types/git-semver-tags": "^7.0.0",
48
48
  "@types/node": "^22.7.9",
49
49
  "@types/semver": "^7.5.8",