@furystack/shades 11.0.20 → 11.0.21
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,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TextDecoder, TextEncoder } from 'util';
|
|
2
2
|
global.TextEncoder = TextEncoder;
|
|
3
3
|
global.TextDecoder = TextDecoder;
|
|
4
4
|
import { Injector } from '@furystack/inject';
|
|
5
|
-
import {
|
|
6
|
-
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
|
|
7
|
-
import { LocationService } from '../services/location-service.js';
|
|
5
|
+
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
|
|
8
6
|
import { initializeShadeRoot } from '../initialize.js';
|
|
7
|
+
import { LocationService } from '../services/location-service.js';
|
|
9
8
|
import { createComponent } from '../shade-component.js';
|
|
9
|
+
import { RouteLink } from './route-link.js';
|
|
10
10
|
describe('RouteLink', () => {
|
|
11
11
|
beforeEach(() => {
|
|
12
12
|
document.body.innerHTML = '<div id="root"></div>';
|
|
@@ -24,7 +24,7 @@ describe('RouteLink', () => {
|
|
|
24
24
|
rootElement,
|
|
25
25
|
jsxElement: (createComponent(RouteLink, { id: "route", href: "/subroute" }, "Link")),
|
|
26
26
|
});
|
|
27
|
-
expect(document.body.innerHTML).
|
|
27
|
+
expect(document.body.innerHTML).toMatchInlineSnapshot(`"<div id="root"><a is="route-link" id="route" href="/subroute" style="color: inherit; text-decoration: inherit;">Link</a></div>"`);
|
|
28
28
|
expect(onRouteChange).not.toBeCalled();
|
|
29
29
|
document.getElementById('route')?.click();
|
|
30
30
|
expect(onRouteChange).toBeCalledTimes(1);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route-link.spec.js","sourceRoot":"","sources":["../../src/components/route-link.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,MAAM,CAAA;AAE/C,MAAM,CAA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E,EAAE,CAAA;QAE7B,QAAQ,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC,qBAAqB,CAAC,SAAS,CAAC,aAAa,CAAC,CAAA;QAEpF,mBAAmB,CAAC;YAClB,QAAQ;YACR,WAAW;YACX,UAAU,EAAE,CACV,gBAAC,SAAS,IAAC,EAAE,EAAC,OAAO,EAAC,IAAI,EAAC,WAAW,WAE1B,CACb;SACF,CAAC,CAAA;QACF,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,qBAAqB,CACnD,kIAAkI,CACnI,CAAA;QACD,MAAM,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,UAAU,EAAE,CAAA;QACtC,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,CAAA;QACzC,MAAM,CAAC,aAAa,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAA;IAC1C,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@furystack/shades",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.21",
|
|
4
4
|
"description": "Google Authentication Provider for FuryStack",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
"homepage": "https://github.com/furystack/furystack",
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/jsdom": "^21.1.7",
|
|
41
|
-
"@types/node": "^
|
|
41
|
+
"@types/node": "^24.0.1",
|
|
42
42
|
"jsdom": "^26.1.0",
|
|
43
43
|
"typescript": "^5.8.3",
|
|
44
|
-
"vitest": "^3.2.
|
|
44
|
+
"vitest": "^3.2.3"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@furystack/inject": "^12.0.
|
|
48
|
-
"@furystack/rest": "^8.0.
|
|
49
|
-
"@furystack/utils": "^8.0.
|
|
47
|
+
"@furystack/inject": "^12.0.17",
|
|
48
|
+
"@furystack/rest": "^8.0.20",
|
|
49
|
+
"@furystack/utils": "^8.0.16",
|
|
50
50
|
"path-to-regexp": "^8.2.0",
|
|
51
51
|
"semaphore-async-await": "^1.5.1"
|
|
52
52
|
},
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TextDecoder, TextEncoder } from 'util'
|
|
2
2
|
|
|
3
3
|
global.TextEncoder = TextEncoder
|
|
4
4
|
global.TextDecoder = TextDecoder as any
|
|
5
5
|
|
|
6
6
|
import { Injector } from '@furystack/inject'
|
|
7
|
-
import {
|
|
8
|
-
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'
|
|
9
|
-
import { LocationService } from '../services/location-service.js'
|
|
7
|
+
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
|
10
8
|
import { initializeShadeRoot } from '../initialize.js'
|
|
9
|
+
import { LocationService } from '../services/location-service.js'
|
|
11
10
|
import { createComponent } from '../shade-component.js'
|
|
11
|
+
import { RouteLink } from './route-link.js'
|
|
12
12
|
|
|
13
13
|
describe('RouteLink', () => {
|
|
14
14
|
beforeEach(() => {
|
|
@@ -35,8 +35,8 @@ describe('RouteLink', () => {
|
|
|
35
35
|
</RouteLink>
|
|
36
36
|
),
|
|
37
37
|
})
|
|
38
|
-
expect(document.body.innerHTML).
|
|
39
|
-
|
|
38
|
+
expect(document.body.innerHTML).toMatchInlineSnapshot(
|
|
39
|
+
`"<div id="root"><a is="route-link" id="route" href="/subroute" style="color: inherit; text-decoration: inherit;">Link</a></div>"`,
|
|
40
40
|
)
|
|
41
41
|
expect(onRouteChange).not.toBeCalled()
|
|
42
42
|
document.getElementById('route')?.click()
|