tinacms 3.1.0 → 3.1.2
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 +8 -7
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -44500,7 +44500,7 @@ let Alerts$1 = class Alerts {
|
|
|
44500
44500
|
...eventsToAlerts
|
|
44501
44501
|
};
|
|
44502
44502
|
}
|
|
44503
|
-
add(level, message, timeout =
|
|
44503
|
+
add(level, message, timeout = 4e3) {
|
|
44504
44504
|
const alert = {
|
|
44505
44505
|
level,
|
|
44506
44506
|
message,
|
|
@@ -44514,7 +44514,7 @@ let Alerts$1 = class Alerts {
|
|
|
44514
44514
|
clearTimeout(timeoutId);
|
|
44515
44515
|
this.dismiss(alert);
|
|
44516
44516
|
};
|
|
44517
|
-
timeoutId = level !== "error" ? setTimeout(dismiss, alert.timeout) : null;
|
|
44517
|
+
timeoutId = level !== "error" && alert.timeout > 0 ? setTimeout(dismiss, alert.timeout) : null;
|
|
44518
44518
|
return dismiss;
|
|
44519
44519
|
}
|
|
44520
44520
|
dismiss(alert) {
|
|
@@ -46634,7 +46634,7 @@ const NavProvider = ({
|
|
|
46634
46634
|
};
|
|
46635
46635
|
return /* @__PURE__ */ React__default.createElement(NavContext.Provider, { value }, children);
|
|
46636
46636
|
};
|
|
46637
|
-
const version$1 = "3.1.
|
|
46637
|
+
const version$1 = "3.1.2";
|
|
46638
46638
|
const VersionInfo = () => {
|
|
46639
46639
|
var _a2, _b, _c, _d, _e, _f;
|
|
46640
46640
|
const cms = useCMS();
|
|
@@ -48372,10 +48372,10 @@ function Alerts2({ alerts }) {
|
|
|
48372
48372
|
if (!alerts.all.length) {
|
|
48373
48373
|
return null;
|
|
48374
48374
|
}
|
|
48375
|
-
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", { className: "fixed
|
|
48375
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", { className: "fixed bottom-6 left-1/2 flex flex-col items-center z-[999999] -translate-x-1/2" }, alerts.all.filter((alert) => {
|
|
48376
48376
|
return alert.level !== "error";
|
|
48377
48377
|
}).map((alert) => {
|
|
48378
|
-
return /* @__PURE__ */ React__default.createElement(Alert, { key: alert.id, level: alert.level }, alert.level === "info" && /* @__PURE__ */ React__default.createElement(MdInfo, { className: "w-5 h-auto text-blue-500" }), alert.level === "success" && /* @__PURE__ */ React__default.createElement(MdCheckCircle, { className: "w-5 h-auto text-green-500" }), alert.level === "warn" && /* @__PURE__ */ React__default.createElement(MdWarning, { className: "w-5 h-auto text-yellow-500" }), /* @__PURE__ */ React__default.createElement("p", { className: "m-0 flex-1 max-w-[680px] text-left" }, parseUrlsInText(alert.message.toString())), /* @__PURE__ */ React__default.createElement(
|
|
48378
|
+
return /* @__PURE__ */ React__default.createElement(Alert, { key: alert.id, level: alert.level }, alert.level === "info" && /* @__PURE__ */ React__default.createElement(MdInfo, { className: "w-5 h-auto text-blue-500" }), alert.level === "success" && /* @__PURE__ */ React__default.createElement(MdCheckCircle, { className: "w-5 h-auto text-green-500" }), alert.level === "warn" && /* @__PURE__ */ React__default.createElement(MdWarning, { className: "w-5 h-auto text-yellow-500" }), /* @__PURE__ */ React__default.createElement("p", { className: "m-0 flex-1 max-w-[680px] text-left break-all" }, parseUrlsInText(alert.message.toString())), /* @__PURE__ */ React__default.createElement(
|
|
48379
48379
|
CloseAlert,
|
|
48380
48380
|
{
|
|
48381
48381
|
onClick: () => {
|
|
@@ -48442,7 +48442,7 @@ const Alert = ({
|
|
|
48442
48442
|
/* @__PURE__ */ React__default.createElement(
|
|
48443
48443
|
"div",
|
|
48444
48444
|
{
|
|
48445
|
-
className: `flex items-center gap-2 w-[350px] rounded-md border px-4 py-3 ${borderClasses[level]}`,
|
|
48445
|
+
className: `flex items-center gap-2 min-w-[350px] rounded-md border px-4 py-3 ${borderClasses[level]}`,
|
|
48446
48446
|
...props
|
|
48447
48447
|
}
|
|
48448
48448
|
)
|
|
@@ -64322,7 +64322,8 @@ const CreateBranchModal = ({
|
|
|
64322
64322
|
}
|
|
64323
64323
|
setCurrentBranch(result.branchName);
|
|
64324
64324
|
cms.alerts.success(
|
|
64325
|
-
`Branch created successfully - Pull Request at ${result.pullRequestUrl}
|
|
64325
|
+
`Branch created successfully - Pull Request at ${result.pullRequestUrl}`,
|
|
64326
|
+
0
|
|
64326
64327
|
);
|
|
64327
64328
|
if (crudType === "create") {
|
|
64328
64329
|
const folderPath = relativePath2.includes("/") ? relativePath2.substring(0, relativePath2.lastIndexOf("/")) : "";
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "tinacms",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"typings": "dist/index.d.ts",
|
|
5
|
-
"version": "3.1.
|
|
5
|
+
"version": "3.1.2",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
8
8
|
"exports": {
|
|
@@ -111,8 +111,8 @@
|
|
|
111
111
|
"yup": "^1.6.1",
|
|
112
112
|
"zod": "^3.24.2",
|
|
113
113
|
"@tinacms/mdx": "2.0.1",
|
|
114
|
-
"@tinacms/
|
|
115
|
-
"@tinacms/
|
|
114
|
+
"@tinacms/schema-tools": "2.1.0",
|
|
115
|
+
"@tinacms/search": "1.1.7"
|
|
116
116
|
},
|
|
117
117
|
"devDependencies": {
|
|
118
118
|
"@graphql-tools/utils": "^10.8.1",
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
"identity-obj-proxy": "^3.0.0",
|
|
132
132
|
"jest-file-snapshot": "^0.7.0",
|
|
133
133
|
"lowlight": "^3.3.0",
|
|
134
|
-
"next": "14.2.
|
|
134
|
+
"next": "14.2.35",
|
|
135
135
|
"react": "^18.3.1",
|
|
136
136
|
"react-dom": "^18.3.1",
|
|
137
137
|
"react-is": "^18.3.1",
|