tinacms 2.1.0 → 2.1.1
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/index.js +258 -92
- package/dist/index.mjs +262 -90
- package/dist/lib/utils.d.ts +2 -0
- package/dist/toolkit/fields/components/reference/components/button.d.ts +11 -0
- package/dist/toolkit/fields/components/reference/components/command.d.ts +67 -0
- package/dist/toolkit/fields/components/reference/components/popover.d.ts +6 -0
- package/dist/toolkit/fields/components/reference/reference-select.d.ts +4 -4
- package/package.json +11 -4
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const buttonVariants: (props?: {
|
|
4
|
+
variant?: "outline";
|
|
5
|
+
size?: "default" | "icon" | "sm" | "lg";
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) => string;
|
|
7
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
export { Button, buttonVariants };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
5
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
6
|
+
} & {
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
9
|
+
label?: string;
|
|
10
|
+
shouldFilter?: boolean;
|
|
11
|
+
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
12
|
+
defaultValue?: string;
|
|
13
|
+
value?: string;
|
|
14
|
+
onValueChange?: (value: string) => void;
|
|
15
|
+
loop?: boolean;
|
|
16
|
+
disablePointerSelection?: boolean;
|
|
17
|
+
vimBindings?: boolean;
|
|
18
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
|
|
20
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
21
|
+
} & {
|
|
22
|
+
asChild?: boolean;
|
|
23
|
+
}, "key" | keyof React.InputHTMLAttributes<HTMLInputElement> | "asChild">, "value" | "type" | "onChange"> & {
|
|
24
|
+
value?: string;
|
|
25
|
+
onValueChange?: (search: string) => void;
|
|
26
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
27
|
+
declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
30
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
31
|
+
} & {
|
|
32
|
+
asChild?: boolean;
|
|
33
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
34
|
+
label?: string;
|
|
35
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
36
|
+
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
37
|
+
children?: React.ReactNode;
|
|
38
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
39
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
40
|
+
} & {
|
|
41
|
+
asChild?: boolean;
|
|
42
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
44
|
+
children?: React.ReactNode;
|
|
45
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
46
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
47
|
+
} & {
|
|
48
|
+
asChild?: boolean;
|
|
49
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
|
|
50
|
+
heading?: React.ReactNode;
|
|
51
|
+
value?: string;
|
|
52
|
+
forceMount?: boolean;
|
|
53
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
54
|
+
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
55
|
+
children?: React.ReactNode;
|
|
56
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
57
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
58
|
+
} & {
|
|
59
|
+
asChild?: boolean;
|
|
60
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "disabled" | "onSelect"> & {
|
|
61
|
+
disabled?: boolean;
|
|
62
|
+
onSelect?: (value: string) => void;
|
|
63
|
+
value?: string;
|
|
64
|
+
keywords?: string[];
|
|
65
|
+
forceMount?: boolean;
|
|
66
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
67
|
+
export { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
3
|
+
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
4
|
+
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export { Popover, PopoverTrigger, PopoverContent };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Field } from '../../../forms';
|
|
2
2
|
import type { TinaCMS } from '../../../tina-cms';
|
|
3
|
+
import * as React from 'react';
|
|
3
4
|
import type { ReferenceFieldProps } from './index';
|
|
4
|
-
import { Field } from '../../../forms';
|
|
5
5
|
interface ReferenceSelectProps {
|
|
6
6
|
cms: TinaCMS;
|
|
7
7
|
input: any;
|
|
8
8
|
field: ReferenceFieldProps & Field;
|
|
9
9
|
}
|
|
10
|
-
declare const
|
|
11
|
-
export default
|
|
10
|
+
declare const ComboboxDemo: React.FC<ReferenceSelectProps>;
|
|
11
|
+
export default ComboboxDemo;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tinacms",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -56,9 +56,14 @@
|
|
|
56
56
|
"@headlessui/react": "^1.5.0",
|
|
57
57
|
"@heroicons/react": "^1.0.4",
|
|
58
58
|
"@monaco-editor/react": "4.4.5",
|
|
59
|
-
"@radix-ui/react-popover": "^1.0.
|
|
59
|
+
"@radix-ui/react-popover": "^1.0.7",
|
|
60
|
+
"@radix-ui/react-slot": "^1.1.0",
|
|
61
|
+
"@radix-ui/react-dialog": "^1.0.7",
|
|
60
62
|
"@react-hook/window-size": "^3.0.7",
|
|
61
63
|
"@udecode/plate-headless": "^21.4.0",
|
|
64
|
+
"class-variance-authority": "^0.7.0",
|
|
65
|
+
"clsx": "^2.1.1",
|
|
66
|
+
"cmdk": "^1.0.0",
|
|
62
67
|
"color-string": "^1.5.3",
|
|
63
68
|
"crypto-js": "^4.1.1",
|
|
64
69
|
"date-fns": "2.30.0",
|
|
@@ -71,6 +76,7 @@
|
|
|
71
76
|
"is-hotkey": "^0.2.0",
|
|
72
77
|
"lodash": "^4.17.20",
|
|
73
78
|
"lodash.get": "^4.4.2",
|
|
79
|
+
"lucide-react": "^0.416.0",
|
|
74
80
|
"moment": "2.29.4",
|
|
75
81
|
"monaco-editor": "0.31.0",
|
|
76
82
|
"prism-react-renderer": "^2.3.1",
|
|
@@ -87,12 +93,13 @@
|
|
|
87
93
|
"slate-history": "^0.93.0",
|
|
88
94
|
"slate-hyperscript": "^0.77.0",
|
|
89
95
|
"slate-react": "^0.97.1",
|
|
96
|
+
"tailwind-merge": "^2.4.0",
|
|
90
97
|
"webfontloader": "1.6.28",
|
|
91
98
|
"yup": "^0.32.0",
|
|
92
99
|
"zod": "^3.14.3",
|
|
93
100
|
"@tinacms/mdx": "1.3.29",
|
|
94
101
|
"@tinacms/schema-tools": "1.5.0",
|
|
95
|
-
"@tinacms/search": "1.0.
|
|
102
|
+
"@tinacms/search": "1.0.25"
|
|
96
103
|
},
|
|
97
104
|
"devDependencies": {
|
|
98
105
|
"@graphql-tools/utils": "^8.6.1",
|
|
@@ -125,7 +132,7 @@
|
|
|
125
132
|
"react-is": "^17.0.2",
|
|
126
133
|
"tsc-alias": "^1.8.7",
|
|
127
134
|
"tslib": "^2.3.0",
|
|
128
|
-
"typescript": "4.
|
|
135
|
+
"typescript": "4.7.4",
|
|
129
136
|
"vite": "^4.3.9",
|
|
130
137
|
"vitest": "^0.32.2",
|
|
131
138
|
"@tinacms/scripts": "1.1.6"
|