@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.
Files changed (52) hide show
  1. package/README.md +9 -7
  2. package/dist/composites.js +190 -158
  3. package/dist/composites.js.map +1 -1
  4. package/dist/graph.css +1 -1
  5. package/dist/graph.js +639 -63
  6. package/dist/graph.js.map +1 -1
  7. package/dist/primitives.css +1 -1
  8. package/dist/primitives.js +108 -93
  9. package/dist/primitives.js.map +1 -1
  10. package/dist/testing.js +207 -0
  11. package/dist/testing.js.map +1 -0
  12. package/dist/tokens.css +22 -2
  13. package/dist/types/composites/banner/Banner.d.ts +9 -3
  14. package/dist/types/composites/banner/index.d.ts +2 -2
  15. package/dist/types/composites/command-palette/CommandPalette.d.ts +16 -10
  16. package/dist/types/composites/command-palette/index.d.ts +2 -2
  17. package/dist/types/composites/shortcut-sheet/ShortcutSheet.d.ts +17 -11
  18. package/dist/types/composites/shortcut-sheet/index.d.ts +2 -2
  19. package/dist/types/composites/toaster/Toaster.d.ts +15 -9
  20. package/dist/types/composites/toaster/index.d.ts +2 -2
  21. package/dist/types/graph/add-at/index.d.ts +2 -0
  22. package/dist/types/graph/add-at/useAddAt.d.ts +32 -0
  23. package/dist/types/graph/canvas-tools/CanvasTools.d.ts +40 -0
  24. package/dist/types/graph/canvas-tools/index.d.ts +2 -0
  25. package/dist/types/graph/canvas-tools/motion.d.ts +2 -0
  26. package/dist/types/graph/connect-hints/index.d.ts +4 -0
  27. package/dist/types/graph/connect-hints/mergeFlowProps.d.ts +10 -0
  28. package/dist/types/graph/connect-hints/useConnectHints.d.ts +48 -0
  29. package/dist/types/graph/follow-fit/index.d.ts +2 -0
  30. package/dist/types/graph/follow-fit/useFollowFit.d.ts +21 -0
  31. package/dist/types/graph/ghost-wire/GhostWire.d.ts +16 -0
  32. package/dist/types/graph/ghost-wire/index.d.ts +2 -0
  33. package/dist/types/graph/index.d.ts +8 -0
  34. package/dist/types/graph/meter/Meter.d.ts +9 -3
  35. package/dist/types/graph/meter/index.d.ts +2 -2
  36. package/dist/types/graph/node-box/NodeBox.d.ts +52 -0
  37. package/dist/types/graph/node-box/geometry.d.ts +47 -0
  38. package/dist/types/graph/node-box/index.d.ts +4 -0
  39. package/dist/types/graph/port-row/PortRow.d.ts +31 -0
  40. package/dist/types/graph/port-row/index.d.ts +2 -0
  41. package/dist/types/graph/wire/Wire.d.ts +27 -0
  42. package/dist/types/graph/wire/index.d.ts +2 -0
  43. package/dist/types/primitives/dialog/Dialog.d.ts +8 -2
  44. package/dist/types/primitives/dialog/index.d.ts +2 -2
  45. package/dist/types/primitives/sheet/Sheet.d.ts +8 -2
  46. package/dist/types/primitives/sheet/index.d.ts +2 -2
  47. package/dist/types/primitives/splitter/Splitter.d.ts +8 -2
  48. package/dist/types/primitives/splitter/splitter-math.d.ts +12 -4
  49. package/dist/types/testing/brand-css.d.ts +41 -0
  50. package/dist/types/testing/contrast.d.ts +36 -0
  51. package/dist/types/testing/index.d.ts +2 -0
  52. 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 and the level
17
- meter are built; the rest of the composites, the app shell and the React Flow graph components are
18
- designed in [`docs/design/patchbay.md`](docs/design/patchbay.md) and not built yet. Expect
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 will also need `@xyflow/react` 12, and the code
28
- views can highlight [knobly](https://github.com/mcurcio/knobly) text if you install `knobly`; both
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