@cutting/svg 4.48.0 → 4.50.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.
@@ -1,6 +1,6 @@
1
- @cutting/svg:build: cache hit, replaying output 7e3e6dc81983bac2
1
+ @cutting/svg:build: cache hit, replaying output d29261d18dcf8b0a
2
2
  @cutting/svg:build:
3
- @cutting/svg:build: > @cutting/svg@4.48.0 build /home/runner/work/cuttingedge/cuttingedge/packages/svg
3
+ @cutting/svg:build: > @cutting/svg@4.50.0 build /home/runner/work/cuttingedge/cuttingedge/packages/svg
4
4
  @cutting/svg:build: > NODE_ENV=production devtools rollup
5
5
  @cutting/svg:build:
6
6
  @cutting/svg:build: DEBUG using tsconfig.dist.json
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # @cutting/svg
2
2
 
3
+ ## 4.50.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 6927f7bd: remove babel completely
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [6927f7bd]
12
+ - @cutting/react-abortable-fetch@0.33.0
13
+ - @cutting/use-get-parent-size@1.24.0
14
+ - @cutting/util@4.55.0
15
+
16
+ ## 4.49.0
17
+
18
+ ### Minor Changes
19
+
20
+ - 3c3e166a: replace flex with css grid for main layouts
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies [3c3e166a]
25
+ - @cutting/react-abortable-fetch@0.32.0
26
+ - @cutting/use-get-parent-size@1.23.0
27
+ - @cutting/util@4.54.0
28
+
3
29
  ## 4.48.0
4
30
 
5
31
  ### Minor Changes
@@ -1,7 +1,6 @@
1
1
  import { globalStyle, style } from '@vanilla-extract/css';
2
2
 
3
3
  export const container = style({
4
- border: '10px solid yellow',
5
4
  background: 'grey',
6
5
  color: 'white',
7
6
  overflow: 'hidden',
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import{jsx as e}from"react/jsx-runtime";import{useEffect as t}from"react";import{useParentSize as r}from"@cutting/use-get-parent-size";import n from"classnames";function i(t){let{height:r,width:n,children:i,origin:s={x:0,y:0},preserveAspectRatio:l="xMaxYMid meet",innerRef:o,className:a}=t;const c=Math.ceil(n/(n/r));return e("div",{"data-testid":"cutting-svg-container",style:{position:"relative",overflow:"visible",height:"1px"},children:e("svg",{style:{overflow:"visible"},className:a,preserveAspectRatio:l,viewBox:`${s.x} ${s.y} ${n} ${c}`,ref:o,children:i})})}const s={display:"flex",flexDirection:"column",flexGrow:1,flexShrink:1,flexBasis:"0%",overflow:"hidden"};function l(n){let{parentRef:l,children:o,style:a=s,scale:c=1,align:f="none",options:{debounceDelay:x=50,...h}={},...d}=n;const{width:m,height:p}=r(l,{debounceDelay:x,...h});return t((()=>{if(l.current)for(const[e,t]of Object.entries(a))l.current.style[e]=t}),[l,a]),e(i,{width:m,height:p,...d,children:e("g",{transform:"center"===f?`translate(${m/2},${p/2-20}) scale(${c})`:`translate(0,0) scale(${c})`,children:o})})}function o(t){let{y:r=0,x:i=0,transform:s,className:l,children:o,innerRef:a,...c}=t;return e("g",{ref:a,className:n("visx-group",l),transform:s||`translate(${i}, ${r})`,...c,children:o})}function a(t){let{from:r={x:0,y:0},to:i={x:1,y:1},fill:s="transparent",className:l,innerRef:o,...a}=t;const c=r.x===i.x||r.y===i.y;return e("line",{ref:o,className:n("visx-line",l),x1:r.x,y1:r.y,x2:i.x,y2:i.y,fill:s,shapeRendering:c?"crispEdges":"auto",...a})}export{o as Group,a as Line,l as ParentsizeSVG,i as ResponsiveSVG};
1
+ import{jsx as e}from"react/jsx-runtime";import{useEffect as r}from"react";import{useParentSize as t}from"@cutting/use-get-parent-size";import n from"classnames";function i({height:r,width:t,children:n,origin:i={x:0,y:0},preserveAspectRatio:s="xMaxYMid meet",innerRef:l,className:o}){const a=Math.ceil(t/(t/r));return e("div",{"data-testid":"cutting-svg-container",style:{position:"relative",overflow:"visible",height:"1px"},children:e("svg",{style:{overflow:"visible"},className:o,preserveAspectRatio:s,viewBox:`${i.x} ${i.y} ${t} ${a}`,ref:l,children:n})})}const s={display:"flex",flexDirection:"column",flexGrow:1,flexShrink:1,flexBasis:"0%",overflow:"hidden"};function l({parentRef:n,children:l,style:o=s,scale:a=1,align:c="none",options:{debounceDelay:f=50,...x}={},...h}){const{width:d,height:m}=t(n,{debounceDelay:f,...x});return r((()=>{if(n.current)for(const[e,r]of Object.entries(o))n.current.style[e]=r}),[n,o]),e(i,{width:d,height:m,...h,children:e("g",{transform:"center"===c?`translate(${d/2},${m/2-20}) scale(${a})`:`translate(0,0) scale(${a})`,children:l})})}function o({y:r=0,x:t=0,transform:i,className:s,children:l,innerRef:o,...a}){return e("g",{ref:o,className:n("visx-group",s),transform:i||`translate(${t}, ${r})`,...a,children:l})}function a({from:r={x:0,y:0},to:t={x:1,y:1},fill:i="transparent",className:s,innerRef:l,...o}){const a=r.x===t.x||r.y===t.y;return e("line",{ref:l,className:n("visx-line",s),x1:r.x,y1:r.y,x2:t.x,y2:t.y,fill:i,shapeRendering:a?"crispEdges":"auto",...o})}export{o as Group,a as Line,l as ParentsizeSVG,i as ResponsiveSVG};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/components/ResponsiveSVG/ResponsiveSVG.tsx","../../src/components/ParentsizeSVG/ParentsizeSVG.tsx","../../src/components/Group/Group.tsx","../../src/components/Line/Line.tsx"],"sourcesContent":["import type { ReactNode, Ref } from 'react';\nimport type { PreserveAspectRatio } from '../../types/types';\n\nexport interface Point {\n x: number;\n y: number;\n}\n\nexport interface ResponsiveSVGProps {\n width: number;\n height: number;\n origin?: Point;\n preserveAspectRatio?: PreserveAspectRatio;\n innerRef?: Ref<SVGSVGElement>;\n className?: string;\n hide?: boolean;\n children: ReactNode;\n}\n\nexport function ResponsiveSVG({\n height,\n width,\n children,\n origin = { x: 0, y: 0 },\n preserveAspectRatio = 'xMaxYMid meet',\n innerRef,\n className,\n}: ResponsiveSVGProps): JSX.Element {\n const aspect = width / height;\n\n const adjustedHeight = Math.ceil(width / aspect);\n\n return (\n <div\n data-testid=\"cutting-svg-container\"\n style={{\n position: 'relative',\n overflow: 'visible',\n height: '1px',\n }}\n >\n <svg\n style={{ overflow: 'visible' }}\n className={className}\n preserveAspectRatio={preserveAspectRatio}\n viewBox={`${origin.x} ${origin.y} ${width} ${adjustedHeight}`}\n ref={innerRef}\n >\n {children}\n </svg>\n </div>\n );\n}\n","import type { CSSProperties, PropsWithChildren, RefObject } from 'react';\nimport type { ResponsiveSVGProps } from '../ResponsiveSVG/ResponsiveSVG.js';\nimport type { UseParentSizeOptions } from '@cutting/use-get-parent-size';\nimport { useEffect } from 'react';\nimport { useParentSize } from '@cutting/use-get-parent-size';\nimport { ResponsiveSVG } from '../ResponsiveSVG/ResponsiveSVG';\n\ntype Align = 'none' | 'center';\n\nexport type ParentsizeSVGProps<E extends HTMLElement = HTMLElement> = {\n parentRef: RefObject<E>;\n style?: CSSProperties;\n align?: Align;\n scale?: number;\n options?: Partial<UseParentSizeOptions>;\n} & Partial<Omit<ResponsiveSVGProps, 'innerRef' | 'height' | 'height'>>;\n\nexport const DefaultStyle: CSSProperties = {\n display: 'flex',\n flexDirection: 'column',\n flexGrow: 1,\n flexShrink: 1,\n flexBasis: '0%',\n overflow: 'hidden',\n} as const;\n\nexport function ParentsizeSVG<E extends HTMLElement>({\n parentRef,\n children,\n style = DefaultStyle,\n scale = 1,\n align = 'none',\n options: { debounceDelay = 50, ...optionsRest } = {},\n ...rest\n}: PropsWithChildren<ParentsizeSVGProps<E>>): JSX.Element | null {\n const { width, height } = useParentSize(parentRef, { debounceDelay, ...optionsRest });\n\n useEffect(() => {\n if (!parentRef.current) {\n return;\n }\n\n for (const [key, value] of Object.entries(style)) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n parentRef.current.style[key as any] = value;\n }\n }, [parentRef, style]);\n\n const transform =\n align === 'center'\n ? `translate(${width / 2},${height / 2 - 20}) scale(${scale})`\n : `translate(0,0) scale(${scale})`;\n\n return (\n <ResponsiveSVG width={width} height={height} {...rest}>\n <g transform={transform}>{children}</g>\n </ResponsiveSVG>\n );\n}\n","import cx from 'classnames';\n\ntype GroupOnlyProps = {\n /** Top offset applied to `<g/>`. */\n y?: number;\n /** Left offset applied to `<g/>`. */\n x?: number;\n /** Override `x` and `y` to provide the entire `transform` string. */\n transform?: string;\n className?: string;\n children?: React.ReactNode;\n innerRef?: React.Ref<SVGGElement>;\n};\n\ntype GroupProps = GroupOnlyProps & Omit<React.SVGProps<SVGGElement>, keyof GroupOnlyProps>;\n\nexport function Group({\n y = 0,\n x = 0,\n transform,\n className,\n children,\n innerRef,\n ...restProps\n}: GroupProps): JSX.Element {\n return (\n <g\n ref={innerRef}\n className={cx('visx-group', className)}\n transform={transform || `translate(${x}, ${y})`}\n {...restProps}\n >\n {children}\n </g>\n );\n}\n","import cx from 'classnames';\nimport type { AddSVGProps, Point } from '../../types/types';\n\nexport type LineProps = {\n className?: string;\n innerRef?: React.Ref<SVGLineElement>;\n fill?: string;\n /** Starting x,y point of the line. */\n from?: Point;\n /** Ending x,y point of the line. */\n to?: Point;\n};\n\nexport function Line({\n from = { x: 0, y: 0 },\n to = { x: 1, y: 1 },\n fill = 'transparent',\n className,\n innerRef,\n ...restProps\n}: AddSVGProps<LineProps, SVGLineElement>): JSX.Element {\n const isRectilinear = from.x === to.x || from.y === to.y;\n\n return (\n <line\n ref={innerRef}\n className={cx('visx-line', className)}\n x1={from.x}\n y1={from.y}\n x2={to.x}\n y2={to.y}\n fill={fill}\n shapeRendering={isRectilinear ? 'crispEdges' : 'auto'}\n {...restProps}\n />\n );\n}\n"],"names":["ResponsiveSVG","_ref","height","width","children","origin","x","y","preserveAspectRatio","innerRef","className","adjustedHeight","Math","ceil","_jsx","style","position","overflow","viewBox","ref","DefaultStyle","display","flexDirection","flexGrow","flexShrink","flexBasis","ParentsizeSVG","parentRef","scale","align","options","debounceDelay","optionsRest","rest","useParentSize","useEffect","current","key","value","Object","entries","transform","Group","restProps","cx","Line","from","to","fill","isRectilinear","x1","y1","x2","y2","shapeRendering"],"mappings":"iKAmBgB,SAAAA,EAQKC,GAAA,IARSC,OAC5BA,EAD4BC,MAE5BA,EAF4BC,SAG5BA,EAH4BC,OAI5BA,EAAS,CAAEC,EAAG,EAAGC,EAAG,GAJQC,oBAK5BA,EAAsB,gBALMC,SAM5BA,EAN4BC,UAO5BA,GACmBT,EACnB,MAEMU,EAAiBC,KAAKC,KAAKV,GAFlBA,EAAQD,IAIvB,OACEY,EAAA,MAAA,CAAA,cACc,wBACZC,MAAO,CACLC,SAAU,WACVC,SAAU,UACVf,OAAQ,OACTE,SAEDU,SACEC,MAAO,CAAEE,SAAU,WACnBP,UAAWA,EACXF,oBAAqBA,EACrBU,QAAS,GAAGb,EAAOC,KAAKD,EAAOE,KAAKJ,KAASQ,IAC7CQ,IAAKV,EAAQL,SAEZA,KAIR,CCnCM,MAAMgB,EAA8B,CACzCC,QAAS,OACTC,cAAe,SACfC,SAAU,EACVC,WAAY,EACZC,UAAW,KACXR,SAAU,UAGI,SAAAS,EAQ2BzB,GAAA,IARU0B,UACnDA,EADmDvB,SAEnDA,EAFmDW,MAGnDA,EAAQK,EAH2CQ,MAInDA,EAAQ,EAJ2CC,MAKnDA,EAAQ,OACRC,SAASC,cAAEA,EAAgB,MAAOC,GAAgB,CANC,KAOhDC,GACsChC,EACzC,MAAME,MAAEA,EAAFD,OAASA,GAAWgC,EAAcP,EAAW,CAAEI,mBAAkBC,IAkBvE,OAhBAG,GAAU,KACR,GAAKR,EAAUS,QAIf,IAAK,MAAOC,EAAKC,KAAUC,OAAOC,QAAQzB,GAExCY,EAAUS,QAAQrB,MAAMsB,GAAcC,CACvC,GACA,CAACX,EAAWZ,IAQbD,EAACd,EAAa,CAACG,MAAOA,EAAOD,OAAQA,KAAY+B,EAAI7B,SACnDU,EAAG,IAAA,CAAA2B,UANK,WAAVZ,EACI,aAAa1B,EAAQ,KAAKD,EAAS,EAAI,aAAa0B,KACpD,wBAAwBA,cAIAxB,KAG/B,CC1CK,SAAUsC,EAQHzC,GAAA,IARSM,EACpBA,EAAI,EADgBD,EAEpBA,EAAI,EAFgBmC,UAGpBA,EAHoB/B,UAIpBA,EAJoBN,SAKpBA,EALoBK,SAMpBA,KACGkC,GACQ1C,EACX,OACEa,EAAA,IAAA,CACEK,IAAKV,EACLC,UAAWkC,EAAG,aAAclC,GAC5B+B,UAAWA,GAA0B,aAAAnC,MAAMC,QACvCoC,EAASvC,SAEZA,GAGN,UCtBeyC,EAOyB5C,GAAA,IAPpB6C,KACnBA,EAAO,CAAExC,EAAG,EAAGC,EAAG,GADCwC,GAEnBA,EAAK,CAAEzC,EAAG,EAAGC,EAAG,GAFGyC,KAGnBA,EAAO,cAHYtC,UAInBA,EAJmBD,SAKnBA,KACGkC,GACoC1C,EACvC,MAAMgD,EAAgBH,EAAKxC,IAAMyC,EAAGzC,GAAKwC,EAAKvC,IAAMwC,EAAGxC,EAEvD,OACEO,EACE,OAAA,CAAAK,IAAKV,EACLC,UAAWkC,EAAG,YAAalC,GAC3BwC,GAAIJ,EAAKxC,EACT6C,GAAIL,EAAKvC,EACT6C,GAAIL,EAAGzC,EACP+C,GAAIN,EAAGxC,EACPyC,KAAMA,EACNM,eAAgBL,EAAgB,aAAe,UAC3CN,GAGT"}
1
+ {"version":3,"file":"index.js","sources":["../../src/components/ResponsiveSVG/ResponsiveSVG.tsx","../../src/components/ParentsizeSVG/ParentsizeSVG.tsx","../../src/components/Group/Group.tsx","../../src/components/Line/Line.tsx"],"sourcesContent":["import type { ReactNode, Ref } from 'react';\nimport type { PreserveAspectRatio } from '../../types/types';\n\nexport interface Point {\n x: number;\n y: number;\n}\n\nexport interface ResponsiveSVGProps {\n width: number;\n height: number;\n origin?: Point;\n preserveAspectRatio?: PreserveAspectRatio;\n innerRef?: Ref<SVGSVGElement>;\n className?: string;\n hide?: boolean;\n children: ReactNode;\n}\n\nexport function ResponsiveSVG({\n height,\n width,\n children,\n origin = { x: 0, y: 0 },\n preserveAspectRatio = 'xMaxYMid meet',\n innerRef,\n className,\n}: ResponsiveSVGProps): JSX.Element {\n const aspect = width / height;\n\n const adjustedHeight = Math.ceil(width / aspect);\n\n return (\n <div\n data-testid=\"cutting-svg-container\"\n style={{\n position: 'relative',\n overflow: 'visible',\n height: '1px',\n }}\n >\n <svg\n style={{ overflow: 'visible' }}\n className={className}\n preserveAspectRatio={preserveAspectRatio}\n viewBox={`${origin.x} ${origin.y} ${width} ${adjustedHeight}`}\n ref={innerRef}\n >\n {children}\n </svg>\n </div>\n );\n}\n","import type { CSSProperties, PropsWithChildren, RefObject } from 'react';\nimport type { ResponsiveSVGProps } from '../ResponsiveSVG/ResponsiveSVG.js';\nimport type { UseParentSizeOptions } from '@cutting/use-get-parent-size';\nimport { useEffect } from 'react';\nimport { useParentSize } from '@cutting/use-get-parent-size';\nimport { ResponsiveSVG } from '../ResponsiveSVG/ResponsiveSVG';\n\ntype Align = 'none' | 'center';\n\nexport type ParentsizeSVGProps<E extends HTMLElement = HTMLElement> = {\n parentRef: RefObject<E>;\n style?: CSSProperties;\n align?: Align;\n scale?: number;\n options?: Partial<UseParentSizeOptions>;\n} & Partial<Omit<ResponsiveSVGProps, 'innerRef' | 'height' | 'height'>>;\n\nexport const DefaultStyle: CSSProperties = {\n display: 'flex',\n flexDirection: 'column',\n flexGrow: 1,\n flexShrink: 1,\n flexBasis: '0%',\n overflow: 'hidden',\n} as const;\n\nexport function ParentsizeSVG<E extends HTMLElement>({\n parentRef,\n children,\n style = DefaultStyle,\n scale = 1,\n align = 'none',\n options: { debounceDelay = 50, ...optionsRest } = {},\n ...rest\n}: PropsWithChildren<ParentsizeSVGProps<E>>): JSX.Element | null {\n const { width, height } = useParentSize(parentRef, { debounceDelay, ...optionsRest });\n\n useEffect(() => {\n if (!parentRef.current) {\n return;\n }\n\n for (const [key, value] of Object.entries(style)) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n parentRef.current.style[key as any] = value;\n }\n }, [parentRef, style]);\n\n const transform =\n align === 'center'\n ? `translate(${width / 2},${height / 2 - 20}) scale(${scale})`\n : `translate(0,0) scale(${scale})`;\n\n return (\n <ResponsiveSVG width={width} height={height} {...rest}>\n <g transform={transform}>{children}</g>\n </ResponsiveSVG>\n );\n}\n","import cx from 'classnames';\n\ntype GroupOnlyProps = {\n /** Top offset applied to `<g/>`. */\n y?: number;\n /** Left offset applied to `<g/>`. */\n x?: number;\n /** Override `x` and `y` to provide the entire `transform` string. */\n transform?: string;\n className?: string;\n children?: React.ReactNode;\n innerRef?: React.Ref<SVGGElement>;\n};\n\ntype GroupProps = GroupOnlyProps & Omit<React.SVGProps<SVGGElement>, keyof GroupOnlyProps>;\n\nexport function Group({\n y = 0,\n x = 0,\n transform,\n className,\n children,\n innerRef,\n ...restProps\n}: GroupProps): JSX.Element {\n return (\n <g\n ref={innerRef}\n className={cx('visx-group', className)}\n transform={transform || `translate(${x}, ${y})`}\n {...restProps}\n >\n {children}\n </g>\n );\n}\n","import cx from 'classnames';\nimport type { AddSVGProps, Point } from '../../types/types';\n\nexport type LineProps = {\n className?: string;\n innerRef?: React.Ref<SVGLineElement>;\n fill?: string;\n /** Starting x,y point of the line. */\n from?: Point;\n /** Ending x,y point of the line. */\n to?: Point;\n};\n\nexport function Line({\n from = { x: 0, y: 0 },\n to = { x: 1, y: 1 },\n fill = 'transparent',\n className,\n innerRef,\n ...restProps\n}: AddSVGProps<LineProps, SVGLineElement>): JSX.Element {\n const isRectilinear = from.x === to.x || from.y === to.y;\n\n return (\n <line\n ref={innerRef}\n className={cx('visx-line', className)}\n x1={from.x}\n y1={from.y}\n x2={to.x}\n y2={to.y}\n fill={fill}\n shapeRendering={isRectilinear ? 'crispEdges' : 'auto'}\n {...restProps}\n />\n );\n}\n"],"names":["ResponsiveSVG","height","width","children","origin","x","y","preserveAspectRatio","innerRef","className","adjustedHeight","Math","ceil","_jsx","style","position","overflow","viewBox","ref","DefaultStyle","display","flexDirection","flexGrow","flexShrink","flexBasis","ParentsizeSVG","parentRef","scale","align","options","debounceDelay","optionsRest","rest","useParentSize","useEffect","current","key","value","Object","entries","transform","Group","restProps","cx","Line","from","to","fill","isRectilinear","x1","y1","x2","y2","shapeRendering"],"mappings":"iKAmBgB,SAAAA,GAAcC,OAC5BA,EAAMC,MACNA,EAAKC,SACLA,EAAQC,OACRA,EAAS,CAAEC,EAAG,EAAGC,EAAG,GAAGC,oBACvBA,EAAsB,gBAAeC,SACrCA,EAAQC,UACRA,IAEA,MAEMC,EAAiBC,KAAKC,KAAKV,GAFlBA,EAAQD,IAIvB,OACEY,EAAA,MAAA,CAAA,cACc,wBACZC,MAAO,CACLC,SAAU,WACVC,SAAU,UACVf,OAAQ,OACTE,SAEDU,SACEC,MAAO,CAAEE,SAAU,WACnBP,UAAWA,EACXF,oBAAqBA,EACrBU,QAAS,GAAGb,EAAOC,KAAKD,EAAOE,KAAKJ,KAASQ,IAC7CQ,IAAKV,EAAQL,SAEZA,KAIT,CCnCO,MAAMgB,EAA8B,CACzCC,QAAS,OACTC,cAAe,SACfC,SAAU,EACVC,WAAY,EACZC,UAAW,KACXR,SAAU,UAGI,SAAAS,GAAqCC,UACnDA,EAASvB,SACTA,EAAQW,MACRA,EAAQK,EAAYQ,MACpBA,EAAQ,EAACC,MACTA,EAAQ,OACRC,SAASC,cAAEA,EAAgB,MAAOC,GAAgB,CAAE,KACjDC,IAEH,MAAM9B,MAAEA,EAAKD,OAAEA,GAAWgC,EAAcP,EAAW,CAAEI,mBAAkBC,IAkBvE,OAhBAG,GAAU,KACR,GAAKR,EAAUS,QAIf,IAAK,MAAOC,EAAKC,KAAUC,OAAOC,QAAQzB,GAExCY,EAAUS,QAAQrB,MAAMsB,GAAcC,CACvC,GACA,CAACX,EAAWZ,IAQbD,EAACb,EAAa,CAACE,MAAOA,EAAOD,OAAQA,KAAY+B,EAAI7B,SACnDU,EAAG,IAAA,CAAA2B,UANK,WAAVZ,EACI,aAAa1B,EAAQ,KAAKD,EAAS,EAAI,aAAa0B,KACpD,wBAAwBA,cAIAxB,KAGhC,CC1CM,SAAUsC,GAAMnC,EACpBA,EAAI,EAACD,EACLA,EAAI,EAACmC,UACLA,EAAS/B,UACTA,EAASN,SACTA,EAAQK,SACRA,KACGkC,IAEH,OACE7B,EAAA,IAAA,CACEK,IAAKV,EACLC,UAAWkC,EAAG,aAAclC,GAC5B+B,UAAWA,GAAa,aAAanC,MAAMC,QACvCoC,EAASvC,SAEZA,GAGP,UCtBgByC,GAAKC,KACnBA,EAAO,CAAExC,EAAG,EAAGC,EAAG,GAAGwC,GACrBA,EAAK,CAAEzC,EAAG,EAAGC,EAAG,GAAGyC,KACnBA,EAAO,cAAatC,UACpBA,EAASD,SACTA,KACGkC,IAEH,MAAMM,EAAgBH,EAAKxC,IAAMyC,EAAGzC,GAAKwC,EAAKvC,IAAMwC,EAAGxC,EAEvD,OACEO,EACE,OAAA,CAAAK,IAAKV,EACLC,UAAWkC,EAAG,YAAalC,GAC3BwC,GAAIJ,EAAKxC,EACT6C,GAAIL,EAAKvC,EACT6C,GAAIL,EAAGzC,EACP+C,GAAIN,EAAGxC,EACPyC,KAAMA,EACNM,eAAgBL,EAAgB,aAAe,UAC3CN,GAGV"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cutting/svg",
3
- "version": "4.48.0",
3
+ "version": "4.50.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dagda1/cuttingedge.git"
@@ -11,29 +11,28 @@
11
11
  "types": "dist/esm/index.d.ts",
12
12
  "license": "MIT",
13
13
  "dependencies": {
14
- "@cutting/react-abortable-fetch": "0.31.0",
15
- "@cutting/use-get-parent-size": "1.22.0",
16
- "@cutting/util": "4.54.0",
14
+ "@cutting/react-abortable-fetch": "0.33.0",
15
+ "@cutting/use-get-parent-size": "1.24.0",
16
+ "@cutting/util": "4.55.0",
17
17
  "classnames": "^2.3.2",
18
18
  "resize-observer-polyfill": "^1.5.1"
19
19
  },
20
20
  "devDependencies": {
21
- "@babel/runtime": "7.19.0",
22
- "@cutting/component-library": "5.29.0",
23
- "@cutting/devtools": "4.59.0",
24
- "@cutting/eslint-config": "4.41.0",
21
+ "@cutting/component-library": "5.31.0",
22
+ "@cutting/devtools": "4.60.0",
23
+ "@cutting/eslint-config": "4.42.0",
25
24
  "@cutting/tsconfig": "4.38.0",
26
- "@cutting/useful-types": "4.37.0",
25
+ "@cutting/useful-types": "4.38.0",
27
26
  "@testing-library/react": "^13.4.0",
28
- "@types/react": "18.0.20",
27
+ "@types/react": "18.0.21",
29
28
  "@types/react-dom": "18.0.6",
30
- "@vanilla-extract/css": "^1.9.0",
29
+ "@vanilla-extract/css": "^1.9.1",
31
30
  "@vanilla-extract/sprinkles": "1.5.0",
32
31
  "assert-ts": "0.3.4",
33
- "eslint": "8.23.1",
32
+ "eslint": "8.24.0",
34
33
  "react": "18.2.0",
35
34
  "react-dom": "18.2.0",
36
- "typescript": "4.8.3"
35
+ "typescript": "4.8.4"
37
36
  },
38
37
  "peerDependencies": {
39
38
  "react": ">= 18.x.x",
@@ -52,11 +51,6 @@
52
51
  ]
53
52
  }
54
53
  },
55
- "lint-staged": {
56
- "*.js": "eslint ./src/**/*.{js} --fix",
57
- "*.ts": "eslint ./src/**/*.{ts} --fix",
58
- "*.tsx": "eslint ./src/**/*.{tsx} --fix"
59
- },
60
54
  "scripts": {
61
55
  "build": "NODE_ENV=production devtools rollup",
62
56
  "lint": "eslint ./src/**/*.{ts,tsx} --fix",
package/vite.config.ts CHANGED
@@ -10,14 +10,7 @@ const isTest = process.env.NODE_ENV === 'test';
10
10
  // https://vitejs.dev/config/
11
11
  export default defineConfig({
12
12
  root: isTest ? '.' : 'demo',
13
- plugins: [
14
- vanillaExtractPlugin(),
15
- react({
16
- babel: {
17
- plugins: [],
18
- },
19
- }),
20
- ],
13
+ plugins: [vanillaExtractPlugin(), react()],
21
14
  test: {
22
15
  globals: true,
23
16
  environment: 'jsdom',