tinacms 0.0.0-a690e47-20241003005744 → 0.0.0-a6daef4-20250115020754

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.
Files changed (32) hide show
  1. package/dist/admin/types.d.ts +3 -0
  2. package/dist/cache/node-cache.d.ts +1 -0
  3. package/dist/client.js +23 -24
  4. package/dist/client.mjs +4 -8
  5. package/dist/index.d.ts +1 -1
  6. package/dist/index.js +1593 -1030
  7. package/dist/index.mjs +1583 -1016
  8. package/dist/{node-cache-7fa2452c.mjs → node-cache-4c336858.mjs} +18 -11
  9. package/dist/rich-text/index.d.ts +3 -0
  10. package/dist/rich-text/index.js +45 -12
  11. package/dist/rich-text/index.mjs +45 -12
  12. package/dist/toolkit/fields/plugins/mdx-field-plugin/index.d.ts +4 -1
  13. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/fixed-toolbar-buttons.d.ts +0 -4
  14. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/icons.d.ts +2 -0
  15. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/mermaid-element.d.ts +11 -0
  16. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/mermaid-toolbar-button.d.ts +20 -0
  17. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/resizable.d.ts +39 -0
  18. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table-cell-element.d.ts +27 -0
  19. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table-dropdown-menu.d.ts +3 -0
  20. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table-element.d.ts +14 -0
  21. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table-row-element.d.ts +13 -0
  22. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/text-area.d.ts +5 -0
  23. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/index.d.ts +1 -1
  24. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/common.d.ts +1 -0
  25. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/custom/mermaid-plugin.d.ts +2 -0
  26. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/code-block/index.d.ts +4 -2
  27. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/components.d.ts +58 -0
  28. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/toolbar/toolbar-overrides.d.ts +11 -3
  29. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/toolbar/toolbar-provider.d.ts +3 -3
  30. package/dist/toolkit/fields/plugins/wrap-field-with-meta.d.ts +8 -0
  31. package/package.json +29 -28
  32. package/dist/__vite-browser-external-d06ac358.mjs +0 -4
@@ -3,6 +3,14 @@ import { FieldProps } from './field-props';
3
3
  import { Form } from '../../forms';
4
4
  export type InputFieldType<ExtraFieldProps, InputProps> = FieldProps<InputProps> & ExtraFieldProps;
5
5
  export declare function wrapFieldsWithMeta<ExtraFieldProps = {}, InputProps = {}>(Field: React.FunctionComponent<InputFieldType<ExtraFieldProps, InputProps>> | React.ComponentClass<InputFieldType<ExtraFieldProps, InputProps>>): (props: InputFieldType<ExtraFieldProps, InputProps>) => React.JSX.Element;
6
+ /**
7
+ * Same as wrapFieldsWithMeta but excludes the label, and description useful for fields that render their label and description
8
+ */
9
+ export declare function wrapFieldWithNoHeader<ExtraFieldProps = {}, InputProps = {}>(Field: React.FunctionComponent<InputFieldType<ExtraFieldProps, InputProps>> | React.ComponentClass<InputFieldType<ExtraFieldProps, InputProps>>): (props: InputFieldType<ExtraFieldProps, InputProps>) => React.JSX.Element;
10
+ /**
11
+ * Same as above but excludes the label, useful for fields that have their own label
12
+ * @deprecated This function is deprecated and will be removed in future versions.
13
+ */
6
14
  export declare function wrapFieldWithError<ExtraFieldProps = {}, InputProps = {}>(Field: React.FunctionComponent<InputFieldType<ExtraFieldProps, InputProps>> | React.ComponentClass<InputFieldType<ExtraFieldProps, InputProps>>): (props: InputFieldType<ExtraFieldProps, InputProps>) => React.JSX.Element;
7
15
  interface FieldMetaProps extends React.HTMLAttributes<HTMLElement> {
8
16
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tinacms",
3
- "version": "0.0.0-a690e47-20241003005744",
3
+ "version": "0.0.0-a6daef4-20250115020754",
4
4
  "main": "dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "exports": {
@@ -60,21 +60,21 @@
60
60
  "typings": "dist/index.d.ts",
61
61
  "license": "Apache-2.0",
62
62
  "dependencies": {
63
- "@ariakit/react": "^0.4.11",
64
- "@floating-ui/dom": "^1.6.11",
63
+ "@ariakit/react": "^0.4.13",
64
+ "@floating-ui/dom": "^1.6.12",
65
65
  "@floating-ui/react-dom": "^2.1.2",
66
- "@graphql-inspector/core": "^6.1.0",
66
+ "@graphql-inspector/core": "^6.2.0",
67
67
  "@headlessui/react": "2.1.8",
68
68
  "@heroicons/react": "^1.0.6",
69
69
  "@monaco-editor/react": "4.4.5",
70
- "@radix-ui/react-checkbox": "^1.1.1",
71
- "@radix-ui/react-dialog": "^1.1.1",
72
- "@radix-ui/react-dropdown-menu": "^2.1.1",
73
- "@radix-ui/react-popover": "^1.1.1",
70
+ "@radix-ui/react-checkbox": "^1.1.2",
71
+ "@radix-ui/react-dialog": "^1.1.2",
72
+ "@radix-ui/react-dropdown-menu": "^2.1.2",
73
+ "@radix-ui/react-popover": "^1.1.2",
74
74
  "@radix-ui/react-separator": "^1.1.0",
75
75
  "@radix-ui/react-slot": "^1.1.0",
76
76
  "@radix-ui/react-toolbar": "^1.1.0",
77
- "@radix-ui/react-tooltip": "^1.1.2",
77
+ "@radix-ui/react-tooltip": "^1.1.4",
78
78
  "@react-hook/window-size": "^3.1.1",
79
79
  "@udecode/cn": "^33.0.0",
80
80
  "@udecode/plate": "^36.5.9",
@@ -85,19 +85,19 @@
85
85
  "@udecode/plate-common": "^36.5.9",
86
86
  "@udecode/plate-floating": "^36.3.8",
87
87
  "@udecode/plate-heading": "^36.0.12",
88
- "@udecode/plate-indent": "^36.0.0",
89
88
  "@udecode/plate-indent-list": "^36.5.2",
90
89
  "@udecode/plate-link": "^36.5.9",
91
90
  "@udecode/plate-list": "^36.5.2",
92
91
  "@udecode/plate-paragraph": "^36.0.0",
92
+ "@udecode/plate-resizable": "36.0.0",
93
93
  "@udecode/plate-slash-command": "^36.0.0",
94
+ "@udecode/plate-table": "36.5.8",
94
95
  "class-variance-authority": "^0.7.0",
95
96
  "clsx": "^2.1.1",
96
- "cmdk": "^1.0.0",
97
+ "cmdk": "^1.0.4",
97
98
  "color-string": "^1.9.1",
98
99
  "crypto-js": "^4.2.0",
99
100
  "date-fns": "2.30.0",
100
- "fetch-ponyfill": "^7.1.0",
101
101
  "final-form": "4.20.10",
102
102
  "final-form-arrays": "^3.1.0",
103
103
  "final-form-set-field-data": "^1.0.2",
@@ -107,6 +107,7 @@
107
107
  "lodash.get": "^4.4.2",
108
108
  "lodash.set": "^4.3.2",
109
109
  "lucide-react": "^0.424.0",
110
+ "mermaid": "9.3.0",
110
111
  "moment": "2.29.4",
111
112
  "monaco-editor": "0.31.0",
112
113
  "prism-react-renderer": "^2.4.0",
@@ -117,24 +118,24 @@
117
118
  "react-dropzone": "14.2.3",
118
119
  "react-final-form": "^6.5.9",
119
120
  "react-icons": "^5.3.0",
120
- "react-onclickoutside": "^6.13.1",
121
121
  "react-router-dom": "6.3.0",
122
+ "react-use": "^17.6.0",
122
123
  "slate": "^0.103.0",
123
124
  "slate-history": "^0.100.0",
124
125
  "slate-hyperscript": "^0.100.0",
125
126
  "slate-react": "^0.107.1",
126
- "tailwind-merge": "^2.5.2",
127
+ "tailwind-merge": "^2.5.4",
127
128
  "webfontloader": "1.6.28",
128
129
  "yup": "^1.4.0",
129
130
  "zod": "^3.23.8",
130
- "@tinacms/schema-tools": "1.6.4",
131
- "@tinacms/search": "1.0.31",
132
- "@tinacms/mdx": "1.4.4"
131
+ "@tinacms/mdx": "1.5.4",
132
+ "@tinacms/schema-tools": "1.7.0",
133
+ "@tinacms/search": "0.0.0-a6daef4-20250115020754"
133
134
  },
134
135
  "devDependencies": {
135
- "@graphql-tools/utils": "^10.5.4",
136
+ "@graphql-tools/utils": "^10.5.6",
136
137
  "@testing-library/dom": "^10.4.0",
137
- "@testing-library/jest-dom": "^6.5.0",
138
+ "@testing-library/jest-dom": "^6.6.3",
138
139
  "@testing-library/react": "^16.0.1",
139
140
  "@testing-library/user-event": "^14.5.2",
140
141
  "@types/atob": "^2.1.4",
@@ -142,14 +143,14 @@
142
143
  "@types/color-string": "^1.5.5",
143
144
  "@types/lodash.debounce": "^4.0.9",
144
145
  "@types/lodash.get": "^4.4.9",
145
- "@types/node": "^22.7.4",
146
+ "@types/node": "^22.9.0",
146
147
  "@types/prop-types": "^15.7.13",
147
- "@types/react": "^18.3.10",
148
+ "@types/react": "^18.3.12",
148
149
  "@types/react-beautiful-dnd": "^13.1.8",
149
150
  "@types/react-color": "^3.0.12",
150
- "@types/react-dom": "^18.3.0",
151
+ "@types/react-dom": "^18.3.1",
151
152
  "@types/yup": "^0.32.0",
152
- "happy-dom": "^14.12.3",
153
+ "happy-dom": "15.10.2",
153
154
  "identity-obj-proxy": "^3.0.0",
154
155
  "isomorphic-fetch": "^3.0.0",
155
156
  "jest-file-snapshot": "^0.7.0",
@@ -158,11 +159,11 @@
158
159
  "react-dom": "^18.3.1",
159
160
  "react-is": "^18.3.1",
160
161
  "tsc-alias": "^1.8.10",
161
- "tslib": "^2.7.0",
162
- "typescript": "^5.6.2",
163
- "vite": "^5.4.8",
164
- "vitest": "^2.1.1",
165
- "@tinacms/scripts": "1.2.3"
162
+ "tslib": "^2.8.1",
163
+ "typescript": "^5.6.3",
164
+ "vite": "^5.4.11",
165
+ "vitest": "^2.1.5",
166
+ "@tinacms/scripts": "1.3.1"
166
167
  },
167
168
  "peerDependencies": {
168
169
  "react": ">=16.14.0",
@@ -1,4 +0,0 @@
1
- const __viteBrowserExternal = {};
2
- export {
3
- __viteBrowserExternal as default
4
- };