tinacms 0.0.0-d94de9b-20250707010010 → 0.0.0-d9ccf29-20251222052725

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 (156) hide show
  1. package/dist/admin/api.d.ts +4 -1
  2. package/dist/auth/AuthModal.d.ts +1 -4
  3. package/dist/auth/TinaCloudProvider.d.ts +0 -1
  4. package/dist/cache/node-cache.d.ts +6 -2
  5. package/dist/client.js +240 -181
  6. package/dist/index.js +122235 -34368
  7. package/dist/internalClient/index.d.ts +20 -1
  8. package/dist/react.js +297 -206
  9. package/dist/rich-text/index.d.ts +6 -0
  10. package/dist/rich-text/index.js +234 -224
  11. package/dist/rich-text/prism.js +16 -18
  12. package/dist/rich-text/static.d.ts +6 -0
  13. package/dist/rich-text/static.js +229 -225
  14. package/dist/tina-cms.d.ts +1 -1
  15. package/dist/toolkit/components/ProgressBar.d.ts +11 -0
  16. package/dist/toolkit/components/active-field-indicator.d.ts +1 -0
  17. package/dist/toolkit/components/media/media-item.d.ts +10 -0
  18. package/dist/toolkit/components/ui/button.d.ts +11 -0
  19. package/dist/toolkit/components/ui/calendar.d.ts +8 -0
  20. package/dist/toolkit/components/ui/date-time-picker.d.ts +111 -0
  21. package/dist/toolkit/components/ui/input.d.ts +3 -0
  22. package/dist/toolkit/components/ui/popover.d.ts +7 -0
  23. package/dist/toolkit/components/ui/select.d.ts +13 -0
  24. package/dist/toolkit/fields/components/color-picker/block-widget.d.ts +3 -0
  25. package/dist/toolkit/fields/components/color-picker/color-input.d.ts +35 -0
  26. package/dist/toolkit/fields/components/color-picker/color-picker.d.ts +6 -2
  27. package/dist/toolkit/fields/components/color-picker/color-utils.d.ts +37 -0
  28. package/dist/toolkit/fields/components/color-picker/sketch-widget.d.ts +3 -0
  29. package/dist/toolkit/fields/components/password-field.d.ts +1 -1
  30. package/dist/toolkit/fields/components/reference/components/button.d.ts +1 -1
  31. package/dist/toolkit/fields/components/reference/components/command.d.ts +21 -33
  32. package/dist/toolkit/fields/components/select.d.ts +1 -1
  33. package/dist/toolkit/fields/components/text-field.d.ts +1 -1
  34. package/dist/toolkit/fields/plugins/button-toggle-field-plugin.d.ts +2 -2
  35. package/dist/toolkit/fields/plugins/checkbox-group-field-plugin.d.ts +2 -2
  36. package/dist/toolkit/fields/plugins/color-field-plugin.d.ts +1 -0
  37. package/dist/toolkit/fields/plugins/date-field-plugin.d.ts +0 -2
  38. package/dist/toolkit/fields/plugins/dnd-kit-wrapper.d.ts +49 -0
  39. package/dist/toolkit/fields/plugins/group-list-field-plugin.d.ts +3 -1
  40. package/dist/toolkit/fields/plugins/list-field-plugin.d.ts +3 -0
  41. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/editor.d.ts +20 -18
  42. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/blockquote-element.d.ts +14 -10
  43. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/button.d.ts +5 -5
  44. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block/code-block-element.d.ts +17 -0
  45. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block/error-message.d.ts +6 -0
  46. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block-combobox.d.ts +6 -0
  47. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block-toolbar-button.d.ts +6 -6
  48. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-leaf.d.ts +2 -11
  49. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-line-element.d.ts +14 -10
  50. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-syntax-leaf.d.ts +2 -11
  51. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/command.d.ts +112 -0
  52. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/dialog.d.ts +12 -0
  53. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/dropdown-menu.d.ts +10 -10
  54. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/floating-toolbar.d.ts +2 -2
  55. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/hr-element.d.ts +3 -0
  56. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/hr-toolbar-button.d.ts +18 -0
  57. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/icons.d.ts +2 -1
  58. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/image-toolbar-button.d.ts +6 -6
  59. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/indent-list-toolbar-button.d.ts +6 -19
  60. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/inline-combobox.d.ts +1 -1
  61. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/input.d.ts +3 -3
  62. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/link-element.d.ts +4 -11
  63. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/link-floating-toolbar.d.ts +4 -5
  64. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/link-toolbar-button.d.ts +4 -4
  65. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/list-element.d.ts +28 -11
  66. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/mermaid-element.d.ts +3 -10
  67. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/mermaid-toolbar-button.d.ts +6 -8
  68. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/paragraph-element.d.ts +15 -0
  69. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/popover.d.ts +7 -2
  70. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/quote-toolbar-button.d.ts +6 -6
  71. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/raw-markdown-toolbar-button.d.ts +6 -6
  72. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/resizable.d.ts +24 -21
  73. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/separator.d.ts +2 -2
  74. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/slash-input-element.d.ts +15 -11
  75. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table/block-selection.d.ts +6 -0
  76. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table/table-cell-element.d.ts +33 -0
  77. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/{table-dropdown-menu.d.ts → table/table-dropdown-menu.d.ts} +1 -0
  78. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table/table-element.d.ts +20 -0
  79. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table/table-row-element.d.ts +15 -0
  80. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/toolbar.d.ts +7 -7
  81. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/use-floating-toolbar-hook.d.ts +10 -0
  82. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/use-floating-toolbar-state.d.ts +22 -0
  83. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/hooks/use-create-editor.d.ts +6 -0
  84. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-block.d.ts +1 -1
  85. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-lists.d.ts +1 -1
  86. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-marks.d.ts +1 -1
  87. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-utils.d.ts +3 -5
  88. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/common.d.ts +11 -6
  89. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/formatting.d.ts +18 -2
  90. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/index.d.ts +0 -1
  91. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-html-block/index.d.ts +6 -0
  92. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-img-plugin/index.d.ts +2 -2
  93. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-invalid-markdown-plugin/index.d.ts +5 -5
  94. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-mdx-plugins/component.d.ts +7 -4
  95. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-mdx-plugins/index.d.ts +3 -5
  96. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/editor-plugins.d.ts +520 -0
  97. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/components.d.ts +262 -207
  98. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/floating-toolbar-plugin.d.ts +1 -0
  99. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/toolbar/toolbar-overrides.d.ts +1 -1
  100. package/dist/toolkit/fields/plugins/radio-group-field-plugin.d.ts +2 -2
  101. package/dist/toolkit/fields/plugins/select-field-plugin.d.ts +2 -2
  102. package/dist/toolkit/fields/plugins/toggle-field-plugin.d.ts +2 -2
  103. package/dist/toolkit/fields/plugins/wrap-field-with-meta.d.ts +6 -2
  104. package/dist/toolkit/form-builder/create-branch-modal.d.ts +13 -0
  105. package/dist/toolkit/form-builder/editorial-workflow-constants.d.ts +17 -0
  106. package/dist/toolkit/form-builder/fields-builder.d.ts +2 -1
  107. package/dist/toolkit/form-builder/form-builder.d.ts +1 -11
  108. package/dist/toolkit/form-builder/index.d.ts +1 -0
  109. package/dist/toolkit/forms/field.d.ts +3 -2
  110. package/dist/toolkit/icons/TinaExtended.d.ts +4 -0
  111. package/dist/toolkit/icons/index.d.ts +1 -0
  112. package/dist/toolkit/index.d.ts +1 -1
  113. package/dist/toolkit/plugin-branch-switcher/branch-button.d.ts +3 -1
  114. package/dist/toolkit/react-modals/modal/modal-actions.d.ts +2 -1
  115. package/dist/toolkit/react-modals/modal/modal-header.d.ts +1 -1
  116. package/dist/toolkit/react-sidebar/components/NavMenuTrigger.d.ts +11 -0
  117. package/dist/toolkit/react-sidebar/components/badge.d.ts +6 -0
  118. package/dist/toolkit/react-sidebar/components/callout.d.ts +5 -0
  119. package/dist/toolkit/react-sidebar/components/local-warning.d.ts +3 -1
  120. package/dist/toolkit/react-sidebar/components/nav-components.d.ts +11 -0
  121. package/dist/toolkit/react-sidebar/components/nav-context.d.ts +15 -0
  122. package/dist/toolkit/react-sidebar/components/nav.d.ts +3 -2
  123. package/dist/toolkit/react-sidebar/components/sidebar-body.d.ts +26 -1
  124. package/dist/toolkit/react-sidebar/index.d.ts +3 -0
  125. package/dist/toolkit/styles/button.d.ts +1 -1
  126. package/dist/toolkit/styles/dropdown-button.d.ts +75 -0
  127. package/dist/toolkit/styles/index.d.ts +1 -0
  128. package/dist/toolkit/tina-state.d.ts +42 -16
  129. package/dist/unifiedClient/index.d.ts +1 -1
  130. package/dist/utils/index.d.ts +1 -0
  131. package/package.json +56 -87
  132. package/dist/admin/pages/IndexingPage.d.ts +0 -2
  133. package/dist/client.mjs +0 -132
  134. package/dist/index.mjs +0 -35827
  135. package/dist/node-cache-5e8db9f0.mjs +0 -63
  136. package/dist/react.mjs +0 -254
  137. package/dist/rich-text/index.mjs +0 -243
  138. package/dist/rich-text/prism.mjs +0 -16
  139. package/dist/rich-text/static.mjs +0 -236
  140. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block-element.d.ts +0 -11
  141. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table-cell-element.d.ts +0 -27
  142. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table-element.d.ts +0 -14
  143. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table-row-element.d.ts +0 -13
  144. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/with-correct-void-behavior.d.ts +0 -8
  145. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-code-block/index.d.ts +0 -3
  146. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-link-plugin/index.d.ts +0 -15
  147. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/custom/mermaid-plugin.d.ts +0 -2
  148. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/create-soft-break-plugin.d.ts +0 -7
  149. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/index.d.ts +0 -6
  150. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/on-key-down-soft-break.d.ts +0 -5
  151. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/types.d.ts +0 -11
  152. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/code-block/index.d.ts +0 -11
  153. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/transforms/insert-empty-block.d.ts +0 -2
  154. package/dist/toolkit/react-datetime/DateTime.d.ts +0 -135
  155. package/dist/toolkit/react-sidebar/components/alert.d.ts +0 -5
  156. /package/dist/admin/components/{Sidebar.d.ts → AdminNav.d.ts} +0 -0
@@ -1,239 +1,243 @@
1
- (function(global, factory) {
2
- typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react")) : typeof define === "function" && define.amd ? define(["exports", "react"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.tinacms = {}, global.NOOP));
3
- })(this, function(exports2, React) {
4
- "use strict";
5
- const StaticTinaMarkdown = ({
6
- content,
7
- components = {}
8
- }) => {
9
- if (!content) {
10
- return null;
11
- }
12
- const nodes = Array.isArray(content) ? content : content.children;
13
- if (!nodes) {
14
- return null;
15
- }
16
- return /* @__PURE__ */ React.createElement(React.Fragment, null, nodes.map((child, index) => {
17
- return /* @__PURE__ */ React.createElement(Node, { components, key: index, child });
18
- }));
19
- };
20
- const Leaf = (props) => {
21
- let el = /* @__PURE__ */ React.createElement(React.Fragment, null, props.text);
22
- if (props.components.text) {
23
- const Component = props.components.text;
24
- el = /* @__PURE__ */ React.createElement(Component, null, props.text);
25
- }
26
- if (props.bold) {
27
- const Component = props.components.bold || "strong";
28
- el = /* @__PURE__ */ React.createElement(Component, null, el);
29
- }
30
- if (props.italic) {
31
- const Component = props.components.italic || "em";
32
- el = /* @__PURE__ */ React.createElement(Component, null, el);
33
- }
34
- if (props.underline) {
35
- const Component = props.components.underline || "u";
36
- el = /* @__PURE__ */ React.createElement(Component, null, el);
37
- }
38
- if (props.strikethrough) {
39
- const Component = props.components.strikethrough || "s";
40
- el = /* @__PURE__ */ React.createElement(Component, null, el);
41
- }
42
- if (props.code) {
43
- const Component = props.components.code || "code";
44
- el = /* @__PURE__ */ React.createElement(Component, null, el);
45
- }
46
- return el;
47
- };
48
- const Node = ({
49
- components,
50
- child
51
- }) => {
52
- var _a, _b, _c, _d, _e, _f, _g;
53
- const { children, ...props } = child;
54
- switch (child.type) {
55
- case "h1":
56
- case "h2":
57
- case "h3":
58
- case "h4":
59
- case "h5":
60
- case "h6":
61
- case "p":
62
- case "blockquote":
63
- case "ol":
64
- case "ul":
65
- case "li":
66
- if (components[child.type]) {
67
- const Component2 = components[child.type];
68
- return /* @__PURE__ */ React.createElement(Component2, { ...props }, /* @__PURE__ */ React.createElement(StaticTinaMarkdown, { components, content: children }));
69
- }
70
- return React.createElement(child.type, {
71
- children: /* @__PURE__ */ React.createElement(StaticTinaMarkdown, { components, content: children })
72
- });
73
- case "lic":
74
- if (components.lic) {
75
- const Component2 = components.lic;
76
- return /* @__PURE__ */ React.createElement(Component2, { ...props }, /* @__PURE__ */ React.createElement(StaticTinaMarkdown, { components, content: children }));
77
- }
78
- return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(
79
- StaticTinaMarkdown,
80
- {
81
- components,
82
- content: child.children
83
- }
84
- ));
85
- case "img":
86
- if (components[child.type]) {
87
- const Component2 = components[child.type];
88
- return /* @__PURE__ */ React.createElement(Component2, { ...props });
1
+ import React from "react";
2
+ const StaticTinaMarkdown = ({
3
+ content,
4
+ components = {}
5
+ }) => {
6
+ if (!content) {
7
+ return null;
8
+ }
9
+ const nodes = Array.isArray(content) ? content : content.children;
10
+ if (!nodes) {
11
+ return null;
12
+ }
13
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, nodes.map((child, index) => {
14
+ return /* @__PURE__ */ React.createElement(Node, { components, key: index, child });
15
+ }));
16
+ };
17
+ const Leaf = (props) => {
18
+ let el = /* @__PURE__ */ React.createElement(React.Fragment, null, props.text);
19
+ if (props.components.text) {
20
+ const Component = props.components.text;
21
+ el = /* @__PURE__ */ React.createElement(Component, null, props.text);
22
+ }
23
+ if (props.bold) {
24
+ const Component = props.components.bold || "strong";
25
+ el = /* @__PURE__ */ React.createElement(Component, null, el);
26
+ }
27
+ if (props.italic) {
28
+ const Component = props.components.italic || "em";
29
+ el = /* @__PURE__ */ React.createElement(Component, null, el);
30
+ }
31
+ if (props.underline) {
32
+ const Component = props.components.underline || "u";
33
+ el = /* @__PURE__ */ React.createElement(Component, null, el);
34
+ }
35
+ if (props.strikethrough) {
36
+ const Component = props.components.strikethrough || "s";
37
+ el = /* @__PURE__ */ React.createElement(Component, null, el);
38
+ }
39
+ if (props.code) {
40
+ const Component = props.components.code || "code";
41
+ el = /* @__PURE__ */ React.createElement(Component, null, el);
42
+ }
43
+ return el;
44
+ };
45
+ const Node = ({
46
+ components,
47
+ child
48
+ }) => {
49
+ var _a, _b, _c, _d, _e, _f, _g;
50
+ const { children, ...props } = child;
51
+ switch (child.type) {
52
+ case "h1":
53
+ case "h2":
54
+ case "h3":
55
+ case "h4":
56
+ case "h5":
57
+ case "h6":
58
+ case "p":
59
+ case "ol":
60
+ case "ul":
61
+ case "li":
62
+ if (components[child.type]) {
63
+ const Component2 = components[child.type];
64
+ return /* @__PURE__ */ React.createElement(Component2, { ...props }, /* @__PURE__ */ React.createElement(StaticTinaMarkdown, { components, content: children }));
65
+ }
66
+ return React.createElement(child.type, {
67
+ children: /* @__PURE__ */ React.createElement(StaticTinaMarkdown, { components, content: children })
68
+ });
69
+ case "blockquote":
70
+ const BlockquoteComponent = components.blockquote || components.block_quote;
71
+ if (BlockquoteComponent) {
72
+ return /* @__PURE__ */ React.createElement(BlockquoteComponent, { ...props }, /* @__PURE__ */ React.createElement(StaticTinaMarkdown, { components, content: children }));
73
+ }
74
+ return React.createElement("blockquote", {
75
+ children: /* @__PURE__ */ React.createElement(StaticTinaMarkdown, { components, content: children })
76
+ });
77
+ case "lic":
78
+ if (components.lic) {
79
+ const Component2 = components.lic;
80
+ return /* @__PURE__ */ React.createElement(Component2, { ...props }, /* @__PURE__ */ React.createElement(StaticTinaMarkdown, { components, content: children }));
81
+ }
82
+ return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(
83
+ StaticTinaMarkdown,
84
+ {
85
+ components,
86
+ content: child.children
89
87
  }
90
- return /* @__PURE__ */ React.createElement("img", { src: child.url, alt: child.alt });
91
- case "a":
92
- if (components[child.type]) {
93
- const Component2 = components[child.type];
94
- return (
88
+ ));
89
+ case "img":
90
+ if (components[child.type]) {
91
+ const Component2 = components[child.type];
92
+ return /* @__PURE__ */ React.createElement(Component2, { ...props });
93
+ }
94
+ return /* @__PURE__ */ React.createElement("img", { src: child.url, alt: child.alt });
95
+ case "a":
96
+ if (components[child.type]) {
97
+ const Component2 = components[child.type];
98
+ return (
99
+ //@ts-ignore Same issue with TinaMarkdown
100
+ /* @__PURE__ */ React.createElement(Component2, { ...props }, /* @__PURE__ */ React.createElement(StaticTinaMarkdown, { components, content: children }))
101
+ );
102
+ }
103
+ return /* @__PURE__ */ React.createElement("a", { href: child.url }, /* @__PURE__ */ React.createElement(StaticTinaMarkdown, { components, content: children }));
104
+ case "code_block": {
105
+ let codeString = "";
106
+ if (Array.isArray(child.children)) {
107
+ codeString = child.children.map(
108
+ (line) => Array.isArray(line.children) ? line.children.map((t) => t.text).join("") : ""
109
+ ).join("\n");
110
+ } else if (typeof child.value === "string") {
111
+ codeString = child.value;
112
+ }
113
+ if (components[child.type]) {
114
+ const Component2 = components[child.type];
115
+ return /* @__PURE__ */ React.createElement(Component2, { ...props, value: codeString });
116
+ }
117
+ return /* @__PURE__ */ React.createElement("pre", null, /* @__PURE__ */ React.createElement("code", null, codeString));
118
+ }
119
+ case "hr":
120
+ if (components[child.type]) {
121
+ const Component2 = components[child.type];
122
+ return /* @__PURE__ */ React.createElement(Component2, { ...props });
123
+ }
124
+ return /* @__PURE__ */ React.createElement("hr", null);
125
+ case "break":
126
+ if (components[child.type]) {
127
+ const Component2 = components[child.type];
128
+ return /* @__PURE__ */ React.createElement(Component2, { ...props });
129
+ }
130
+ return /* @__PURE__ */ React.createElement("br", null);
131
+ case "text":
132
+ return /* @__PURE__ */ React.createElement(Leaf, { components, ...child });
133
+ case "mdxJsxTextElement":
134
+ case "mdxJsxFlowElement":
135
+ const Component = components[child.name];
136
+ if (Component) {
137
+ const props2 = child.props ? child.props : {};
138
+ return /* @__PURE__ */ React.createElement(Component, { ...props2 });
139
+ } else {
140
+ if (child.name === "table") {
141
+ const firstRowHeader = (_a = child.props) == null ? void 0 : _a.firstRowHeader;
142
+ const rows2 = (firstRowHeader ? (_b = child.props) == null ? void 0 : _b.tableRows.filter((_, i) => i !== 0) : (_c = child.props) == null ? void 0 : _c.tableRows) || [];
143
+ const header = (_e = (_d = child.props) == null ? void 0 : _d.tableRows) == null ? void 0 : _e.at(0);
144
+ const TableComponent2 = (
95
145
  //@ts-ignore Same issue with TinaMarkdown
96
- /* @__PURE__ */ React.createElement(Component2, { ...props }, /* @__PURE__ */ React.createElement(StaticTinaMarkdown, { components, content: children }))
146
+ components["table"] || ((props2) => /* @__PURE__ */ React.createElement("table", { ...props2 }))
97
147
  );
98
- }
99
- return /* @__PURE__ */ React.createElement("a", { href: child.url }, /* @__PURE__ */ React.createElement(StaticTinaMarkdown, { components, content: children }));
100
- case "code_block": {
101
- let codeString = "";
102
- if (Array.isArray(child.children)) {
103
- codeString = child.children.map(
104
- (line) => Array.isArray(line.children) ? line.children.map((t) => t.text).join("") : ""
105
- ).join("\n");
106
- } else if (typeof child.value === "string") {
107
- codeString = child.value;
108
- }
109
- if (components[child.type]) {
110
- const Component2 = components[child.type];
111
- return /* @__PURE__ */ React.createElement(Component2, { ...props, value: codeString });
112
- }
113
- return /* @__PURE__ */ React.createElement("pre", null, /* @__PURE__ */ React.createElement("code", null, codeString));
114
- }
115
- case "hr":
116
- if (components[child.type]) {
117
- const Component2 = components[child.type];
118
- return /* @__PURE__ */ React.createElement(Component2, { ...props });
119
- }
120
- return /* @__PURE__ */ React.createElement("hr", null);
121
- case "break":
122
- if (components[child.type]) {
123
- const Component2 = components[child.type];
124
- return /* @__PURE__ */ React.createElement(Component2, { ...props });
125
- }
126
- return /* @__PURE__ */ React.createElement("br", null);
127
- case "text":
128
- return /* @__PURE__ */ React.createElement(Leaf, { components, ...child });
129
- case "mdxJsxTextElement":
130
- case "mdxJsxFlowElement":
131
- const Component = components[child.name];
132
- if (Component) {
133
- const props2 = child.props ? child.props : {};
134
- return /* @__PURE__ */ React.createElement(Component, { ...props2 });
135
- } else {
136
- if (child.name === "table") {
137
- const firstRowHeader = (_a = child.props) == null ? void 0 : _a.firstRowHeader;
138
- const rows2 = (firstRowHeader ? (_b = child.props) == null ? void 0 : _b.tableRows.filter((_, i) => i !== 0) : (_c = child.props) == null ? void 0 : _c.tableRows) || [];
139
- const header = (_e = (_d = child.props) == null ? void 0 : _d.tableRows) == null ? void 0 : _e.at(0);
140
- const TableComponent2 = (
141
- //@ts-ignore Same issue with TinaMarkdown
142
- components["table"] || ((props2) => /* @__PURE__ */ React.createElement("table", { ...props2 }))
143
- );
144
- const TrComponent2 = components["tr"] || ((props2) => /* @__PURE__ */ React.createElement("tr", { ...props2 }));
145
- const ThComponent = components["th"] || ((props2) => /* @__PURE__ */ React.createElement("th", { style: { textAlign: (props2 == null ? void 0 : props2.align) || "auto" }, ...props2 }));
146
- const TdComponent2 = components["td"] || ((props2) => /* @__PURE__ */ React.createElement("td", { style: { textAlign: (props2 == null ? void 0 : props2.align) || "auto" }, ...props2 }));
147
- const align2 = ((_f = child.props) == null ? void 0 : _f.align) || [];
148
- return (
149
- //@ts-ignore Same issue with TinaMarkdown
150
- /* @__PURE__ */ React.createElement(TableComponent2, null, firstRowHeader && /* @__PURE__ */ React.createElement("thead", null, /* @__PURE__ */ React.createElement(TrComponent2, null, header.tableCells.map((c, i) => {
148
+ const TrComponent2 = components["tr"] || ((props2) => /* @__PURE__ */ React.createElement("tr", { ...props2 }));
149
+ const ThComponent = components["th"] || ((props2) => /* @__PURE__ */ React.createElement("th", { style: { textAlign: (props2 == null ? void 0 : props2.align) || "auto" }, ...props2 }));
150
+ const TdComponent2 = components["td"] || ((props2) => /* @__PURE__ */ React.createElement("td", { style: { textAlign: (props2 == null ? void 0 : props2.align) || "auto" }, ...props2 }));
151
+ const align2 = ((_f = child.props) == null ? void 0 : _f.align) || [];
152
+ return (
153
+ //@ts-ignore Same issue with TinaMarkdown
154
+ /* @__PURE__ */ React.createElement(TableComponent2, null, firstRowHeader && /* @__PURE__ */ React.createElement("thead", null, /* @__PURE__ */ React.createElement(TrComponent2, null, header.tableCells.map((c, i) => {
155
+ return /* @__PURE__ */ React.createElement(
156
+ StaticTinaMarkdown,
157
+ {
158
+ key: i,
159
+ components: {
160
+ p: (props2) => /* @__PURE__ */ React.createElement(ThComponent, { align: align2[i], ...props2 })
161
+ },
162
+ content: c.value
163
+ }
164
+ );
165
+ }))), /* @__PURE__ */ React.createElement("tbody", null, rows2.map((row, i) => {
166
+ var _a2;
167
+ return /* @__PURE__ */ React.createElement(TrComponent2, { key: i }, (_a2 = row == null ? void 0 : row.tableCells) == null ? void 0 : _a2.map((c, i2) => {
151
168
  return /* @__PURE__ */ React.createElement(
152
169
  StaticTinaMarkdown,
153
170
  {
154
- key: i,
171
+ key: i2,
155
172
  components: {
156
- p: (props2) => /* @__PURE__ */ React.createElement(ThComponent, { align: align2[i], ...props2 })
173
+ p: (props2) => /* @__PURE__ */ React.createElement(TdComponent2, { align: align2[i2], ...props2 })
157
174
  },
158
175
  content: c.value
159
176
  }
160
177
  );
161
- }))), /* @__PURE__ */ React.createElement("tbody", null, rows2.map((row, i) => {
162
- var _a2;
163
- return /* @__PURE__ */ React.createElement(TrComponent2, { key: i }, (_a2 = row == null ? void 0 : row.tableCells) == null ? void 0 : _a2.map((c, i2) => {
164
- return /* @__PURE__ */ React.createElement(
165
- StaticTinaMarkdown,
166
- {
167
- key: i2,
168
- components: {
169
- p: (props2) => /* @__PURE__ */ React.createElement(TdComponent2, { align: align2[i2], ...props2 })
170
- },
171
- content: c.value
172
- }
173
- );
174
- }));
175
- })))
176
- );
177
- }
178
- const ComponentMissing = components["component_missing"];
179
- if (ComponentMissing) {
180
- return /* @__PURE__ */ React.createElement(ComponentMissing, { name: child.name });
181
- } else {
182
- return /* @__PURE__ */ React.createElement("span", null, `No component provided for ${child.name}`);
183
- }
178
+ }));
179
+ })))
180
+ );
184
181
  }
185
- case "table":
186
- const rows = child.children || [];
187
- const TableComponent = components["table"] || ((props2) => /* @__PURE__ */ React.createElement("table", { style: { border: "1px solid #EDECF3" }, ...props2 }));
188
- const TrComponent = components["tr"] || ((props2) => /* @__PURE__ */ React.createElement("tr", { ...props2 }));
189
- const TdComponent = components["td"] || ((props2) => /* @__PURE__ */ React.createElement(
190
- "td",
191
- {
192
- style: {
193
- textAlign: (props2 == null ? void 0 : props2.align) || "auto",
194
- border: "1px solid #EDECF3",
195
- padding: "0.25rem"
196
- },
197
- ...props2
198
- }
199
- ));
200
- const align = ((_g = child.props) == null ? void 0 : _g.align) || [];
201
- return (
202
- //@ts-ignore Same issue with TinaMarkdown
203
- /* @__PURE__ */ React.createElement(TableComponent, null, /* @__PURE__ */ React.createElement("tbody", null, rows.map((row, i) => {
204
- var _a2;
205
- return /* @__PURE__ */ React.createElement(TrComponent, { key: i }, (_a2 = row.children) == null ? void 0 : _a2.map((cell, i2) => {
206
- return /* @__PURE__ */ React.createElement(
207
- StaticTinaMarkdown,
208
- {
209
- key: i2,
210
- components: {
211
- p: (props2) => /* @__PURE__ */ React.createElement(TdComponent, { align: align[i2], ...props2 })
212
- },
213
- content: cell.children
214
- }
215
- );
216
- }));
217
- })))
218
- );
219
- case "maybe_mdx":
220
- return null;
221
- case "html":
222
- case "html_inline":
223
- if (components[child.type]) {
224
- const Component2 = components[child.type];
225
- return /* @__PURE__ */ React.createElement(Component2, { ...props });
182
+ const ComponentMissing = components["component_missing"];
183
+ if (ComponentMissing) {
184
+ return /* @__PURE__ */ React.createElement(ComponentMissing, { name: child.name });
185
+ } else {
186
+ return /* @__PURE__ */ React.createElement("span", null, `No component provided for ${child.name}`);
226
187
  }
227
- return child.value;
228
- case "invalid_markdown":
229
- return /* @__PURE__ */ React.createElement("pre", null, child.value);
230
- default:
231
- if (typeof child.text === "string") {
232
- return /* @__PURE__ */ React.createElement(Leaf, { components, ...child });
188
+ }
189
+ case "table":
190
+ const rows = child.children || [];
191
+ const TableComponent = components["table"] || ((props2) => /* @__PURE__ */ React.createElement("table", { style: { border: "1px solid #EDECF3" }, ...props2 }));
192
+ const TrComponent = components["tr"] || ((props2) => /* @__PURE__ */ React.createElement("tr", { ...props2 }));
193
+ const TdComponent = components["td"] || ((props2) => /* @__PURE__ */ React.createElement(
194
+ "td",
195
+ {
196
+ style: {
197
+ textAlign: (props2 == null ? void 0 : props2.align) || "auto",
198
+ border: "1px solid #EDECF3",
199
+ padding: "0.25rem"
200
+ },
201
+ ...props2
233
202
  }
234
- return null;
235
- }
236
- };
237
- exports2.StaticTinaMarkdown = StaticTinaMarkdown;
238
- Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
239
- });
203
+ ));
204
+ const align = ((_g = child.props) == null ? void 0 : _g.align) || [];
205
+ return (
206
+ //@ts-ignore Same issue with TinaMarkdown
207
+ /* @__PURE__ */ React.createElement(TableComponent, null, /* @__PURE__ */ React.createElement("tbody", null, rows.map((row, i) => {
208
+ var _a2;
209
+ return /* @__PURE__ */ React.createElement(TrComponent, { key: i }, (_a2 = row.children) == null ? void 0 : _a2.map((cell, i2) => {
210
+ return /* @__PURE__ */ React.createElement(
211
+ StaticTinaMarkdown,
212
+ {
213
+ key: i2,
214
+ components: {
215
+ p: (props2) => /* @__PURE__ */ React.createElement(TdComponent, { align: align[i2], ...props2 })
216
+ },
217
+ content: cell.children
218
+ }
219
+ );
220
+ }));
221
+ })))
222
+ );
223
+ case "maybe_mdx":
224
+ return null;
225
+ case "html":
226
+ case "html_inline":
227
+ if (components[child.type]) {
228
+ const Component2 = components[child.type];
229
+ return /* @__PURE__ */ React.createElement(Component2, { ...props });
230
+ }
231
+ return child.value;
232
+ case "invalid_markdown":
233
+ return /* @__PURE__ */ React.createElement("pre", null, child.value);
234
+ default:
235
+ if (typeof child.text === "string") {
236
+ return /* @__PURE__ */ React.createElement(Leaf, { components, ...child });
237
+ }
238
+ return null;
239
+ }
240
+ };
241
+ export {
242
+ StaticTinaMarkdown
243
+ };
@@ -9,7 +9,7 @@ import type { TinaCMSProviderDefaultProps } from './types/cms';
9
9
  export declare const TinaCMSProvider2: ({ query, documentCreatorCallback, formifyCallback, schema, ...props }: TinaCMSProviderDefaultProps) => React.JSX.Element;
10
10
  export type DocumentCreatorCallback = Parameters<typeof useDocumentCreatorPlugin>[0];
11
11
  /**
12
- * @deprecated v0.62.0: Use `staticRequest` and a "try catch" block instead. see https://tina.io/docs/features/data-fetching/#querying-tina-content-in-nextjs for more details
12
+ * @deprecated v0.62.0: Use `staticRequest` and a "try catch" block instead. see https://tina.io/docs/r/content-api-overview for more details
13
13
  *
14
14
  * A convenience function which makes a GraphQL request
15
15
  * to a local GraphQL server and ensures the response fits
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ interface ProgressBarProps {
3
+ /** Progress percentage (0-100) */
4
+ progress: number;
5
+ /** Additional CSS classes */
6
+ className?: string;
7
+ /** Color of the progress bar */
8
+ color?: 'blue' | 'green';
9
+ }
10
+ export declare const ProgressBar: React.FC<ProgressBarProps>;
11
+ export {};
@@ -1,2 +1,3 @@
1
1
  import * as React from 'react';
2
2
  export declare const ActiveFieldIndicator: () => React.JSX.Element;
3
+ export declare const HoveredFieldIndicator: () => React.JSX.Element;
@@ -7,6 +7,16 @@ interface MediaItemProps {
7
7
  onClick(_item: Media | false): void;
8
8
  active: boolean;
9
9
  }
10
+ export declare const checkerboardStyle: {
11
+ backgroundImage: string;
12
+ backgroundSize: string;
13
+ backgroundPosition: string;
14
+ };
15
+ export declare const smallCheckerboardStyle: {
16
+ backgroundImage: string;
17
+ backgroundSize: string;
18
+ backgroundPosition: string;
19
+ };
10
20
  export declare function ListMediaItem({ item, onClick, active }: MediaItemProps): React.JSX.Element;
11
21
  export declare function GridMediaItem({ item, active, onClick }: MediaItemProps): React.JSX.Element;
12
22
  export {};
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ declare const buttonVariants: (props?: {
4
+ variant?: "default" | "link" | "secondary" | "ghost" | "destructive" | "outline";
5
+ size?: "default" | "icon" | "sm" | "lg";
6
+ } & import("class-variance-authority/types").ClassProp) => string;
7
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
8
+ asChild?: boolean;
9
+ }
10
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
11
+ export { Button, buttonVariants };
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import { DayButton, DayPicker } from 'react-day-picker';
3
+ import { Button } from './button';
4
+ declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: React.ComponentProps<typeof DayPicker> & {
5
+ buttonVariant?: React.ComponentProps<typeof Button>['variant'];
6
+ }): React.JSX.Element;
7
+ declare function CalendarDayButton({ className, day, modifiers, ...props }: React.ComponentProps<typeof DayButton>): React.JSX.Element;
8
+ export { Calendar, CalendarDayButton };