@octanejs/mcp-server 0.2.18 → 0.2.19
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 +1 -1
- package/skills/bridge-react-package.md +2 -5
- package/src/bridge.js +4 -0
package/package.json
CHANGED
|
@@ -39,6 +39,7 @@ of bridging by hand:
|
|
|
39
39
|
| `@streamdown/mermaid` | `@octanejs/streamdown/mermaid` |
|
|
40
40
|
| `@streamdown/cjk` | `@octanejs/streamdown/cjk` |
|
|
41
41
|
| `recharts` | `@octanejs/recharts` |
|
|
42
|
+
| `react-resizable-panels` | `@octanejs/resizable-panels` |
|
|
42
43
|
| `@react-three/fiber` | `@octanejs/three` |
|
|
43
44
|
| `@visx/*` | `@octanejs/visx` |
|
|
44
45
|
| `react-redux` | `@octanejs/redux` |
|
|
@@ -128,11 +129,7 @@ So a bridge never means "run the React package unchanged". It means:
|
|
|
128
129
|
the official bindings:
|
|
129
130
|
|
|
130
131
|
```ts
|
|
131
|
-
import { useMemo, useRef } from 'octane';
|
|
132
|
-
|
|
133
|
-
export function subSlot(slot: symbol | undefined, tag: string) {
|
|
134
|
-
return slot !== undefined ? Symbol.for((slot.description ?? '') + ':' + tag) : undefined;
|
|
135
|
-
}
|
|
132
|
+
import { subSlot, useMemo, useRef } from 'octane';
|
|
136
133
|
|
|
137
134
|
export function useControllableState(opts, slot?: symbol) {
|
|
138
135
|
const valueRef = useRef(opts.defaultValue, subSlot(slot, 'value'));
|
package/src/bridge.js
CHANGED
|
@@ -27,6 +27,8 @@ export const KNOWN_BINDINGS = {
|
|
|
27
27
|
'@rainbow-me/rainbowkit': '@octanejs/rainbowkit',
|
|
28
28
|
'@tanstack/react-router': '@octanejs/tanstack-router',
|
|
29
29
|
'@tanstack/react-store': '@octanejs/tanstack-store',
|
|
30
|
+
'@xstate/react': '@octanejs/xstate',
|
|
31
|
+
'@xstate/store-react': '@octanejs/xstate-store',
|
|
30
32
|
'@tanstack/react-router-ssr-query': '@octanejs/tanstack-router-ssr-query',
|
|
31
33
|
'@tanstack/react-hotkeys': '@octanejs/tanstack-hotkeys',
|
|
32
34
|
'@tanstack/react-pacer': '@octanejs/tanstack-pacer',
|
|
@@ -62,6 +64,7 @@ export const KNOWN_BINDINGS = {
|
|
|
62
64
|
'react-dropzone': '@octanejs/dropzone',
|
|
63
65
|
sonner: '@octanejs/sonner',
|
|
64
66
|
'react-error-boundary': '@octanejs/react-error-boundary',
|
|
67
|
+
'react-resizable-panels': '@octanejs/resizable-panels',
|
|
65
68
|
'react-transition-group': '@octanejs/transition-group',
|
|
66
69
|
'react-day-picker': '@octanejs/day-picker',
|
|
67
70
|
'input-otp': '@octanejs/input-otp',
|
|
@@ -183,6 +186,7 @@ export const KNOWN_VANILLA_CORES = {
|
|
|
183
186
|
'@dnd-kit/react': '@dnd-kit/dom',
|
|
184
187
|
'embla-carousel-react': 'embla-carousel',
|
|
185
188
|
'@xstate/react': 'xstate',
|
|
189
|
+
'@xstate/store-react': '@xstate/store',
|
|
186
190
|
'react-redux': 'redux',
|
|
187
191
|
'@reduxjs/toolkit': 'redux',
|
|
188
192
|
'react-i18next': 'i18next',
|