@cutting/svg 4.31.0 → 4.31.6

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.
@@ -0,0 +1 @@
1
+ {}
package/CHANGELOG.md CHANGED
@@ -1,5 +1,62 @@
1
1
  # @cutting/svg
2
2
 
3
+ ## 4.31.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 0bdf3e9d: yarn.lock
8
+ - 3bfd4f40: remove ignored packages
9
+ - Updated dependencies [0bdf3e9d]
10
+ - Updated dependencies [3bfd4f40]
11
+ - @cutting/use-get-parent-size@1.6.6
12
+ - @cutting/util@4.29.6
13
+
14
+ ## 4.31.5
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [fe3eba28]
19
+ - @cutting/util@4.29.5
20
+ - @cutting/use-get-parent-size@1.6.5
21
+
22
+ ## 4.31.4
23
+
24
+ ### Patch Changes
25
+
26
+ - 7262245f: consolidate versioning changes
27
+ - Updated dependencies [7262245f]
28
+ - @cutting/use-get-parent-size@1.6.4
29
+ - @cutting/util@4.29.4
30
+
31
+ ## 4.31.3
32
+
33
+ ### Patch Changes
34
+
35
+ - e8934df2: Add <Aliert />
36
+ - 7262245f: consolidate versioning changes
37
+ - Updated dependencies [e8934df2]
38
+ - Updated dependencies [7262245f]
39
+ - @cutting/use-get-parent-size@1.6.3
40
+ - @cutting/util@4.29.3
41
+
42
+ ## 4.31.2
43
+
44
+ ### Patch Changes
45
+
46
+ - 68080fa3: more
47
+ - Updated dependencies [68080fa3]
48
+ - @cutting/use-get-parent-size@1.6.2
49
+ - @cutting/util@4.29.2
50
+
51
+ ## 4.31.1
52
+
53
+ ### Patch Changes
54
+
55
+ - 8a44b1b8: add @cutting/vercel-wait-for-preview-url
56
+ - Updated dependencies [8a44b1b8]
57
+ - @cutting/use-get-parent-size@1.6.1
58
+ - @cutting/util@4.29.1
59
+
3
60
  ## 4.31.0
4
61
 
5
62
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cutting/svg",
3
- "version": "4.31.0",
3
+ "version": "4.31.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dagda1/cuttingedge.git"
@@ -15,23 +15,24 @@
15
15
  "types": "dist/esm/index.d.ts",
16
16
  "license": "MIT",
17
17
  "dependencies": {
18
- "@cutting/use-get-parent-size": "1.6.0",
19
- "@cutting/util": "4.29.0",
18
+ "@cutting/use-get-parent-size": "1.6.6",
19
+ "@cutting/util": "4.29.6",
20
20
  "resize-observer-polyfill": "^1.5.1"
21
21
  },
22
22
  "devDependencies": {
23
- "@cutting/devtools": "4.31.0",
24
- "@cutting/eslint-config": "4.28.0",
25
- "@cutting/testing": "4.27.0",
26
- "@testing-library/jest-dom": "^5.11.10",
27
- "eslint": "^8.2.0",
23
+ "@cutting/devtools": "4.31.6",
24
+ "@cutting/eslint-config": "4.28.3",
25
+ "@cutting/tsconfig": "4.26.2",
26
+ "@cutting/useful-types": "4.25.7",
27
+ "@testing-library/jest-dom": "^5.16.1",
28
+ "eslint": "^8.6.0",
28
29
  "react": "^17.0.2",
29
30
  "react-dom": "^17.0.2",
30
- "typescript": "^4.5.2"
31
+ "typescript": "^4.5.3"
31
32
  },
32
33
  "peerDependencies": {
33
- "react": "^17.0.2",
34
- "react-dom": "^17.0.2"
34
+ "react": ">= 17.x.x",
35
+ "react-dom": ">= 17.x.x"
35
36
  },
36
37
  "scripts": {
37
38
  "build": "NODE_ENV=development cutting rollup",
@@ -39,7 +40,7 @@
39
40
  "start": "PORT=8888 NODE_ENV=development cutting devserver-start",
40
41
  "test": "NODE_ENV=test cutting test",
41
42
  "test:ci": "CI=true yarn test",
42
- "prepublishOnly": "yarn build"
43
+ "prepack": "yarn build"
43
44
  },
44
45
  "volta": {
45
46
  "extends": "../../package.json"
@@ -1,11 +1,23 @@
1
- import { describe, it, expect } from '@jest/globals';
1
+ import { describe, it, expect, jest } from '@jest/globals';
2
2
  import type { FC } from 'react';
3
3
  import { render, screen } from '@testing-library/react';
4
- import { resize } from '@cutting/testing';
5
4
  import { useParentSize } from '@cutting/use-get-parent-size';
6
5
  import { useRef } from 'react';
7
6
  import { ResponsiveSVG } from './ResponsiveSVG';
8
7
 
8
+ import ResizeObserver from 'resize-observer-polyfill';
9
+
10
+ jest.mock('resize-observer-polyfill');
11
+
12
+ const resize = (width: number, height: number): void => {
13
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
14
+ // @ts-ignore
15
+ ResizeObserver.mockImplementation((cb) => {
16
+ cb([{ contentRect: { width, height } }]);
17
+ return { observe: jest.fn(), disconnect: jest.fn(), unobserve: jest.fn() };
18
+ });
19
+ };
20
+
9
21
  const TestEr: FC = () => {
10
22
  const ref = useRef<HTMLDivElement>(null);
11
23
  const { width, height } = useParentSize(ref);
@@ -9,7 +9,8 @@
9
9
  "references": [
10
10
  { "path": "../util/tsconfig.dist.json" },
11
11
  { "path": "../hooks/tsconfig.dist.json" },
12
- { "path": "../component-library/tsconfig.dist.json" }
12
+ { "path": "../component-library/tsconfig.dist.json" },
13
+ { "path": "../use-get-parent-size/tsconfig.dist.json" }
13
14
  ],
14
15
  "exclude": ["src/**/*.test.ts", "src/**/*.test.tsx"]
15
16
  }
package/tsconfig.json CHANGED
@@ -7,7 +7,8 @@
7
7
  "references": [
8
8
  { "path": "../util/tsconfig.dist.json" },
9
9
  { "path": "../hooks/tsconfig.dist.json" },
10
- { "path": "../component-library/tsconfig.dist.json" }
10
+ { "path": "../component-library/tsconfig.dist.json" },
11
+ { "path": "../use-get-parent-size/tsconfig.dist.json" }
11
12
  ],
12
13
  "include": ["src/**/*.ts", "src/**/*.tsx"]
13
14
  }