@cutting/svg 4.64.1 → 4.65.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.
@@ -13,7 +13,7 @@ type GroupOnlyProps = {
13
13
  innerRef?: React.Ref<SVGGElement>;
14
14
  };
15
15
  type GroupProps = GroupOnlyProps & Omit<React.SVGProps<SVGGElement>, keyof GroupOnlyProps>;
16
- declare function Group({ y, x, transform, className, children, innerRef, ...restProps }: GroupProps): JSX.Element;
16
+ export declare function Group({ y, x, transform, className, children, innerRef, ...restProps }: GroupProps): JSX.Element;
17
17
  //#endregion
18
18
  //#region src/types/types.d.ts
19
19
  type PreserveAspectRatioAlignment = 'xMinYMin' | 'xMidYMin' | 'xMaxYMin' | 'xMinYMid' | 'xMidYMid' | 'xMaxYMid' | 'xMinYMax' | 'xMidYMax' | 'xMaxYMax';
@@ -36,7 +36,7 @@ type LineProps = {
36
36
  /** Ending x,y point of the line. */
37
37
  to?: Point;
38
38
  };
39
- declare function Line({ from, to, fill, className, innerRef, ...restProps }: AddSVGProps<LineProps, SVGLineElement>): JSX.Element;
39
+ export declare function Line({ from, to, fill, className, innerRef, ...restProps }: AddSVGProps<LineProps, SVGLineElement>): JSX.Element;
40
40
  //#endregion
41
41
  //#region src/components/ResponsiveSVG/ResponsiveSVG.d.ts
42
42
  interface Point$1 {
@@ -54,7 +54,7 @@ type ResponsiveSVGProps = SVGAttributes$1<{
54
54
  children: ReactNode;
55
55
  overflow?: 'hidden' | 'visible';
56
56
  }>;
57
- declare function ResponsiveSVG({ height, width, children, origin, preserveAspectRatio, innerRef, className, overflow, ...props }: ResponsiveSVGProps): JSX.Element;
57
+ export declare function ResponsiveSVG({ height, width, children, origin, preserveAspectRatio, innerRef, className, overflow, ...props }: ResponsiveSVGProps): JSX.Element;
58
58
  //#endregion
59
59
  //#region src/components/ParentsizeSVG/ParentsizeSVG.d.ts
60
60
  type Align = 'none' | 'center';
@@ -64,7 +64,7 @@ type ParentsizeSVGProps<E extends HTMLElement = HTMLElement> = {
64
64
  scale?: number;
65
65
  options?: Partial<UseParentSizeOptions>;
66
66
  } & Partial<Omit<ResponsiveSVGProps, 'innerRef' | 'height' | 'height'>>;
67
- declare function ParentsizeSVG<E extends HTMLElement>({ parentRef, children, options, ...rest }: PropsWithChildren<ParentsizeSVGProps<E>>): JSX.Element | null;
67
+ export declare function ParentsizeSVG<E extends HTMLElement>({ parentRef, children, options, ...rest }: PropsWithChildren<ParentsizeSVGProps<E>>): JSX.Element | null;
68
68
  //#endregion
69
- export { Group, Line, ParentsizeSVG, type Point, ResponsiveSVG };
69
+ export type { Point };
70
70
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/components/Group/Group.tsx","../../src/types/types.ts","../../src/components/Line/Line.tsx","../../src/components/ResponsiveSVG/ResponsiveSVG.tsx","../../src/components/ParentsizeSVG/ParentsizeSVG.tsx"],"mappings":";;;KAEK;;EAEH;;EAEA;;EAEA;EACA;EACA,WAAW,MAAM;EACjB,WAAW,MAAM,IAAI;;KAGlB,aAAa,iBAAiB,KAAK,MAAM,SAAS,oBAAoB;iBAE3D,QACd,GACA,GACA,WACA,WACA,UACA,aACG,aACF,aAAa,IAAI;;;KCtBR;KAGA;KAEA,yBAAyB,gCAAgC;KAEzD,YAAY,OAAO,gBAAgB,cAAc,QAAQ,KAAK,MAAM,SAAS,gBAAgB;UAExF;EACf;EACA;;KAGU,gBAAc,KAAK,IAC7B,KAAK,cAAc;;;KCbT;EACV;EACA,WAAW,MAAM,IAAI;EACrB;;EAEA,OAAO;;EAEP,KAAK;;iBAGS,OACd,MACA,IACA,MACA,WACA,aACG,aACF,YAAY,WAAW,kBAAkB,IAAI;;;UCjB/B;EACf;EACA;;KAGU,qBAAqB;EAC/B;EACA;EACA,SAAS;EACT,sBAAsB;EACtB,WAAW,IAAI;EACf;EACA;EACA,UAAU;EACV;;iBAGc,gBACd,QACA,OACA,UACA,QACA,qBACA,UACA,WACA,aACG,SACF,qBAAqB,IAAI;;;KCxBvB;KAEO,mBAAmB,UAAU,cAAc;EACrD,WAAW,UAAU;EACrB,QAAQ;EACR;EACA,UAAU,QAAQ;IAChB,QAAQ,KAAK;iBAED,cAAc,UAAU,eACtC,WACA,UACA,YACG,QACF,kBAAkB,mBAAmB,MAAM,IAAI"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/components/Group/Group.tsx","../../src/types/types.ts","../../src/components/Line/Line.tsx","../../src/components/ResponsiveSVG/ResponsiveSVG.tsx","../../src/components/ParentsizeSVG/ParentsizeSVG.tsx"],"mappings":";;;KAEK;;EAEH;;EAEA;;EAEA;EACA;EACA,WAAW,MAAM;EACjB,WAAW,MAAM,IAAI;;KAGlB,aAAa,iBAAiB,KAAK,MAAM,SAAS,oBAAoB;wBAE3D,QACd,GACA,GACA,WACA,WACA,UACA,aACG,aACF,aAAa,IAAI;;;KCtBR;KAGA;KAEA,yBAAyB,gCAAgC;KAEzD,YAAY,OAAO,gBAAgB,cAAc,QAAQ,KAAK,MAAM,SAAS,gBAAgB;UAExF;EACf;EACA;;KAGU,gBAAc,KAAK,IAC7B,KAAK,cAAc;;;KCbT;EACV;EACA,WAAW,MAAM,IAAI;EACrB;;EAEA,OAAO;;EAEP,KAAK;;wBAGS,OACd,MACA,IACA,MACA,WACA,aACG,aACF,YAAY,WAAW,kBAAkB,IAAI;;;UCjB/B;EACf;EACA;;KAGU,qBAAqB;EAC/B;EACA;EACA,SAAS;EACT,sBAAsB;EACtB,WAAW,IAAI;EACf;EACA;EACA,UAAU;EACV;;wBAGc,gBACd,QACA,OACA,UACA,QACA,qBACA,UACA,WACA,aACG,SACF,qBAAqB,IAAI;;;KCxBvB;KAEO,mBAAmB,UAAU,cAAc;EACrD,WAAW,UAAU;EACrB,QAAQ;EACR;EACA,UAAU,QAAQ;IAChB,QAAQ,KAAK;wBAED,cAAc,UAAU,eACtC,WACA,UACA,YACG,QACF,kBAAkB,mBAAmB,MAAM,IAAI"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cutting/svg",
3
- "version": "4.64.1",
3
+ "version": "4.65.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dagda1/cuttingedge.git"
@@ -15,26 +15,26 @@
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
17
  "@cutting/assert": "0.7.1",
18
- "@cutting/use-get-parent-size": "2.11.1",
18
+ "@cutting/use-get-parent-size": "2.12.0",
19
19
  "@cutting/util": "4.66.1"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@testing-library/dom": "10.4.1",
23
- "@testing-library/react": "16.3.2",
24
- "@testing-library/user-event": "14.6.1",
23
+ "@testing-library/react": "16.3.3",
24
+ "@testing-library/user-event": "14.6.7",
25
25
  "@visx/scale": "4.0.0",
26
26
  "classnames": "2.5.1",
27
27
  "d3-scale": "4.0.2",
28
- "react": "19.2.7",
29
- "react-dom": "19.2.7",
30
- "@cutting/component-library": "5.52.1"
28
+ "react": "19.2.8",
29
+ "react-dom": "19.2.8",
30
+ "@cutting/component-library": "5.53.0"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@visx/scale": "4.0.0",
34
34
  "classnames": "2.5.1",
35
35
  "d3-scale": "4.0.2",
36
- "react": "19.2.7",
37
- "react-dom": "19.2.7"
36
+ "react": "19.2.8",
37
+ "react-dom": "19.2.8"
38
38
  },
39
39
  "volta": {
40
40
  "extends": "../../package.json"