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": "preact-sample-sample-doc-italic",
|
|
3
|
+
"title": "preact-sample-sample-doc-italic",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [],
|
|
7
|
+
"dependencies": [
|
|
8
|
+
"prosekit"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "registry/src/preact/sample/sample-doc-italic.ts",
|
|
13
|
+
"type": "registry:component",
|
|
14
|
+
"target": "components/editor/sample/sample-doc-italic.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: 'italic',\n },\n ],\n text: 'This is italic',\n },\n ],\n },\n {\n type: 'paragraph',\n content: [\n {\n type: 'text',\n marks: [\n {\n type: 'italic',\n },\n ],\n text: 'This is italic too',\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": "preact",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/preact/sample/sample-doc-italic.ts"
|
|
25
|
+
],
|
|
26
|
+
"internalDependencies": []
|
|
27
|
+
},
|
|
28
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json"
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "preact-sample-sample-doc-link-mark-view",
|
|
3
|
+
"title": "preact-sample-sample-doc-link-mark-view",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [],
|
|
7
|
+
"dependencies": [
|
|
8
|
+
"prosekit"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "registry/src/preact/sample/sample-doc-link-mark-view.ts",
|
|
13
|
+
"type": "registry:component",
|
|
14
|
+
"target": "components/editor/sample/sample-doc-link-mark-view.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: 'Here is a link that changes color every second: ',\n },\n {\n type: 'text',\n marks: [\n {\n type: 'link',\n attrs: {\n href: 'https://www.example.com',\n target: null,\n rel: null,\n },\n },\n ],\n text: 'example link',\n },\n ],\n },\n ],\n}\n"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"meta": {
|
|
19
|
+
"hasIcons": false,
|
|
20
|
+
"hidden": false,
|
|
21
|
+
"story": "",
|
|
22
|
+
"framework": "preact",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/preact/sample/sample-doc-link-mark-view.ts"
|
|
25
|
+
],
|
|
26
|
+
"internalDependencies": []
|
|
27
|
+
},
|
|
28
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json"
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "preact-sample-sample-doc-link",
|
|
3
|
+
"title": "preact-sample-sample-doc-link",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [],
|
|
7
|
+
"dependencies": [
|
|
8
|
+
"prosekit"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "registry/src/preact/sample/sample-doc-link.ts",
|
|
13
|
+
"type": "registry:component",
|
|
14
|
+
"target": "components/editor/sample/sample-doc-link.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: 'Here is an ',\n },\n {\n type: 'text',\n marks: [\n {\n type: 'link',\n attrs: {\n href: 'https://www.example.com',\n target: null,\n rel: null,\n },\n },\n ],\n text: 'example link',\n },\n ],\n },\n ],\n}\n"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"meta": {
|
|
19
|
+
"hasIcons": false,
|
|
20
|
+
"hidden": false,
|
|
21
|
+
"story": "",
|
|
22
|
+
"framework": "preact",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/preact/sample/sample-doc-link.ts"
|
|
25
|
+
],
|
|
26
|
+
"internalDependencies": []
|
|
27
|
+
},
|
|
28
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json"
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "preact-sample-sample-doc-list-custom-checkbox",
|
|
3
|
+
"title": "preact-sample-sample-doc-list-custom-checkbox",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [],
|
|
7
|
+
"dependencies": [
|
|
8
|
+
"prosekit"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "registry/src/preact/sample/sample-doc-list-custom-checkbox.ts",
|
|
13
|
+
"type": "registry:component",
|
|
14
|
+
"target": "components/editor/sample/sample-doc-list-custom-checkbox.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: 'Custom list checkbox design and strikethrough for completed tasks. Please check ',\n },\n { type: 'text', text: 'custom-list.css', marks: [{ type: 'code' }] },\n { type: 'text', text: ' for the styles.' },\n ],\n },\n {\n type: 'list',\n attrs: { kind: 'task', checked: true },\n content: [\n { type: 'paragraph', content: [{ type: 'text', text: 'Completed Task' }] },\n ],\n },\n {\n type: 'list',\n attrs: { kind: 'task', checked: false },\n content: [\n { type: 'paragraph', content: [{ type: 'text', text: 'Incomplete Task' }] },\n ],\n },\n ],\n}\n"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"meta": {
|
|
19
|
+
"hasIcons": false,
|
|
20
|
+
"hidden": false,
|
|
21
|
+
"story": "",
|
|
22
|
+
"framework": "preact",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/preact/sample/sample-doc-list-custom-checkbox.ts"
|
|
25
|
+
],
|
|
26
|
+
"internalDependencies": []
|
|
27
|
+
},
|
|
28
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json"
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "preact-sample-sample-doc-list",
|
|
3
|
+
"title": "preact-sample-sample-doc-list",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [],
|
|
7
|
+
"dependencies": [
|
|
8
|
+
"prosekit"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "registry/src/preact/sample/sample-doc-list.ts",
|
|
13
|
+
"type": "registry:component",
|
|
14
|
+
"target": "components/editor/sample/sample-doc-list.ts",
|
|
15
|
+
"content": "import type { NodeJSON } from 'prosekit/core'\n\nexport const sampleContent: NodeJSON = {\n type: 'doc',\n content: [\n {\n type: 'list',\n attrs: { kind: 'bullet' },\n content: [\n { type: 'paragraph', content: [{ type: 'text', text: 'Bullet List' }] },\n ],\n },\n {\n type: 'list',\n attrs: { kind: 'ordered' },\n content: [\n {\n type: 'paragraph',\n content: [{ type: 'text', text: 'Ordered List' }],\n },\n ],\n },\n {\n type: 'list',\n attrs: { kind: 'task', checked: false },\n content: [\n { type: 'paragraph', content: [{ type: 'text', text: 'Task List ' }] },\n ],\n },\n {\n type: 'list',\n attrs: { kind: 'toggle', collapsed: true },\n content: [\n { type: 'paragraph', content: [{ type: 'text', text: 'Toggle List' }] },\n {\n type: 'list',\n attrs: {\n kind: 'bullet',\n },\n content: [\n { type: 'paragraph', content: [{ type: 'text', text: 'Hidden' }] },\n ],\n },\n ],\n },\n ],\n}\n"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"meta": {
|
|
19
|
+
"hasIcons": false,
|
|
20
|
+
"hidden": false,
|
|
21
|
+
"story": "",
|
|
22
|
+
"framework": "preact",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/preact/sample/sample-doc-list.ts"
|
|
25
|
+
],
|
|
26
|
+
"internalDependencies": []
|
|
27
|
+
},
|
|
28
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json"
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "preact-sample-sample-doc-page",
|
|
3
|
+
"title": "preact-sample-sample-doc-page",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [],
|
|
7
|
+
"dependencies": [
|
|
8
|
+
"prosekit"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "registry/src/preact/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 rest available page will overflow to the next page rather than split. In another word, 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": "preact",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/preact/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": "preact-sample-sample-doc-readonly",
|
|
3
|
+
"title": "preact-sample-sample-doc-readonly",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [],
|
|
7
|
+
"dependencies": [
|
|
8
|
+
"prosekit"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "registry/src/preact/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": "preact",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/preact/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": "preact-sample-sample-doc-rtl",
|
|
3
|
+
"title": "preact-sample-sample-doc-rtl",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [],
|
|
7
|
+
"dependencies": [
|
|
8
|
+
"prosekit"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "registry/src/preact/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": "preact",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/preact/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": "preact-sample-sample-doc-search",
|
|
3
|
+
"title": "preact-sample-sample-doc-search",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [],
|
|
7
|
+
"dependencies": [
|
|
8
|
+
"prosekit"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "registry/src/preact/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": "preact",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/preact/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": "preact-sample-sample-doc-strike",
|
|
3
|
+
"title": "preact-sample-sample-doc-strike",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [],
|
|
7
|
+
"dependencies": [
|
|
8
|
+
"prosekit"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "registry/src/preact/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": "preact",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/preact/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": "preact-sample-sample-doc-table",
|
|
3
|
+
"title": "preact-sample-sample-doc-table",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [],
|
|
7
|
+
"dependencies": [
|
|
8
|
+
"prosekit"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "registry/src/preact/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": "preact",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/preact/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": "preact-sample-sample-doc-tex",
|
|
3
|
+
"title": "preact-sample-sample-doc-tex",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [],
|
|
7
|
+
"dependencies": [
|
|
8
|
+
"prosekit"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "registry/src/preact/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": "preact",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/preact/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": "preact-sample-sample-doc-text-align",
|
|
3
|
+
"title": "preact-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/preact/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": "preact",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/preact/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": "preact-sample-sample-doc-text-color",
|
|
3
|
+
"title": "preact-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/preact/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": "preact",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/preact/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": "preact-sample-sample-doc-typography",
|
|
3
|
+
"title": "preact-sample-sample-doc-typography",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [],
|
|
7
|
+
"dependencies": [
|
|
8
|
+
"prosekit"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "registry/src/preact/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": "preact",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/preact/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": "preact-sample-sample-doc-underline",
|
|
3
|
+
"title": "preact-sample-sample-doc-underline",
|
|
4
|
+
"type": "registry:component",
|
|
5
|
+
"description": "",
|
|
6
|
+
"registryDependencies": [],
|
|
7
|
+
"dependencies": [
|
|
8
|
+
"prosekit"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
{
|
|
12
|
+
"path": "registry/src/preact/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": "preact",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/preact/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": "preact-sample-sample-doc-view-adapter",
|
|
3
|
+
"title": "preact-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/preact/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": "preact",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/preact/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": "preact-sample-sample-doc-word-counter",
|
|
3
|
+
"title": "preact-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/preact/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": "preact",
|
|
23
|
+
"accumulatedFiles": [
|
|
24
|
+
"registry/src/preact/sample/sample-doc-word-counter.ts"
|
|
25
|
+
],
|
|
26
|
+
"internalDependencies": []
|
|
27
|
+
},
|
|
28
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json"
|
|
29
|
+
}
|