@octanejs/tiptap 0.0.46 → 0.0.47

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/tiptap",
3
- "version": "0.0.46",
3
+ "version": "0.0.47",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -56,14 +56,14 @@
56
56
  "@tiptap/extension-floating-menu": "3.28.0"
57
57
  },
58
58
  "peerDependencies": {
59
- "octane": "^0.1.51 || ^0.2.0"
59
+ "octane": "^0.1.51 || ^0.2.0 || ^0.3.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@testing-library/jest-dom": "^6.9.1",
63
63
  "@testing-library/react": "16.3.2",
64
64
  "@tiptap/react": "3.28.0",
65
65
  "@tiptap/starter-kit": "3.28.0",
66
- "@tsrx/react": "^0.2.63",
66
+ "@tsrx/react": "^0.3.0",
67
67
  "esbuild": "^0.28.1",
68
68
  "playwright": "^1.61.1",
69
69
  "react": "19.2.7",
@@ -73,8 +73,8 @@
73
73
  "use-sync-external-store": "^1.4.0",
74
74
  "@types/react": "19.2.17",
75
75
  "@types/react-dom": "19.2.3",
76
- "@octanejs/testing-library": "0.1.49",
77
- "octane": "0.2.0"
76
+ "@octanejs/testing-library": "0.1.52",
77
+ "octane": "0.3.0"
78
78
  },
79
79
  "scripts": {
80
80
  "test": "vitest run",
package/src/Context.tsrx CHANGED
@@ -49,7 +49,7 @@ export function EditorProvider(props: EditorProviderProps) @{
49
49
  return null;
50
50
  }
51
51
 
52
- <EditorContext.Provider value={contextValue}>
52
+ <EditorContext value={contextValue}>
53
53
  {slotBefore}
54
54
  <EditorConsumer>
55
55
  {({ editor: currentEditor }: EditorContextValue) =>
@@ -57,5 +57,5 @@ export function EditorProvider(props: EditorProviderProps) @{
57
57
  </EditorConsumer>
58
58
  {children}
59
59
  {slotAfter}
60
- </EditorContext.Provider>
60
+ </EditorContext>
61
61
  }
@@ -71,7 +71,7 @@ export class ReactMarkView extends MarkView<
71
71
  },
72
72
  };
73
73
  const providerBody: ComponentBody<MarkViewProps> = (providerProps) =>
74
- createElement(ReactMarkViewContext.Provider, {
74
+ createElement(ReactMarkViewContext, {
75
75
  value: context,
76
76
  children: createElement(component, providerProps),
77
77
  });
@@ -156,7 +156,7 @@ export class ReactNodeView<
156
156
  };
157
157
  const Component = this.component;
158
158
  const providerBody: ComponentBody<ReactNodeViewProps<T>> = (props) =>
159
- createElement(ReactNodeViewContext.Provider, {
159
+ createElement(ReactNodeViewContext, {
160
160
  value: context,
161
161
  children: createElement(Component, props),
162
162
  });
package/src/Tiptap.tsrx CHANGED
@@ -86,9 +86,9 @@ export function TiptapWrapper({ children, ...props }: TiptapWrapperProps) @{
86
86
  const tiptapContextValue = useMemo(() => ({ editor: resolvedEditor }), [resolvedEditor]);
87
87
  const legacyContextValue = useMemo(() => ({ editor: resolvedEditor }), [resolvedEditor]);
88
88
 
89
- <EditorContext.Provider value={legacyContextValue}>
90
- <TiptapContext.Provider value={tiptapContextValue}>{children}</TiptapContext.Provider>
91
- </EditorContext.Provider>
89
+ <EditorContext value={legacyContextValue}>
90
+ <TiptapContext value={tiptapContextValue}>{children}</TiptapContext>
91
+ </EditorContext>
92
92
  }
93
93
 
94
94
  TiptapWrapper.displayName = 'Tiptap';
@@ -23,7 +23,7 @@ export function ReactNodeViewContentProvider({
23
23
  children,
24
24
  content,
25
25
  }: ReactNodeViewContentProviderProps): unknown {
26
- return createElement(ReactNodeViewContext.Provider, {
26
+ return createElement(ReactNodeViewContext, {
27
27
  value: { nodeViewContentChildren: content },
28
28
  children,
29
29
  });