react-reason-editor 1.0.96 → 1.0.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/{BubbleMenus-F5PFH6eV.cjs → BubbleMenus-3RiQc4lw.cjs} +1 -1
  2. package/dist/{BubbleMenus-eYDoohA4.js → BubbleMenus-CFzQBrVG.js} +1 -1
  3. package/dist/{ImportWord-cr386RpI.js → ImportWord-DtON-y5N.js} +1 -1
  4. package/dist/ImportWord.cjs +1 -1
  5. package/dist/ImportWord.js +1 -1
  6. package/dist/{Pagination-yjRu_qJK.cjs → Pagination-CGxVvD1Y.cjs} +1 -1
  7. package/dist/{Pagination-B8rfYYi_.js → Pagination-DYCCm6cp.js} +1 -1
  8. package/dist/Pagination.cjs +1 -1
  9. package/dist/Pagination.js +1 -1
  10. package/dist/{ReasonDocs-D_c14vkF.js → ReasonDocs-BXtUm4zk.js} +2 -2
  11. package/dist/{ReasonDocs-cELUZvnA.cjs → ReasonDocs-CsmZMk6W.cjs} +1 -1
  12. package/dist/{RichTextProvider-B5fdgtFs.js → RichTextProvider-BcsYTR6Z.js} +1 -1
  13. package/dist/{RichTextProvider-DJWvDmyS.cjs → RichTextProvider-KRSFedCE.cjs} +1 -1
  14. package/dist/docs-agent/plate/kits/markdown-kit.d.ts +8 -0
  15. package/dist/docs-agent/plate/plate-editor-config.d.ts +30 -0
  16. package/dist/docs-agent.cjs +1 -1
  17. package/dist/docs-agent.js +1 -1
  18. package/dist/editor-kit.cjs +1 -1
  19. package/dist/editor-kit.js +1 -1
  20. package/dist/{editorConfig-Duji4hwm.js → editorConfig-9-ZxkRbw.js} +1 -1
  21. package/dist/{editorConfig-2pHxtmeI.cjs → editorConfig-DF8EAH_P.cjs} +1 -1
  22. package/dist/extensions/Twitter/Twitter.d.ts +6 -1
  23. package/dist/{html-to-docx.esm-BLUcO7pp-DLRiI93_.cjs → html-to-docx.esm-BLUcO7pp-BKB2FJoB.cjs} +1 -1
  24. package/dist/index.cjs +1 -1
  25. package/dist/index.js +1 -1
  26. package/dist/reason-docs.cjs +1 -1
  27. package/dist/reason-docs.js +1 -1
  28. package/dist/reason-toolbar-skin-DY4w9SRA.cjs +1 -0
  29. package/dist/{reason-toolbar-skin-CQzJJqJy.js → reason-toolbar-skin-DarRq6V-.js} +4 -4
  30. package/package.json +3 -3
  31. package/dist/reason-toolbar-skin-SPGcsiuT.cjs +0 -1
@@ -1,4 +1,4 @@
1
- import{r as t}from"./tooltip-G11f5UOp.js";import{c as r,d as e,f as a,l as i,s as o,u as s}from"./editorConfig-Duji4hwm.js";import{n}from"./events.constant-DYciHxmk.js";import{EditorContext as c}from"@tiptap/react";import{useEffect as d,useId as p}from"react";import{Fragment as m,jsx as l,jsxs as f}from"react/jsx-runtime";function u({editor:u,children:h}){const j=p();return d(()=>(i(e,"react-tiptap-reset"),()=>{r("react-tiptap-reset")}),[]),d(()=>{u&&(u.id=j)},[j,u]),u?/* @__PURE__ */l("div",{className:"reactjs-tiptap-editor",children:/* @__PURE__ */l(n,{children:/* @__PURE__ */f(c.Provider,{value:{editor:u},children:[
1
+ import{r as t}from"./tooltip-G11f5UOp.js";import{c as r,d as e,f as a,l as i,s as o,u as s}from"./editorConfig-9-ZxkRbw.js";import{n}from"./events.constant-DYciHxmk.js";import{EditorContext as c}from"@tiptap/react";import{useEffect as d,useId as p}from"react";import{Fragment as m,jsx as l,jsxs as f}from"react/jsx-runtime";function u({editor:u,children:h}){const j=p();return d(()=>(i(e,"react-tiptap-reset"),()=>{r("react-tiptap-reset")}),[]),d(()=>{u&&(u.id=j)},[j,u]),u?/* @__PURE__ */l("div",{className:"reactjs-tiptap-editor",children:/* @__PURE__ */l(n,{children:/* @__PURE__ */f(c.Provider,{value:{editor:u},children:[
2
2
  /* @__PURE__ */l(t,{delayDuration:0,disableHoverableContent:!0,children:h}),
3
3
  /* @__PURE__ */l(s,{editor:u}),
4
4
  /* @__PURE__ */l(a,{}),
@@ -1 +1 @@
1
- const e=require("./tooltip-DSRLxJD_.cjs"),r=require("./editorConfig-2pHxtmeI.cjs"),t=require("./events.constant-BkYOoqSk.cjs");let i=require("@tiptap/react"),o=require("react"),s=require("react/jsx-runtime");function a({editor:a,children:c}){const n=(0,o.useId)();return(0,o.useEffect)(()=>(r.updateCSS(r.RESET_CSS,"react-tiptap-reset"),()=>{r.removeCSS("react-tiptap-reset")}),[]),(0,o.useEffect)(()=>{a&&(a.id=n)},[n,a]),a?(0,s.jsx)("div",{className:"reactjs-tiptap-editor",children:(0,s.jsx)(t.ReactBusProvider,{children:(0,s.jsxs)(i.EditorContext.Provider,{value:{editor:a},children:[(0,s.jsx)(e.TooltipProvider,{delayDuration:0,disableHoverableContent:!0,children:c}),(0,s.jsx)(r.EditorEditableReactive,{editor:a}),(0,s.jsx)(r.SlashDialogTrigger,{}),(0,s.jsx)(r.ThemeColorReactive,{})]})})}):(0,s.jsx)(s.Fragment,{})}Object.defineProperty(exports,"RichTextProvider",{enumerable:!0,get:function(){return a}});
1
+ const e=require("./tooltip-DSRLxJD_.cjs"),r=require("./editorConfig-DF8EAH_P.cjs"),t=require("./events.constant-BkYOoqSk.cjs");let i=require("@tiptap/react"),o=require("react"),s=require("react/jsx-runtime");function a({editor:a,children:c}){const n=(0,o.useId)();return(0,o.useEffect)(()=>(r.updateCSS(r.RESET_CSS,"react-tiptap-reset"),()=>{r.removeCSS("react-tiptap-reset")}),[]),(0,o.useEffect)(()=>{a&&(a.id=n)},[n,a]),a?(0,s.jsx)("div",{className:"reactjs-tiptap-editor",children:(0,s.jsx)(t.ReactBusProvider,{children:(0,s.jsxs)(i.EditorContext.Provider,{value:{editor:a},children:[(0,s.jsx)(e.TooltipProvider,{delayDuration:0,disableHoverableContent:!0,children:c}),(0,s.jsx)(r.EditorEditableReactive,{editor:a}),(0,s.jsx)(r.SlashDialogTrigger,{}),(0,s.jsx)(r.ThemeColorReactive,{})]})})}):(0,s.jsx)(s.Fragment,{})}Object.defineProperty(exports,"RichTextProvider",{enumerable:!0,get:function(){return a}});
@@ -0,0 +1,8 @@
1
+ import { AnySlatePlugin } from 'platejs';
2
+ /**
3
+ * Annotated rather than inferred: `MarkdownPlugin.configure()` infers a type
4
+ * that reaches into `remark-stringify`'s `Options`, which under bun's install
5
+ * layout is only nameable through a `.bun/remark-stringify@x.y.z/...` path.
6
+ * Declaration emit refuses to write that (TS2883), so pin the public shape.
7
+ */
8
+ export declare const MarkdownKit: AnySlatePlugin[];
@@ -0,0 +1,30 @@
1
+ import { AnySlatePlugin } from 'platejs';
2
+ import { AnyPlatePlugin } from 'platejs/react';
3
+ /**
4
+ * Media/uploads. Assembled here rather than pulled from the registry's
5
+ * `media-kit`, whose upload toast and placeholder wiring is bound to
6
+ * UploadThing; the node components and plugins are the starter's.
7
+ */
8
+ /**
9
+ * The plugin arrays below mix React plugins (`platejs/react`) with the base
10
+ * Slate ones some kits still ship, so neither `AnyPlatePlugin[]` nor
11
+ * `AnySlatePlugin[]` describes them on its own.
12
+ */
13
+ export type PlatePluginList = (AnyPlatePlugin | AnySlatePlugin)[];
14
+ export declare const MediaKit: PlatePluginList;
15
+ /**
16
+ * Everything except collaboration, which is layered on per document.
17
+ *
18
+ * Annotated rather than inferred for the same reason as `MarkdownKit` (which
19
+ * this spreads): the inferred type reaches `remark-stringify`'s `Options`
20
+ * through a bun-internal `.bun/...` path that declaration emit cannot name
21
+ * (TS2883).
22
+ */
23
+ export declare const platePlugins: PlatePluginList;
24
+ /** A single empty paragraph — what a brand-new document starts from. */
25
+ export declare const EMPTY_PLATE_VALUE: {
26
+ type: "p";
27
+ children: {
28
+ text: string;
29
+ }[];
30
+ }[];