tinacms 0.0.0-bcdf830-20241023064032 → 0.0.0-bdc07c1-20250506013835

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 (43) hide show
  1. package/README.md +1 -1
  2. package/dist/admin/api.d.ts +1 -0
  3. package/dist/admin/components/GetCollection.d.ts +2 -2
  4. package/dist/admin/types.d.ts +3 -0
  5. package/dist/auth/TinaCloudProvider.d.ts +1 -1
  6. package/dist/cache/node-cache.d.ts +1 -0
  7. package/dist/client.d.ts +1 -4
  8. package/dist/client.js +91 -58
  9. package/dist/client.mjs +59 -36
  10. package/dist/hooks/create-page-plugin.d.ts +1 -1
  11. package/dist/index.d.ts +1 -61
  12. package/dist/index.js +4545 -3266
  13. package/dist/index.mjs +4566 -3287
  14. package/dist/internalClient/index.d.ts +3 -3
  15. package/dist/node-cache-5e8db9f0.mjs +63 -0
  16. package/dist/react.d.ts +1 -33
  17. package/dist/react.js +13 -1
  18. package/dist/react.mjs +13 -1
  19. package/dist/rich-text/index.d.ts +1 -142
  20. package/dist/rich-text/prism.d.ts +1 -10
  21. package/dist/toolkit/components/media/media-manager.d.ts +1 -1
  22. package/dist/toolkit/fields/components/reference/reference-select.d.ts +2 -2
  23. package/dist/toolkit/fields/plugins/mdx-field-plugin/index.d.ts +4 -1
  24. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/indent-list-toolbar-button.d.ts +17 -5
  25. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/mark-toolbar-button.d.ts +4 -18
  26. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/index.d.ts +1 -1
  27. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/components.d.ts +6 -11
  28. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/toolbar/toolbar-overrides.d.ts +5 -1
  29. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/toolbar/toolbar-provider.d.ts +2 -2
  30. package/dist/toolkit/fields/plugins/wrap-field-with-meta.d.ts +8 -0
  31. package/dist/toolkit/plugin-branch-switcher/branch-switcher-legacy.d.ts +1 -1
  32. package/dist/toolkit/plugin-branch-switcher/branch-switcher.d.ts +1 -1
  33. package/dist/toolkit/react-cloud-config/cloud-config-plugin.d.ts +3 -3
  34. package/dist/toolkit/react-sidebar/components/sidebar-body.d.ts +5 -4
  35. package/dist/toolkit/react-sidebar/components/sidebar-loading-placeholder.d.ts +2 -0
  36. package/dist/toolkit/react-sidebar/components/sidebar-no-forms-placeholder.d.ts +2 -0
  37. package/dist/toolkit/react-sidebar/sidebar.d.ts +2 -2
  38. package/dist/toolkit/tina-cms.d.ts +3 -3
  39. package/dist/toolkit/tina-state.d.ts +4 -0
  40. package/dist/unifiedClient/index.d.ts +8 -1
  41. package/package.json +40 -40
  42. package/dist/node-cache-eefc24a7.mjs +0 -53
  43. package/dist/toolkit/react-sidebar/components/no-forms-placeholder.d.ts +0 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tinacms",
3
- "version": "0.0.0-bcdf830-20241023064032",
3
+ "version": "0.0.0-bdc07c1-20250506013835",
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.15",
64
+ "@floating-ui/dom": "^1.6.13",
65
65
  "@floating-ui/react-dom": "^2.1.2",
66
- "@graphql-inspector/core": "^6.1.0",
66
+ "@graphql-inspector/core": "^6.2.1",
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",
74
- "@radix-ui/react-separator": "^1.1.0",
75
- "@radix-ui/react-slot": "^1.1.0",
76
- "@radix-ui/react-toolbar": "^1.1.0",
77
- "@radix-ui/react-tooltip": "^1.1.2",
70
+ "@radix-ui/react-checkbox": "^1.1.4",
71
+ "@radix-ui/react-dialog": "^1.1.6",
72
+ "@radix-ui/react-dropdown-menu": "^2.1.6",
73
+ "@radix-ui/react-popover": "^1.1.6",
74
+ "@radix-ui/react-separator": "^1.1.2",
75
+ "@radix-ui/react-slot": "^1.1.2",
76
+ "@radix-ui/react-toolbar": "^1.1.2",
77
+ "@radix-ui/react-tooltip": "^1.1.8",
78
78
  "@react-hook/window-size": "^3.1.1",
79
79
  "@udecode/cn": "^33.0.0",
80
80
  "@udecode/plate": "^36.5.9",
@@ -92,13 +92,13 @@
92
92
  "@udecode/plate-resizable": "36.0.0",
93
93
  "@udecode/plate-slash-command": "^36.0.0",
94
94
  "@udecode/plate-table": "36.5.8",
95
- "class-variance-authority": "^0.7.0",
95
+ "async-lock": "^1.4.1",
96
+ "class-variance-authority": "^0.7.1",
96
97
  "clsx": "^2.1.1",
97
- "cmdk": "^1.0.0",
98
+ "cmdk": "^1.0.4",
98
99
  "color-string": "^1.9.1",
99
100
  "crypto-js": "^4.2.0",
100
101
  "date-fns": "2.30.0",
101
- "fetch-ponyfill": "^7.1.0",
102
102
  "final-form": "4.20.10",
103
103
  "final-form-arrays": "^3.1.0",
104
104
  "final-form-set-field-data": "^1.0.2",
@@ -111,47 +111,47 @@
111
111
  "mermaid": "9.3.0",
112
112
  "moment": "2.29.4",
113
113
  "monaco-editor": "0.31.0",
114
- "prism-react-renderer": "^2.4.0",
114
+ "prism-react-renderer": "^2.4.1",
115
115
  "prop-types": "15.7.2",
116
116
  "react-beautiful-dnd": "^13.1.1",
117
117
  "react-color": "^2.19.3",
118
- "react-datetime": "^3.2.0",
118
+ "react-datetime": "^3.3.1",
119
119
  "react-dropzone": "14.2.3",
120
120
  "react-final-form": "^6.5.9",
121
- "react-icons": "^5.3.0",
122
- "react-onclickoutside": "^6.13.1",
121
+ "react-icons": "^5.4.0",
123
122
  "react-router-dom": "6.3.0",
123
+ "react-use": "^17.6.0",
124
124
  "slate": "^0.103.0",
125
125
  "slate-history": "^0.100.0",
126
126
  "slate-hyperscript": "^0.100.0",
127
127
  "slate-react": "^0.107.1",
128
- "tailwind-merge": "^2.5.2",
128
+ "tailwind-merge": "^2.6.0",
129
129
  "webfontloader": "1.6.28",
130
- "yup": "^1.4.0",
131
- "zod": "^3.23.8",
132
- "@tinacms/mdx": "1.5.0",
133
- "@tinacms/search": "1.0.33",
134
- "@tinacms/schema-tools": "1.6.6"
130
+ "yup": "^1.6.1",
131
+ "zod": "^3.24.2",
132
+ "@tinacms/mdx": "0.0.0-bdc07c1-20250506013835",
133
+ "@tinacms/search": "0.0.0-bdc07c1-20250506013835",
134
+ "@tinacms/schema-tools": "0.0.0-bdc07c1-20250506013835"
135
135
  },
136
136
  "devDependencies": {
137
- "@graphql-tools/utils": "^10.5.4",
137
+ "@graphql-tools/utils": "^10.8.1",
138
138
  "@testing-library/dom": "^10.4.0",
139
- "@testing-library/jest-dom": "^6.5.0",
140
- "@testing-library/react": "^16.0.1",
141
- "@testing-library/user-event": "^14.5.2",
139
+ "@testing-library/jest-dom": "^6.6.3",
140
+ "@testing-library/react": "^16.2.0",
141
+ "@testing-library/user-event": "^14.6.1",
142
142
  "@types/atob": "^2.1.4",
143
143
  "@types/codemirror": "^5.60.15",
144
144
  "@types/color-string": "^1.5.5",
145
145
  "@types/lodash.debounce": "^4.0.9",
146
146
  "@types/lodash.get": "^4.4.9",
147
- "@types/node": "^22.7.4",
148
- "@types/prop-types": "^15.7.13",
149
- "@types/react": "^18.3.10",
147
+ "@types/node": "^22.13.1",
148
+ "@types/prop-types": "^15.7.14",
149
+ "@types/react": "^18.3.18",
150
150
  "@types/react-beautiful-dnd": "^13.1.8",
151
- "@types/react-color": "^3.0.12",
152
- "@types/react-dom": "^18.3.0",
151
+ "@types/react-color": "^3.0.13",
152
+ "@types/react-dom": "^18.3.5",
153
153
  "@types/yup": "^0.32.0",
154
- "happy-dom": "^14.12.3",
154
+ "happy-dom": "15.10.2",
155
155
  "identity-obj-proxy": "^3.0.0",
156
156
  "isomorphic-fetch": "^3.0.0",
157
157
  "jest-file-snapshot": "^0.7.0",
@@ -160,11 +160,11 @@
160
160
  "react-dom": "^18.3.1",
161
161
  "react-is": "^18.3.1",
162
162
  "tsc-alias": "^1.8.10",
163
- "tslib": "^2.7.0",
164
- "typescript": "^5.6.2",
165
- "vite": "^5.4.8",
166
- "vitest": "^2.1.1",
167
- "@tinacms/scripts": "1.3.0"
163
+ "tslib": "^2.8.1",
164
+ "typescript": "^5.7.3",
165
+ "vite": "^5.4.14",
166
+ "vitest": "^2.1.9",
167
+ "@tinacms/scripts": "1.3.4"
168
168
  },
169
169
  "peerDependencies": {
170
170
  "react": ">=16.14.0",
@@ -1,53 +0,0 @@
1
- const makeCacheDir = async (dir, fs) => {
2
- const path = require("node:path");
3
- const os = require("node:os");
4
- if (typeof dir !== "string" || !dir.trim()) {
5
- throw new Error("Invalid directory path");
6
- }
7
- console.log("Path sep", path.sep);
8
- const pathParts = dir.split(path.sep);
9
- const cacheHash = pathParts[pathParts.length - 1];
10
- let cacheDir = dir;
11
- if (!fs.existsSync(dir)) {
12
- cacheDir = path.join(os.tmpdir(), cacheHash);
13
- }
14
- try {
15
- fs.mkdirSync(cacheDir, { recursive: true });
16
- } catch (error) {
17
- throw new Error(`Failed to create cache directory: ${error.message}`);
18
- }
19
- return cacheDir;
20
- };
21
- const NodeCache = async (dir) => {
22
- const fs = require("node:fs");
23
- console.log("fs", JSON.stringify(fs));
24
- const { createHash } = require("node:crypto");
25
- const cacheDir = await makeCacheDir(dir, fs);
26
- return {
27
- makeKey: (key) => {
28
- const input = key && key instanceof Object ? JSON.stringify(key) : key || "";
29
- return createHash("sha256").update(input).digest("hex");
30
- },
31
- get: async (key) => {
32
- try {
33
- const data = await fs.promises.readFile(`${cacheDir}/${key}`, "utf-8");
34
- return JSON.parse(data);
35
- } catch (e) {
36
- if (e.code === "ENOENT") {
37
- return void 0;
38
- }
39
- throw e;
40
- }
41
- },
42
- set: async (key, value) => {
43
- await fs.promises.writeFile(
44
- `${cacheDir}/${key}`,
45
- JSON.stringify(value),
46
- "utf-8"
47
- );
48
- }
49
- };
50
- };
51
- export {
52
- NodeCache
53
- };
@@ -1,8 +0,0 @@
1
- /**
2
-
3
-
4
-
5
- */
6
- import * as React from 'react';
7
- export declare const PendingFormsPlaceholder: () => React.JSX.Element;
8
- export declare const NoFormsPlaceholder: () => React.JSX.Element;