@cutting/svg 4.31.2 → 4.31.3

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
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1639406372391" clover="3.2.0">
3
- <project timestamp="1639406372391" name="All files">
2
+ <coverage generated="1641069279709" clover="3.2.0">
3
+ <project timestamp="1641069279710" name="All files">
4
4
  <metrics statements="51" coveredstatements="29" conditionals="33" coveredconditionals="9" methods="5" coveredmethods="3" elements="89" coveredelements="41" complexity="0" loc="51" ncloc="51" packages="4" files="4" classes="4"/>
5
5
  <package name="Group">
6
6
  <metrics statements="10" coveredstatements="0" conditionals="6" coveredconditionals="0" methods="1" coveredmethods="0"/>
@@ -180,10 +180,9 @@ export const <span class="cstat-no" title="statement not covered" >Group:</span>
180
180
  </div><!-- /wrapper -->
181
181
  <div class='footer quiet pad2 space-top1 center small'>
182
182
  Code coverage generated by
183
- <a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
184
- at Mon Dec 13 2021 14:39:32 GMT+0000 (Greenwich Mean Time)
183
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
184
+ at Sat Jan 01 2022 20:34:39 GMT+0000 (Greenwich Mean Time)
185
185
  </div>
186
- </div>
187
186
  <script src="../prettify.js"></script>
188
187
  <script>
189
188
  window.onload = function () {
@@ -100,10 +100,9 @@
100
100
  </div><!-- /wrapper -->
101
101
  <div class='footer quiet pad2 space-top1 center small'>
102
102
  Code coverage generated by
103
- <a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
104
- at Mon Dec 13 2021 14:39:32 GMT+0000 (Greenwich Mean Time)
103
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
104
+ at Sat Jan 01 2022 20:34:39 GMT+0000 (Greenwich Mean Time)
105
105
  </div>
106
- </div>
107
106
  <script src="../prettify.js"></script>
108
107
  <script>
109
108
  window.onload = function () {
@@ -183,10 +183,9 @@ export const <span class="cstat-no" title="statement not covered" >Line:</span>
183
183
  </div><!-- /wrapper -->
184
184
  <div class='footer quiet pad2 space-top1 center small'>
185
185
  Code coverage generated by
186
- <a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
187
- at Mon Dec 13 2021 14:39:32 GMT+0000 (Greenwich Mean Time)
186
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
187
+ at Sat Jan 01 2022 20:34:39 GMT+0000 (Greenwich Mean Time)
188
188
  </div>
189
- </div>
190
189
  <script src="../prettify.js"></script>
191
190
  <script>
192
191
  window.onload = function () {
@@ -100,10 +100,9 @@
100
100
  </div><!-- /wrapper -->
101
101
  <div class='footer quiet pad2 space-top1 center small'>
102
102
  Code coverage generated by
103
- <a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
104
- at Mon Dec 13 2021 14:39:32 GMT+0000 (Greenwich Mean Time)
103
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
104
+ at Sat Jan 01 2022 20:34:39 GMT+0000 (Greenwich Mean Time)
105
105
  </div>
106
- </div>
107
106
  <script src="../prettify.js"></script>
108
107
  <script>
109
108
  window.onload = function () {
@@ -234,10 +234,9 @@ export function ParentsizeSVG&lt;E extends HTMLElement&gt;({
234
234
  </div><!-- /wrapper -->
235
235
  <div class='footer quiet pad2 space-top1 center small'>
236
236
  Code coverage generated by
237
- <a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
238
- at Mon Dec 13 2021 14:39:32 GMT+0000 (Greenwich Mean Time)
237
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
238
+ at Sat Jan 01 2022 20:34:39 GMT+0000 (Greenwich Mean Time)
239
239
  </div>
240
- </div>
241
240
  <script src="../prettify.js"></script>
242
241
  <script>
243
242
  window.onload = function () {
@@ -100,10 +100,9 @@
100
100
  </div><!-- /wrapper -->
101
101
  <div class='footer quiet pad2 space-top1 center small'>
102
102
  Code coverage generated by
103
- <a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
104
- at Mon Dec 13 2021 14:39:32 GMT+0000 (Greenwich Mean Time)
103
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
104
+ at Sat Jan 01 2022 20:34:39 GMT+0000 (Greenwich Mean Time)
105
105
  </div>
106
- </div>
107
106
  <script src="../prettify.js"></script>
108
107
  <script>
109
108
  window.onload = function () {
@@ -225,10 +225,9 @@ export const ResponsiveSVG: FC&lt;ResponsiveSVGProps&gt; = ({
225
225
  </div><!-- /wrapper -->
226
226
  <div class='footer quiet pad2 space-top1 center small'>
227
227
  Code coverage generated by
228
- <a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
229
- at Mon Dec 13 2021 14:39:32 GMT+0000 (Greenwich Mean Time)
228
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
229
+ at Sat Jan 01 2022 20:34:39 GMT+0000 (Greenwich Mean Time)
230
230
  </div>
231
- </div>
232
231
  <script src="../prettify.js"></script>
233
232
  <script>
234
233
  window.onload = function () {
@@ -100,10 +100,9 @@
100
100
  </div><!-- /wrapper -->
101
101
  <div class='footer quiet pad2 space-top1 center small'>
102
102
  Code coverage generated by
103
- <a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
104
- at Mon Dec 13 2021 14:39:32 GMT+0000 (Greenwich Mean Time)
103
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
104
+ at Sat Jan 01 2022 20:34:39 GMT+0000 (Greenwich Mean Time)
105
105
  </div>
106
- </div>
107
106
  <script src="../prettify.js"></script>
108
107
  <script>
109
108
  window.onload = function () {
@@ -145,10 +145,9 @@
145
145
  </div><!-- /wrapper -->
146
146
  <div class='footer quiet pad2 space-top1 center small'>
147
147
  Code coverage generated by
148
- <a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
149
- at Mon Dec 13 2021 14:39:32 GMT+0000 (Greenwich Mean Time)
148
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
149
+ at Sat Jan 01 2022 20:34:39 GMT+0000 (Greenwich Mean Time)
150
150
  </div>
151
- </div>
152
151
  <script src="prettify.js"></script>
153
152
  <script>
154
153
  window.onload = function () {
@@ -0,0 +1 @@
1
+ {}
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @cutting/svg
2
2
 
3
+ ## 4.31.3
4
+
5
+ ### Patch Changes
6
+
7
+ - e8934df2: Add <Aliert />
8
+ - 7262245f: consolidate versioning changes
9
+ - Updated dependencies [e8934df2]
10
+ - Updated dependencies [7262245f]
11
+ - @cutting/use-get-parent-size@1.6.3
12
+ - @cutting/util@4.29.3
13
+
3
14
  ## 4.31.2
4
15
 
5
16
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cutting/svg",
3
- "version": "4.31.2",
3
+ "version": "4.31.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dagda1/cuttingedge.git"
@@ -15,16 +15,17 @@
15
15
  "types": "dist/esm/index.d.ts",
16
16
  "license": "MIT",
17
17
  "dependencies": {
18
- "@cutting/use-get-parent-size": "1.6.2",
19
- "@cutting/util": "4.29.2",
18
+ "@cutting/use-get-parent-size": "1.6.3",
19
+ "@cutting/util": "4.29.3",
20
20
  "resize-observer-polyfill": "^1.5.1"
21
21
  },
22
22
  "devDependencies": {
23
- "@cutting/devtools": "4.31.2",
24
- "@cutting/eslint-config": "4.28.1",
25
- "@cutting/testing": "4.27.2",
26
- "@testing-library/jest-dom": "^5.11.10",
27
- "eslint": "^8.2.0",
23
+ "@cutting/devtools": "4.31.3",
24
+ "@cutting/eslint-config": "4.28.2",
25
+ "@cutting/tsconfig": "4.26.1",
26
+ "@cutting/useful-types": "4.25.6",
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
31
  "typescript": "^4.5.3"
@@ -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
  }