@unpunnyfuns/swatchbook-blocks 1.0.0 → 1.1.1

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 (2) hide show
  1. package/README.md +1 -4
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -39,10 +39,7 @@ Block catalogue, props, and composition patterns live in the [blocks reference](
39
39
 
40
40
  ## Boundaries
41
41
 
42
- - Compose multiple blocks per page; each mounts independently.
43
- - ✅ Render outside Storybook with a hand-built or loaded `ProjectSnapshot`.
44
- - ❌ Don't import from `virtual:swatchbook/tokens`; it's the addon's internal wiring, not a public API. Use `SwatchbookProvider`.
45
- - ❌ Don't use `useGlobals` / `useArgs` from `storybook/preview-api` inside custom blocks; those hooks throw in docs context.
42
+ Blocks read from `SwatchbookProvider`, not the addon's internal `virtual:swatchbook/tokens` module; don't import that directly. And `useGlobals` / `useArgs` from `storybook/preview-api` throw in a docs context, so don't call them inside custom blocks.
46
43
 
47
44
  ## Credits
48
45
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unpunnyfuns/swatchbook-blocks",
3
- "version": "1.0.0",
3
+ "version": "1.1.1",
4
4
  "description": "Storybook MDX doc blocks for DTCG design tokens — TokenTable, ColorPalette, TypographyScale, TokenDetail.",
5
5
  "keywords": [
6
6
  "design-system",
@@ -48,7 +48,7 @@
48
48
  "@tanstack/react-virtual": "3.14.5",
49
49
  "clsx": "^2.1.1",
50
50
  "colorjs.io": "^0.6.1",
51
- "@unpunnyfuns/swatchbook-core": "1.0.0"
51
+ "@unpunnyfuns/swatchbook-core": "1.1.1"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@terrazzo/token-tools": "^2.3.0",