tinacms 0.0.0-c72bb45-20241118014035 → 0.0.0-c76d7bc-20251219043354
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/README.md +1 -1
- package/dist/admin/api.d.ts +5 -1
- package/dist/admin/components/{Sidebar.d.ts → AdminNav.d.ts} +0 -3
- package/dist/admin/components/GetCollection.d.ts +2 -2
- package/dist/admin/components/Page.d.ts +3 -9
- package/dist/admin/components/ui/tooltip.d.ts +7 -0
- package/dist/admin/pages/CollectionCreatePage.d.ts +1 -1
- package/dist/admin/pages/CollectionListPage.d.ts +2 -2
- package/dist/admin/pages/DashboardPage.d.ts +0 -3
- package/dist/admin/pages/ScreenPage.d.ts +0 -3
- package/dist/auth/AuthModal.d.ts +1 -4
- package/dist/auth/TinaCloudProvider.d.ts +1 -2
- package/dist/cache/node-cache.d.ts +6 -2
- package/dist/client.js +243 -148
- package/dist/hooks/create-page-plugin.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +122265 -32471
- package/dist/internalClient/index.d.ts +28 -3
- package/dist/react.d.ts +14 -6
- package/dist/react.js +295 -184
- package/dist/rich-text/index.d.ts +6 -0
- package/dist/rich-text/index.js +234 -224
- package/dist/rich-text/prism.js +16 -18
- package/dist/rich-text/static.d.ts +154 -0
- package/dist/rich-text/{index.mjs → static.js} +99 -99
- package/dist/tina-cms.d.ts +1 -1
- package/dist/toolkit/components/ProgressBar.d.ts +11 -0
- package/dist/toolkit/components/active-field-indicator.d.ts +1 -0
- package/dist/toolkit/components/media/media-item.d.ts +11 -1
- package/dist/toolkit/components/media/media-manager.d.ts +1 -1
- package/dist/toolkit/components/ui/breadcrumb.d.ts +11 -0
- package/dist/toolkit/components/ui/button.d.ts +11 -0
- package/dist/toolkit/components/ui/calendar.d.ts +8 -0
- package/dist/toolkit/components/ui/date-time-picker.d.ts +111 -0
- package/dist/toolkit/components/ui/dropdown-menu.d.ts +25 -0
- package/dist/toolkit/components/ui/input.d.ts +3 -0
- package/dist/toolkit/components/ui/popover.d.ts +7 -0
- package/dist/toolkit/components/ui/select.d.ts +13 -0
- package/dist/toolkit/fields/components/color-picker/block-widget.d.ts +3 -0
- package/dist/toolkit/fields/components/color-picker/color-input.d.ts +35 -0
- package/dist/toolkit/fields/components/color-picker/color-picker.d.ts +6 -2
- package/dist/toolkit/fields/components/color-picker/color-utils.d.ts +37 -0
- package/dist/toolkit/fields/components/color-picker/sketch-widget.d.ts +3 -0
- package/dist/toolkit/fields/components/password-field.d.ts +1 -1
- package/dist/toolkit/fields/components/reference/components/button.d.ts +2 -2
- package/dist/toolkit/fields/components/reference/components/command.d.ts +21 -33
- package/dist/toolkit/fields/components/reference/components/popover.d.ts +1 -1
- package/dist/toolkit/fields/components/reference/model/reference-link-props.d.ts +2 -0
- package/dist/toolkit/fields/components/reference/reference-select.d.ts +2 -2
- package/dist/toolkit/fields/components/select.d.ts +2 -2
- package/dist/toolkit/fields/components/text-field.d.ts +1 -1
- package/dist/toolkit/fields/plugins/button-toggle-field-plugin.d.ts +2 -2
- package/dist/toolkit/fields/plugins/checkbox-group-field-plugin.d.ts +2 -2
- package/dist/toolkit/fields/plugins/color-field-plugin.d.ts +1 -0
- package/dist/toolkit/fields/plugins/date-field-plugin.d.ts +0 -2
- package/dist/toolkit/fields/plugins/dnd-kit-wrapper.d.ts +49 -0
- package/dist/toolkit/fields/plugins/group-field-plugin.d.ts +1 -1
- package/dist/toolkit/fields/plugins/group-list-field-plugin.d.ts +3 -1
- package/dist/toolkit/fields/plugins/list-field-meta.d.ts +1 -1
- package/dist/toolkit/fields/plugins/list-field-plugin.d.ts +3 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/index.d.ts +5 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/editor.d.ts +20 -18
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/blockquote-element.d.ts +14 -10
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/button.d.ts +5 -5
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block/code-block-element.d.ts +17 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block/error-message.d.ts +6 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block-combobox.d.ts +6 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block-toolbar-button.d.ts +6 -6
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-leaf.d.ts +2 -11
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-line-element.d.ts +14 -10
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-syntax-leaf.d.ts +2 -11
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/command.d.ts +112 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/dialog.d.ts +12 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/dropdown-menu.d.ts +10 -10
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/floating-toolbar.d.ts +2 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/hr-element.d.ts +3 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/hr-toolbar-button.d.ts +18 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/icons.d.ts +2 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/image-toolbar-button.d.ts +6 -6
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/indent-list-toolbar-button.d.ts +6 -7
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/inline-combobox.d.ts +1 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/input.d.ts +3 -3
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/link-element.d.ts +4 -11
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/link-floating-toolbar.d.ts +4 -5
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/link-toolbar-button.d.ts +4 -4
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/list-element.d.ts +28 -11
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/mark-toolbar-button.d.ts +4 -18
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/mermaid-element.d.ts +3 -10
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/mermaid-toolbar-button.d.ts +6 -8
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/paragraph-element.d.ts +15 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/popover.d.ts +7 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/quote-toolbar-button.d.ts +6 -6
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/raw-markdown-toolbar-button.d.ts +6 -6
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/resizable.d.ts +24 -21
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/separator.d.ts +2 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/slash-input-element.d.ts +15 -11
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table/block-selection.d.ts +6 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table/table-cell-element.d.ts +33 -0
- 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
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table/table-element.d.ts +20 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table/table-row-element.d.ts +15 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/toolbar.d.ts +7 -7
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/use-floating-toolbar-hook.d.ts +10 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/use-floating-toolbar-state.d.ts +22 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/hooks/use-create-editor.d.ts +6 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/index.d.ts +1 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-block.d.ts +1 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-lists.d.ts +1 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-marks.d.ts +1 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-utils.d.ts +3 -5
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/common.d.ts +11 -6
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/formatting.d.ts +18 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/index.d.ts +0 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-html-block/index.d.ts +6 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-img-plugin/index.d.ts +2 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-invalid-markdown-plugin/index.d.ts +5 -5
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-mdx-plugins/component.d.ts +7 -4
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-mdx-plugins/index.d.ts +3 -5
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/editor-plugins.d.ts +520 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/components.d.ts +262 -212
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/floating-toolbar-plugin.d.ts +1 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/toolbar/toolbar-overrides.d.ts +5 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/toolbar/toolbar-provider.d.ts +2 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/transforms/is-url.d.ts +1 -2
- package/dist/toolkit/fields/plugins/radio-group-field-plugin.d.ts +2 -2
- package/dist/toolkit/fields/plugins/select-field-plugin.d.ts +2 -2
- package/dist/toolkit/fields/plugins/toggle-field-plugin.d.ts +2 -2
- package/dist/toolkit/fields/plugins/wrap-field-with-meta.d.ts +6 -2
- package/dist/toolkit/form-builder/create-branch-modal.d.ts +13 -0
- package/dist/toolkit/form-builder/editorial-workflow-constants.d.ts +17 -0
- package/dist/toolkit/form-builder/fields-builder.d.ts +3 -2
- package/dist/toolkit/form-builder/form-builder.d.ts +9 -9
- package/dist/toolkit/form-builder/index.d.ts +1 -0
- package/dist/toolkit/forms/field.d.ts +6 -2
- package/dist/toolkit/forms/form.d.ts +22 -3
- package/dist/toolkit/git-client/git-client.d.ts +25 -2
- package/dist/toolkit/git-client/git-file.d.ts +18 -0
- package/dist/toolkit/git-client/git-media-store.d.ts +13 -0
- package/dist/toolkit/git-client/use-git-file.d.ts +4 -0
- package/dist/toolkit/icons/Tina.d.ts +0 -5
- package/dist/toolkit/icons/TinaExtended.d.ts +4 -0
- package/dist/toolkit/icons/index.d.ts +1 -0
- package/dist/toolkit/index.d.ts +1 -1
- package/dist/toolkit/plugin-branch-switcher/branch-button.d.ts +4 -1
- package/dist/toolkit/plugin-branch-switcher/branch-switcher-legacy.d.ts +1 -1
- package/dist/toolkit/plugin-branch-switcher/branch-switcher.d.ts +1 -1
- package/dist/toolkit/plugin-branch-switcher/index.d.ts +0 -1
- package/dist/toolkit/react-cloud-config/cloud-config-plugin.d.ts +3 -3
- package/dist/toolkit/react-modals/modal/modal-actions.d.ts +2 -1
- package/dist/toolkit/react-modals/modal/modal-header.d.ts +1 -1
- package/dist/toolkit/react-sidebar/components/NavMenuTrigger.d.ts +11 -0
- package/dist/toolkit/react-sidebar/components/VersionInfo.d.ts +2 -0
- package/dist/toolkit/react-sidebar/components/badge.d.ts +6 -0
- package/dist/toolkit/react-sidebar/components/callout.d.ts +5 -0
- package/dist/toolkit/react-sidebar/components/form-list.d.ts +1 -1
- package/dist/toolkit/react-sidebar/components/local-warning.d.ts +3 -1
- package/dist/toolkit/react-sidebar/components/nav-components.d.ts +11 -0
- package/dist/toolkit/react-sidebar/components/nav-context.d.ts +15 -0
- package/dist/toolkit/react-sidebar/components/nav.d.ts +6 -3
- package/dist/toolkit/react-sidebar/components/resize-handle.d.ts +0 -5
- package/dist/toolkit/react-sidebar/components/sidebar-body.d.ts +33 -11
- package/dist/toolkit/react-sidebar/components/sidebar-loading-placeholder.d.ts +2 -0
- package/dist/toolkit/react-sidebar/components/sidebar-no-forms-placeholder.d.ts +2 -0
- package/dist/toolkit/react-sidebar/components/sidebar.d.ts +0 -7
- package/dist/toolkit/react-sidebar/components/sync-status.d.ts +5 -8
- package/dist/toolkit/react-sidebar/index.d.ts +4 -1
- package/dist/toolkit/react-sidebar/sidebar.d.ts +2 -2
- package/dist/toolkit/styles/button.d.ts +2 -2
- package/dist/toolkit/styles/dropdown-button.d.ts +75 -0
- package/dist/toolkit/styles/index.d.ts +1 -0
- package/dist/toolkit/tina-cms.d.ts +3 -3
- package/dist/toolkit/tina-state.d.ts +56 -15
- package/dist/unifiedClient/index.d.ts +9 -2
- package/dist/utils/cn.d.ts +2 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +87 -114
- package/dist/admin/pages/IndexingPage.d.ts +0 -2
- package/dist/client.mjs +0 -109
- package/dist/index.mjs +0 -33901
- package/dist/node-cache-4c336858.mjs +0 -50
- package/dist/react.mjs +0 -234
- package/dist/rich-text/prism.mjs +0 -16
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block-element.d.ts +0 -11
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table-cell-element.d.ts +0 -27
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table-element.d.ts +0 -14
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table-row-element.d.ts +0 -13
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/with-correct-void-behavior.d.ts +0 -8
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-code-block/index.d.ts +0 -3
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-link-plugin/index.d.ts +0 -15
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/custom/mermaid-plugin.d.ts +0 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/create-soft-break-plugin.d.ts +0 -7
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/index.d.ts +0 -6
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/on-key-down-soft-break.d.ts +0 -5
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/types.d.ts +0 -11
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/code-block/index.d.ts +0 -11
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/transforms/insert-empty-block.d.ts +0 -2
- package/dist/toolkit/plugin-branch-switcher/branch-banner.d.ts +0 -2
- package/dist/toolkit/react-datetime/DateTime.d.ts +0 -135
- package/dist/toolkit/react-sidebar/components/no-forms-placeholder.d.ts +0 -8
package/package.json
CHANGED
|
@@ -1,39 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tinacms",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"typings": "dist/index.d.ts",
|
|
5
|
+
"version": "0.0.0-c76d7bc-20251219043354",
|
|
4
6
|
"main": "dist/index.js",
|
|
5
|
-
"module": "./dist/index.
|
|
7
|
+
"module": "./dist/index.js",
|
|
6
8
|
"exports": {
|
|
7
|
-
".":
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"./dist/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"require": "./dist/client.js"
|
|
16
|
-
},
|
|
17
|
-
"./dist/edit-state": {
|
|
18
|
-
"types": "./dist/edit-state.d.ts",
|
|
19
|
-
"import": "./dist/edit-state.mjs",
|
|
20
|
-
"require": "./dist/edit-state.js"
|
|
21
|
-
},
|
|
22
|
-
"./dist/react": {
|
|
23
|
-
"types": "./dist/react.d.ts",
|
|
24
|
-
"import": "./dist/react.mjs",
|
|
25
|
-
"require": "./dist/react.js"
|
|
26
|
-
},
|
|
27
|
-
"./dist/rich-text": {
|
|
28
|
-
"types": "./dist/rich-text/index.d.ts",
|
|
29
|
-
"import": "./dist/rich-text/index.mjs",
|
|
30
|
-
"require": "./dist/rich-text/index.js"
|
|
31
|
-
},
|
|
32
|
-
"./dist/rich-text/prism": {
|
|
33
|
-
"types": "./dist/rich-text/prism.d.ts",
|
|
34
|
-
"import": "./dist/rich-text/prism.mjs",
|
|
35
|
-
"require": "./dist/rich-text/prism.js"
|
|
36
|
-
}
|
|
9
|
+
".": "./dist/index.js",
|
|
10
|
+
"./dist/client": "./dist/client.js",
|
|
11
|
+
"./dist/edit-state": "./dist/edit-state.js",
|
|
12
|
+
"./react": "./dist/react.js",
|
|
13
|
+
"./dist/react": "./dist/react.js",
|
|
14
|
+
"./dist/rich-text": "./dist/rich-text/index.js",
|
|
15
|
+
"./dist/rich-text/static": "./dist/rich-text/static.js",
|
|
16
|
+
"./dist/rich-text/prism": "./dist/rich-text/prism.js"
|
|
37
17
|
},
|
|
38
18
|
"files": [
|
|
39
19
|
"dist"
|
|
@@ -42,129 +22,125 @@
|
|
|
42
22
|
"entryPoints": [
|
|
43
23
|
"src/index.ts",
|
|
44
24
|
"src/rich-text/index.tsx",
|
|
25
|
+
"src/rich-text/static.tsx",
|
|
45
26
|
"src/rich-text/prism.tsx",
|
|
46
27
|
"src/react.tsx",
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"rollupOptions": {
|
|
51
|
-
"external": [
|
|
52
|
-
"crypto",
|
|
53
|
-
"fs",
|
|
54
|
-
"path",
|
|
55
|
-
"os"
|
|
56
|
-
]
|
|
28
|
+
{
|
|
29
|
+
"name": "src/client.ts",
|
|
30
|
+
"target": "node"
|
|
57
31
|
}
|
|
58
|
-
|
|
32
|
+
]
|
|
59
33
|
},
|
|
60
|
-
"typings": "dist/index.d.ts",
|
|
61
34
|
"license": "Apache-2.0",
|
|
62
35
|
"dependencies": {
|
|
63
|
-
"@ariakit/react": "^0.4.
|
|
64
|
-
"@
|
|
36
|
+
"@ariakit/react": "^0.4.15",
|
|
37
|
+
"@dnd-kit/core": "^6.1.0",
|
|
38
|
+
"@dnd-kit/sortable": "^8.0.0",
|
|
39
|
+
"@dnd-kit/utilities": "^3.2.2",
|
|
40
|
+
"@floating-ui/dom": "^1.6.13",
|
|
65
41
|
"@floating-ui/react-dom": "^2.1.2",
|
|
66
|
-
"@graphql-inspector/core": "^6.2.
|
|
42
|
+
"@graphql-inspector/core": "^6.2.1",
|
|
67
43
|
"@headlessui/react": "2.1.8",
|
|
68
44
|
"@heroicons/react": "^1.0.6",
|
|
69
|
-
"@monaco-editor/react": "4.
|
|
70
|
-
"@radix-ui/react-checkbox": "^1.1.
|
|
71
|
-
"@radix-ui/react-dialog": "^1.1.
|
|
72
|
-
"@radix-ui/react-dropdown-menu": "^2.1.
|
|
73
|
-
"@radix-ui/react-popover": "^1.1.
|
|
74
|
-
"@radix-ui/react-
|
|
75
|
-
"@radix-ui/react-
|
|
76
|
-
"@radix-ui/react-
|
|
77
|
-
"@radix-ui/react-
|
|
45
|
+
"@monaco-editor/react": "4.7.0-rc.0",
|
|
46
|
+
"@radix-ui/react-checkbox": "^1.1.4",
|
|
47
|
+
"@radix-ui/react-dialog": "^1.1.6",
|
|
48
|
+
"@radix-ui/react-dropdown-menu": "^2.1.6",
|
|
49
|
+
"@radix-ui/react-popover": "^1.1.15",
|
|
50
|
+
"@radix-ui/react-select": "^2.2.6",
|
|
51
|
+
"@radix-ui/react-separator": "^1.1.2",
|
|
52
|
+
"@radix-ui/react-slot": "^1.1.2",
|
|
53
|
+
"@radix-ui/react-toolbar": "^1.1.2",
|
|
54
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
78
55
|
"@react-hook/window-size": "^3.1.1",
|
|
79
|
-
"@udecode/
|
|
80
|
-
"@udecode/
|
|
81
|
-
"@udecode/plate
|
|
82
|
-
"@udecode/plate-
|
|
83
|
-
"@udecode/plate-
|
|
84
|
-
"@udecode/plate-
|
|
85
|
-
"@udecode/plate-
|
|
86
|
-
"@udecode/plate-
|
|
87
|
-
"@udecode/plate-
|
|
88
|
-
"@udecode/plate-
|
|
89
|
-
"@udecode/plate-
|
|
90
|
-
"@udecode/plate-
|
|
91
|
-
"@udecode/plate-
|
|
92
|
-
"@udecode/plate-
|
|
93
|
-
"@udecode/plate-
|
|
94
|
-
"@udecode/plate-
|
|
95
|
-
"
|
|
56
|
+
"@udecode/cmdk": "^0.2.1",
|
|
57
|
+
"@udecode/cn": "^48.0.3",
|
|
58
|
+
"@udecode/plate": "^48.0.3",
|
|
59
|
+
"@udecode/plate-autoformat": "^48.0.0",
|
|
60
|
+
"@udecode/plate-basic-marks": "^48.0.0",
|
|
61
|
+
"@udecode/plate-block-quote": "^48",
|
|
62
|
+
"@udecode/plate-break": "^48",
|
|
63
|
+
"@udecode/plate-code-block": "^48.0.0",
|
|
64
|
+
"@udecode/plate-combobox": "^48",
|
|
65
|
+
"@udecode/plate-dnd": "^48.0.0",
|
|
66
|
+
"@udecode/plate-floating": "^48.0.0",
|
|
67
|
+
"@udecode/plate-heading": "^48",
|
|
68
|
+
"@udecode/plate-horizontal-rule": "^48",
|
|
69
|
+
"@udecode/plate-indent-list": "^48.0.0",
|
|
70
|
+
"@udecode/plate-link": "^48.0.0",
|
|
71
|
+
"@udecode/plate-list": "^48.0.0",
|
|
72
|
+
"@udecode/plate-node-id": "^48.0.0",
|
|
73
|
+
"@udecode/plate-reset-node": "^48",
|
|
74
|
+
"@udecode/plate-resizable": "^48",
|
|
75
|
+
"@udecode/plate-selection": "^48.0.0",
|
|
76
|
+
"@udecode/plate-slash-command": "^48.0.0",
|
|
77
|
+
"@udecode/plate-table": "^48.0.0",
|
|
78
|
+
"@udecode/plate-trailing-block": "^48.0.0",
|
|
79
|
+
"add": "^2.0.6",
|
|
80
|
+
"async-lock": "^1.4.1",
|
|
81
|
+
"class-variance-authority": "^0.7.1",
|
|
96
82
|
"clsx": "^2.1.1",
|
|
97
83
|
"cmdk": "^1.0.4",
|
|
98
84
|
"color-string": "^1.9.1",
|
|
99
85
|
"crypto-js": "^4.2.0",
|
|
100
86
|
"date-fns": "2.30.0",
|
|
101
|
-
"
|
|
87
|
+
"es-toolkit": "^1.42.0",
|
|
102
88
|
"final-form": "4.20.10",
|
|
103
89
|
"final-form-arrays": "^3.1.0",
|
|
104
90
|
"final-form-set-field-data": "^1.0.2",
|
|
105
91
|
"graphql": "15.8.0",
|
|
106
92
|
"graphql-tag": "^2.12.6",
|
|
107
93
|
"is-hotkey": "^0.2.0",
|
|
108
|
-
"lodash.get": "^4.4.2",
|
|
109
|
-
"lodash.set": "^4.3.2",
|
|
110
94
|
"lucide-react": "^0.424.0",
|
|
111
95
|
"mermaid": "9.3.0",
|
|
112
96
|
"moment": "2.29.4",
|
|
97
|
+
"moment-timezone": "^0.6.0",
|
|
113
98
|
"monaco-editor": "0.31.0",
|
|
114
|
-
"prism-react-renderer": "^2.4.
|
|
99
|
+
"prism-react-renderer": "^2.4.1",
|
|
115
100
|
"prop-types": "15.7.2",
|
|
116
|
-
"react-
|
|
117
|
-
"react-
|
|
118
|
-
"react-
|
|
101
|
+
"react-colorful": "^5.6.1",
|
|
102
|
+
"react-datetime": "^3.3.1",
|
|
103
|
+
"react-day-picker": "^9.11.1",
|
|
119
104
|
"react-dropzone": "14.2.3",
|
|
120
105
|
"react-final-form": "^6.5.9",
|
|
121
|
-
"react-icons": "^5.
|
|
122
|
-
"react-onclickoutside": "^6.13.1",
|
|
106
|
+
"react-icons": "^5.4.0",
|
|
123
107
|
"react-router-dom": "6.3.0",
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"slate-hyperscript": "^0.100.0",
|
|
127
|
-
"slate-react": "^0.107.1",
|
|
128
|
-
"tailwind-merge": "^2.5.4",
|
|
108
|
+
"react-use": "^17.6.0",
|
|
109
|
+
"tailwind-merge": "^2.6.0",
|
|
129
110
|
"webfontloader": "1.6.28",
|
|
130
|
-
"yup": "^1.
|
|
131
|
-
"zod": "^3.
|
|
132
|
-
"@tinacms/
|
|
133
|
-
"@tinacms/
|
|
134
|
-
"@tinacms/search": "
|
|
111
|
+
"yup": "^1.6.1",
|
|
112
|
+
"zod": "^3.24.2",
|
|
113
|
+
"@tinacms/schema-tools": "2.1.0",
|
|
114
|
+
"@tinacms/mdx": "2.0.1",
|
|
115
|
+
"@tinacms/search": "1.1.7"
|
|
135
116
|
},
|
|
136
117
|
"devDependencies": {
|
|
137
|
-
"@graphql-tools/utils": "^10.
|
|
118
|
+
"@graphql-tools/utils": "^10.8.1",
|
|
138
119
|
"@testing-library/dom": "^10.4.0",
|
|
139
|
-
"@testing-library/jest-dom": "^6.
|
|
140
|
-
"@testing-library/react": "^16.0
|
|
141
|
-
"@testing-library/user-event": "^14.
|
|
120
|
+
"@testing-library/jest-dom": "^6.7.0",
|
|
121
|
+
"@testing-library/react": "^16.2.0",
|
|
122
|
+
"@testing-library/user-event": "^14.6.1",
|
|
142
123
|
"@types/atob": "^2.1.4",
|
|
143
124
|
"@types/codemirror": "^5.60.15",
|
|
144
125
|
"@types/color-string": "^1.5.5",
|
|
145
|
-
"@types/
|
|
146
|
-
"@types/
|
|
147
|
-
"@types/
|
|
148
|
-
"@types/
|
|
149
|
-
"@types/react": "^18.3.12",
|
|
150
|
-
"@types/react-beautiful-dnd": "^13.1.8",
|
|
151
|
-
"@types/react-color": "^3.0.12",
|
|
152
|
-
"@types/react-dom": "^18.3.1",
|
|
153
|
-
"@types/yup": "^0.32.0",
|
|
126
|
+
"@types/node": "^22.13.1",
|
|
127
|
+
"@types/prop-types": "^15.7.14",
|
|
128
|
+
"@types/react": "^18.3.18",
|
|
129
|
+
"@types/react-dom": "^18.3.5",
|
|
154
130
|
"happy-dom": "15.10.2",
|
|
155
131
|
"identity-obj-proxy": "^3.0.0",
|
|
156
|
-
"isomorphic-fetch": "^3.0.0",
|
|
157
132
|
"jest-file-snapshot": "^0.7.0",
|
|
158
|
-
"
|
|
133
|
+
"lowlight": "^3.3.0",
|
|
134
|
+
"next": "14.2.35",
|
|
159
135
|
"react": "^18.3.1",
|
|
160
136
|
"react-dom": "^18.3.1",
|
|
161
137
|
"react-is": "^18.3.1",
|
|
162
138
|
"tsc-alias": "^1.8.10",
|
|
163
139
|
"tslib": "^2.8.1",
|
|
164
|
-
"typescript": "^5.
|
|
165
|
-
"vite": "^5.4.
|
|
166
|
-
"vitest": "^2.1.
|
|
167
|
-
"@tinacms/scripts": "
|
|
140
|
+
"typescript": "^5.7.3",
|
|
141
|
+
"vite": "^5.4.14",
|
|
142
|
+
"vitest": "^2.1.9",
|
|
143
|
+
"@tinacms/scripts": "1.4.2"
|
|
168
144
|
},
|
|
169
145
|
"peerDependencies": {
|
|
170
146
|
"react": ">=16.14.0",
|
|
@@ -177,9 +153,6 @@
|
|
|
177
153
|
"url": "https://github.com/tinacms/tinacms.git",
|
|
178
154
|
"directory": "packages/tinacms"
|
|
179
155
|
},
|
|
180
|
-
"overrides": {
|
|
181
|
-
"dompurify": "2.5.7"
|
|
182
|
-
},
|
|
183
156
|
"scripts": {
|
|
184
157
|
"types": "pnpm tsc && pnpm tsc-alias",
|
|
185
158
|
"build": "tinacms-scripts build",
|
package/dist/client.mjs
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import fetchPonyfill from "fetch-ponyfill";
|
|
2
|
-
const { fetch: fetchPonyfillFN, Headers: HeadersPonyfill } = fetchPonyfill();
|
|
3
|
-
const fetchDefined = typeof fetch === "undefined" ? fetchPonyfillFN : fetch;
|
|
4
|
-
const HeadersDefined = typeof Headers === "undefined" ? HeadersPonyfill : Headers;
|
|
5
|
-
const TINA_HOST = "content.tinajs.io";
|
|
6
|
-
class TinaClient {
|
|
7
|
-
constructor({
|
|
8
|
-
token,
|
|
9
|
-
url,
|
|
10
|
-
queries,
|
|
11
|
-
errorPolicy,
|
|
12
|
-
cacheDir
|
|
13
|
-
}) {
|
|
14
|
-
this.initialized = false;
|
|
15
|
-
this.apiUrl = url;
|
|
16
|
-
this.readonlyToken = token == null ? void 0 : token.trim();
|
|
17
|
-
this.queries = queries(this);
|
|
18
|
-
this.errorPolicy = errorPolicy || "throw";
|
|
19
|
-
this.cacheDir = cacheDir || "";
|
|
20
|
-
}
|
|
21
|
-
async init() {
|
|
22
|
-
if (this.initialized) {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
try {
|
|
26
|
-
if (this.cacheDir && typeof window === "undefined" && typeof require !== "undefined") {
|
|
27
|
-
const { NodeCache } = await import("./node-cache-4c336858.mjs");
|
|
28
|
-
this.cache = await NodeCache(this.cacheDir);
|
|
29
|
-
}
|
|
30
|
-
} catch (e) {
|
|
31
|
-
console.error(e);
|
|
32
|
-
}
|
|
33
|
-
this.initialized = true;
|
|
34
|
-
}
|
|
35
|
-
async request({ errorPolicy, ...args }, options) {
|
|
36
|
-
var _a;
|
|
37
|
-
await this.init();
|
|
38
|
-
const errorPolicyDefined = errorPolicy || this.errorPolicy;
|
|
39
|
-
const headers = new HeadersDefined();
|
|
40
|
-
if (this.readonlyToken) {
|
|
41
|
-
headers.append("X-API-KEY", this.readonlyToken);
|
|
42
|
-
}
|
|
43
|
-
headers.append("Content-Type", "application/json");
|
|
44
|
-
if (options == null ? void 0 : options.fetchOptions) {
|
|
45
|
-
if ((_a = options == null ? void 0 : options.fetchOptions) == null ? void 0 : _a.headers) {
|
|
46
|
-
Object.entries(options.fetchOptions.headers).forEach(([key2, value]) => {
|
|
47
|
-
headers.append(key2, value);
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
const { headers: _, ...providedFetchOptions } = (options == null ? void 0 : options.fetchOptions) || {};
|
|
52
|
-
const bodyString = JSON.stringify({
|
|
53
|
-
query: args.query,
|
|
54
|
-
variables: (args == null ? void 0 : args.variables) || {}
|
|
55
|
-
});
|
|
56
|
-
const url = (args == null ? void 0 : args.url) || this.apiUrl;
|
|
57
|
-
const optionsObject = {
|
|
58
|
-
method: "POST",
|
|
59
|
-
headers,
|
|
60
|
-
body: bodyString,
|
|
61
|
-
redirect: "follow",
|
|
62
|
-
...providedFetchOptions
|
|
63
|
-
};
|
|
64
|
-
let key = "";
|
|
65
|
-
if (this.cache) {
|
|
66
|
-
key = this.cache.makeKey(bodyString);
|
|
67
|
-
const value = await this.cache.get(key);
|
|
68
|
-
if (value) {
|
|
69
|
-
return value;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
const res = await fetchDefined(url, optionsObject);
|
|
73
|
-
if (!res.ok) {
|
|
74
|
-
let additionalInfo = "";
|
|
75
|
-
if (res.status === 401) {
|
|
76
|
-
additionalInfo = "Please check that your client ID, URL and read only token are configured properly.";
|
|
77
|
-
}
|
|
78
|
-
throw new Error(
|
|
79
|
-
`Server responded with status code ${res.status}, ${res.statusText}. ${additionalInfo ? additionalInfo : ""} Please see our FAQ for more information: https://tina.io/docs/errors/faq/`
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
const json = await res.json();
|
|
83
|
-
if (json.errors && errorPolicyDefined === "throw") {
|
|
84
|
-
throw new Error(
|
|
85
|
-
`Unable to fetch, please see our FAQ for more information: https://tina.io/docs/errors/faq/
|
|
86
|
-
Errors:
|
|
87
|
-
${json.errors.map((error) => error.message).join("\n")}`
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
const result = {
|
|
91
|
-
data: json == null ? void 0 : json.data,
|
|
92
|
-
errors: (json == null ? void 0 : json.errors) || null,
|
|
93
|
-
query: args.query
|
|
94
|
-
};
|
|
95
|
-
if (this.cache) {
|
|
96
|
-
await this.cache.set(key, result);
|
|
97
|
-
}
|
|
98
|
-
return result;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
function createClient(args) {
|
|
102
|
-
const client = new TinaClient(args);
|
|
103
|
-
return client;
|
|
104
|
-
}
|
|
105
|
-
export {
|
|
106
|
-
TINA_HOST,
|
|
107
|
-
TinaClient,
|
|
108
|
-
createClient
|
|
109
|
-
};
|