@remotion/shapes 4.0.89 → 4.0.91

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,4 +13,4 @@ export declare const RenderSvg: ({ width, height, path, style, pathStyle, transf
13
13
  } & Omit<React.SVGProps<SVGPathElement>, "width" | "height" | "d"> & {
14
14
  debug?: boolean | undefined;
15
15
  pathStyle?: React.CSSProperties | undefined;
16
- }) => JSX.Element;
16
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -42,9 +42,11 @@ const RenderSvg = ({ width, height, path, style, pathStyle, transformOrigin, deb
42
42
  };
43
43
  }, [pathStyle]);
44
44
  const reactSupportsTransformOrigin = (0, does_react_support_canary_1.doesReactSupportTransformOriginProperty)(react_dom_1.version);
45
- return ((0, jsx_runtime_1.jsxs)("svg", { width: width, height: height, viewBox: `0 0 ${width} ${height}`, xmlns: "http://www.w3.org/2000/svg", style: actualStyle, children: [(0, jsx_runtime_1.jsx)("path", { "transform-origin": reactSupportsTransformOrigin ? undefined : transformOrigin,
46
- // @ts-expect-error
47
- transformOrigin: reactSupportsTransformOrigin ? transformOrigin : undefined, d: path, style: actualPathStyle, ...props }), debug
45
+ return ((0, jsx_runtime_1.jsxs)("svg", { width: width, height: height, viewBox: `0 0 ${width} ${height}`, xmlns: "http://www.w3.org/2000/svg", style: actualStyle, children: [(0, jsx_runtime_1.jsx)("path", { "transform-origin": reactSupportsTransformOrigin ? undefined : transformOrigin, ...(reactSupportsTransformOrigin
46
+ ? {
47
+ transformOrigin,
48
+ }
49
+ : {}), d: path, style: actualPathStyle, ...props }), debug
48
50
  ? instructions.map((i, index) => {
49
51
  if (i.type === 'C') {
50
52
  const prevInstruction = index === 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/shapes",
3
- "version": "4.0.89",
3
+ "version": "4.0.91",
4
4
  "description": "Utility functions and components for SVG shapes",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -13,12 +13,11 @@
13
13
  "url": "https://github.com/remotion-dev/remotion/issues"
14
14
  },
15
15
  "devDependencies": {
16
- "@types/react-dom": "18.0.11",
16
+ "@types/react-dom": "18.2.18",
17
17
  "@jonny/eslint-config": "3.0.276",
18
18
  "@testing-library/react": "^13.4.0",
19
19
  "@types/node": "18.14.6",
20
- "@types/react": "18.0.26",
21
- "@vitejs/plugin-react": "^2.0.0",
20
+ "@types/react": "18.2.48",
22
21
  "eslint": "8.42.0",
23
22
  "prettier": "3.1.1",
24
23
  "prettier-plugin-organize-imports": "3.2.4",
@@ -39,7 +38,7 @@
39
38
  "react-dom": ">=16.8.0"
40
39
  },
41
40
  "dependencies": {
42
- "@remotion/paths": "4.0.89"
41
+ "@remotion/paths": "4.0.91"
43
42
  },
44
43
  "scripts": {
45
44
  "formatting": "prettier src --check",