@quilted/quilt 0.5.151 → 0.5.153
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.
- package/CHANGELOG.md +16 -0
- package/build/cjs/assets.cjs +39 -0
- package/build/cjs/async.cjs +32 -0
- package/build/cjs/events.cjs +46 -0
- package/build/cjs/graphql/testing.cjs +2 -6
- package/build/cjs/html/HTML.cjs +21 -0
- package/build/cjs/html.cjs +33 -6
- package/build/cjs/http.cjs +16 -0
- package/build/cjs/index.cjs +0 -319
- package/build/cjs/localize.cjs +46 -0
- package/build/cjs/navigate/testing.cjs +12 -0
- package/build/cjs/navigate.cjs +70 -0
- package/build/cjs/performance.cjs +26 -0
- package/build/cjs/polyfills/fetch-get-set-cookie.cjs +4 -0
- package/build/cjs/react/testing.cjs +30 -0
- package/build/cjs/react/tools.cjs +19 -0
- package/build/cjs/react.cjs +15 -0
- package/build/cjs/server/ServerContext.cjs +1 -1
- package/build/cjs/server/preload.cjs +1 -1
- package/build/cjs/server/request-router.cjs +215 -231
- package/build/cjs/{server/index.cjs → server.cjs} +26 -52
- package/build/cjs/signals.cjs +51 -0
- package/build/cjs/static/StaticContext.cjs +1 -1
- package/build/cjs/static/index.cjs +43 -51
- package/build/cjs/static/render.cjs +1 -1
- package/build/cjs/testing.cjs +6 -34
- package/build/esm/assets.mjs +2 -0
- package/build/esm/async.mjs +3 -0
- package/build/esm/events.mjs +1 -0
- package/build/esm/graphql/testing.mjs +1 -1
- package/build/esm/html/HTML.mjs +19 -0
- package/build/esm/html.mjs +3 -1
- package/build/esm/http.mjs +1 -1
- package/build/esm/index.mjs +1 -15
- package/build/esm/localize.mjs +1 -0
- package/build/esm/navigate/testing.mjs +1 -0
- package/build/esm/navigate.mjs +1 -0
- package/build/esm/performance.mjs +1 -0
- package/build/esm/polyfills/fetch-get-set-cookie.mjs +1 -0
- package/build/esm/react/testing.mjs +3 -0
- package/build/esm/react/tools.mjs +2 -0
- package/build/esm/react.mjs +2 -0
- package/build/esm/server/ServerContext.mjs +2 -2
- package/build/esm/server/preload.mjs +2 -2
- package/build/esm/server/request-router.mjs +218 -232
- package/build/esm/server.mjs +10 -0
- package/build/esm/signals.mjs +2 -0
- package/build/esm/static/StaticContext.mjs +2 -2
- package/build/esm/static/index.mjs +40 -48
- package/build/esm/static/render.mjs +2 -2
- package/build/esm/testing.mjs +0 -3
- package/build/esnext/assets.esnext +2 -0
- package/build/esnext/async.esnext +3 -0
- package/build/esnext/events.esnext +1 -0
- package/build/esnext/graphql/testing.esnext +1 -1
- package/build/esnext/html/HTML.esnext +19 -0
- package/build/esnext/html.esnext +3 -1
- package/build/esnext/http.esnext +1 -1
- package/build/esnext/index.esnext +1 -15
- package/build/esnext/localize.esnext +1 -0
- package/build/esnext/navigate/testing.esnext +1 -0
- package/build/esnext/navigate.esnext +1 -0
- package/build/esnext/performance.esnext +1 -0
- package/build/esnext/polyfills/fetch-get-set-cookie.esnext +1 -0
- package/build/esnext/react/testing.esnext +3 -0
- package/build/esnext/react/tools.esnext +2 -0
- package/build/esnext/react.esnext +2 -0
- package/build/esnext/server/ServerContext.esnext +2 -2
- package/build/esnext/server/preload.esnext +2 -2
- package/build/esnext/server/request-router.esnext +218 -232
- package/build/esnext/server.esnext +10 -0
- package/build/esnext/signals.esnext +2 -0
- package/build/esnext/static/StaticContext.esnext +2 -2
- package/build/esnext/static/index.esnext +40 -48
- package/build/esnext/static/render.esnext +2 -2
- package/build/esnext/testing.esnext +0 -3
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/typescript/assets.d.ts +3 -1
- package/build/typescript/assets.d.ts.map +1 -1
- package/build/typescript/async.d.ts +6 -0
- package/build/typescript/async.d.ts.map +1 -0
- package/build/typescript/events.d.ts +3 -0
- package/build/typescript/events.d.ts.map +1 -0
- package/build/typescript/globals.d.ts +8 -0
- package/build/typescript/globals.d.ts.map +1 -0
- package/build/typescript/graphql/testing/matchers/operations.d.ts +7 -0
- package/build/typescript/graphql/testing/matchers/operations.d.ts.map +1 -0
- package/build/typescript/graphql/testing/matchers/utilities.d.ts +8 -0
- package/build/typescript/graphql/testing/matchers/utilities.d.ts.map +1 -0
- package/build/typescript/graphql/testing/matchers.d.ts +11 -0
- package/build/typescript/graphql/testing/matchers.d.ts.map +1 -0
- package/build/typescript/graphql/testing.d.ts +2 -1
- package/build/typescript/graphql/testing.d.ts.map +1 -1
- package/build/typescript/html/HTML.d.ts +5 -0
- package/build/typescript/html/HTML.d.ts.map +1 -0
- package/build/typescript/html.d.ts +3 -1
- package/build/typescript/html.d.ts.map +1 -1
- package/build/typescript/http.d.ts +1 -1
- package/build/typescript/http.d.ts.map +1 -1
- package/build/typescript/index.d.ts +1 -24
- package/build/typescript/index.d.ts.map +1 -1
- package/build/typescript/localize.d.ts +3 -0
- package/build/typescript/localize.d.ts.map +1 -0
- package/build/typescript/magic/assets.d.ts +4 -2
- package/build/typescript/magic/assets.d.ts.map +1 -1
- package/build/typescript/navigate/testing.d.ts +2 -0
- package/build/typescript/navigate/testing.d.ts.map +1 -0
- package/build/typescript/navigate.d.ts +3 -0
- package/build/typescript/navigate.d.ts.map +1 -0
- package/build/typescript/performance.d.ts +3 -0
- package/build/typescript/performance.d.ts.map +1 -0
- package/build/typescript/polyfills/fetch-get-set-cookie.d.ts +2 -0
- package/build/typescript/polyfills/fetch-get-set-cookie.d.ts.map +1 -0
- package/build/typescript/react/testing.d.ts +5 -0
- package/build/typescript/react/testing.d.ts.map +1 -0
- package/build/typescript/react/tools.d.ts +3 -0
- package/build/typescript/react/tools.d.ts.map +1 -0
- package/build/typescript/react-dom.d.ts +3 -0
- package/build/typescript/react-dom.d.ts.map +1 -0
- package/build/typescript/react.d.ts +3 -0
- package/build/typescript/react.d.ts.map +1 -0
- package/build/typescript/routing.d.ts +3 -0
- package/build/typescript/routing.d.ts.map +1 -0
- package/build/typescript/server/ServerContext.d.ts +2 -2
- package/build/typescript/server/request-router.d.ts +13 -37
- package/build/typescript/server/request-router.d.ts.map +1 -1
- package/build/typescript/server.d.ts +14 -0
- package/build/typescript/server.d.ts.map +1 -0
- package/build/typescript/signals.d.ts +3 -0
- package/build/typescript/signals.d.ts.map +1 -0
- package/build/typescript/static/StaticContext.d.ts +2 -2
- package/build/typescript/static/index.d.ts.map +1 -1
- package/build/typescript/static/render.d.ts +2 -2
- package/build/typescript/testing.d.ts +0 -4
- package/build/typescript/testing.d.ts.map +1 -1
- package/package.json +158 -54
- package/source/assets.ts +20 -2
- package/source/async.ts +17 -0
- package/source/events.ts +20 -0
- package/source/graphql/testing/matchers.ts +37 -0
- package/source/graphql/testing.ts +3 -2
- package/source/html/HTML.tsx +22 -0
- package/source/html.ts +15 -3
- package/source/http.ts +4 -0
- package/source/index.ts +1 -149
- package/source/localize.ts +21 -0
- package/source/magic/assets.ts +7 -4
- package/source/navigate/testing.ts +1 -0
- package/source/navigate.ts +24 -0
- package/source/performance.ts +12 -0
- package/source/polyfills/fetch-get-set-cookie.ts +1 -0
- package/source/react/testing.ts +30 -0
- package/source/react/tools.ts +2 -0
- package/source/routing.ts +24 -0
- package/source/server/ServerContext.tsx +3 -3
- package/source/server/preload.ts +2 -2
- package/source/server/request-router.tsx +281 -403
- package/source/{server/index.ts → server.ts} +20 -46
- package/source/signals.ts +12 -0
- package/source/static/StaticContext.tsx +3 -3
- package/source/static/index.tsx +40 -56
- package/source/static/render.tsx +2 -2
- package/source/testing.ts +0 -29
- package/build/cjs/App.cjs +0 -72
- package/build/cjs/TestApp.cjs +0 -20
- package/build/cjs/matchers.cjs +0 -4
- package/build/esm/App.mjs +0 -70
- package/build/esm/TestApp.mjs +0 -18
- package/build/esm/matchers.mjs +0 -1
- package/build/esm/server/index.mjs +0 -10
- package/build/esnext/App.esnext +0 -70
- package/build/esnext/TestApp.esnext +0 -18
- package/build/esnext/matchers.esnext +0 -1
- package/build/esnext/server/index.esnext +0 -10
- package/source/App.tsx +0 -162
- package/source/TestApp.tsx +0 -33
- package/source/matchers/graphql.ts +0 -24
- package/source/matchers.ts +0 -3
- /package/build/cjs/{global.cjs → globals.cjs} +0 -0
- /package/build/esm/{global.mjs → globals.mjs} +0 -0
- /package/build/esnext/{global.esnext → globals.esnext} +0 -0
- /package/source/{global.ts → globals.ts} +0 -0
- /package/source/{matchers/graphql → graphql/testing/matchers}/operations.ts +0 -0
- /package/source/{matchers/graphql → graphql/testing/matchers}/utilities.ts +0 -0
- /package/source/{react-dom/index.ts → react-dom.ts} +0 -0
- /package/source/{react/index.ts → react.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quilted/quilt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.153",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/lemonmade/quilt.git",
|
|
@@ -20,19 +20,26 @@
|
|
|
20
20
|
"import": "./build/esm/index.mjs",
|
|
21
21
|
"require": "./build/cjs/index.cjs"
|
|
22
22
|
},
|
|
23
|
-
"./
|
|
24
|
-
"types": "./build/typescript/
|
|
25
|
-
"quilt:source": "./source/
|
|
26
|
-
"quilt:esnext": "./build/esnext/
|
|
27
|
-
"import": "./build/esm/
|
|
28
|
-
"require": "./build/cjs/
|
|
23
|
+
"./assets": {
|
|
24
|
+
"types": "./build/typescript/assets.d.ts",
|
|
25
|
+
"quilt:source": "./source/assets.ts",
|
|
26
|
+
"quilt:esnext": "./build/esnext/assets.esnext",
|
|
27
|
+
"import": "./build/esm/assets.mjs",
|
|
28
|
+
"require": "./build/cjs/assets.cjs"
|
|
29
29
|
},
|
|
30
|
-
"./
|
|
31
|
-
"types": "./build/typescript/
|
|
32
|
-
"quilt:source": "./source/
|
|
33
|
-
"quilt:esnext": "./build/esnext/
|
|
34
|
-
"import": "./build/esm/
|
|
35
|
-
"require": "./build/cjs/
|
|
30
|
+
"./async": {
|
|
31
|
+
"types": "./build/typescript/async.d.ts",
|
|
32
|
+
"quilt:source": "./source/async.ts",
|
|
33
|
+
"quilt:esnext": "./build/esnext/async.esnext",
|
|
34
|
+
"import": "./build/esm/async.mjs",
|
|
35
|
+
"require": "./build/cjs/async.cjs"
|
|
36
|
+
},
|
|
37
|
+
"./globals": {
|
|
38
|
+
"types": "./build/typescript/globals.d.ts",
|
|
39
|
+
"quilt:source": "./source/globals.ts",
|
|
40
|
+
"quilt:esnext": "./build/esnext/globals.esnext",
|
|
41
|
+
"import": "./build/esm/globals.mjs",
|
|
42
|
+
"require": "./build/cjs/globals.cjs"
|
|
36
43
|
},
|
|
37
44
|
"./html": {
|
|
38
45
|
"types": "./build/typescript/html.d.ts",
|
|
@@ -41,13 +48,6 @@
|
|
|
41
48
|
"import": "./build/esm/html.mjs",
|
|
42
49
|
"require": "./build/cjs/html.cjs"
|
|
43
50
|
},
|
|
44
|
-
"./global": {
|
|
45
|
-
"types": "./build/typescript/global.d.ts",
|
|
46
|
-
"quilt:source": "./source/global.ts",
|
|
47
|
-
"quilt:esnext": "./build/esnext/global.esnext",
|
|
48
|
-
"import": "./build/esm/global.mjs",
|
|
49
|
-
"require": "./build/cjs/global.cjs"
|
|
50
|
-
},
|
|
51
51
|
"./http": {
|
|
52
52
|
"types": "./build/typescript/http.d.ts",
|
|
53
53
|
"quilt:source": "./source/http.ts",
|
|
@@ -55,12 +55,68 @@
|
|
|
55
55
|
"import": "./build/esm/http.mjs",
|
|
56
56
|
"require": "./build/cjs/http.cjs"
|
|
57
57
|
},
|
|
58
|
-
"./
|
|
59
|
-
"types": "./build/typescript/
|
|
60
|
-
"quilt:source": "./source/
|
|
61
|
-
"quilt:esnext": "./build/esnext/
|
|
62
|
-
"import": "./build/esm/
|
|
63
|
-
"require": "./build/cjs/
|
|
58
|
+
"./events": {
|
|
59
|
+
"types": "./build/typescript/events.d.ts",
|
|
60
|
+
"quilt:source": "./source/events.ts",
|
|
61
|
+
"quilt:esnext": "./build/esnext/events.esnext",
|
|
62
|
+
"import": "./build/esm/events.mjs",
|
|
63
|
+
"require": "./build/cjs/events.cjs"
|
|
64
|
+
},
|
|
65
|
+
"./localize": {
|
|
66
|
+
"types": "./build/typescript/localize.d.ts",
|
|
67
|
+
"quilt:source": "./source/localize.ts",
|
|
68
|
+
"quilt:esnext": "./build/esnext/localize.esnext",
|
|
69
|
+
"import": "./build/esm/localize.mjs",
|
|
70
|
+
"require": "./build/cjs/localize.cjs"
|
|
71
|
+
},
|
|
72
|
+
"./navigate": {
|
|
73
|
+
"types": "./build/typescript/navigate.d.ts",
|
|
74
|
+
"quilt:source": "./source/navigate.ts",
|
|
75
|
+
"quilt:esnext": "./build/esnext/navigate.esnext",
|
|
76
|
+
"import": "./build/esm/navigate.mjs",
|
|
77
|
+
"require": "./build/cjs/navigate.cjs"
|
|
78
|
+
},
|
|
79
|
+
"./navigate/testing": {
|
|
80
|
+
"types": "./build/typescript/navigate/testing.d.ts",
|
|
81
|
+
"quilt:source": "./source/navigate/testing.ts",
|
|
82
|
+
"quilt:esnext": "./build/esnext/navigate/testing.esnext",
|
|
83
|
+
"import": "./build/esm/navigate/testing.mjs",
|
|
84
|
+
"require": "./build/cjs/navigate/testing.cjs"
|
|
85
|
+
},
|
|
86
|
+
"./performance": {
|
|
87
|
+
"types": "./build/typescript/performance.d.ts",
|
|
88
|
+
"quilt:source": "./source/performance.ts",
|
|
89
|
+
"quilt:esnext": "./build/esnext/performance.esnext",
|
|
90
|
+
"import": "./build/esm/performance.mjs",
|
|
91
|
+
"require": "./build/cjs/performance.cjs"
|
|
92
|
+
},
|
|
93
|
+
"./signals": {
|
|
94
|
+
"types": "./build/typescript/signals.d.ts",
|
|
95
|
+
"quilt:source": "./source/signals.ts",
|
|
96
|
+
"quilt:esnext": "./build/esnext/signals.esnext",
|
|
97
|
+
"import": "./build/esm/signals.mjs",
|
|
98
|
+
"require": "./build/cjs/signals.cjs"
|
|
99
|
+
},
|
|
100
|
+
"./react": {
|
|
101
|
+
"types": "./build/typescript/react.d.ts",
|
|
102
|
+
"quilt:source": "./source/react.ts",
|
|
103
|
+
"quilt:esnext": "./build/esnext/react.esnext",
|
|
104
|
+
"import": "./build/esm/react.mjs",
|
|
105
|
+
"require": "./build/cjs/react.cjs"
|
|
106
|
+
},
|
|
107
|
+
"./react/testing": {
|
|
108
|
+
"types": "./build/typescript/react/testing.d.ts",
|
|
109
|
+
"quilt:source": "./source/react/testing.ts",
|
|
110
|
+
"quilt:esnext": "./build/esnext/react/testing.esnext",
|
|
111
|
+
"import": "./build/esm/react/testing.mjs",
|
|
112
|
+
"require": "./build/cjs/react/testing.cjs"
|
|
113
|
+
},
|
|
114
|
+
"./react/tools": {
|
|
115
|
+
"types": "./build/typescript/react/tools.d.ts",
|
|
116
|
+
"quilt:source": "./source/react/tools.ts",
|
|
117
|
+
"quilt:esnext": "./build/esnext/react/tools.esnext",
|
|
118
|
+
"import": "./build/esm/react/tools.mjs",
|
|
119
|
+
"require": "./build/cjs/react/tools.cjs"
|
|
64
120
|
},
|
|
65
121
|
"./graphql": {
|
|
66
122
|
"types": "./build/typescript/graphql.d.ts",
|
|
@@ -83,6 +139,20 @@
|
|
|
83
139
|
"import": "./build/esm/graphql/testing.mjs",
|
|
84
140
|
"require": "./build/cjs/graphql/testing.cjs"
|
|
85
141
|
},
|
|
142
|
+
"./server": {
|
|
143
|
+
"types": "./build/typescript/server.d.ts",
|
|
144
|
+
"quilt:source": "./source/server.ts",
|
|
145
|
+
"quilt:esnext": "./build/esnext/server.esnext",
|
|
146
|
+
"import": "./build/esm/server.mjs",
|
|
147
|
+
"require": "./build/cjs/server.cjs"
|
|
148
|
+
},
|
|
149
|
+
"./static": {
|
|
150
|
+
"types": "./build/typescript/static/index.d.ts",
|
|
151
|
+
"quilt:source": "./source/static/index.tsx",
|
|
152
|
+
"quilt:esnext": "./build/esnext/static/index.esnext",
|
|
153
|
+
"import": "./build/esm/static/index.mjs",
|
|
154
|
+
"require": "./build/cjs/static/index.cjs"
|
|
155
|
+
},
|
|
86
156
|
"./env": {
|
|
87
157
|
"types": "./build/typescript/env.d.ts",
|
|
88
158
|
"quilt:source": "./source/env.ts",
|
|
@@ -90,12 +160,12 @@
|
|
|
90
160
|
"import": "./build/esm/env.mjs",
|
|
91
161
|
"require": "./build/cjs/env.cjs"
|
|
92
162
|
},
|
|
93
|
-
"./
|
|
94
|
-
"types": "./build/typescript/
|
|
95
|
-
"quilt:source": "./source/
|
|
96
|
-
"quilt:esnext": "./build/esnext/
|
|
97
|
-
"import": "./build/esm/
|
|
98
|
-
"require": "./build/cjs/
|
|
163
|
+
"./request-router": {
|
|
164
|
+
"types": "./build/typescript/request-router/index.d.ts",
|
|
165
|
+
"quilt:source": "./source/request-router/index.ts",
|
|
166
|
+
"quilt:esnext": "./build/esnext/request-router/index.esnext",
|
|
167
|
+
"import": "./build/esm/request-router/index.mjs",
|
|
168
|
+
"require": "./build/cjs/request-router/index.cjs"
|
|
99
169
|
},
|
|
100
170
|
"./request-router/node": {
|
|
101
171
|
"types": "./build/typescript/request-router/node.d.ts",
|
|
@@ -104,13 +174,6 @@
|
|
|
104
174
|
"import": "./build/esm/request-router/node.mjs",
|
|
105
175
|
"require": "./build/cjs/request-router/node.cjs"
|
|
106
176
|
},
|
|
107
|
-
"./request-router": {
|
|
108
|
-
"types": "./build/typescript/request-router/index.d.ts",
|
|
109
|
-
"quilt:source": "./source/request-router/index.ts",
|
|
110
|
-
"quilt:esnext": "./build/esnext/request-router/index.esnext",
|
|
111
|
-
"import": "./build/esm/request-router/index.mjs",
|
|
112
|
-
"require": "./build/cjs/request-router/index.cjs"
|
|
113
|
-
},
|
|
114
177
|
"./threads": {
|
|
115
178
|
"types": "./build/typescript/threads.d.ts",
|
|
116
179
|
"quilt:source": "./source/threads.ts",
|
|
@@ -139,6 +202,13 @@
|
|
|
139
202
|
"import": "./build/esm/polyfills/fetch.mjs",
|
|
140
203
|
"require": "./build/cjs/polyfills/fetch.cjs"
|
|
141
204
|
},
|
|
205
|
+
"./polyfills/fetch-get-set-cookie": {
|
|
206
|
+
"types": "./build/typescript/polyfills/fetch-get-set-cookie.d.ts",
|
|
207
|
+
"quilt:source": "./source/polyfills/fetch-get-set-cookie.ts",
|
|
208
|
+
"quilt:esnext": "./build/esnext/polyfills/fetch-get-set-cookie.esnext",
|
|
209
|
+
"import": "./build/esm/polyfills/fetch-get-set-cookie.mjs",
|
|
210
|
+
"require": "./build/cjs/polyfills/fetch-get-set-cookie.cjs"
|
|
211
|
+
},
|
|
142
212
|
"./polyfills/abort-controller": {
|
|
143
213
|
"types": "./build/typescript/polyfills/abort-controller.d.ts",
|
|
144
214
|
"quilt:source": "./source/polyfills/abort-controller.ts",
|
|
@@ -153,6 +223,13 @@
|
|
|
153
223
|
"import": "./build/esm/polyfills/noop.mjs",
|
|
154
224
|
"require": "./build/cjs/polyfills/noop.cjs"
|
|
155
225
|
},
|
|
226
|
+
"./testing": {
|
|
227
|
+
"types": "./build/typescript/testing.d.ts",
|
|
228
|
+
"quilt:source": "./source/testing.ts",
|
|
229
|
+
"quilt:esnext": "./build/esnext/testing.esnext",
|
|
230
|
+
"import": "./build/esm/testing.mjs",
|
|
231
|
+
"require": "./build/cjs/testing.cjs"
|
|
232
|
+
},
|
|
156
233
|
"./magic/app": {
|
|
157
234
|
"types": "./build/typescript/magic/app.d.ts",
|
|
158
235
|
"quilt:source": "./source/magic/app.ts",
|
|
@@ -178,17 +255,17 @@
|
|
|
178
255
|
"types": "./build/typescript/index.d.ts",
|
|
179
256
|
"typesVersions": {
|
|
180
257
|
"*": {
|
|
181
|
-
"
|
|
182
|
-
"./build/typescript/
|
|
258
|
+
"assets": [
|
|
259
|
+
"./build/typescript/assets.d.ts"
|
|
183
260
|
],
|
|
184
|
-
"
|
|
185
|
-
"./build/typescript/
|
|
261
|
+
"async": [
|
|
262
|
+
"./build/typescript/async.d.ts"
|
|
186
263
|
],
|
|
187
264
|
"html": [
|
|
188
265
|
"./build/typescript/html.d.ts"
|
|
189
266
|
],
|
|
190
|
-
"
|
|
191
|
-
"./build/typescript/
|
|
267
|
+
"globals": [
|
|
268
|
+
"./build/typescript/globals.d.ts"
|
|
192
269
|
],
|
|
193
270
|
"env": [
|
|
194
271
|
"./build/typescript/env.d.ts"
|
|
@@ -196,8 +273,23 @@
|
|
|
196
273
|
"http": [
|
|
197
274
|
"./build/typescript/http.d.ts"
|
|
198
275
|
],
|
|
199
|
-
"
|
|
200
|
-
"./build/typescript/
|
|
276
|
+
"events": [
|
|
277
|
+
"./build/typescript/localize.d.ts"
|
|
278
|
+
],
|
|
279
|
+
"localize": [
|
|
280
|
+
"./build/typescript/localize.d.ts"
|
|
281
|
+
],
|
|
282
|
+
"navigate": [
|
|
283
|
+
"./build/typescript/navigate.d.ts"
|
|
284
|
+
],
|
|
285
|
+
"navigate/testing": [
|
|
286
|
+
"./build/typescript/navigate/testing.d.ts"
|
|
287
|
+
],
|
|
288
|
+
"performance": [
|
|
289
|
+
"./build/typescript/performance.d.ts"
|
|
290
|
+
],
|
|
291
|
+
"signals": [
|
|
292
|
+
"./build/typescript/signals.d.ts"
|
|
201
293
|
],
|
|
202
294
|
"graphql": [
|
|
203
295
|
"./build/typescript/graphql.d.ts"
|
|
@@ -208,14 +300,14 @@
|
|
|
208
300
|
"graphql/testing": [
|
|
209
301
|
"./build/typescript/graphql/testing.d.ts"
|
|
210
302
|
],
|
|
211
|
-
"matchers": [
|
|
212
|
-
"./build/typescript/matchers.d.ts"
|
|
213
|
-
],
|
|
214
303
|
"threads": [
|
|
215
304
|
"./build/typescript/threads.d.ts"
|
|
216
305
|
],
|
|
217
|
-
"
|
|
218
|
-
"./build/typescript/
|
|
306
|
+
"server": [
|
|
307
|
+
"./build/typescript/server.d.ts"
|
|
308
|
+
],
|
|
309
|
+
"static": [
|
|
310
|
+
"./build/typescript/static/index.d.ts"
|
|
219
311
|
],
|
|
220
312
|
"request-router/node": [
|
|
221
313
|
"./build/typescript/request-router/node.d.ts"
|
|
@@ -223,18 +315,30 @@
|
|
|
223
315
|
"request-router": [
|
|
224
316
|
"./build/typescript/request-router/index.d.ts"
|
|
225
317
|
],
|
|
318
|
+
"react/testing": [
|
|
319
|
+
"./build/typescript/react/testing.d.ts"
|
|
320
|
+
],
|
|
321
|
+
"react/tools": [
|
|
322
|
+
"./build/typescript/react/tools.d.ts"
|
|
323
|
+
],
|
|
226
324
|
"polyfills/base": [
|
|
227
325
|
"./build/typescript/polyfills/base.d.ts"
|
|
228
326
|
],
|
|
229
327
|
"polyfills/fetch": [
|
|
230
328
|
"./build/typescript/polyfills/fetch.d.ts"
|
|
231
329
|
],
|
|
330
|
+
"polyfills/fetch-get-set-cookie": [
|
|
331
|
+
"./build/typescript/polyfills/fetch-get-set-cookie.d.ts"
|
|
332
|
+
],
|
|
232
333
|
"polyfills/crypto": [
|
|
233
334
|
"./build/typescript/polyfills/crypto.d.ts"
|
|
234
335
|
],
|
|
235
336
|
"polyfills/noop": [
|
|
236
337
|
"./build/typescript/polyfills/noop.d.ts"
|
|
237
338
|
],
|
|
339
|
+
"testing": [
|
|
340
|
+
"./build/typescript/testing.d.ts"
|
|
341
|
+
],
|
|
238
342
|
"magic/app": [
|
|
239
343
|
"./build/typescript/magic/app.d.ts"
|
|
240
344
|
],
|
|
@@ -255,13 +359,13 @@
|
|
|
255
359
|
"./build/esm/polyfills/*.mjs"
|
|
256
360
|
],
|
|
257
361
|
"dependencies": {
|
|
258
|
-
"@quilted/assets": "^0.0.
|
|
362
|
+
"@quilted/assets": "^0.0.4",
|
|
259
363
|
"@quilted/async": "^0.3.34",
|
|
260
364
|
"@quilted/events": "^1.0.0",
|
|
261
365
|
"@quilted/graphql": "^1.2.0",
|
|
262
366
|
"@quilted/polyfills": "^0.2.12",
|
|
263
367
|
"@quilted/react": "^18.2.0",
|
|
264
|
-
"@quilted/react-assets": "^0.0.
|
|
368
|
+
"@quilted/react-assets": "^0.0.5",
|
|
265
369
|
"@quilted/react-async": "^0.3.43",
|
|
266
370
|
"@quilted/react-dom": "^18.2.0",
|
|
267
371
|
"@quilted/react-graphql": "^0.4.30",
|
package/source/assets.ts
CHANGED
|
@@ -1,7 +1,25 @@
|
|
|
1
|
+
export {
|
|
2
|
+
styleAssetAttributes,
|
|
3
|
+
styleAssetPreloadAttributes,
|
|
4
|
+
scriptAssetAttributes,
|
|
5
|
+
scriptAssetPreloadAttributes,
|
|
6
|
+
BrowserAssetsFromManifests,
|
|
7
|
+
createBrowserAssetsEntryFromManifest,
|
|
8
|
+
} from '@quilted/assets';
|
|
9
|
+
export type {
|
|
10
|
+
Asset,
|
|
11
|
+
AssetsCacheKey,
|
|
12
|
+
BrowserAssets,
|
|
13
|
+
BrowserAssetsEntry,
|
|
14
|
+
BrowserAssetSelector,
|
|
15
|
+
BrowserAssetModuleSelector,
|
|
16
|
+
AssetsBuildManifest,
|
|
17
|
+
AssetsBuildManifestEntry,
|
|
18
|
+
} from '@quilted/assets';
|
|
19
|
+
export {useAssetsCacheKey, useModuleAssets} from '@quilted/react-assets';
|
|
20
|
+
|
|
1
21
|
declare module '@quilted/assets' {
|
|
2
22
|
interface AssetsCacheKey {
|
|
3
23
|
browserGroup?: string;
|
|
4
24
|
}
|
|
5
25
|
}
|
|
6
|
-
|
|
7
|
-
export {};
|
package/source/async.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export {createAsyncModule} from '@quilted/async';
|
|
2
|
+
export type {AsyncModule} from '@quilted/async';
|
|
3
|
+
export {
|
|
4
|
+
useAsyncModule,
|
|
5
|
+
useAsyncModulePreload,
|
|
6
|
+
usePreload,
|
|
7
|
+
createAsyncComponent,
|
|
8
|
+
} from '@quilted/react-async';
|
|
9
|
+
export type {
|
|
10
|
+
NoOptions,
|
|
11
|
+
AssetLoadTiming,
|
|
12
|
+
HydrationTiming,
|
|
13
|
+
RenderTiming,
|
|
14
|
+
AsyncComponentType,
|
|
15
|
+
Preloadable,
|
|
16
|
+
} from '@quilted/react-async';
|
|
17
|
+
export {useIdleCallback} from '@quilted/react-idle';
|
package/source/events.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export {
|
|
2
|
+
on,
|
|
3
|
+
once,
|
|
4
|
+
sleep,
|
|
5
|
+
addEventHandler,
|
|
6
|
+
createEventEmitter,
|
|
7
|
+
EventEmitter,
|
|
8
|
+
AbortError,
|
|
9
|
+
NestedAbortController,
|
|
10
|
+
TimedAbortController,
|
|
11
|
+
raceAgainstAbortSignal,
|
|
12
|
+
} from '@quilted/events';
|
|
13
|
+
export type {
|
|
14
|
+
AbortBehavior,
|
|
15
|
+
EventHandler,
|
|
16
|
+
EventTarget,
|
|
17
|
+
EventTargetAddEventListener,
|
|
18
|
+
EventTargetFunction,
|
|
19
|
+
EventTargetOn,
|
|
20
|
+
} from '@quilted/events';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import {expect} from '@quilted/testing';
|
|
2
|
+
import type {
|
|
3
|
+
GraphQLAnyOperation,
|
|
4
|
+
GraphQLController,
|
|
5
|
+
} from '@quilted/graphql/testing';
|
|
6
|
+
|
|
7
|
+
import {toHavePerformedGraphQLOperation} from './matchers/operations.ts';
|
|
8
|
+
|
|
9
|
+
declare global {
|
|
10
|
+
// As far as I know, this is needed for the module augmentation to work.
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
12
|
+
namespace jest {
|
|
13
|
+
interface Matchers<R, T = {}> {
|
|
14
|
+
toHavePerformedGraphQLOperation<Variables>(
|
|
15
|
+
graphql: GraphQLController,
|
|
16
|
+
operation: GraphQLAnyOperation<any, Variables>,
|
|
17
|
+
variables?: Variables,
|
|
18
|
+
): void;
|
|
19
|
+
toHavePerformedGraphQLQuery<Variables>(
|
|
20
|
+
graphql: GraphQLController,
|
|
21
|
+
query: GraphQLAnyOperation<any, Variables>,
|
|
22
|
+
variables?: Variables,
|
|
23
|
+
): void;
|
|
24
|
+
toHavePerformedGraphQLMutation<Variables>(
|
|
25
|
+
graphql: GraphQLController,
|
|
26
|
+
mutation: GraphQLAnyOperation<any, Variables>,
|
|
27
|
+
variables?: Variables,
|
|
28
|
+
): void;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
expect.extend({
|
|
34
|
+
toHavePerformedGraphQLOperation,
|
|
35
|
+
toHavePerformedGraphQLQuery: toHavePerformedGraphQLOperation,
|
|
36
|
+
toHavePerformedGraphQLMutation: toHavePerformedGraphQLOperation,
|
|
37
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type {PropsWithChildren} from 'react';
|
|
2
|
+
|
|
3
|
+
import {HttpContext, CookieContext} from '@quilted/react-http';
|
|
4
|
+
import {useHTMLUpdater} from '@quilted/react-html';
|
|
5
|
+
|
|
6
|
+
export interface HTMLProps {}
|
|
7
|
+
|
|
8
|
+
export function HTML({children}: PropsWithChildren<HTMLProps>) {
|
|
9
|
+
return (
|
|
10
|
+
<HttpContext>
|
|
11
|
+
<CookieContext>
|
|
12
|
+
<HTMLUpdater />
|
|
13
|
+
{children}
|
|
14
|
+
</CookieContext>
|
|
15
|
+
</HttpContext>
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function HTMLUpdater() {
|
|
20
|
+
useHTMLUpdater();
|
|
21
|
+
return null;
|
|
22
|
+
}
|
package/source/html.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export {
|
|
2
2
|
Alternate,
|
|
3
3
|
BodyAttributes,
|
|
4
|
-
|
|
4
|
+
HeadScript,
|
|
5
|
+
HeadStyle,
|
|
6
|
+
HTMLAttributes,
|
|
5
7
|
Link,
|
|
6
8
|
Meta,
|
|
7
9
|
SearchRobots,
|
|
@@ -13,7 +15,9 @@ export {
|
|
|
13
15
|
useAlternateUrl,
|
|
14
16
|
useSerialized,
|
|
15
17
|
useBodyAttributes,
|
|
16
|
-
|
|
18
|
+
useHeadScript,
|
|
19
|
+
useHeadStyle,
|
|
20
|
+
useHTMLAttributes,
|
|
17
21
|
useFavicon,
|
|
18
22
|
useLink,
|
|
19
23
|
useLocale,
|
|
@@ -22,7 +26,15 @@ export {
|
|
|
22
26
|
useThemeColor,
|
|
23
27
|
useTitle,
|
|
24
28
|
useViewport,
|
|
25
|
-
|
|
29
|
+
useHTMLUpdater,
|
|
26
30
|
getSerialized,
|
|
27
31
|
} from '@quilted/react-html';
|
|
28
32
|
export type {Serializable} from '@quilted/react-html';
|
|
33
|
+
export {
|
|
34
|
+
useCookie,
|
|
35
|
+
useCookies,
|
|
36
|
+
type Cookies,
|
|
37
|
+
type CookieOptions,
|
|
38
|
+
} from '@quilted/react-http';
|
|
39
|
+
|
|
40
|
+
export {HTML} from './html/HTML.tsx';
|
package/source/http.ts
CHANGED
|
@@ -4,6 +4,8 @@ export {
|
|
|
4
4
|
HttpMethod,
|
|
5
5
|
ResponseType,
|
|
6
6
|
StatusCode,
|
|
7
|
+
useCookie,
|
|
8
|
+
useCookies,
|
|
7
9
|
useCacheControl,
|
|
8
10
|
useContentSecurityPolicy,
|
|
9
11
|
useCrossOriginEmbedderPolicy,
|
|
@@ -11,12 +13,14 @@ export {
|
|
|
11
13
|
useCrossOriginResourcePolicy,
|
|
12
14
|
usePermissionsPolicy,
|
|
13
15
|
useRequestHeader,
|
|
16
|
+
useRequestHeaders,
|
|
14
17
|
useResponseCookie,
|
|
15
18
|
useDeleteResponseCookie,
|
|
16
19
|
useResponseHeader,
|
|
17
20
|
useResponseRedirect,
|
|
18
21
|
useResponseStatus,
|
|
19
22
|
useStrictTransportSecurity,
|
|
23
|
+
CookieContext,
|
|
20
24
|
HttpContext,
|
|
21
25
|
NotFound,
|
|
22
26
|
PermissionsPolicy,
|