@_linked/primitives 1.2.1 → 1.2.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/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # @\_linked/primitives
2
2
 
3
+ ## 1.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#28](https://github.com/linked-fw/primitives/pull/28) [`23878a3`](https://github.com/linked-fw/primitives/commit/23878a34f6b8c5a720f280f0a2658f785babc0f1) Thanks [@flyon](https://github.com/flyon)! - Compiles under React 19.
8
+
9
+ React 19 removed `React.ElementRef`. Thirty components used it to type their
10
+ forwarded ref, so **this package has not compiled since the React 19 upgrade**
11
+ — and because its `lib/` was left behind at the last successful build, that was
12
+ invisible until a consumer failed to resolve an asset the stale build never
13
+ emitted:
14
+
15
+ ```
16
+ Could not resolve "./Tooltip.module.css"
17
+ from "packages/primitives/lib/esm/components/Tooltip.js"
18
+ ```
19
+
20
+ `React.ComponentRef` is the same type under its current name.
21
+
22
+ ## 1.2.2
23
+
24
+ ### Patch Changes
25
+
26
+ - [#26](https://github.com/linked-fw/primitives/pull/26) [`4ab0199`](https://github.com/linked-fw/primitives/commit/4ab0199d86d5281cee207d021e53fdd46f5d5a05) Thanks [@flyon](https://github.com/flyon)! - Compile the whole `src` folder, and let a bare import resolve under Node10.
27
+
28
+ The build only emitted what an entry transitively reached, so any module
29
+ nothing imported was never built — and never type-checked, so it rotted
30
+ quietly. `include` now covers `src/**/*` with tests excluded explicitly.
31
+
32
+ `typesVersions` maps every specifier through `lib/esm/*`, so a `types` value
33
+ that already carried that prefix had it applied twice and no consumer on
34
+ classic Node10 resolution could `import` the package by its bare name.
35
+
3
36
  ## 1.2.1
4
37
 
5
38
  ### Patch Changes
@@ -7,10 +7,10 @@ declare const Root: {
7
7
  ({ shouldScaleBackground, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>): React.JSX.Element;
8
8
  displayName: string;
9
9
  };
10
- declare const Trigger: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Trigger> & React.RefAttributes<React.ElementRef<typeof DrawerPrimitive.Trigger>>>;
10
+ declare const Trigger: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Trigger> & React.RefAttributes<React.ComponentRef<typeof DrawerPrimitive.Trigger>>>;
11
11
  declare const Portal: typeof import("vaul").Portal;
12
- declare const Close: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Close> & React.RefAttributes<React.ElementRef<typeof DrawerPrimitive.Close>>>;
13
- declare const Overlay: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay> & React.RefAttributes<React.ElementRef<typeof DrawerPrimitive.Overlay>>>;
12
+ declare const Close: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Close> & React.RefAttributes<React.ComponentRef<typeof DrawerPrimitive.Close>>>;
13
+ declare const Overlay: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay> & React.RefAttributes<React.ComponentRef<typeof DrawerPrimitive.Overlay>>>;
14
14
  interface ContentProps extends React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content> {
15
15
  hideHandle?: boolean;
16
16
  }
@@ -23,8 +23,8 @@ declare const Footer: {
23
23
  ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
24
24
  displayName: string;
25
25
  };
26
- declare const Title: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title> & React.RefAttributes<React.ElementRef<typeof DrawerPrimitive.Title>>>;
27
- declare const Description: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description> & React.RefAttributes<React.ElementRef<typeof DrawerPrimitive.Description>>>;
26
+ declare const Title: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title> & React.RefAttributes<React.ComponentRef<typeof DrawerPrimitive.Title>>>;
27
+ declare const Description: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description> & React.RefAttributes<React.ComponentRef<typeof DrawerPrimitive.Description>>>;
28
28
  export declare const Drawer: {
29
29
  Root: typeof Root;
30
30
  Portal: typeof Portal;
@@ -10,7 +10,7 @@
10
10
  "type": "git",
11
11
  "url": "git+https://github.com/linked-fw/primitives.git"
12
12
  },
13
- "version": "1.2.1",
13
+ "version": "1.2.3",
14
14
  "packageManager": "npm@11.19.1",
15
15
  "linkedPackage": true,
16
16
  "license": "ISC",
@@ -7,10 +7,10 @@ declare const Root: {
7
7
  ({ shouldScaleBackground, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>): React.JSX.Element;
8
8
  displayName: string;
9
9
  };
10
- declare const Trigger: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Trigger> & React.RefAttributes<React.ElementRef<typeof DrawerPrimitive.Trigger>>>;
10
+ declare const Trigger: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Trigger> & React.RefAttributes<React.ComponentRef<typeof DrawerPrimitive.Trigger>>>;
11
11
  declare const Portal: typeof import("vaul").Portal;
12
- declare const Close: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Close> & React.RefAttributes<React.ElementRef<typeof DrawerPrimitive.Close>>>;
13
- declare const Overlay: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay> & React.RefAttributes<React.ElementRef<typeof DrawerPrimitive.Overlay>>>;
12
+ declare const Close: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Close> & React.RefAttributes<React.ComponentRef<typeof DrawerPrimitive.Close>>>;
13
+ declare const Overlay: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay> & React.RefAttributes<React.ComponentRef<typeof DrawerPrimitive.Overlay>>>;
14
14
  interface ContentProps extends React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content> {
15
15
  hideHandle?: boolean;
16
16
  }
@@ -23,8 +23,8 @@ declare const Footer: {
23
23
  ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
24
24
  displayName: string;
25
25
  };
26
- declare const Title: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title> & React.RefAttributes<React.ElementRef<typeof DrawerPrimitive.Title>>>;
27
- declare const Description: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description> & React.RefAttributes<React.ElementRef<typeof DrawerPrimitive.Description>>>;
26
+ declare const Title: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title> & React.RefAttributes<React.ComponentRef<typeof DrawerPrimitive.Title>>>;
27
+ declare const Description: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description> & React.RefAttributes<React.ComponentRef<typeof DrawerPrimitive.Description>>>;
28
28
  export declare const Drawer: {
29
29
  Root: typeof Root;
30
30
  Portal: typeof Portal;
@@ -10,7 +10,7 @@
10
10
  "type": "git",
11
11
  "url": "git+https://github.com/linked-fw/primitives.git"
12
12
  },
13
- "version": "1.2.1",
13
+ "version": "1.2.3",
14
14
  "packageManager": "npm@11.19.1",
15
15
  "linkedPackage": true,
16
16
  "license": "ISC",
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "type": "git",
11
11
  "url": "git+https://github.com/linked-fw/primitives.git"
12
12
  },
13
- "version": "1.2.1",
13
+ "version": "1.2.3",
14
14
  "packageManager": "npm@11.19.1",
15
15
  "linkedPackage": true,
16
16
  "main": "lib/cjs/index.js",