@comet/cms-admin 8.3.0-canary-20250929082508 → 8.3.0-canary-20250929090840
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.
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { type SelectFieldOption, type SelectFieldProps } from "@comet/admin";
|
|
2
2
|
import { type BlockMethods } from "../types";
|
|
3
|
-
|
|
3
|
+
type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
4
|
+
interface Options<T extends string | number | string[] | number[]> extends Partial<SelectFieldProps<Unpacked<T>>> {
|
|
4
5
|
defaultValue: T;
|
|
5
|
-
options: Array<SelectFieldOption<T
|
|
6
|
+
options: Array<SelectFieldOption<Unpacked<T>>>;
|
|
6
7
|
/**
|
|
7
8
|
* @deprecated Set the props directly instead of nesting inside fieldProps
|
|
8
9
|
*/
|
|
9
|
-
fieldProps?: Partial<SelectFieldProps<T
|
|
10
|
+
fieldProps?: Partial<SelectFieldProps<Unpacked<T>>>;
|
|
10
11
|
extractTextContents?: BlockMethods["extractTextContents"];
|
|
11
12
|
}
|
|
12
|
-
export declare function createCompositeBlockSelectField<T extends string | number>({ defaultValue, options, fullWidth, fieldProps: legacyFieldProps, extractTextContents, ...fieldProps }: Options<T>): [import("../types").AnonymousBlockInterface<T, T, T, T>, {
|
|
13
|
+
export declare function createCompositeBlockSelectField<T extends string | number | string[] | number[]>({ defaultValue, options, fullWidth, fieldProps: legacyFieldProps, extractTextContents, ...fieldProps }: Options<T>): [import("../types").AnonymousBlockInterface<T, T, T, T>, {
|
|
13
14
|
flatten: false;
|
|
14
15
|
}];
|
|
15
16
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createCompositeBlockSelectField.d.ts","sourceRoot":"","sources":["../../../src/blocks/helpers/createCompositeBlockSelectField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,iBAAiB,EAAE,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comet/cms-admin",
|
|
3
|
-
"version": "8.3.0-canary-
|
|
3
|
+
"version": "8.3.0-canary-20250929090840",
|
|
4
4
|
"description": "Comet CMS Admin package",
|
|
5
5
|
"repository": {
|
|
6
6
|
"directory": "packages/admin/cms-admin",
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"slugify": "^1.6.6",
|
|
42
42
|
"use-debounce": "^10.0.5",
|
|
43
43
|
"uuid": "^11.1.0",
|
|
44
|
-
"@comet/admin": "8.3.0-canary-
|
|
45
|
-
"@comet/admin-date-time": "8.3.0-canary-
|
|
46
|
-
"@comet/admin-icons": "8.3.0-canary-
|
|
47
|
-
"@comet/admin-rte": "8.3.0-canary-
|
|
44
|
+
"@comet/admin": "8.3.0-canary-20250929090840",
|
|
45
|
+
"@comet/admin-date-time": "8.3.0-canary-20250929090840",
|
|
46
|
+
"@comet/admin-icons": "8.3.0-canary-20250929090840",
|
|
47
|
+
"@comet/admin-rte": "8.3.0-canary-20250929090840"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@apollo/client": "^3.13.8",
|
|
@@ -98,9 +98,9 @@
|
|
|
98
98
|
"react-router-dom": "^5.3.4",
|
|
99
99
|
"ts-jest": "^29.4.0",
|
|
100
100
|
"typescript": "5.8.3",
|
|
101
|
-
"@comet/admin-babel-preset": "8.3.0-canary-
|
|
102
|
-
"@comet/cli": "8.3.0-canary-
|
|
103
|
-
"@comet/eslint-config": "8.3.0-canary-
|
|
101
|
+
"@comet/admin-babel-preset": "8.3.0-canary-20250929090840",
|
|
102
|
+
"@comet/cli": "8.3.0-canary-20250929090840",
|
|
103
|
+
"@comet/eslint-config": "8.3.0-canary-20250929090840"
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
106
|
"@apollo/client": "^3.7.0",
|