tinacms 0.0.0-b4c6a60-20241010070518 → 0.0.0-bbf2f81-20241024004604

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 CHANGED
@@ -1321,7 +1321,7 @@ var __publicField = (obj, key, value) => {
1321
1321
  React.useEffect(() => {
1322
1322
  if (mermaidRef.current) {
1323
1323
  mermaid.initialize({ startOnLoad: true });
1324
- mermaid.run();
1324
+ mermaid.init();
1325
1325
  }
1326
1326
  }, [config]);
1327
1327
  return /* @__PURE__ */ React.createElement("div", { contentEditable: false, className: "border-border border-b" }, /* @__PURE__ */ React.createElement("div", { ref: mermaidRef }, /* @__PURE__ */ React.createElement("pre", { className: "mermaid not-tina-prose" }, config)));
@@ -1348,7 +1348,7 @@ flowchart TD
1348
1348
  --> id2(modify me to see changes!)
1349
1349
  id2
1350
1350
  --> id3(Click the top button to preview the changes)
1351
- --> id4(Learn about mermaid diagrams @ mermaid.js.org)`;
1351
+ --> id4(Learn about mermaid diagrams - mermaid.js.org)`;
1352
1352
  const MermaidElement = cn$1.withRef(
1353
1353
  ({ children, nodeProps, element, ...props }, ref) => {
1354
1354
  const [mermaidConfig, setMermaidConfig] = React.useState(
@@ -1364,7 +1364,7 @@ flowchart TD
1364
1364
  children: [{ type: "text", text: "" }]
1365
1365
  };
1366
1366
  React.useEffect(() => {
1367
- if (mermaid.parse(mermaidConfig, { suppressErrors: false })) {
1367
+ if (mermaid.parse(mermaidConfig)) {
1368
1368
  setMermaidError(null);
1369
1369
  }
1370
1370
  }, [mermaidConfig]);
@@ -3676,7 +3676,7 @@ flowchart TD
3676
3676
  };
3677
3677
  const sizeClasses = {
3678
3678
  small: `text-xs h-8 px-3`,
3679
- medium: `text-sm h-10 px-4`,
3679
+ medium: `text-sm h-10 px-8`,
3680
3680
  custom: ``
3681
3681
  };
3682
3682
  return /* @__PURE__ */ React__namespace.createElement(
@@ -10308,7 +10308,7 @@ flowchart TD
10308
10308
  "Event Log"
10309
10309
  ));
10310
10310
  };
10311
- const version = "2.2.9";
10311
+ const version = "2.3.0";
10312
10312
  const Nav = ({
10313
10313
  isLocalMode,
10314
10314
  className = "",
@@ -12839,15 +12839,14 @@ flowchart TD
12839
12839
  fields: fieldGroup.fields
12840
12840
  }
12841
12841
  ) : /* @__PURE__ */ React__namespace.createElement(NoFieldsPlaceholder, null)
12842
- )), !hideFooter && /* @__PURE__ */ React__namespace.createElement("div", { className: "relative flex-none w-full h-16 px-6 bg-white border-t border-gray-100 flex items-center justify-center" }, /* @__PURE__ */ React__namespace.createElement("div", { className: "flex-1 w-full flex justify-between gap-4 items-center max-w-form" }, tinaForm.reset && /* @__PURE__ */ React__namespace.createElement(
12842
+ )), !hideFooter && /* @__PURE__ */ React__namespace.createElement("div", { className: "relative flex-none w-full h-16 px-12 bg-white border-t border-gray-100 flex items-center justify-end" }, /* @__PURE__ */ React__namespace.createElement("div", { className: "flex-1 w-full justify-end gap-2 flex items-center max-w-form" }, tinaForm.reset && /* @__PURE__ */ React__namespace.createElement(
12843
12843
  ResetForm,
12844
12844
  {
12845
12845
  pristine,
12846
12846
  reset: async () => {
12847
12847
  finalForm2.reset();
12848
12848
  await tinaForm.reset();
12849
- },
12850
- style: { flexGrow: 1 }
12849
+ }
12851
12850
  },
12852
12851
  tinaForm.buttons.reset
12853
12852
  ), /* @__PURE__ */ React__namespace.createElement(
@@ -12856,8 +12855,7 @@ flowchart TD
12856
12855
  onClick: safeHandleSubmit,
12857
12856
  disabled: !canSubmit,
12858
12857
  busy: submitting,
12859
- variant: "primary",
12860
- style: { flexGrow: 3 }
12858
+ variant: "primary"
12861
12859
  },
12862
12860
  submitting && /* @__PURE__ */ React__namespace.createElement(LoadingDots, null),
12863
12861
  !submitting && tinaForm.buttons.save
@@ -13827,6 +13825,7 @@ flowchart TD
13827
13825
  "Unordered List",
13828
13826
  "Ordered List",
13829
13827
  "Quote",
13828
+ "Mermaid",
13830
13829
  "Heading 1",
13831
13830
  "Heading 2",
13832
13831
  "Heading 3",
package/dist/index.mjs CHANGED
@@ -1348,7 +1348,7 @@ const MermaidElementWithRef = ({ config }) => {
1348
1348
  useEffect(() => {
1349
1349
  if (mermaidRef.current) {
1350
1350
  mermaid.initialize({ startOnLoad: true });
1351
- mermaid.run();
1351
+ mermaid.init();
1352
1352
  }
1353
1353
  }, [config]);
1354
1354
  return /* @__PURE__ */ React__default.createElement("div", { contentEditable: false, className: "border-border border-b" }, /* @__PURE__ */ React__default.createElement("div", { ref: mermaidRef }, /* @__PURE__ */ React__default.createElement("pre", { className: "mermaid not-tina-prose" }, config)));
@@ -1375,7 +1375,7 @@ flowchart TD
1375
1375
  --> id2(modify me to see changes!)
1376
1376
  id2
1377
1377
  --> id3(Click the top button to preview the changes)
1378
- --> id4(Learn about mermaid diagrams @ mermaid.js.org)`;
1378
+ --> id4(Learn about mermaid diagrams - mermaid.js.org)`;
1379
1379
  const MermaidElement = withRef(
1380
1380
  ({ children, nodeProps, element, ...props }, ref) => {
1381
1381
  const [mermaidConfig, setMermaidConfig] = useState(
@@ -1391,7 +1391,7 @@ const MermaidElement = withRef(
1391
1391
  children: [{ type: "text", text: "" }]
1392
1392
  };
1393
1393
  useEffect(() => {
1394
- if (mermaid.parse(mermaidConfig, { suppressErrors: false })) {
1394
+ if (mermaid.parse(mermaidConfig)) {
1395
1395
  setMermaidError(null);
1396
1396
  }
1397
1397
  }, [mermaidConfig]);
@@ -3703,7 +3703,7 @@ const Button$1 = ({
3703
3703
  };
3704
3704
  const sizeClasses = {
3705
3705
  small: `text-xs h-8 px-3`,
3706
- medium: `text-sm h-10 px-4`,
3706
+ medium: `text-sm h-10 px-8`,
3707
3707
  custom: ``
3708
3708
  };
3709
3709
  return /* @__PURE__ */ React.createElement(
@@ -10335,7 +10335,7 @@ const SyncStatus = ({ cms, setEventsOpen }) => {
10335
10335
  "Event Log"
10336
10336
  ));
10337
10337
  };
10338
- const version = "2.2.9";
10338
+ const version = "2.3.0";
10339
10339
  const Nav = ({
10340
10340
  isLocalMode,
10341
10341
  className = "",
@@ -12866,15 +12866,14 @@ const FormBuilder = ({
12866
12866
  fields: fieldGroup.fields
12867
12867
  }
12868
12868
  ) : /* @__PURE__ */ React.createElement(NoFieldsPlaceholder, null)
12869
- )), !hideFooter && /* @__PURE__ */ React.createElement("div", { className: "relative flex-none w-full h-16 px-6 bg-white border-t border-gray-100 flex items-center justify-center" }, /* @__PURE__ */ React.createElement("div", { className: "flex-1 w-full flex justify-between gap-4 items-center max-w-form" }, tinaForm.reset && /* @__PURE__ */ React.createElement(
12869
+ )), !hideFooter && /* @__PURE__ */ React.createElement("div", { className: "relative flex-none w-full h-16 px-12 bg-white border-t border-gray-100 flex items-center justify-end" }, /* @__PURE__ */ React.createElement("div", { className: "flex-1 w-full justify-end gap-2 flex items-center max-w-form" }, tinaForm.reset && /* @__PURE__ */ React.createElement(
12870
12870
  ResetForm,
12871
12871
  {
12872
12872
  pristine,
12873
12873
  reset: async () => {
12874
12874
  finalForm.reset();
12875
12875
  await tinaForm.reset();
12876
- },
12877
- style: { flexGrow: 1 }
12876
+ }
12878
12877
  },
12879
12878
  tinaForm.buttons.reset
12880
12879
  ), /* @__PURE__ */ React.createElement(
@@ -12883,8 +12882,7 @@ const FormBuilder = ({
12883
12882
  onClick: safeHandleSubmit,
12884
12883
  disabled: !canSubmit,
12885
12884
  busy: submitting,
12886
- variant: "primary",
12887
- style: { flexGrow: 3 }
12885
+ variant: "primary"
12888
12886
  },
12889
12887
  submitting && /* @__PURE__ */ React.createElement(LoadingDots, null),
12890
12888
  !submitting && tinaForm.buttons.save
@@ -13854,6 +13852,7 @@ const unsupportedItemsInTable = /* @__PURE__ */ new Set([
13854
13852
  "Unordered List",
13855
13853
  "Ordered List",
13856
13854
  "Quote",
13855
+ "Mermaid",
13857
13856
  "Heading 1",
13858
13857
  "Heading 2",
13859
13858
  "Heading 3",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tinacms",
3
- "version": "0.0.0-b4c6a60-20241010070518",
3
+ "version": "0.0.0-bbf2f81-20241024004604",
4
4
  "main": "dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "exports": {
@@ -108,7 +108,7 @@
108
108
  "lodash.get": "^4.4.2",
109
109
  "lodash.set": "^4.3.2",
110
110
  "lucide-react": "^0.424.0",
111
- "mermaid": "^10.9.1",
111
+ "mermaid": "9.3.0",
112
112
  "moment": "2.29.4",
113
113
  "monaco-editor": "0.31.0",
114
114
  "prism-react-renderer": "^2.4.0",
@@ -129,9 +129,9 @@
129
129
  "webfontloader": "1.6.28",
130
130
  "yup": "^1.4.0",
131
131
  "zod": "^3.23.8",
132
- "@tinacms/mdx": "0.0.0-b4c6a60-20241010070518",
133
- "@tinacms/schema-tools": "0.0.0-b4c6a60-20241010070518",
134
- "@tinacms/search": "0.0.0-b4c6a60-20241010070518"
132
+ "@tinacms/mdx": "1.5.0",
133
+ "@tinacms/schema-tools": "1.6.6",
134
+ "@tinacms/search": "1.0.33"
135
135
  },
136
136
  "devDependencies": {
137
137
  "@graphql-tools/utils": "^10.5.4",
@@ -164,7 +164,7 @@
164
164
  "typescript": "^5.6.2",
165
165
  "vite": "^5.4.8",
166
166
  "vitest": "^2.1.1",
167
- "@tinacms/scripts": "0.0.0-b4c6a60-20241010070518"
167
+ "@tinacms/scripts": "1.3.0"
168
168
  },
169
169
  "peerDependencies": {
170
170
  "react": ">=16.14.0",