@pilotiq/tiptap 3.3.0 → 3.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/markdownExtension.d.ts +2 -0
- package/dist/markdownExtension.d.ts.map +1 -0
- package/dist/markdownExtension.js +9778 -0
- package/dist/markdownExtension.js.map +7 -0
- package/dist/react/MarkdownEditor.d.ts.map +1 -1
- package/dist/react/MarkdownEditor.js +12 -1
- package/dist/react/MarkdownEditor.js.map +1 -1
- package/package.json +5 -4
- package/src/markdownExtension.ts +19 -0
- package/src/react/MarkdownEditor.tsx +12 -1
package/README.md
CHANGED
|
@@ -64,4 +64,8 @@ RichTextField.make('body')
|
|
|
64
64
|
|
|
65
65
|
`attachFiles` reuses the panel's `UploadAdapter` (`Pilotiq.uploads({ adapter })`); the button is stripped server-side when no adapter is wired. The `table` button inserts a 3×3 table with a header row; while the cursor is inside a table, a floating toolbar with column / row / merge / split / header-toggle / delete buttons sits above it. `mergeTags` adds a "Merge tags" group to the slash menu — each id becomes a `{{ id }}` placeholder substituted at read time via `renderRichTextToHtml(content, { mergeTags })`. Each `MentionProvider` registers its trigger character (`@`, `#`, …) and either a static item list (`.items([…])`) or an async resolver (`.itemsUsing(async (query, ctx) => […])`) — the editor fetches a tiny per-form endpoint for async providers and inlines static items into the field meta.
|
|
66
66
|
|
|
67
|
+
## Vite config
|
|
68
|
+
|
|
69
|
+
No special wiring required. `MarkdownField`'s `tiptap-markdown` + `markdown-it` + `markdown-it-task-lists` chain is pre-bundled into `dist/markdownExtension.js` at `@pilotiq/tiptap` build time (esbuild handles the CJS → ESM default-export interop that broke Vite's dev runtime under earlier releases). Treat this package like any other in `optimizeDeps` — typically `exclude: ['@pilotiq/pilotiq']` is the only entry you need for pilotiq.
|
|
70
|
+
|
|
67
71
|
Full reference: [docs/packages/tiptap.md](../../docs/packages/tiptap.md).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdownExtension.d.ts","sourceRoot":"","sources":["../src/markdownExtension.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,QAAQ,EAAE,GAAkB,CAAA"}
|