@monimesl/dot-renderer-react 1.0.0-beta.1 → 1.0.0-beta.3

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 CHANGED
@@ -20,9 +20,9 @@ source at build time, from `@phosphor-icons/core`.
20
20
 
21
21
  ## The theme
22
22
 
23
- A dot sets `scheme`, `colors` and `shape` in `defineDot`. The colors are `primary`, `background`,
24
- `surface`, `text`, `muted`, `border` and `subtle`, each for light and dark, and `custom` for the
25
- dot's own named colors. A page can set its own colors over the theme's, with `configs.colors` or
23
+ A dot sets its `theme` in `defineDot`, with `scheme`, `colors` and `shape`. The colors are
24
+ `primary`, `background`, `surface`, `text`, `muted`, `border` and `subtle`, each for light and dark,
25
+ and `custom` for the dot's own named colors. A page can set its own colors over the theme's, with `configs.colors` or
26
26
  `setColors`. The renderer fills in the rest of the palette from Dash's own look. On a background
27
27
  that isn't Dash's, it works out surfaces and quieter text that sit well on it. `useTheme()` gives a
28
28
  component the resolved theme.
@@ -45,7 +45,7 @@ function customColor(name, theme) {
45
45
  const color = theme.customColors[name];
46
46
  if (color === void 0 && !unknownColors.has(name)) {
47
47
  unknownColors.add(name);
48
- console.warn(`The theme has no colour named "${name}". Add it to colors.custom in dot.ts.`);
48
+ console.warn(`The theme has no colour named "${name}". Add it to theme.colors.custom in dot.ts.`);
49
49
  }
50
50
  return color;
51
51
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monimesl/dot-renderer-react",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0-beta.3",
4
4
  "description": "React renderer for Dot webviews",
5
5
  "type": "module",
6
6
  "repository": {
@@ -29,8 +29,8 @@
29
29
  "react": "19.3.0",
30
30
  "react-dom": "19.3.0",
31
31
  "uqr": "^0.1.3",
32
- "@monimesl/dot-webview": "1.0.0-beta.1",
33
- "@monimesl/dot-core": "1.0.0-beta.1"
32
+ "@monimesl/dot-core": "1.0.0-beta.3",
33
+ "@monimesl/dot-webview": "1.0.0-beta.3"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@base-ui/react": "1.8.0",
@@ -46,7 +46,7 @@
46
46
  "tsdown": "^0.23.0",
47
47
  "typescript": "^5.9.3",
48
48
  "vitest": "^5.0.1",
49
- "@monimesl/dot-service": "1.0.0-beta.1"
49
+ "@monimesl/dot-service": "1.0.0-beta.3"
50
50
  },
51
51
  "publishConfig": {
52
52
  "access": "public"