@mcurcio/patchbay 0.5.0 → 0.7.0
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 +9 -7
- package/dist/composites.js +190 -158
- package/dist/composites.js.map +1 -1
- package/dist/graph.css +1 -1
- package/dist/graph.js +639 -63
- package/dist/graph.js.map +1 -1
- package/dist/primitives.css +1 -1
- package/dist/primitives.js +108 -93
- package/dist/primitives.js.map +1 -1
- package/dist/testing.js +207 -0
- package/dist/testing.js.map +1 -0
- package/dist/tokens.css +22 -2
- package/dist/types/composites/banner/Banner.d.ts +9 -3
- package/dist/types/composites/banner/index.d.ts +2 -2
- package/dist/types/composites/command-palette/CommandPalette.d.ts +16 -10
- package/dist/types/composites/command-palette/index.d.ts +2 -2
- package/dist/types/composites/shortcut-sheet/ShortcutSheet.d.ts +17 -11
- package/dist/types/composites/shortcut-sheet/index.d.ts +2 -2
- package/dist/types/composites/toaster/Toaster.d.ts +15 -9
- package/dist/types/composites/toaster/index.d.ts +2 -2
- package/dist/types/graph/add-at/index.d.ts +2 -0
- package/dist/types/graph/add-at/useAddAt.d.ts +32 -0
- package/dist/types/graph/canvas-tools/CanvasTools.d.ts +40 -0
- package/dist/types/graph/canvas-tools/index.d.ts +2 -0
- package/dist/types/graph/canvas-tools/motion.d.ts +2 -0
- package/dist/types/graph/connect-hints/index.d.ts +4 -0
- package/dist/types/graph/connect-hints/mergeFlowProps.d.ts +10 -0
- package/dist/types/graph/connect-hints/useConnectHints.d.ts +48 -0
- package/dist/types/graph/follow-fit/index.d.ts +2 -0
- package/dist/types/graph/follow-fit/useFollowFit.d.ts +21 -0
- package/dist/types/graph/ghost-wire/GhostWire.d.ts +16 -0
- package/dist/types/graph/ghost-wire/index.d.ts +2 -0
- package/dist/types/graph/index.d.ts +8 -0
- package/dist/types/graph/meter/Meter.d.ts +9 -3
- package/dist/types/graph/meter/index.d.ts +2 -2
- package/dist/types/graph/node-box/NodeBox.d.ts +52 -0
- package/dist/types/graph/node-box/geometry.d.ts +47 -0
- package/dist/types/graph/node-box/index.d.ts +4 -0
- package/dist/types/graph/port-row/PortRow.d.ts +31 -0
- package/dist/types/graph/port-row/index.d.ts +2 -0
- package/dist/types/graph/wire/Wire.d.ts +27 -0
- package/dist/types/graph/wire/index.d.ts +2 -0
- package/dist/types/primitives/dialog/Dialog.d.ts +8 -2
- package/dist/types/primitives/dialog/index.d.ts +2 -2
- package/dist/types/primitives/sheet/Sheet.d.ts +8 -2
- package/dist/types/primitives/sheet/index.d.ts +2 -2
- package/dist/types/primitives/splitter/Splitter.d.ts +8 -2
- package/dist/types/primitives/splitter/splitter-math.d.ts +12 -4
- package/dist/types/testing/brand-css.d.ts +41 -0
- package/dist/types/testing/contrast.d.ts +36 -0
- package/dist/types/testing/index.d.ts +2 -0
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -13,9 +13,10 @@ app keeps its own look, and accessible components that work from the keyboard an
|
|
|
13
13
|
patchbay draws and handles interaction. Your app keeps its data, its protocol and its editing
|
|
14
14
|
model: components take props and report what the person did through callbacks.
|
|
15
15
|
|
|
16
|
-
**Status:** early (0.x). The tokens, the primitives, the first composites and hooks
|
|
17
|
-
meter
|
|
18
|
-
|
|
16
|
+
**Status:** early (0.x). The tokens, the primitives, the first composites and hooks, the level
|
|
17
|
+
meter and the graph layer (node box, port rows, wires, connection hints, canvas tools) are built;
|
|
18
|
+
the rest of the composites and the app shell are designed in
|
|
19
|
+
[`docs/design/patchbay.md`](docs/design/patchbay.md) and not built yet. Expect
|
|
19
20
|
breaking changes between minor versions until 1.0.
|
|
20
21
|
|
|
21
22
|
## Install
|
|
@@ -24,9 +25,9 @@ breaking changes between minor versions until 1.0.
|
|
|
24
25
|
npm install @mcurcio/patchbay react react-dom
|
|
25
26
|
```
|
|
26
27
|
|
|
27
|
-
React 19 is a peer dependency. The graph layer
|
|
28
|
-
views can highlight [knobly](https://github.com/mcurcio/knobly)
|
|
29
|
-
are optional.
|
|
28
|
+
React 19 is a peer dependency. The graph layer (`@mcurcio/patchbay/graph`) also needs
|
|
29
|
+
`@xyflow/react` 12 (12.1.0 or newer), and the code views can highlight [knobly](https://github.com/mcurcio/knobly)
|
|
30
|
+
text if you install `knobly`; both are optional, needed only by the parts that use them.
|
|
30
31
|
|
|
31
32
|
## Quickstart
|
|
32
33
|
|
|
@@ -68,7 +69,8 @@ write a brand; [`examples/brands/`](examples/brands/) has two worked examples.
|
|
|
68
69
|
|
|
69
70
|
## Documentation
|
|
70
71
|
|
|
71
|
-
- [`docs/tokens.md`](docs/tokens.md): the tokens, the themes, writing a brand, and the contrast rules
|
|
72
|
+
- [`docs/tokens.md`](docs/tokens.md): the tokens, the themes, writing a brand, and the contrast rules,
|
|
73
|
+
with `@mcurcio/patchbay/testing`'s `checkBrandContrast` to hold your brand to them in your own tests
|
|
72
74
|
- [`docs/components.md`](docs/components.md): every built component and hook, with props, keyboard
|
|
73
75
|
and touch behaviour
|
|
74
76
|
- Storybook: every component's states under each example brand and theme (`pnpm storybook` in a
|