@cutting/svg 4.33.0 → 4.34.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 74c6b082e8ffd59a
1
+ @cutting/svg:build: cache hit, replaying output efba4b9a1e9ae7ea
2
2
  @cutting/svg:build:
3
- @cutting/svg:build: > @cutting/svg@4.33.0 build /home/runner/work/cuttingedge/cuttingedge/packages/svg
3
+ @cutting/svg:build: > @cutting/svg@4.34.0 build /home/runner/work/cuttingedge/cuttingedge/packages/svg
4
4
  @cutting/svg:build: > NODE_ENV=production cutting rollup
5
5
  @cutting/svg:build:
6
6
  @cutting/svg:build: DEBUG using tsconfig.dist.json
@@ -11,12 +11,12 @@
11
11
  @cutting/svg:build: INFO writing svg.cjs.development.js for @cutting/svg
12
12
  @cutting/svg:build: INFO writing svg.cjs.production.min.js for @cutting/svg
13
13
  @cutting/svg:build: INFO writing index.js for @cutting/svg
14
- @cutting/svg:build: INFO writing index.js for @cutting/svg
15
14
  @cutting/svg:build: No name was provided for external module 'react/jsx-runtime' in output.globals – guessing 'jsxRuntime'
16
15
  @cutting/svg:build: No name was provided for external module '@babel/runtime/helpers/slicedToArray' in output.globals – guessing '_slicedToArray'
17
16
  @cutting/svg:build: No name was provided for external module '@babel/runtime/helpers/objectSpread2' in output.globals – guessing '_objectSpread'
18
17
  @cutting/svg:build: No name was provided for external module '@babel/runtime/helpers/objectWithoutProperties' in output.globals – guessing '_objectWithoutProperties'
19
18
  @cutting/svg:build: No name was provided for external module '@cutting/use-get-parent-size' in output.globals – guessing 'useGetParentSize'
20
19
  @cutting/svg:build: No name was provided for external module 'classnames' in output.globals – guessing 'cx'
20
+ @cutting/svg:build: INFO writing index.js for @cutting/svg
21
21
  @cutting/svg:build: DONE finished building
22
22
  @cutting/svg:build:
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @cutting/svg
2
2
 
3
+ ## 4.34.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 8c139b38: rename elementRef parentRef
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [8c139b38]
12
+ - @cutting/use-get-parent-size@1.8.0
13
+
3
14
  ## 4.33.0
4
15
 
5
16
  ### Minor Changes
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cutting/svg",
3
- "version": "4.33.0",
3
+ "version": "4.34.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dagda1/cuttingedge.git"
@@ -15,18 +15,18 @@
15
15
  "types": "dist/esm/index.d.ts",
16
16
  "license": "MIT",
17
17
  "dependencies": {
18
- "@cutting/use-get-parent-size": "1.7.0",
19
- "@cutting/util": "4.31.1",
18
+ "@cutting/use-get-parent-size": "workspace:*",
19
+ "@cutting/util": "workspace:*",
20
20
  "classnames": "^2.3.1",
21
21
  "resize-observer-polyfill": "^1.5.1"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@babel/runtime": "7.17.8",
25
- "@cutting/component-library": "5.5.1",
26
- "@cutting/devtools": "4.32.1",
27
- "@cutting/eslint-config": "4.29.1",
28
- "@cutting/tsconfig": "4.26.5",
29
- "@cutting/useful-types": "4.25.10",
25
+ "@cutting/component-library": "workspace:*",
26
+ "@cutting/devtools": "workspace:*",
27
+ "@cutting/eslint-config": "workspace:*",
28
+ "@cutting/tsconfig": "workspace:*",
29
+ "@cutting/useful-types": "workspace:*",
30
30
  "@jest/globals": "27.5.1",
31
31
  "@testing-library/jest-dom": "5.16.2",
32
32
  "@testing-library/react": "^12.1.4",
@@ -42,6 +42,14 @@
42
42
  "react": ">= 17.x.x",
43
43
  "react-dom": ">= 17.x.x"
44
44
  },
45
+ "scripts": {
46
+ "build": "NODE_ENV=production cutting rollup",
47
+ "lint": "eslint ./src/**/*.{ts,tsx} --fix",
48
+ "start": "PORT=8888 NODE_ENV=development cutting devserver-start",
49
+ "test": "NODE_ENV=test cutting test",
50
+ "test:ci": "CI=true pnpm test",
51
+ "prepack": "pnpm build"
52
+ },
45
53
  "volta": {
46
54
  "extends": "../../package.json"
47
55
  },
@@ -56,13 +64,5 @@
56
64
  "dist/esm/index.d.ts"
57
65
  ]
58
66
  }
59
- },
60
- "scripts": {
61
- "build": "NODE_ENV=production cutting rollup",
62
- "lint": "eslint ./src/**/*.{ts,tsx} --fix",
63
- "start": "PORT=8888 NODE_ENV=development cutting devserver-start",
64
- "test": "NODE_ENV=test cutting test",
65
- "test:ci": "CI=true pnpm test"
66
- },
67
- "readme": "# @cutting/svg - reusable svg components for SVG documents\n[![npm version](https://img.shields.io/npm/v/@cutting/svg.svg)](https://www.npmjs.com/package/@cutting/svg)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n\n## install \n\n```sh\npnpm add @cutting/svg\n\n# or\n\nnpm install @cutting/svg\n```\n\n## ParentsizeSVG\n\nA react component that will resize and scale to the dimensions of the supplied react [ref object](https://reactjs.org/docs/refs-and-the-dom.html).\n\n![svg document resizing to scale when using the ParentsizeSVG component](./img/sizer.gif)\n\nThe `ParentsizeSVG` component takes an `parentRef` prop that should point to a valid HTML DOM element.\n\n## usage\n\n```ts\nimport { useRef } from 'react';\nimport { ParentsizeSVG } from '@cutting/svg';\n\nexport function App(): JSX.Element {\n const ref = useRef<HTMLDivElement>(null);\n\n return (\n <div className={styles.container} ref={ref}>\n <ParentsizeSVG ref={ref}>\n <rect\n x=\"20%\"\n y=\"20%\"\n width={'50%'}\n height={'50%'}\n rx=\"20\"\n style={{ fill: '#ff0000', stroke: '#000000', strokeWidth: '2px' }}\n />\n </ParentsizeSVG>\n </div>\n );\n};\n```"
68
- }
67
+ }
68
+ }