tinacms 2.2.6 → 2.2.8
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/client.js
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
28
28
|
try {
|
|
29
|
-
if (this.cacheDir && typeof require !== "undefined") {
|
|
29
|
+
if (this.cacheDir && window === void 0 && typeof require !== "undefined") {
|
|
30
30
|
const { NodeCache: NodeCache2 } = await Promise.resolve().then(() => nodeCache);
|
|
31
31
|
this.cache = await NodeCache2(this.cacheDir);
|
|
32
32
|
}
|
|
@@ -106,8 +106,8 @@
|
|
|
106
106
|
return client;
|
|
107
107
|
}
|
|
108
108
|
const makeCacheDir = async (dir, fs) => {
|
|
109
|
-
const path = await
|
|
110
|
-
const os = await
|
|
109
|
+
const path = await Promise.resolve().then(() => __viteBrowserExternal$1);
|
|
110
|
+
const os = await Promise.resolve().then(() => __viteBrowserExternal$1);
|
|
111
111
|
const parts = dir.split(path.sep).filter(Boolean);
|
|
112
112
|
let cacheDir = dir;
|
|
113
113
|
if (!fs.existsSync(path.join(path.sep, parts[0]))) {
|
|
@@ -117,8 +117,8 @@
|
|
|
117
117
|
return cacheDir;
|
|
118
118
|
};
|
|
119
119
|
const NodeCache = async (dir) => {
|
|
120
|
-
const fs = await
|
|
121
|
-
const { createHash } = await
|
|
120
|
+
const fs = await Promise.resolve().then(() => __viteBrowserExternal$1);
|
|
121
|
+
const { createHash } = await Promise.resolve().then(() => __viteBrowserExternal$1);
|
|
122
122
|
const cacheDir = await makeCacheDir(dir, fs);
|
|
123
123
|
return {
|
|
124
124
|
makeKey: (key) => {
|
|
@@ -149,6 +149,11 @@
|
|
|
149
149
|
__proto__: null,
|
|
150
150
|
NodeCache
|
|
151
151
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
152
|
+
const __viteBrowserExternal = {};
|
|
153
|
+
const __viteBrowserExternal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
154
|
+
__proto__: null,
|
|
155
|
+
default: __viteBrowserExternal
|
|
156
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
152
157
|
exports2.TINA_HOST = TINA_HOST;
|
|
153
158
|
exports2.TinaClient = TinaClient;
|
|
154
159
|
exports2.createClient = createClient;
|
package/dist/client.mjs
CHANGED
|
@@ -23,8 +23,8 @@ class TinaClient {
|
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
25
25
|
try {
|
|
26
|
-
if (this.cacheDir && typeof require !== "undefined") {
|
|
27
|
-
const { NodeCache } = await import("./node-cache-
|
|
26
|
+
if (this.cacheDir && window === void 0 && typeof require !== "undefined") {
|
|
27
|
+
const { NodeCache } = await import("./node-cache-7fa2452c.mjs");
|
|
28
28
|
this.cache = await NodeCache(this.cacheDir);
|
|
29
29
|
}
|
|
30
30
|
} catch (e) {
|
package/dist/index.js
CHANGED
|
@@ -9257,7 +9257,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9257
9257
|
leaveFrom: "opacity-100",
|
|
9258
9258
|
leaveTo: "opacity-0 -translate-x-1/2"
|
|
9259
9259
|
},
|
|
9260
|
-
cms.state.formLists.map((formList) => /* @__PURE__ */ React__namespace.createElement("div", { key: formList.id
|
|
9260
|
+
cms.state.formLists.map((formList, index) => /* @__PURE__ */ React__namespace.createElement("div", { key: `${formList.id}-${index}`, className: "pt-16" }, /* @__PURE__ */ React__namespace.createElement(
|
|
9261
9261
|
FormList,
|
|
9262
9262
|
{
|
|
9263
9263
|
isEditing: props.isEditing,
|
|
@@ -9674,7 +9674,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9674
9674
|
"Event Log"
|
|
9675
9675
|
));
|
|
9676
9676
|
};
|
|
9677
|
-
const version = "2.2.
|
|
9677
|
+
const version = "2.2.8";
|
|
9678
9678
|
const Nav = ({
|
|
9679
9679
|
isLocalMode,
|
|
9680
9680
|
className = "",
|
package/dist/index.mjs
CHANGED
|
@@ -9280,7 +9280,7 @@ const FormLists = (props) => {
|
|
|
9280
9280
|
leaveFrom: "opacity-100",
|
|
9281
9281
|
leaveTo: "opacity-0 -translate-x-1/2"
|
|
9282
9282
|
},
|
|
9283
|
-
cms.state.formLists.map((formList) => /* @__PURE__ */ React.createElement("div", { key: formList.id
|
|
9283
|
+
cms.state.formLists.map((formList, index) => /* @__PURE__ */ React.createElement("div", { key: `${formList.id}-${index}`, className: "pt-16" }, /* @__PURE__ */ React.createElement(
|
|
9284
9284
|
FormList,
|
|
9285
9285
|
{
|
|
9286
9286
|
isEditing: props.isEditing,
|
|
@@ -9697,7 +9697,7 @@ const SyncStatus = ({ cms, setEventsOpen }) => {
|
|
|
9697
9697
|
"Event Log"
|
|
9698
9698
|
));
|
|
9699
9699
|
};
|
|
9700
|
-
const version = "2.2.
|
|
9700
|
+
const version = "2.2.8";
|
|
9701
9701
|
const Nav = ({
|
|
9702
9702
|
isLocalMode,
|
|
9703
9703
|
className = "",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const makeCacheDir = async (dir, fs) => {
|
|
2
|
-
const path = await import("
|
|
3
|
-
const os = await import("
|
|
2
|
+
const path = await import("./__vite-browser-external-d06ac358.mjs");
|
|
3
|
+
const os = await import("./__vite-browser-external-d06ac358.mjs");
|
|
4
4
|
const parts = dir.split(path.sep).filter(Boolean);
|
|
5
5
|
let cacheDir = dir;
|
|
6
6
|
if (!fs.existsSync(path.join(path.sep, parts[0]))) {
|
|
@@ -10,8 +10,8 @@ const makeCacheDir = async (dir, fs) => {
|
|
|
10
10
|
return cacheDir;
|
|
11
11
|
};
|
|
12
12
|
const NodeCache = async (dir) => {
|
|
13
|
-
const fs = await import("
|
|
14
|
-
const { createHash } = await import("
|
|
13
|
+
const fs = await import("./__vite-browser-external-d06ac358.mjs");
|
|
14
|
+
const { createHash } = await import("./__vite-browser-external-d06ac358.mjs");
|
|
15
15
|
const cacheDir = await makeCacheDir(dir, fs);
|
|
16
16
|
return {
|
|
17
17
|
makeKey: (key) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tinacms",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.8",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -60,12 +60,12 @@
|
|
|
60
60
|
"typings": "dist/index.d.ts",
|
|
61
61
|
"license": "Apache-2.0",
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@ariakit/react": "^0.4.
|
|
64
|
-
"@floating-ui/dom": "^1.6.
|
|
65
|
-
"@floating-ui/react-dom": "^2.1.
|
|
63
|
+
"@ariakit/react": "^0.4.11",
|
|
64
|
+
"@floating-ui/dom": "^1.6.11",
|
|
65
|
+
"@floating-ui/react-dom": "^2.1.2",
|
|
66
66
|
"@graphql-inspector/core": "^6.1.0",
|
|
67
67
|
"@headlessui/react": "2.1.8",
|
|
68
|
-
"@heroicons/react": "^1.0.
|
|
68
|
+
"@heroicons/react": "^1.0.6",
|
|
69
69
|
"@monaco-editor/react": "4.4.5",
|
|
70
70
|
"@radix-ui/react-checkbox": "^1.1.1",
|
|
71
71
|
"@radix-ui/react-dialog": "^1.1.1",
|
|
@@ -77,18 +77,18 @@
|
|
|
77
77
|
"@radix-ui/react-tooltip": "^1.1.2",
|
|
78
78
|
"@react-hook/window-size": "^3.1.1",
|
|
79
79
|
"@udecode/cn": "^33.0.0",
|
|
80
|
-
"@udecode/plate": "^36.
|
|
81
|
-
"@udecode/plate-autoformat": "^36.
|
|
80
|
+
"@udecode/plate": "^36.5.9",
|
|
81
|
+
"@udecode/plate-autoformat": "^36.5.6",
|
|
82
82
|
"@udecode/plate-block-quote": "^36.0.0",
|
|
83
|
-
"@udecode/plate-code-block": "^36.
|
|
83
|
+
"@udecode/plate-code-block": "^36.5.6",
|
|
84
84
|
"@udecode/plate-combobox": "^36.0.0",
|
|
85
|
-
"@udecode/plate-common": "^36.
|
|
86
|
-
"@udecode/plate-floating": "^36.3.
|
|
85
|
+
"@udecode/plate-common": "^36.5.9",
|
|
86
|
+
"@udecode/plate-floating": "^36.3.8",
|
|
87
87
|
"@udecode/plate-heading": "^36.0.12",
|
|
88
88
|
"@udecode/plate-indent": "^36.0.0",
|
|
89
|
-
"@udecode/plate-indent-list": "^36.
|
|
90
|
-
"@udecode/plate-link": "^36.
|
|
91
|
-
"@udecode/plate-list": "^36.
|
|
89
|
+
"@udecode/plate-indent-list": "^36.5.2",
|
|
90
|
+
"@udecode/plate-link": "^36.5.9",
|
|
91
|
+
"@udecode/plate-list": "^36.5.2",
|
|
92
92
|
"@udecode/plate-paragraph": "^36.0.0",
|
|
93
93
|
"@udecode/plate-slash-command": "^36.0.0",
|
|
94
94
|
"class-variance-authority": "^0.7.0",
|
|
@@ -109,42 +109,42 @@
|
|
|
109
109
|
"lucide-react": "^0.424.0",
|
|
110
110
|
"moment": "2.29.4",
|
|
111
111
|
"monaco-editor": "0.31.0",
|
|
112
|
-
"prism-react-renderer": "^2.
|
|
112
|
+
"prism-react-renderer": "^2.4.0",
|
|
113
113
|
"prop-types": "15.7.2",
|
|
114
114
|
"react-beautiful-dnd": "^13.1.1",
|
|
115
115
|
"react-color": "^2.19.3",
|
|
116
116
|
"react-datetime": "^3.2.0",
|
|
117
117
|
"react-dropzone": "14.2.3",
|
|
118
118
|
"react-final-form": "^6.5.9",
|
|
119
|
-
"react-icons": "^5.
|
|
119
|
+
"react-icons": "^5.3.0",
|
|
120
120
|
"react-onclickoutside": "^6.13.1",
|
|
121
121
|
"react-router-dom": "6.3.0",
|
|
122
122
|
"slate": "^0.103.0",
|
|
123
123
|
"slate-history": "^0.100.0",
|
|
124
124
|
"slate-hyperscript": "^0.100.0",
|
|
125
125
|
"slate-react": "^0.107.1",
|
|
126
|
-
"tailwind-merge": "^2.
|
|
126
|
+
"tailwind-merge": "^2.5.2",
|
|
127
127
|
"webfontloader": "1.6.28",
|
|
128
128
|
"yup": "^1.4.0",
|
|
129
129
|
"zod": "^3.23.8",
|
|
130
|
-
"@tinacms/
|
|
131
|
-
"@tinacms/
|
|
132
|
-
"@tinacms/
|
|
130
|
+
"@tinacms/mdx": "1.4.4",
|
|
131
|
+
"@tinacms/schema-tools": "1.6.4",
|
|
132
|
+
"@tinacms/search": "1.0.31"
|
|
133
133
|
},
|
|
134
134
|
"devDependencies": {
|
|
135
|
-
"@graphql-tools/utils": "^10.
|
|
135
|
+
"@graphql-tools/utils": "^10.5.4",
|
|
136
136
|
"@testing-library/dom": "^10.4.0",
|
|
137
|
-
"@testing-library/jest-dom": "^6.
|
|
138
|
-
"@testing-library/react": "^16.0.
|
|
137
|
+
"@testing-library/jest-dom": "^6.5.0",
|
|
138
|
+
"@testing-library/react": "^16.0.1",
|
|
139
139
|
"@testing-library/user-event": "^14.5.2",
|
|
140
140
|
"@types/atob": "^2.1.4",
|
|
141
141
|
"@types/codemirror": "^5.60.15",
|
|
142
142
|
"@types/color-string": "^1.5.5",
|
|
143
143
|
"@types/lodash.debounce": "^4.0.9",
|
|
144
144
|
"@types/lodash.get": "^4.4.9",
|
|
145
|
-
"@types/node": "^22.7.
|
|
146
|
-
"@types/prop-types": "^15.7.
|
|
147
|
-
"@types/react": "^18.3.
|
|
145
|
+
"@types/node": "^22.7.4",
|
|
146
|
+
"@types/prop-types": "^15.7.13",
|
|
147
|
+
"@types/react": "^18.3.10",
|
|
148
148
|
"@types/react-beautiful-dnd": "^13.1.8",
|
|
149
149
|
"@types/react-color": "^3.0.12",
|
|
150
150
|
"@types/react-dom": "^18.3.0",
|
|
@@ -158,11 +158,11 @@
|
|
|
158
158
|
"react-dom": "^18.3.1",
|
|
159
159
|
"react-is": "^18.3.1",
|
|
160
160
|
"tsc-alias": "^1.8.10",
|
|
161
|
-
"tslib": "^2.
|
|
161
|
+
"tslib": "^2.7.0",
|
|
162
162
|
"typescript": "^5.6.2",
|
|
163
|
-
"vite": "^5.
|
|
164
|
-
"vitest": "^2.
|
|
165
|
-
"@tinacms/scripts": "1.2.
|
|
163
|
+
"vite": "^5.4.8",
|
|
164
|
+
"vitest": "^2.1.1",
|
|
165
|
+
"@tinacms/scripts": "1.2.3"
|
|
166
166
|
},
|
|
167
167
|
"peerDependencies": {
|
|
168
168
|
"react": ">=16.14.0",
|