prosekit-registry 0.0.1
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/LICENSE +21 -0
- package/README.md +241 -0
- package/dist/r/lit-example-minimal.json +36 -0
- package/dist/r/lit-example-slash-menu.json +55 -0
- package/dist/r/lit-example-table.json +56 -0
- package/dist/r/lit-example-toolbar.json +60 -0
- package/dist/r/lit-sample-sample-doc-table.json +29 -0
- package/dist/r/lit-sample-sample-uploader.json +29 -0
- package/dist/r/lit-ui-button.json +36 -0
- package/dist/r/lit-ui-editor-context.json +30 -0
- package/dist/r/lit-ui-image-upload-popover.json +42 -0
- package/dist/r/lit-ui-slash-menu.json +56 -0
- package/dist/r/lit-ui-table-handle.json +47 -0
- package/dist/r/lit-ui-toolbar.json +55 -0
- package/dist/r/preact-example-block-handle.json +60 -0
- package/dist/r/preact-example-blockquote.json +53 -0
- package/dist/r/preact-example-bold.json +56 -0
- package/dist/r/preact-example-change-tracking.json +50 -0
- package/dist/r/preact-example-code-block-themes.json +66 -0
- package/dist/r/preact-example-code-block.json +60 -0
- package/dist/r/preact-example-code.json +56 -0
- package/dist/r/preact-example-drop-cursor.json +48 -0
- package/dist/r/preact-example-emoji-rules.json +50 -0
- package/dist/r/preact-example-full.json +106 -0
- package/dist/r/preact-example-gap-cursor.json +48 -0
- package/dist/r/preact-example-hard-break.json +59 -0
- package/dist/r/preact-example-heading.json +56 -0
- package/dist/r/preact-example-horizontal-rule.json +53 -0
- package/dist/r/preact-example-image-view.json +55 -0
- package/dist/r/preact-example-inline-menu.json +54 -0
- package/dist/r/preact-example-italic.json +56 -0
- package/dist/r/preact-example-keymap.json +63 -0
- package/dist/r/preact-example-link-mark-view.json +55 -0
- package/dist/r/preact-example-link.json +54 -0
- package/dist/r/preact-example-list-custom-checkbox.json +63 -0
- package/dist/r/preact-example-list.json +56 -0
- package/dist/r/preact-example-loro.json +62 -0
- package/dist/r/preact-example-mark-rule.json +50 -0
- package/dist/r/preact-example-minimal.json +36 -0
- package/dist/r/preact-example-page.json +49 -0
- package/dist/r/preact-example-placeholder.json +43 -0
- package/dist/r/preact-example-readonly.json +66 -0
- package/dist/r/preact-example-rtl.json +74 -0
- package/dist/r/preact-example-save-html.json +36 -0
- package/dist/r/preact-example-save-json.json +36 -0
- package/dist/r/preact-example-save-markdown.json +50 -0
- package/dist/r/preact-example-search.json +54 -0
- package/dist/r/preact-example-slash-menu.json +51 -0
- package/dist/r/preact-example-strike.json +59 -0
- package/dist/r/preact-example-table.json +52 -0
- package/dist/r/preact-example-temml.json +51 -0
- package/dist/r/preact-example-text-align.json +59 -0
- package/dist/r/preact-example-text-color.json +59 -0
- package/dist/r/preact-example-toolbar.json +56 -0
- package/dist/r/preact-example-typography.json +59 -0
- package/dist/r/preact-example-underline.json +56 -0
- package/dist/r/preact-example-unmount.json +58 -0
- package/dist/r/preact-example-user-menu-dynamic.json +67 -0
- package/dist/r/preact-example-user-menu.json +59 -0
- package/dist/r/preact-example-view-adapter.json +58 -0
- package/dist/r/preact-example-word-counter.json +52 -0
- package/dist/r/preact-example-yjs.json +62 -0
- package/dist/r/preact-sample-define-atom-block.json +29 -0
- package/dist/r/preact-sample-katex.json +29 -0
- package/dist/r/preact-sample-sample-doc-block-handle.json +29 -0
- package/dist/r/preact-sample-sample-doc-bold.json +29 -0
- package/dist/r/preact-sample-sample-doc-code-block.json +29 -0
- package/dist/r/preact-sample-sample-doc-code.json +29 -0
- package/dist/r/preact-sample-sample-doc-drop-cursor.json +29 -0
- package/dist/r/preact-sample-sample-doc-full.json +29 -0
- package/dist/r/preact-sample-sample-doc-gap-cursor.json +29 -0
- package/dist/r/preact-sample-sample-doc-hard-break.json +29 -0
- package/dist/r/preact-sample-sample-doc-heading.json +29 -0
- package/dist/r/preact-sample-sample-doc-image.json +29 -0
- package/dist/r/preact-sample-sample-doc-inline-menu.json +29 -0
- package/dist/r/preact-sample-sample-doc-italic.json +29 -0
- package/dist/r/preact-sample-sample-doc-link-mark-view.json +29 -0
- package/dist/r/preact-sample-sample-doc-link.json +29 -0
- package/dist/r/preact-sample-sample-doc-list-custom-checkbox.json +29 -0
- package/dist/r/preact-sample-sample-doc-list.json +29 -0
- package/dist/r/preact-sample-sample-doc-page.json +29 -0
- package/dist/r/preact-sample-sample-doc-readonly.json +29 -0
- package/dist/r/preact-sample-sample-doc-rtl.json +29 -0
- package/dist/r/preact-sample-sample-doc-search.json +29 -0
- package/dist/r/preact-sample-sample-doc-strike.json +29 -0
- package/dist/r/preact-sample-sample-doc-table.json +29 -0
- package/dist/r/preact-sample-sample-doc-tex.json +29 -0
- package/dist/r/preact-sample-sample-doc-text-align.json +29 -0
- package/dist/r/preact-sample-sample-doc-text-color.json +29 -0
- package/dist/r/preact-sample-sample-doc-typography.json +29 -0
- package/dist/r/preact-sample-sample-doc-underline.json +29 -0
- package/dist/r/preact-sample-sample-doc-view-adapter.json +29 -0
- package/dist/r/preact-sample-sample-doc-word-counter.json +29 -0
- package/dist/r/preact-sample-sample-query-users.json +32 -0
- package/dist/r/preact-sample-sample-tag-data.json +27 -0
- package/dist/r/preact-sample-sample-uploader.json +29 -0
- package/dist/r/preact-sample-sample-user-data.json +27 -0
- package/dist/r/preact-sample-temml.json +29 -0
- package/dist/r/preact-ui-block-handle.json +41 -0
- package/dist/r/preact-ui-button.json +36 -0
- package/dist/r/preact-ui-code-block-view.json +36 -0
- package/dist/r/preact-ui-drop-indicator.json +36 -0
- package/dist/r/preact-ui-image-upload-popover.json +42 -0
- package/dist/r/preact-ui-image-view.json +41 -0
- package/dist/r/preact-ui-inline-menu.json +47 -0
- package/dist/r/preact-ui-search.json +47 -0
- package/dist/r/preact-ui-slash-menu.json +50 -0
- package/dist/r/preact-ui-table-handle.json +41 -0
- package/dist/r/preact-ui-tag-menu.json +36 -0
- package/dist/r/preact-ui-toolbar.json +51 -0
- package/dist/r/preact-ui-user-menu.json +36 -0
- package/dist/r/preact-ui-word-counter.json +36 -0
- package/dist/r/react-example-block-handle.json +60 -0
- package/dist/r/react-example-blockquote.json +53 -0
- package/dist/r/react-example-bold.json +56 -0
- package/dist/r/react-example-change-tracking.json +50 -0
- package/dist/r/react-example-code-block-themes.json +66 -0
- package/dist/r/react-example-code-block.json +60 -0
- package/dist/r/react-example-code.json +56 -0
- package/dist/r/react-example-drop-cursor.json +48 -0
- package/dist/r/react-example-emoji-rules.json +50 -0
- package/dist/r/react-example-full.json +113 -0
- package/dist/r/react-example-gap-cursor.json +48 -0
- package/dist/r/react-example-hard-break.json +59 -0
- package/dist/r/react-example-heading.json +56 -0
- package/dist/r/react-example-horizontal-rule.json +53 -0
- package/dist/r/react-example-image-view.json +55 -0
- package/dist/r/react-example-inline-menu.json +54 -0
- package/dist/r/react-example-italic.json +56 -0
- package/dist/r/react-example-keymap.json +63 -0
- package/dist/r/react-example-link-mark-view.json +55 -0
- package/dist/r/react-example-link.json +54 -0
- package/dist/r/react-example-list-custom-checkbox.json +63 -0
- package/dist/r/react-example-list.json +56 -0
- package/dist/r/react-example-loro.json +62 -0
- package/dist/r/react-example-mark-rule.json +50 -0
- package/dist/r/react-example-minimal.json +36 -0
- package/dist/r/react-example-notion.json +166 -0
- package/dist/r/react-example-page.json +62 -0
- package/dist/r/react-example-placeholder.json +43 -0
- package/dist/r/react-example-readonly.json +66 -0
- package/dist/r/react-example-rtl.json +74 -0
- package/dist/r/react-example-save-html.json +36 -0
- package/dist/r/react-example-save-json.json +36 -0
- package/dist/r/react-example-save-markdown.json +50 -0
- package/dist/r/react-example-search.json +54 -0
- package/dist/r/react-example-slash-menu.json +51 -0
- package/dist/r/react-example-strike.json +59 -0
- package/dist/r/react-example-table.json +52 -0
- package/dist/r/react-example-temml.json +51 -0
- package/dist/r/react-example-text-align.json +59 -0
- package/dist/r/react-example-text-color.json +59 -0
- package/dist/r/react-example-toolbar.json +56 -0
- package/dist/r/react-example-tweet.json +63 -0
- package/dist/r/react-example-typography.json +59 -0
- package/dist/r/react-example-underline.json +56 -0
- package/dist/r/react-example-unmount.json +58 -0
- package/dist/r/react-example-user-menu-dynamic.json +67 -0
- package/dist/r/react-example-user-menu.json +59 -0
- package/dist/r/react-example-view-adapter.json +58 -0
- package/dist/r/react-example-word-counter.json +52 -0
- package/dist/r/react-example-yjs.json +62 -0
- package/dist/r/react-sample-define-atom-block.json +29 -0
- package/dist/r/react-sample-katex.json +29 -0
- package/dist/r/react-sample-sample-doc-block-handle.json +29 -0
- package/dist/r/react-sample-sample-doc-bold.json +29 -0
- package/dist/r/react-sample-sample-doc-code-block.json +29 -0
- package/dist/r/react-sample-sample-doc-code.json +29 -0
- package/dist/r/react-sample-sample-doc-drop-cursor.json +29 -0
- package/dist/r/react-sample-sample-doc-full.json +29 -0
- package/dist/r/react-sample-sample-doc-gap-cursor.json +29 -0
- package/dist/r/react-sample-sample-doc-hard-break.json +29 -0
- package/dist/r/react-sample-sample-doc-heading.json +29 -0
- package/dist/r/react-sample-sample-doc-image.json +29 -0
- package/dist/r/react-sample-sample-doc-inline-menu.json +29 -0
- package/dist/r/react-sample-sample-doc-italic.json +29 -0
- package/dist/r/react-sample-sample-doc-link-mark-view.json +29 -0
- package/dist/r/react-sample-sample-doc-link.json +29 -0
- package/dist/r/react-sample-sample-doc-list-custom-checkbox.json +29 -0
- package/dist/r/react-sample-sample-doc-list.json +29 -0
- package/dist/r/react-sample-sample-doc-notion.json +29 -0
- package/dist/r/react-sample-sample-doc-page.json +29 -0
- package/dist/r/react-sample-sample-doc-readonly.json +29 -0
- package/dist/r/react-sample-sample-doc-rtl.json +29 -0
- package/dist/r/react-sample-sample-doc-search.json +29 -0
- package/dist/r/react-sample-sample-doc-strike.json +29 -0
- package/dist/r/react-sample-sample-doc-table.json +29 -0
- package/dist/r/react-sample-sample-doc-tex.json +29 -0
- package/dist/r/react-sample-sample-doc-text-align.json +29 -0
- package/dist/r/react-sample-sample-doc-text-color.json +29 -0
- package/dist/r/react-sample-sample-doc-tweet.json +29 -0
- package/dist/r/react-sample-sample-doc-typography.json +29 -0
- package/dist/r/react-sample-sample-doc-underline.json +29 -0
- package/dist/r/react-sample-sample-doc-view-adapter.json +29 -0
- package/dist/r/react-sample-sample-doc-word-counter.json +29 -0
- package/dist/r/react-sample-sample-query-users.json +32 -0
- package/dist/r/react-sample-sample-tag-data.json +27 -0
- package/dist/r/react-sample-sample-uploader.json +29 -0
- package/dist/r/react-sample-sample-user-data.json +27 -0
- package/dist/r/react-sample-temml.json +29 -0
- package/dist/r/react-ui-block-handle.json +41 -0
- package/dist/r/react-ui-button.json +36 -0
- package/dist/r/react-ui-code-block-view.json +36 -0
- package/dist/r/react-ui-drop-indicator.json +36 -0
- package/dist/r/react-ui-image-upload-popover.json +42 -0
- package/dist/r/react-ui-image-view.json +41 -0
- package/dist/r/react-ui-inline-menu.json +47 -0
- package/dist/r/react-ui-search.json +47 -0
- package/dist/r/react-ui-slash-menu.json +50 -0
- package/dist/r/react-ui-table-handle.json +41 -0
- package/dist/r/react-ui-tag-menu.json +36 -0
- package/dist/r/react-ui-toolbar.json +51 -0
- package/dist/r/react-ui-user-menu.json +36 -0
- package/dist/r/react-ui-word-counter.json +36 -0
- package/dist/r/registry.json +20642 -0
- package/dist/r/solid-example-block-handle.json +60 -0
- package/dist/r/solid-example-blockquote.json +53 -0
- package/dist/r/solid-example-bold.json +56 -0
- package/dist/r/solid-example-change-tracking.json +50 -0
- package/dist/r/solid-example-code-block-themes.json +66 -0
- package/dist/r/solid-example-code-block.json +60 -0
- package/dist/r/solid-example-code.json +56 -0
- package/dist/r/solid-example-drop-cursor.json +48 -0
- package/dist/r/solid-example-emoji-rules.json +50 -0
- package/dist/r/solid-example-full.json +106 -0
- package/dist/r/solid-example-gap-cursor.json +48 -0
- package/dist/r/solid-example-hard-break.json +59 -0
- package/dist/r/solid-example-heading.json +56 -0
- package/dist/r/solid-example-horizontal-rule.json +53 -0
- package/dist/r/solid-example-image-view.json +55 -0
- package/dist/r/solid-example-inline-menu.json +54 -0
- package/dist/r/solid-example-italic.json +56 -0
- package/dist/r/solid-example-keymap.json +63 -0
- package/dist/r/solid-example-link-mark-view.json +55 -0
- package/dist/r/solid-example-link.json +54 -0
- package/dist/r/solid-example-list-custom-checkbox.json +63 -0
- package/dist/r/solid-example-list.json +56 -0
- package/dist/r/solid-example-loro.json +62 -0
- package/dist/r/solid-example-mark-rule.json +50 -0
- package/dist/r/solid-example-minimal.json +36 -0
- package/dist/r/solid-example-placeholder.json +43 -0
- package/dist/r/solid-example-readonly.json +66 -0
- package/dist/r/solid-example-rtl.json +74 -0
- package/dist/r/solid-example-save-html.json +36 -0
- package/dist/r/solid-example-save-json.json +36 -0
- package/dist/r/solid-example-save-markdown.json +50 -0
- package/dist/r/solid-example-search.json +54 -0
- package/dist/r/solid-example-slash-menu.json +51 -0
- package/dist/r/solid-example-strike.json +59 -0
- package/dist/r/solid-example-table.json +52 -0
- package/dist/r/solid-example-temml.json +51 -0
- package/dist/r/solid-example-text-align.json +59 -0
- package/dist/r/solid-example-text-color.json +59 -0
- package/dist/r/solid-example-toolbar.json +56 -0
- package/dist/r/solid-example-typography.json +59 -0
- package/dist/r/solid-example-underline.json +56 -0
- package/dist/r/solid-example-unmount.json +58 -0
- package/dist/r/solid-example-user-menu-dynamic.json +67 -0
- package/dist/r/solid-example-user-menu.json +59 -0
- package/dist/r/solid-example-view-adapter.json +58 -0
- package/dist/r/solid-example-word-counter.json +52 -0
- package/dist/r/solid-example-yjs.json +62 -0
- package/dist/r/solid-sample-define-atom-block.json +29 -0
- package/dist/r/solid-sample-katex.json +29 -0
- package/dist/r/solid-sample-sample-doc-block-handle.json +29 -0
- package/dist/r/solid-sample-sample-doc-bold.json +29 -0
- package/dist/r/solid-sample-sample-doc-code-block.json +29 -0
- package/dist/r/solid-sample-sample-doc-code.json +29 -0
- package/dist/r/solid-sample-sample-doc-drop-cursor.json +29 -0
- package/dist/r/solid-sample-sample-doc-full.json +29 -0
- package/dist/r/solid-sample-sample-doc-gap-cursor.json +29 -0
- package/dist/r/solid-sample-sample-doc-hard-break.json +29 -0
- package/dist/r/solid-sample-sample-doc-heading.json +29 -0
- package/dist/r/solid-sample-sample-doc-image.json +29 -0
- package/dist/r/solid-sample-sample-doc-inline-menu.json +29 -0
- package/dist/r/solid-sample-sample-doc-italic.json +29 -0
- package/dist/r/solid-sample-sample-doc-link-mark-view.json +29 -0
- package/dist/r/solid-sample-sample-doc-link.json +29 -0
- package/dist/r/solid-sample-sample-doc-list-custom-checkbox.json +29 -0
- package/dist/r/solid-sample-sample-doc-list.json +29 -0
- package/dist/r/solid-sample-sample-doc-readonly.json +29 -0
- package/dist/r/solid-sample-sample-doc-rtl.json +29 -0
- package/dist/r/solid-sample-sample-doc-search.json +29 -0
- package/dist/r/solid-sample-sample-doc-strike.json +29 -0
- package/dist/r/solid-sample-sample-doc-table.json +29 -0
- package/dist/r/solid-sample-sample-doc-tex.json +29 -0
- package/dist/r/solid-sample-sample-doc-text-align.json +29 -0
- package/dist/r/solid-sample-sample-doc-text-color.json +29 -0
- package/dist/r/solid-sample-sample-doc-typography.json +29 -0
- package/dist/r/solid-sample-sample-doc-underline.json +29 -0
- package/dist/r/solid-sample-sample-doc-view-adapter.json +29 -0
- package/dist/r/solid-sample-sample-doc-word-counter.json +29 -0
- package/dist/r/solid-sample-sample-query-users.json +32 -0
- package/dist/r/solid-sample-sample-tag-data.json +27 -0
- package/dist/r/solid-sample-sample-uploader.json +29 -0
- package/dist/r/solid-sample-sample-user-data.json +27 -0
- package/dist/r/solid-sample-temml.json +29 -0
- package/dist/r/solid-ui-block-handle.json +41 -0
- package/dist/r/solid-ui-button.json +36 -0
- package/dist/r/solid-ui-code-block-view.json +36 -0
- package/dist/r/solid-ui-drop-indicator.json +36 -0
- package/dist/r/solid-ui-image-upload-popover.json +42 -0
- package/dist/r/solid-ui-image-view.json +41 -0
- package/dist/r/solid-ui-inline-menu.json +47 -0
- package/dist/r/solid-ui-search.json +47 -0
- package/dist/r/solid-ui-slash-menu.json +50 -0
- package/dist/r/solid-ui-table-handle.json +41 -0
- package/dist/r/solid-ui-tag-menu.json +36 -0
- package/dist/r/solid-ui-toolbar.json +51 -0
- package/dist/r/solid-ui-user-menu.json +36 -0
- package/dist/r/solid-ui-word-counter.json +36 -0
- package/dist/r/svelte-example-block-handle.json +60 -0
- package/dist/r/svelte-example-blockquote.json +53 -0
- package/dist/r/svelte-example-bold.json +56 -0
- package/dist/r/svelte-example-change-tracking.json +50 -0
- package/dist/r/svelte-example-code-block-themes.json +66 -0
- package/dist/r/svelte-example-code-block.json +60 -0
- package/dist/r/svelte-example-code.json +56 -0
- package/dist/r/svelte-example-drop-cursor.json +48 -0
- package/dist/r/svelte-example-emoji-rules.json +50 -0
- package/dist/r/svelte-example-full.json +106 -0
- package/dist/r/svelte-example-gap-cursor.json +48 -0
- package/dist/r/svelte-example-hard-break.json +59 -0
- package/dist/r/svelte-example-heading.json +56 -0
- package/dist/r/svelte-example-horizontal-rule.json +53 -0
- package/dist/r/svelte-example-image-view.json +55 -0
- package/dist/r/svelte-example-inline-menu.json +54 -0
- package/dist/r/svelte-example-italic.json +56 -0
- package/dist/r/svelte-example-katex.json +51 -0
- package/dist/r/svelte-example-keymap.json +56 -0
- package/dist/r/svelte-example-link-mark-view.json +55 -0
- package/dist/r/svelte-example-link.json +54 -0
- package/dist/r/svelte-example-list-custom-checkbox.json +63 -0
- package/dist/r/svelte-example-list.json +56 -0
- package/dist/r/svelte-example-loro.json +62 -0
- package/dist/r/svelte-example-mark-rule.json +50 -0
- package/dist/r/svelte-example-minimal.json +36 -0
- package/dist/r/svelte-example-page.json +62 -0
- package/dist/r/svelte-example-placeholder.json +43 -0
- package/dist/r/svelte-example-readonly.json +59 -0
- package/dist/r/svelte-example-rtl.json +74 -0
- package/dist/r/svelte-example-save-html.json +36 -0
- package/dist/r/svelte-example-save-json.json +36 -0
- package/dist/r/svelte-example-save-markdown.json +50 -0
- package/dist/r/svelte-example-search.json +54 -0
- package/dist/r/svelte-example-slash-menu.json +51 -0
- package/dist/r/svelte-example-strike.json +59 -0
- package/dist/r/svelte-example-table.json +52 -0
- package/dist/r/svelte-example-text-align.json +59 -0
- package/dist/r/svelte-example-text-color.json +59 -0
- package/dist/r/svelte-example-toolbar.json +56 -0
- package/dist/r/svelte-example-typography.json +59 -0
- package/dist/r/svelte-example-underline.json +56 -0
- package/dist/r/svelte-example-unmount.json +58 -0
- package/dist/r/svelte-example-user-menu-dynamic.json +67 -0
- package/dist/r/svelte-example-user-menu.json +59 -0
- package/dist/r/svelte-example-view-adapter.json +58 -0
- package/dist/r/svelte-example-word-counter.json +52 -0
- package/dist/r/svelte-example-yjs.json +62 -0
- package/dist/r/svelte-sample-define-atom-block.json +29 -0
- package/dist/r/svelte-sample-katex.json +29 -0
- package/dist/r/svelte-sample-sample-doc-block-handle.json +29 -0
- package/dist/r/svelte-sample-sample-doc-bold.json +29 -0
- package/dist/r/svelte-sample-sample-doc-code-block.json +29 -0
- package/dist/r/svelte-sample-sample-doc-code.json +29 -0
- package/dist/r/svelte-sample-sample-doc-drop-cursor.json +29 -0
- package/dist/r/svelte-sample-sample-doc-full.json +29 -0
- package/dist/r/svelte-sample-sample-doc-gap-cursor.json +29 -0
- package/dist/r/svelte-sample-sample-doc-hard-break.json +29 -0
- package/dist/r/svelte-sample-sample-doc-heading.json +29 -0
- package/dist/r/svelte-sample-sample-doc-image.json +29 -0
- package/dist/r/svelte-sample-sample-doc-inline-menu.json +29 -0
- package/dist/r/svelte-sample-sample-doc-italic.json +29 -0
- package/dist/r/svelte-sample-sample-doc-link-mark-view.json +29 -0
- package/dist/r/svelte-sample-sample-doc-link.json +29 -0
- package/dist/r/svelte-sample-sample-doc-list-custom-checkbox.json +29 -0
- package/dist/r/svelte-sample-sample-doc-list.json +29 -0
- package/dist/r/svelte-sample-sample-doc-page.json +29 -0
- package/dist/r/svelte-sample-sample-doc-readonly.json +29 -0
- package/dist/r/svelte-sample-sample-doc-rtl.json +29 -0
- package/dist/r/svelte-sample-sample-doc-search.json +29 -0
- package/dist/r/svelte-sample-sample-doc-strike.json +29 -0
- package/dist/r/svelte-sample-sample-doc-table.json +29 -0
- package/dist/r/svelte-sample-sample-doc-tex.json +29 -0
- package/dist/r/svelte-sample-sample-doc-text-align.json +29 -0
- package/dist/r/svelte-sample-sample-doc-text-color.json +29 -0
- package/dist/r/svelte-sample-sample-doc-typography.json +29 -0
- package/dist/r/svelte-sample-sample-doc-underline.json +29 -0
- package/dist/r/svelte-sample-sample-doc-view-adapter.json +29 -0
- package/dist/r/svelte-sample-sample-doc-word-counter.json +29 -0
- package/dist/r/svelte-sample-sample-query-users.json +32 -0
- package/dist/r/svelte-sample-sample-tag-data.json +27 -0
- package/dist/r/svelte-sample-sample-uploader.json +29 -0
- package/dist/r/svelte-sample-sample-user-data.json +27 -0
- package/dist/r/svelte-ui-block-handle.json +41 -0
- package/dist/r/svelte-ui-button.json +36 -0
- package/dist/r/svelte-ui-code-block-view.json +36 -0
- package/dist/r/svelte-ui-drop-indicator.json +36 -0
- package/dist/r/svelte-ui-image-upload-popover.json +42 -0
- package/dist/r/svelte-ui-image-view.json +41 -0
- package/dist/r/svelte-ui-inline-menu.json +47 -0
- package/dist/r/svelte-ui-search.json +47 -0
- package/dist/r/svelte-ui-slash-menu.json +50 -0
- package/dist/r/svelte-ui-table-handle.json +41 -0
- package/dist/r/svelte-ui-tag-menu.json +36 -0
- package/dist/r/svelte-ui-toolbar.json +51 -0
- package/dist/r/svelte-ui-user-menu.json +36 -0
- package/dist/r/svelte-ui-word-counter.json +36 -0
- package/dist/r/vanilla-example-minimal.json +36 -0
- package/dist/r/vanilla-example-slash-menu.json +51 -0
- package/dist/r/vanilla-ui-slash-menu.json +50 -0
- package/dist/r/vue-example-block-handle.json +60 -0
- package/dist/r/vue-example-blockquote.json +53 -0
- package/dist/r/vue-example-bold.json +56 -0
- package/dist/r/vue-example-change-tracking.json +50 -0
- package/dist/r/vue-example-code-block-themes.json +66 -0
- package/dist/r/vue-example-code-block.json +60 -0
- package/dist/r/vue-example-code.json +56 -0
- package/dist/r/vue-example-drop-cursor.json +48 -0
- package/dist/r/vue-example-emoji-rules.json +50 -0
- package/dist/r/vue-example-full.json +106 -0
- package/dist/r/vue-example-gap-cursor.json +48 -0
- package/dist/r/vue-example-hard-break.json +59 -0
- package/dist/r/vue-example-heading.json +56 -0
- package/dist/r/vue-example-horizontal-rule.json +53 -0
- package/dist/r/vue-example-image-view.json +55 -0
- package/dist/r/vue-example-inline-menu.json +54 -0
- package/dist/r/vue-example-italic.json +56 -0
- package/dist/r/vue-example-katex.json +51 -0
- package/dist/r/vue-example-keymap.json +63 -0
- package/dist/r/vue-example-link-mark-view.json +55 -0
- package/dist/r/vue-example-link.json +54 -0
- package/dist/r/vue-example-list-custom-checkbox.json +63 -0
- package/dist/r/vue-example-list.json +56 -0
- package/dist/r/vue-example-loro.json +62 -0
- package/dist/r/vue-example-mark-rule.json +50 -0
- package/dist/r/vue-example-minimal.json +36 -0
- package/dist/r/vue-example-placeholder.json +43 -0
- package/dist/r/vue-example-readonly.json +66 -0
- package/dist/r/vue-example-rtl.json +74 -0
- package/dist/r/vue-example-save-html.json +36 -0
- package/dist/r/vue-example-save-json.json +36 -0
- package/dist/r/vue-example-save-markdown.json +50 -0
- package/dist/r/vue-example-search.json +54 -0
- package/dist/r/vue-example-slash-menu.json +51 -0
- package/dist/r/vue-example-strike.json +59 -0
- package/dist/r/vue-example-table.json +52 -0
- package/dist/r/vue-example-text-align.json +59 -0
- package/dist/r/vue-example-text-color.json +59 -0
- package/dist/r/vue-example-toolbar.json +56 -0
- package/dist/r/vue-example-tweet.json +63 -0
- package/dist/r/vue-example-typography.json +59 -0
- package/dist/r/vue-example-underline.json +56 -0
- package/dist/r/vue-example-unmount.json +58 -0
- package/dist/r/vue-example-user-menu-dynamic.json +67 -0
- package/dist/r/vue-example-user-menu.json +59 -0
- package/dist/r/vue-example-view-adapter.json +58 -0
- package/dist/r/vue-example-word-counter.json +52 -0
- package/dist/r/vue-example-yjs.json +62 -0
- package/dist/r/vue-sample-define-atom-block.json +29 -0
- package/dist/r/vue-sample-katex.json +29 -0
- package/dist/r/vue-sample-sample-doc-block-handle.json +29 -0
- package/dist/r/vue-sample-sample-doc-bold.json +29 -0
- package/dist/r/vue-sample-sample-doc-code-block.json +29 -0
- package/dist/r/vue-sample-sample-doc-code.json +29 -0
- package/dist/r/vue-sample-sample-doc-drop-cursor.json +29 -0
- package/dist/r/vue-sample-sample-doc-full.json +29 -0
- package/dist/r/vue-sample-sample-doc-gap-cursor.json +29 -0
- package/dist/r/vue-sample-sample-doc-hard-break.json +29 -0
- package/dist/r/vue-sample-sample-doc-heading.json +29 -0
- package/dist/r/vue-sample-sample-doc-image.json +29 -0
- package/dist/r/vue-sample-sample-doc-inline-menu.json +29 -0
- package/dist/r/vue-sample-sample-doc-italic.json +29 -0
- package/dist/r/vue-sample-sample-doc-link-mark-view.json +29 -0
- package/dist/r/vue-sample-sample-doc-link.json +29 -0
- package/dist/r/vue-sample-sample-doc-list-custom-checkbox.json +29 -0
- package/dist/r/vue-sample-sample-doc-list.json +29 -0
- package/dist/r/vue-sample-sample-doc-readonly.json +29 -0
- package/dist/r/vue-sample-sample-doc-rtl.json +29 -0
- package/dist/r/vue-sample-sample-doc-search.json +29 -0
- package/dist/r/vue-sample-sample-doc-strike.json +29 -0
- package/dist/r/vue-sample-sample-doc-table.json +29 -0
- package/dist/r/vue-sample-sample-doc-tex.json +29 -0
- package/dist/r/vue-sample-sample-doc-text-align.json +29 -0
- package/dist/r/vue-sample-sample-doc-text-color.json +29 -0
- package/dist/r/vue-sample-sample-doc-tweet.json +29 -0
- package/dist/r/vue-sample-sample-doc-typography.json +29 -0
- package/dist/r/vue-sample-sample-doc-underline.json +29 -0
- package/dist/r/vue-sample-sample-doc-view-adapter.json +29 -0
- package/dist/r/vue-sample-sample-doc-word-counter.json +29 -0
- package/dist/r/vue-sample-sample-query-users.json +32 -0
- package/dist/r/vue-sample-sample-tag-data.json +27 -0
- package/dist/r/vue-sample-sample-uploader.json +29 -0
- package/dist/r/vue-sample-sample-user-data.json +27 -0
- package/dist/r/vue-ui-block-handle.json +41 -0
- package/dist/r/vue-ui-button.json +36 -0
- package/dist/r/vue-ui-code-block-view.json +36 -0
- package/dist/r/vue-ui-drop-indicator.json +36 -0
- package/dist/r/vue-ui-image-upload-popover.json +42 -0
- package/dist/r/vue-ui-image-view.json +41 -0
- package/dist/r/vue-ui-inline-menu.json +47 -0
- package/dist/r/vue-ui-search.json +47 -0
- package/dist/r/vue-ui-slash-menu.json +50 -0
- package/dist/r/vue-ui-table-handle.json +41 -0
- package/dist/r/vue-ui-tag-menu.json +36 -0
- package/dist/r/vue-ui-toolbar.json +51 -0
- package/dist/r/vue-ui-user-menu.json +36 -0
- package/dist/r/vue-ui-word-counter.json +36 -0
- package/package.json +353 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-sample-sample-doc-page",
|
|
3
|
+
"title": "react-sample-sample-doc-page",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [],
|
|
7
|
+
"dependencies": [
|
|
8
|
+
"prosekit"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "registry/src/react/sample/sample-doc-page.ts",
|
|
13
|
+
"type": "registry:component",
|
|
14
|
+
"target": "components/editor/sample/sample-doc-page.ts",
|
|
15
|
+
"content": "import type { NodeJSON } from 'prosekit/core'\n\nexport const sampleContent: NodeJSON = {\n type: 'doc',\n content: [\n {\n type: 'heading',\n attrs: { level: 1 },\n content: [{ type: 'text', text: 'Page Layout Demo' }],\n },\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'This is the first page.',\n },\n ],\n },\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text:\n 'The content below will be on a new page because of a page break. You can insert a page break by pressing Command+Enter on Mac or Ctrl+Enter on Windows and Linux.',\n },\n ],\n },\n { type: 'pageBreak' },\n {\n type: 'heading',\n attrs: { level: 1 },\n content: [{ type: 'text', text: 'Page 2' }],\n },\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'This is the second page.',\n },\n ],\n },\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text:\n 'When the content on a page exceeds the available height, it will automatically flow to the next page. This is similar to how traditional word processors like Microsoft Word handle pagination.',\n },\n ],\n },\n { type: 'image', attrs: { src: 'https://placehold.co/600x500' } },\n { type: 'image', attrs: { src: 'https://placehold.co/600x500' } },\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'The images above exceed the available height on the second page, so they automatically flow to the next page.',\n },\n ],\n },\n {\n type: 'heading',\n attrs: { level: 2 },\n content: [{ type: 'text', text: 'Known Limitation' }],\n },\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text:\n 'Page breaks only occur between block elements. A single block taller than the remaining space on the page will overflow to the next page rather than split. In other words, you cannot split a node like paragraph or a table across pages. The paragraph below demonstrates this.',\n },\n ],\n },\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n marks: [{ type: 'bold' }],\n text: 'This is a very long paragraph that demonstrates the limitation of block-level pagination.',\n },\n {\n type: 'text',\n text: ' ',\n },\n {\n type: 'text',\n marks: [{ type: 'italic' }],\n text:\n 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.',\n },\n ],\n },\n ],\n}\n"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"meta": {
|
|
19
|
+
"hasIcons": false,
|
|
20
|
+
"hidden": false,
|
|
21
|
+
"story": "",
|
|
22
|
+
"framework": "react",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/react/sample/sample-doc-page.ts"
|
|
25
|
+
],
|
|
26
|
+
"internalDependencies": []
|
|
27
|
+
},
|
|
28
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json"
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-sample-sample-doc-readonly",
|
|
3
|
+
"title": "react-sample-sample-doc-readonly",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [],
|
|
7
|
+
"dependencies": [
|
|
8
|
+
"prosekit"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "registry/src/react/sample/sample-doc-readonly.ts",
|
|
13
|
+
"type": "registry:component",
|
|
14
|
+
"target": "components/editor/sample/sample-doc-readonly.ts",
|
|
15
|
+
"content": "import type { NodeJSON } from 'prosekit/core'\n\nexport const sampleContent: NodeJSON = {\n type: 'doc',\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'The content is readonly. Press the buttons above to toggle the readonly mode.',\n },\n ],\n },\n ],\n}\n"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"meta": {
|
|
19
|
+
"hasIcons": false,
|
|
20
|
+
"hidden": false,
|
|
21
|
+
"story": "",
|
|
22
|
+
"framework": "react",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/react/sample/sample-doc-readonly.ts"
|
|
25
|
+
],
|
|
26
|
+
"internalDependencies": []
|
|
27
|
+
},
|
|
28
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json"
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-sample-sample-doc-rtl",
|
|
3
|
+
"title": "react-sample-sample-doc-rtl",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [],
|
|
7
|
+
"dependencies": [
|
|
8
|
+
"prosekit"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "registry/src/react/sample/sample-doc-rtl.ts",
|
|
13
|
+
"type": "registry:component",
|
|
14
|
+
"target": "components/editor/sample/sample-doc-rtl.ts",
|
|
15
|
+
"content": "import type { NodeJSON } from 'prosekit/core'\n\nconst translation = {\n 'Paragraph': 'فقرة',\n 'Root list item': 'عنصر قائمة جذري',\n 'Sub list item': 'عنصر قائمة فرعي',\n 'Completed task': 'مهمة مكتملة',\n 'Pending task': 'مهمة قيد الانتظار',\n 'Quote': 'اقتباس',\n} as const\n\nexport const sampleContent: NodeJSON = {\n type: 'doc',\n content: [\n {\n type: 'heading',\n attrs: { level: 1 },\n content: [{ type: 'text', text: 'Right to Left' }],\n },\n {\n type: 'paragraph',\n content: [\n { type: 'text', text: translation['Paragraph'] },\n ],\n },\n {\n type: 'list',\n attrs: { kind: 'bullet' },\n content: [\n { type: 'paragraph', content: [{ type: 'text', text: translation['Root list item'] }] },\n {\n type: 'list',\n attrs: { kind: 'ordered' },\n content: [\n { type: 'paragraph', content: [{ type: 'text', text: translation['Sub list item'] }] },\n ],\n },\n {\n type: 'list',\n attrs: { kind: 'ordered' },\n content: [\n { type: 'paragraph', content: [{ type: 'text', text: translation['Sub list item'] }] },\n {\n type: 'list',\n attrs: { kind: 'task', checked: true },\n content: [\n { type: 'paragraph', content: [{ type: 'text', text: translation['Completed task'] }] },\n ],\n },\n {\n type: 'list',\n attrs: { kind: 'task', checked: false },\n content: [\n { type: 'paragraph', content: [{ type: 'text', text: translation['Pending task'] }] },\n ],\n },\n ],\n },\n ],\n },\n {\n type: 'codeBlock',\n attrs: { language: 'javascript' },\n content: [\n {\n type: 'text',\n text: 'hello world',\n },\n ],\n },\n\n {\n type: 'table',\n content: [\n {\n type: 'tableRow',\n content: [\n {\n type: 'tableCell',\n attrs: {},\n content: [\n { type: 'paragraph', content: [{ type: 'text', text: 'A1' }] },\n ],\n },\n {\n type: 'tableCell',\n attrs: {},\n content: [\n { type: 'paragraph', content: [{ type: 'text', text: 'B1' }] },\n ],\n },\n {\n type: 'tableCell',\n attrs: {},\n content: [\n { type: 'paragraph', content: [{ type: 'text', text: 'C1' }] },\n ],\n },\n ],\n },\n {\n type: 'tableRow',\n content: [\n {\n type: 'tableCell',\n attrs: {},\n content: [\n { type: 'paragraph', content: [{ type: 'text', text: 'A2' }] },\n ],\n },\n {\n type: 'tableCell',\n attrs: {},\n content: [\n { type: 'paragraph', content: [{ type: 'text', text: 'B2' }] },\n ],\n },\n {\n type: 'tableCell',\n attrs: {},\n content: [\n { type: 'paragraph', content: [{ type: 'text', text: 'C2' }] },\n ],\n },\n ],\n },\n {\n type: 'tableRow',\n content: [\n {\n type: 'tableCell',\n attrs: {},\n content: [\n { type: 'paragraph', content: [{ type: 'text', text: 'A3' }] },\n ],\n },\n {\n type: 'tableCell',\n attrs: {},\n content: [\n { type: 'paragraph', content: [{ type: 'text', text: 'B3' }] },\n ],\n },\n {\n type: 'tableCell',\n attrs: {},\n content: [\n { type: 'paragraph', content: [{ type: 'text', text: 'C3' }] },\n ],\n },\n ],\n },\n ],\n },\n {\n type: 'blockquote',\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: translation['Quote'],\n },\n ],\n },\n ],\n },\n ],\n}\n"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"meta": {
|
|
19
|
+
"hasIcons": false,
|
|
20
|
+
"hidden": false,
|
|
21
|
+
"story": "",
|
|
22
|
+
"framework": "react",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/react/sample/sample-doc-rtl.ts"
|
|
25
|
+
],
|
|
26
|
+
"internalDependencies": []
|
|
27
|
+
},
|
|
28
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json"
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-sample-sample-doc-search",
|
|
3
|
+
"title": "react-sample-sample-doc-search",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [],
|
|
7
|
+
"dependencies": [
|
|
8
|
+
"prosekit"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "registry/src/react/sample/sample-doc-search.ts",
|
|
13
|
+
"type": "registry:component",
|
|
14
|
+
"target": "components/editor/sample/sample-doc-search.ts",
|
|
15
|
+
"content": "import type { NodeJSON } from 'prosekit/core'\n\nexport const sampleContent: NodeJSON = {\n type: 'doc',\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'Baa, baa, black sheep,',\n },\n ],\n },\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'Have you any wool?',\n },\n ],\n },\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'Yes, sir, yes, sir,',\n },\n ],\n },\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'Three bags full;',\n },\n ],\n },\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'One for the master,',\n },\n ],\n },\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'And one for the dame,',\n },\n ],\n },\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'And one for the little boy',\n },\n ],\n },\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'Who lives down the lane.',\n },\n ],\n },\n ],\n}\n"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"meta": {
|
|
19
|
+
"hasIcons": false,
|
|
20
|
+
"hidden": false,
|
|
21
|
+
"story": "",
|
|
22
|
+
"framework": "react",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/react/sample/sample-doc-search.ts"
|
|
25
|
+
],
|
|
26
|
+
"internalDependencies": []
|
|
27
|
+
},
|
|
28
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json"
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-sample-sample-doc-strike",
|
|
3
|
+
"title": "react-sample-sample-doc-strike",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [],
|
|
7
|
+
"dependencies": [
|
|
8
|
+
"prosekit"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "registry/src/react/sample/sample-doc-strike.ts",
|
|
13
|
+
"type": "registry:component",
|
|
14
|
+
"target": "components/editor/sample/sample-doc-strike.ts",
|
|
15
|
+
"content": "import type { NodeJSON } from 'prosekit/core'\n\nexport const sampleContent: NodeJSON = {\n type: 'doc',\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n marks: [\n {\n type: 'strike',\n },\n ],\n text: 'This is strike',\n },\n ],\n },\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'This is normal text',\n },\n ],\n },\n ],\n}\n"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"meta": {
|
|
19
|
+
"hasIcons": false,
|
|
20
|
+
"hidden": false,
|
|
21
|
+
"story": "",
|
|
22
|
+
"framework": "react",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/react/sample/sample-doc-strike.ts"
|
|
25
|
+
],
|
|
26
|
+
"internalDependencies": []
|
|
27
|
+
},
|
|
28
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json"
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-sample-sample-doc-table",
|
|
3
|
+
"title": "react-sample-sample-doc-table",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [],
|
|
7
|
+
"dependencies": [
|
|
8
|
+
"prosekit"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "registry/src/react/sample/sample-doc-table.ts",
|
|
13
|
+
"type": "registry:component",
|
|
14
|
+
"target": "components/editor/sample/sample-doc-table.ts",
|
|
15
|
+
"content": "import type { NodeJSON } from 'prosekit/core'\n\nexport const sampleContent: NodeJSON = {\n type: 'doc',\n content: [\n {\n type: 'table',\n content: [\n {\n type: 'tableRow',\n content: [\n {\n type: 'tableCell',\n attrs: {\n colspan: 1,\n rowspan: 1,\n colwidth: null,\n },\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'A1',\n },\n ],\n },\n ],\n },\n {\n type: 'tableCell',\n attrs: {\n colspan: 1,\n rowspan: 1,\n colwidth: null,\n },\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'B1',\n },\n ],\n },\n ],\n },\n {\n type: 'tableCell',\n attrs: {\n colspan: 1,\n rowspan: 1,\n colwidth: null,\n },\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'C1',\n },\n ],\n },\n ],\n },\n {\n type: 'tableCell',\n attrs: {\n colspan: 1,\n rowspan: 1,\n colwidth: null,\n },\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'D1',\n },\n ],\n },\n ],\n },\n ],\n },\n {\n type: 'tableRow',\n content: [\n {\n type: 'tableCell',\n attrs: {\n colspan: 1,\n rowspan: 1,\n colwidth: null,\n },\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'A2',\n },\n ],\n },\n ],\n },\n {\n type: 'tableCell',\n attrs: {\n colspan: 1,\n rowspan: 1,\n colwidth: null,\n },\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'B2',\n },\n ],\n },\n ],\n },\n {\n type: 'tableCell',\n attrs: {\n colspan: 1,\n rowspan: 1,\n colwidth: null,\n },\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'C2',\n },\n ],\n },\n ],\n },\n {\n type: 'tableCell',\n attrs: {\n colspan: 1,\n rowspan: 1,\n colwidth: null,\n },\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'D2',\n },\n ],\n },\n ],\n },\n ],\n },\n ],\n },\n ],\n}\n"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"meta": {
|
|
19
|
+
"hasIcons": false,
|
|
20
|
+
"hidden": false,
|
|
21
|
+
"story": "",
|
|
22
|
+
"framework": "react",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/react/sample/sample-doc-table.ts"
|
|
25
|
+
],
|
|
26
|
+
"internalDependencies": []
|
|
27
|
+
},
|
|
28
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json"
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-sample-sample-doc-tex",
|
|
3
|
+
"title": "react-sample-sample-doc-tex",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [],
|
|
7
|
+
"dependencies": [
|
|
8
|
+
"prosekit"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "registry/src/react/sample/sample-doc-tex.ts",
|
|
13
|
+
"type": "registry:component",
|
|
14
|
+
"target": "components/editor/sample/sample-doc-tex.ts",
|
|
15
|
+
"content": "import type { NodeJSON } from 'prosekit/core'\n\nconst EULER_IDENTITY = String.raw`e^{i\\pi} + 1 = 0`\n\nconst QUADRATIC_FORMULA = String.raw`x = \\frac{-b \\pm \\sqrt{b^2 - 4ac}}{2a}`\n\nconst GAUSSIAN_INTEGRAL = String.raw`\\int_{-\\infty}^{\\infty} e^{-x^2} \\, dx = \\sqrt{\\pi}`\n\nexport const sampleContent: NodeJSON = {\n type: 'doc',\n content: [\n {\n type: 'heading',\n attrs: { level: 2 },\n content: [{ type: 'text', text: 'Inline equations' }],\n },\n {\n type: 'paragraph',\n content: [\n { type: 'text', text: \"Euler's identity \" },\n { type: 'mathInline', content: [{ type: 'text', text: EULER_IDENTITY }] },\n { type: 'text', text: ' and the quadratic formula ' },\n { type: 'mathInline', content: [{ type: 'text', text: QUADRATIC_FORMULA }] },\n { type: 'text', text: ' can appear within text. Type ' },\n { type: 'text', marks: [{ type: 'code' }], text: '$...$' },\n { type: 'text', text: ' to insert an inline equation.' },\n ],\n },\n {\n type: 'heading',\n attrs: { level: 2 },\n content: [{ type: 'text', text: 'Block equations' }],\n },\n {\n type: 'paragraph',\n content: [\n { type: 'text', text: 'The Gaussian integral:' },\n ],\n },\n {\n type: 'mathBlock',\n content: [{ type: 'text', text: GAUSSIAN_INTEGRAL }],\n },\n {\n type: 'paragraph',\n content: [\n { type: 'text', text: 'Type ' },\n { type: 'text', marks: [{ type: 'code' }], text: '$$' },\n { type: 'text', text: ' in a new line and press Enter to create a block equation.' },\n ],\n },\n ],\n}\n"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"meta": {
|
|
19
|
+
"hasIcons": false,
|
|
20
|
+
"hidden": false,
|
|
21
|
+
"story": "",
|
|
22
|
+
"framework": "react",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/react/sample/sample-doc-tex.ts"
|
|
25
|
+
],
|
|
26
|
+
"internalDependencies": []
|
|
27
|
+
},
|
|
28
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json"
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-sample-sample-doc-text-align",
|
|
3
|
+
"title": "react-sample-sample-doc-text-align",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [],
|
|
7
|
+
"dependencies": [
|
|
8
|
+
"prosekit"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "registry/src/react/sample/sample-doc-text-align.ts",
|
|
13
|
+
"type": "registry:component",
|
|
14
|
+
"target": "components/editor/sample/sample-doc-text-align.ts",
|
|
15
|
+
"content": "import type { NodeJSON } from 'prosekit/core'\n\nexport const sampleContent: NodeJSON = {\n type: 'doc',\n content: [\n {\n type: 'heading',\n attrs: {\n level: 1,\n textAlign: 'center',\n },\n content: [\n {\n type: 'text',\n text: 'Heading',\n },\n ],\n },\n {\n type: 'paragraph',\n attrs: {\n textAlign: 'left',\n },\n content: [\n {\n type: 'text',\n text: 'First paragraph',\n },\n ],\n },\n {\n type: 'paragraph',\n attrs: {\n textAlign: 'center',\n },\n content: [\n {\n type: 'text',\n text: 'Second paragraph',\n },\n ],\n },\n {\n type: 'paragraph',\n attrs: {\n textAlign: 'right',\n },\n content: [\n {\n type: 'text',\n text: 'Third paragraph',\n },\n ],\n },\n ],\n}\n"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"meta": {
|
|
19
|
+
"hasIcons": false,
|
|
20
|
+
"hidden": false,
|
|
21
|
+
"story": "",
|
|
22
|
+
"framework": "react",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/react/sample/sample-doc-text-align.ts"
|
|
25
|
+
],
|
|
26
|
+
"internalDependencies": []
|
|
27
|
+
},
|
|
28
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json"
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-sample-sample-doc-text-color",
|
|
3
|
+
"title": "react-sample-sample-doc-text-color",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [],
|
|
7
|
+
"dependencies": [
|
|
8
|
+
"prosekit"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "registry/src/react/sample/sample-doc-text-color.ts",
|
|
13
|
+
"type": "registry:component",
|
|
14
|
+
"target": "components/editor/sample/sample-doc-text-color.ts",
|
|
15
|
+
"content": "import type { NodeJSON } from 'prosekit/core'\n\nexport const sampleContent: NodeJSON = {\n type: 'doc',\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n marks: [\n {\n type: 'textColor',\n attrs: {\n color: '#ef4444',\n },\n },\n ],\n text: 'Select',\n },\n {\n type: 'text',\n text: ' ',\n },\n {\n type: 'text',\n marks: [\n {\n type: 'textColor',\n attrs: {\n color: '#f97316',\n },\n },\n ],\n text: 'some',\n },\n {\n type: 'text',\n text: ' ',\n },\n {\n type: 'text',\n marks: [\n {\n type: 'textColor',\n attrs: {\n color: '#eab308',\n },\n },\n ],\n text: 'text',\n },\n {\n type: 'text',\n text: ' ',\n },\n {\n type: 'text',\n marks: [\n {\n type: 'textColor',\n attrs: {\n color: '#22c55e',\n },\n },\n ],\n text: 'to',\n },\n {\n type: 'text',\n text: ' ',\n },\n {\n type: 'text',\n marks: [\n {\n type: 'textColor',\n attrs: {\n color: '#3b82f6',\n },\n },\n ],\n text: 'change',\n },\n {\n type: 'text',\n text: ' ',\n },\n {\n type: 'text',\n marks: [\n {\n type: 'textColor',\n attrs: {\n color: '#6366f1',\n },\n },\n ],\n text: 'the',\n },\n {\n type: 'text',\n text: ' ',\n },\n {\n type: 'text',\n marks: [\n {\n type: 'textColor',\n attrs: {\n color: '#a855f7',\n },\n },\n ],\n text: 'color',\n },\n ],\n },\n ],\n}\n"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"meta": {
|
|
19
|
+
"hasIcons": false,
|
|
20
|
+
"hidden": false,
|
|
21
|
+
"story": "",
|
|
22
|
+
"framework": "react",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/react/sample/sample-doc-text-color.ts"
|
|
25
|
+
],
|
|
26
|
+
"internalDependencies": []
|
|
27
|
+
},
|
|
28
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json"
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-sample-sample-doc-tweet",
|
|
3
|
+
"title": "react-sample-sample-doc-tweet",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [],
|
|
7
|
+
"dependencies": [
|
|
8
|
+
"prosekit"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "registry/src/react/sample/sample-doc-tweet.ts",
|
|
13
|
+
"type": "registry:component",
|
|
14
|
+
"target": "components/editor/sample/sample-doc-tweet.ts",
|
|
15
|
+
"content": "import type { NodeJSON } from 'prosekit/core'\n\nexport const sampleContent: NodeJSON = {\n type: 'doc',\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'Render a tweet in your document',\n },\n ],\n },\n {\n type: 'tweet',\n attrs: {\n tweetId: '20',\n },\n },\n ],\n}\n"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"meta": {
|
|
19
|
+
"hasIcons": false,
|
|
20
|
+
"hidden": false,
|
|
21
|
+
"story": "",
|
|
22
|
+
"framework": "react",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/react/sample/sample-doc-tweet.ts"
|
|
25
|
+
],
|
|
26
|
+
"internalDependencies": []
|
|
27
|
+
},
|
|
28
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json"
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-sample-sample-doc-typography",
|
|
3
|
+
"title": "react-sample-sample-doc-typography",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [],
|
|
7
|
+
"dependencies": [
|
|
8
|
+
"prosekit"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "registry/src/react/sample/sample-doc-typography.ts",
|
|
13
|
+
"type": "registry:component",
|
|
14
|
+
"target": "components/editor/sample/sample-doc-typography.ts",
|
|
15
|
+
"content": "import type { NodeJSON } from 'prosekit/core'\n\nconst EULER_IDENTITY = String.raw`e^{i\\pi} + 1 = 0`\n\nconst QUADRATIC_FORMULA = String.raw`x = \\frac{-b \\pm \\sqrt{b^2 - 4ac}}{2a}`\n\nconst GAUSSIAN_INTEGRAL = String.raw`\\int_{-\\infty}^{\\infty} e^{-x^2} \\, dx = \\sqrt{\\pi}`\n\nexport const sampleContent: NodeJSON = {\n type: 'doc',\n content: [\n {\n type: 'heading',\n attrs: {\n level: 1,\n },\n content: [\n {\n type: 'text',\n text: 'ProseKit Typography',\n },\n ],\n },\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'This example shows the typography styles provided by ',\n },\n {\n type: 'text',\n marks: [\n {\n type: 'code',\n },\n ],\n text: 'prosekit/basic/typography.css',\n },\n {\n type: 'text',\n text: '.',\n },\n ],\n },\n {\n type: 'heading',\n attrs: {\n level: 2,\n },\n content: [\n {\n type: 'text',\n text: 'Inline marks',\n },\n ],\n },\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'Text can be formatted in different ways: ',\n },\n {\n type: 'text',\n marks: [\n {\n type: 'bold',\n },\n ],\n text: 'bold text',\n },\n {\n type: 'text',\n text: ', ',\n },\n {\n type: 'text',\n marks: [\n {\n type: 'italic',\n },\n ],\n text: 'italic text',\n },\n {\n type: 'text',\n text: ', ',\n },\n {\n type: 'text',\n marks: [\n {\n type: 'underline',\n },\n ],\n text: 'underlined text',\n },\n {\n type: 'text',\n text: ', ',\n },\n {\n type: 'text',\n marks: [\n {\n type: 'strike',\n },\n ],\n text: 'strikethrough text',\n },\n {\n type: 'text',\n text: ', ',\n },\n {\n type: 'text',\n marks: [\n {\n type: 'code',\n },\n ],\n text: 'inline code',\n },\n {\n type: 'text',\n text: ', ',\n },\n {\n type: 'text',\n marks: [\n {\n type: 'link',\n attrs: {\n href: 'https://example.com',\n target: null,\n rel: null,\n },\n },\n ],\n text: 'links',\n },\n {\n type: 'text',\n text: ',',\n },\n {\n type: 'hardBreak',\n },\n {\n type: 'text',\n text: 'and hard breaks (Shift+Enter).',\n },\n ],\n },\n {\n type: 'heading',\n attrs: {\n level: 2,\n },\n content: [\n {\n type: 'text',\n text: 'Headings',\n },\n ],\n },\n {\n type: 'heading',\n attrs: {\n level: 1,\n },\n content: [\n {\n type: 'text',\n text: 'Heading 1',\n },\n ],\n },\n {\n type: 'heading',\n attrs: {\n level: 2,\n },\n content: [\n {\n type: 'text',\n text: 'Heading 2',\n },\n ],\n },\n {\n type: 'heading',\n attrs: {\n level: 3,\n },\n content: [\n {\n type: 'text',\n text: 'Heading 3',\n },\n ],\n },\n {\n type: 'heading',\n attrs: {\n level: 4,\n },\n content: [\n {\n type: 'text',\n text: 'Heading 4',\n },\n ],\n },\n {\n type: 'heading',\n attrs: {\n level: 5,\n },\n content: [\n {\n type: 'text',\n text: 'Heading 5',\n },\n ],\n },\n {\n type: 'heading',\n attrs: {\n level: 6,\n },\n content: [\n {\n type: 'text',\n text: 'Heading 6',\n },\n ],\n },\n {\n type: 'heading',\n attrs: {\n level: 2,\n },\n content: [\n {\n type: 'text',\n text: 'Lists',\n },\n ],\n },\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'Here are different types of lists:',\n },\n ],\n },\n {\n type: 'list',\n attrs: {\n kind: 'bullet',\n order: null,\n checked: false,\n collapsed: false,\n },\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'Unordered list item 1',\n },\n ],\n },\n ],\n },\n {\n type: 'list',\n attrs: {\n kind: 'bullet',\n order: null,\n checked: false,\n collapsed: false,\n },\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'Unordered list item 2',\n },\n ],\n },\n {\n type: 'list',\n attrs: {\n kind: 'bullet',\n order: null,\n checked: false,\n collapsed: false,\n },\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'Nested item A',\n },\n ],\n },\n ],\n },\n {\n type: 'list',\n attrs: {\n kind: 'bullet',\n order: null,\n checked: false,\n collapsed: false,\n },\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'Nested item B',\n },\n ],\n },\n ],\n },\n ],\n },\n {\n type: 'list',\n attrs: {\n kind: 'ordered',\n order: null,\n checked: false,\n collapsed: false,\n },\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'First ordered item',\n },\n ],\n },\n ],\n },\n {\n type: 'list',\n attrs: {\n kind: 'ordered',\n order: null,\n checked: false,\n collapsed: false,\n },\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'Second ordered item',\n },\n ],\n },\n ],\n },\n {\n type: 'list',\n attrs: {\n kind: 'task',\n order: null,\n checked: true,\n collapsed: false,\n },\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'Completed task',\n },\n ],\n },\n ],\n },\n {\n type: 'list',\n attrs: {\n kind: 'task',\n order: null,\n checked: false,\n collapsed: false,\n },\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'Pending task',\n },\n ],\n },\n ],\n },\n {\n type: 'heading',\n attrs: {\n level: 2,\n },\n content: [\n {\n type: 'text',\n text: 'Blockquotes',\n },\n ],\n },\n {\n type: 'blockquote',\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text:\n 'This is a blockquote demonstrating how quoted content appears in the editor. It can span multiple lines and maintains proper formatting.',\n },\n ],\n },\n ],\n },\n {\n type: 'heading',\n attrs: {\n level: 2,\n },\n content: [\n {\n type: 'text',\n text: 'Code Blocks',\n },\n ],\n },\n {\n type: 'codeBlock',\n attrs: {\n language: '',\n },\n content: [\n {\n type: 'text',\n text: \"function example() {\\n const greeting = 'Hello ProseKit!';\\n console.log(greeting);\\n return greeting;\\n}\",\n },\n ],\n },\n {\n type: 'heading',\n attrs: {\n level: 2,\n },\n content: [\n {\n type: 'text',\n text: 'Horizontal Rule',\n },\n ],\n },\n {\n type: 'horizontalRule',\n },\n {\n type: 'heading',\n attrs: {\n level: 2,\n },\n content: [\n {\n type: 'text',\n text: 'Images',\n },\n ],\n },\n {\n type: 'image',\n attrs: {\n src: 'https://static.photos/blurred/640x360/42',\n },\n },\n {\n type: 'heading',\n attrs: {\n level: 2,\n },\n content: [\n {\n type: 'text',\n text: 'Tables',\n },\n ],\n },\n {\n type: 'table',\n content: [\n {\n type: 'tableRow',\n content: [\n {\n type: 'tableHeaderCell',\n attrs: {\n colspan: 1,\n rowspan: 1,\n colwidth: null,\n },\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'Header 1',\n },\n ],\n },\n ],\n },\n {\n type: 'tableHeaderCell',\n attrs: {\n colspan: 1,\n rowspan: 1,\n colwidth: null,\n },\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'Header 2',\n },\n ],\n },\n ],\n },\n ],\n },\n {\n type: 'tableRow',\n content: [\n {\n type: 'tableCell',\n attrs: {\n colspan: 1,\n rowspan: 1,\n colwidth: null,\n },\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'Cell 1',\n },\n ],\n },\n ],\n },\n {\n type: 'tableCell',\n attrs: {\n colspan: 1,\n rowspan: 1,\n colwidth: null,\n },\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'Cell 2',\n },\n ],\n },\n ],\n },\n ],\n },\n {\n type: 'tableRow',\n content: [\n {\n type: 'tableCell',\n attrs: {\n colspan: 1,\n rowspan: 1,\n colwidth: null,\n },\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'Cell 3',\n },\n ],\n },\n ],\n },\n {\n type: 'tableCell',\n attrs: {\n colspan: 1,\n rowspan: 1,\n colwidth: null,\n },\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'Cell 4',\n },\n ],\n },\n ],\n },\n ],\n },\n ],\n },\n {\n type: 'heading',\n attrs: {\n level: 2,\n },\n content: [\n {\n type: 'text',\n text: 'Math',\n },\n ],\n },\n {\n type: 'paragraph',\n content: [\n { type: 'text', text: \"Inline math like Euler's identity \" },\n { type: 'mathInline', content: [{ type: 'text', text: EULER_IDENTITY }] },\n { type: 'text', text: ' and the quadratic formula ' },\n { type: 'mathInline', content: [{ type: 'text', text: QUADRATIC_FORMULA }] },\n { type: 'text', text: ' can appear within text.' },\n ],\n },\n {\n type: 'paragraph',\n content: [\n { type: 'text', text: 'Block-level equations are displayed on their own line:' },\n ],\n },\n {\n type: 'mathBlock',\n content: [{ type: 'text', text: GAUSSIAN_INTEGRAL }],\n },\n ],\n}\n"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"meta": {
|
|
19
|
+
"hasIcons": false,
|
|
20
|
+
"hidden": false,
|
|
21
|
+
"story": "",
|
|
22
|
+
"framework": "react",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/react/sample/sample-doc-typography.ts"
|
|
25
|
+
],
|
|
26
|
+
"internalDependencies": []
|
|
27
|
+
},
|
|
28
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json"
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-sample-sample-doc-underline",
|
|
3
|
+
"title": "react-sample-sample-doc-underline",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [],
|
|
7
|
+
"dependencies": [
|
|
8
|
+
"prosekit"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "registry/src/react/sample/sample-doc-underline.ts",
|
|
13
|
+
"type": "registry:component",
|
|
14
|
+
"target": "components/editor/sample/sample-doc-underline.ts",
|
|
15
|
+
"content": "import type { NodeJSON } from 'prosekit/core'\n\nexport const sampleContent: NodeJSON = {\n type: 'doc',\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n marks: [\n {\n type: 'underline',\n },\n ],\n text: 'This is underline',\n },\n ],\n },\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'This is normal text',\n },\n ],\n },\n ],\n}\n"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"meta": {
|
|
19
|
+
"hasIcons": false,
|
|
20
|
+
"hidden": false,
|
|
21
|
+
"story": "",
|
|
22
|
+
"framework": "react",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/react/sample/sample-doc-underline.ts"
|
|
25
|
+
],
|
|
26
|
+
"internalDependencies": []
|
|
27
|
+
},
|
|
28
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json"
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-sample-sample-doc-view-adapter",
|
|
3
|
+
"title": "react-sample-sample-doc-view-adapter",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [],
|
|
7
|
+
"dependencies": [
|
|
8
|
+
"prosekit"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "registry/src/react/sample/sample-doc-view-adapter.ts",
|
|
13
|
+
"type": "registry:component",
|
|
14
|
+
"target": "components/editor/sample/sample-doc-view-adapter.ts",
|
|
15
|
+
"content": "import type { NodeJSON } from 'prosekit/core'\n\nexport const sampleContent: NodeJSON = {\n type: 'doc',\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'An example of using prosemirror-adapter to render custom node views',\n },\n ],\n },\n {\n type: 'atomBlock',\n },\n ],\n}\n"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"meta": {
|
|
19
|
+
"hasIcons": false,
|
|
20
|
+
"hidden": false,
|
|
21
|
+
"story": "",
|
|
22
|
+
"framework": "react",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/react/sample/sample-doc-view-adapter.ts"
|
|
25
|
+
],
|
|
26
|
+
"internalDependencies": []
|
|
27
|
+
},
|
|
28
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json"
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-sample-sample-doc-word-counter",
|
|
3
|
+
"title": "react-sample-sample-doc-word-counter",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [],
|
|
7
|
+
"dependencies": [
|
|
8
|
+
"prosekit"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "registry/src/react/sample/sample-doc-word-counter.ts",
|
|
13
|
+
"type": "registry:component",
|
|
14
|
+
"target": "components/editor/sample/sample-doc-word-counter.ts",
|
|
15
|
+
"content": "import type { NodeJSON } from 'prosekit/core'\n\nexport const sampleContent: NodeJSON = {\n type: 'doc',\n content: [\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n text: 'Start typing and observe the word count update below.',\n },\n ],\n },\n ],\n}\n"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"meta": {
|
|
19
|
+
"hasIcons": false,
|
|
20
|
+
"hidden": false,
|
|
21
|
+
"story": "",
|
|
22
|
+
"framework": "react",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/react/sample/sample-doc-word-counter.ts"
|
|
25
|
+
],
|
|
26
|
+
"internalDependencies": []
|
|
27
|
+
},
|
|
28
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json"
|
|
29
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-sample-sample-query-users",
|
|
3
|
+
"title": "react-sample-sample-query-users",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [
|
|
7
|
+
"https://prosekit.dev/r/react-sample-sample-user-data.json"
|
|
8
|
+
],
|
|
9
|
+
"dependencies": [],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "registry/src/react/sample/sample-query-users.ts",
|
|
13
|
+
"type": "registry:component",
|
|
14
|
+
"target": "components/editor/sample/sample-query-users.ts",
|
|
15
|
+
"content": "import { users } from './sample-user-data'\n\nexport interface User {\n id: number\n name: string\n}\n\nconst connectHandlers: VoidFunction[] = []\nlet networkStatus: 'fast' | 'slow' | 'offline' = 'slow'\n\n/**\n * A utility function to simulate different network states. Useful for testing.\n *\n * @internal\n */\nexport function simulateNetworkStatus(status: 'fast' | 'slow' | 'offline') {\n networkStatus = status\n if (status !== 'offline') {\n connectHandlers.forEach((handler) => handler())\n connectHandlers.length = 0\n }\n}\n\n/**\n * Simulate a user searching with some delay.\n */\nexport async function queryUsers(query: string): Promise<User[]> {\n if (networkStatus === 'offline') {\n await new Promise<void>((resolve) => connectHandlers.push(resolve))\n }\n if (networkStatus === 'slow') {\n await new Promise<void>((resolve) => setTimeout(resolve, 300))\n }\n\n const normalizedQuery = query.toLowerCase().trim()\n const filteredUsers = users\n .filter((user) => user.name.toLowerCase().includes(normalizedQuery))\n .slice(0, 10)\n return filteredUsers\n}\n"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"meta": {
|
|
19
|
+
"hasIcons": false,
|
|
20
|
+
"hidden": false,
|
|
21
|
+
"story": "",
|
|
22
|
+
"framework": "react",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/react/sample/sample-query-users.ts",
|
|
25
|
+
"registry/src/react/sample/sample-user-data.ts"
|
|
26
|
+
],
|
|
27
|
+
"internalDependencies": [
|
|
28
|
+
"react-sample-sample-user-data"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json"
|
|
32
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-sample-sample-tag-data",
|
|
3
|
+
"title": "react-sample-sample-tag-data",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [],
|
|
7
|
+
"dependencies": [],
|
|
8
|
+
"files": [
|
|
9
|
+
{
|
|
10
|
+
"path": "registry/src/react/sample/sample-tag-data.ts",
|
|
11
|
+
"type": "registry:component",
|
|
12
|
+
"target": "components/editor/sample/sample-tag-data.ts",
|
|
13
|
+
"content": "export const tags = [\n { id: 1, label: 'book' },\n { id: 2, label: 'movie' },\n { id: 3, label: 'trip' },\n { id: 4, label: 'music' },\n { id: 5, label: 'art' },\n { id: 6, label: 'food' },\n { id: 7, label: 'sport' },\n { id: 8, label: 'technology' },\n { id: 9, label: 'fashion' },\n { id: 10, label: 'nature' },\n]\n"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"meta": {
|
|
17
|
+
"hasIcons": false,
|
|
18
|
+
"hidden": false,
|
|
19
|
+
"story": "",
|
|
20
|
+
"framework": "react",
|
|
21
|
+
"accumulatedFiles": [
|
|
22
|
+
"registry/src/react/sample/sample-tag-data.ts"
|
|
23
|
+
],
|
|
24
|
+
"internalDependencies": []
|
|
25
|
+
},
|
|
26
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json"
|
|
27
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-sample-sample-uploader",
|
|
3
|
+
"title": "react-sample-sample-uploader",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [],
|
|
7
|
+
"dependencies": [
|
|
8
|
+
"prosekit"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "registry/src/react/sample/sample-uploader.ts",
|
|
13
|
+
"type": "registry:component",
|
|
14
|
+
"target": "components/editor/sample/sample-uploader.ts",
|
|
15
|
+
"content": "import type { Uploader } from 'prosekit/extensions/file'\n\n/**\n * Uploads the given file to https://tmpfiles.org/ and returns the URL of the\n * uploaded file.\n *\n * This function is only for demonstration purposes. All uploaded files will be\n * deleted by the server after 1 hour.\n */\nexport const sampleUploader: Uploader<string> = ({ file, onProgress }): Promise<string> => {\n return new Promise((resolve, reject) => {\n const xhr = new XMLHttpRequest()\n const formData = new FormData()\n formData.append('file', file)\n\n xhr.upload.addEventListener('progress', (event) => {\n if (event.lengthComputable) {\n onProgress({\n loaded: event.loaded,\n total: event.total,\n })\n }\n })\n\n xhr.addEventListener('load', () => {\n if (xhr.status === 200) {\n try {\n const json = JSON.parse(xhr.responseText) as { data: { url: string } }\n const url: string = json.data.url.replace('tmpfiles.org/', 'tmpfiles.org/dl/')\n\n // Simulate a larger delay\n setTimeout(() => resolve(url), 1000)\n } catch (error) {\n reject(new Error('Failed to parse response', { cause: error }))\n }\n } else {\n reject(new Error(`Upload failed with status ${xhr.status}`))\n }\n })\n\n xhr.addEventListener('error', () => {\n reject(new Error('Upload failed'))\n })\n\n xhr.open('POST', 'https://tmpfiles.org/api/v1/upload', true)\n xhr.send(formData)\n })\n}\n"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"meta": {
|
|
19
|
+
"hasIcons": false,
|
|
20
|
+
"hidden": false,
|
|
21
|
+
"story": "",
|
|
22
|
+
"framework": "react",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/react/sample/sample-uploader.ts"
|
|
25
|
+
],
|
|
26
|
+
"internalDependencies": []
|
|
27
|
+
},
|
|
28
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json"
|
|
29
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-sample-sample-user-data",
|
|
3
|
+
"title": "react-sample-sample-user-data",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [],
|
|
7
|
+
"dependencies": [],
|
|
8
|
+
"files": [
|
|
9
|
+
{
|
|
10
|
+
"path": "registry/src/react/sample/sample-user-data.ts",
|
|
11
|
+
"type": "registry:component",
|
|
12
|
+
"target": "components/editor/sample/sample-user-data.ts",
|
|
13
|
+
"content": "export const users = [\n { id: 1, name: 'Alex' },\n { id: 2, name: 'Alice' },\n { id: 3, name: 'Ben' },\n { id: 4, name: 'Bob' },\n { id: 5, name: 'Charlie' },\n { id: 6, name: 'Cara' },\n { id: 7, name: 'Derek' },\n { id: 8, name: 'Diana' },\n { id: 9, name: 'Ethan' },\n { id: 10, name: 'Eva' },\n { id: 11, name: 'Frank' },\n { id: 12, name: 'Fiona' },\n { id: 13, name: 'George' },\n { id: 14, name: 'Gina' },\n { id: 15, name: 'Harry' },\n { id: 16, name: 'Hannah' },\n { id: 17, name: 'Ivan' },\n { id: 18, name: 'Iris' },\n { id: 19, name: 'Jack' },\n { id: 20, name: 'Jasmine' },\n { id: 21, name: 'Kevin' },\n { id: 22, name: 'Kate' },\n { id: 23, name: 'Leo' },\n { id: 24, name: 'Lily' },\n { id: 25, name: 'Mike' },\n { id: 26, name: 'Mia' },\n { id: 27, name: 'Nathan' },\n { id: 28, name: 'Nancy' },\n { id: 29, name: 'Oscar' },\n { id: 30, name: 'Olivia' },\n { id: 31, name: 'Paul' },\n { id: 32, name: 'Penny' },\n { id: 33, name: 'Quentin' },\n { id: 34, name: 'Queen' },\n { id: 35, name: 'Roger' },\n { id: 36, name: 'Rita' },\n { id: 37, name: 'Sam' },\n { id: 38, name: 'Sara' },\n { id: 39, name: 'Tom' },\n { id: 40, name: 'Tina' },\n { id: 41, name: 'Ulysses' },\n { id: 42, name: 'Una' },\n { id: 43, name: 'Victor' },\n { id: 44, name: 'Vera' },\n { id: 45, name: 'Walter' },\n { id: 46, name: 'Wendy' },\n { id: 47, name: 'Xavier' },\n { id: 48, name: 'Xena' },\n { id: 49, name: 'Yan' },\n { id: 50, name: 'Yvonne' },\n { id: 51, name: 'Zack' },\n { id: 52, name: 'Zara' },\n]\n"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"meta": {
|
|
17
|
+
"hasIcons": false,
|
|
18
|
+
"hidden": false,
|
|
19
|
+
"story": "",
|
|
20
|
+
"framework": "react",
|
|
21
|
+
"accumulatedFiles": [
|
|
22
|
+
"registry/src/react/sample/sample-user-data.ts"
|
|
23
|
+
],
|
|
24
|
+
"internalDependencies": []
|
|
25
|
+
},
|
|
26
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json"
|
|
27
|
+
}
|