docblocks-react-ui 0.1.0 → 0.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # docblocks-react-ui
2
2
 
3
+ ## 0.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - The README stands the `styles.css`'s import's ambient `*.css` declaration's
8
+ note and the `DocHeader`'s stand over the `viewer`'s level.
9
+
3
10
  ## 0.1.0
4
11
 
5
12
  ### Added
package/README.md CHANGED
@@ -49,6 +49,10 @@ function App() {
49
49
  }
50
50
  ```
51
51
 
52
+ The `styles.css` side-effect import stands the standard bundler's ambient
53
+ `*.css` module declaration (shipped with the Vite / CRA / Next.js templates);
54
+ a bare `tsc`-only setup needs a one-line `declare module "*.css"` shim.
55
+
52
56
  - `EditorProvider` owns the per-instance editor state (the store projection
53
57
  of the doc, the selection view, the subscriptions). Multiple providers may
54
58
  coexist, each with its own doc.
@@ -199,6 +203,9 @@ document data, never on the wire):
199
203
  external database form's rows live in the consumer's table (they are not
200
204
  part of the snapshot — the inline form is document data and is). A new
201
205
  snapshot is a remount (pass it under a changing `key`).
206
+ - The `DocHeader` stands over the viewer's stand too: pass the snapshot as
207
+ its `doc` (the viewer's switcher stays off — the `accessLevel` stands no
208
+ `mode` stand over the `viewer` level).
202
209
 
203
210
  ### Sync and presence
204
211
 
package/dist/index.d.mts CHANGED
@@ -240,7 +240,7 @@ declare function AlertDescription({ className, ...props }: React.ComponentProps<
240
240
  //#endregion
241
241
  //#region src/shared/ui/Badge.d.ts
242
242
  declare const badgeVariants: (props?: ({
243
- variant?: "default" | "destructive" | "custom" | "secondary" | "outline" | null | undefined;
243
+ variant?: "default" | "destructive" | "outline" | "secondary" | "custom" | null | undefined;
244
244
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
245
245
  declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
246
246
  asChild?: boolean;
@@ -251,7 +251,7 @@ declare function BareSelect({ className, children, ...props }: React.ComponentPr
251
251
  //#endregion
252
252
  //#region src/shared/ui/Button.d.ts
253
253
  declare const buttonVariants: (props?: ({
254
- variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
254
+ variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
255
255
  size?: "default" | "icon" | "sm" | "lg" | "xl" | null | undefined;
256
256
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
257
257
  declare function Button({ className, variant, size, asChild, type, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docblocks-react-ui",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "React rendering + editing layer for docblocks: hooks, block renderers, caret/selection, keyboard, clipboard.",
5
5
  "type": "module",
6
6
  "license": "MIT",