@hiver/connector-admin 0.0.1
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/README.md +50 -0
- package/dist/Typography-CW9ecUn7.js +174 -0
- package/dist/app/connectors/index.d.ts +3 -0
- package/dist/app/connectors/index.d.ts.map +1 -0
- package/dist/app/connectors/pages/connector-view/agent/index.d.ts +2 -0
- package/dist/app/connectors/pages/connector-view/agent/index.d.ts.map +1 -0
- package/dist/app/connectors/pages/connector-view/dashboard/__tests__/dashboard.test.d.ts +2 -0
- package/dist/app/connectors/pages/connector-view/dashboard/__tests__/dashboard.test.d.ts.map +1 -0
- package/dist/app/connectors/pages/connector-view/dashboard/index.d.ts +3 -0
- package/dist/app/connectors/pages/connector-view/dashboard/index.d.ts.map +1 -0
- package/dist/app/connectors/pages/connector-view/dashboard/styles.d.ts +24 -0
- package/dist/app/connectors/pages/connector-view/dashboard/styles.d.ts.map +1 -0
- package/dist/app/connectors/pages/connector-view/index.d.ts +3 -0
- package/dist/app/connectors/pages/connector-view/index.d.ts.map +1 -0
- package/dist/app/connectors/pages/settings/connector-config/__tests__/connector-config.test.d.ts +2 -0
- package/dist/app/connectors/pages/settings/connector-config/__tests__/connector-config.test.d.ts.map +1 -0
- package/dist/app/connectors/pages/settings/connector-config/index.d.ts +2 -0
- package/dist/app/connectors/pages/settings/connector-config/index.d.ts.map +1 -0
- package/dist/app/connectors/pages/settings/connector-config/style.d.ts +5 -0
- package/dist/app/connectors/pages/settings/connector-config/style.d.ts.map +1 -0
- package/dist/app/connectors/pages/settings/index.d.ts +2 -0
- package/dist/app/connectors/pages/settings/index.d.ts.map +1 -0
- package/dist/app/connectors/pages/settings/styles.d.ts +4 -0
- package/dist/app/connectors/pages/settings/styles.d.ts.map +1 -0
- package/dist/app/connectors/provider.d.ts +7 -0
- package/dist/app/connectors/provider.d.ts.map +1 -0
- package/dist/app/connectors/router.d.ts +3 -0
- package/dist/app/connectors/router.d.ts.map +1 -0
- package/dist/app/index.d.ts +2 -0
- package/dist/app/index.d.ts.map +1 -0
- package/dist/components/layouts/__tests__/sidebar.test.d.ts +2 -0
- package/dist/components/layouts/__tests__/sidebar.test.d.ts.map +1 -0
- package/dist/components/layouts/sidebar/index.d.ts +7 -0
- package/dist/components/layouts/sidebar/index.d.ts.map +1 -0
- package/dist/components/layouts/sidebar/styles.d.ts +7 -0
- package/dist/components/layouts/sidebar/styles.d.ts.map +1 -0
- package/dist/components/ui/bread-crumbs/__tests__/bread-crumb.test.d.ts +2 -0
- package/dist/components/ui/bread-crumbs/__tests__/bread-crumb.test.d.ts.map +1 -0
- package/dist/components/ui/bread-crumbs/index.d.ts +3 -0
- package/dist/components/ui/bread-crumbs/index.d.ts.map +1 -0
- package/dist/components/ui/bread-crumbs/styles.d.ts +6 -0
- package/dist/components/ui/bread-crumbs/styles.d.ts.map +1 -0
- package/dist/components/ui/modal/__tests__/modal.test.d.ts +2 -0
- package/dist/components/ui/modal/__tests__/modal.test.d.ts.map +1 -0
- package/dist/components/ui/modal/index.d.ts +10 -0
- package/dist/components/ui/modal/index.d.ts.map +1 -0
- package/dist/components/ui/styled-ui-components.d.ts +6 -0
- package/dist/components/ui/styled-ui-components.d.ts.map +1 -0
- package/dist/components/ui/text-field/index.d.ts +3 -0
- package/dist/components/ui/text-field/index.d.ts.map +1 -0
- package/dist/constants/api.d.ts +12 -0
- package/dist/constants/api.d.ts.map +1 -0
- package/dist/constants/bread-crumbs.d.ts +5 -0
- package/dist/constants/bread-crumbs.d.ts.map +1 -0
- package/dist/constants/modal.d.ts +4 -0
- package/dist/constants/modal.d.ts.map +1 -0
- package/dist/constants/router-paths.d.ts +9 -0
- package/dist/constants/router-paths.d.ts.map +1 -0
- package/dist/constants/sidebar.d.ts +7 -0
- package/dist/constants/sidebar.d.ts.map +1 -0
- package/dist/context/index.d.ts +24 -0
- package/dist/context/index.d.ts.map +1 -0
- package/dist/context/main-app-provider/index.d.ts +7 -0
- package/dist/context/main-app-provider/index.d.ts.map +1 -0
- package/dist/features/auth/components/auth.d.ts +2 -0
- package/dist/features/auth/components/auth.d.ts.map +1 -0
- package/dist/features/auth/constants/index.d.ts +2 -0
- package/dist/features/auth/constants/index.d.ts.map +1 -0
- package/dist/features/connector-library/api/index.d.ts +9 -0
- package/dist/features/connector-library/api/index.d.ts.map +1 -0
- package/dist/features/connector-library/components/api-library/index.d.ts +7 -0
- package/dist/features/connector-library/components/api-library/index.d.ts.map +1 -0
- package/dist/features/connector-library/components/api-library/styles.d.ts +4 -0
- package/dist/features/connector-library/components/api-library/styles.d.ts.map +1 -0
- package/dist/features/connector-library/components/api-library-skeleton/index.d.ts +2 -0
- package/dist/features/connector-library/components/api-library-skeleton/index.d.ts.map +1 -0
- package/dist/features/connector-library/components/api-library-skeleton/styles.d.ts +4 -0
- package/dist/features/connector-library/components/api-library-skeleton/styles.d.ts.map +1 -0
- package/dist/features/connector-library/components/connector-enabled-modal/index.d.ts +9 -0
- package/dist/features/connector-library/components/connector-enabled-modal/index.d.ts.map +1 -0
- package/dist/features/connector-library/components/connector-enabled-modal/styles.d.ts +4 -0
- package/dist/features/connector-library/components/connector-enabled-modal/styles.d.ts.map +1 -0
- package/dist/features/connector-library/components/library-card-list/__tests__/library-card-list.test.d.ts +2 -0
- package/dist/features/connector-library/components/library-card-list/__tests__/library-card-list.test.d.ts.map +1 -0
- package/dist/features/connector-library/components/library-card-list/index.d.ts +3 -0
- package/dist/features/connector-library/components/library-card-list/index.d.ts.map +1 -0
- package/dist/features/connector-library/components/library-card-list/styles.d.ts +10 -0
- package/dist/features/connector-library/components/library-card-list/styles.d.ts.map +1 -0
- package/dist/features/connector-library/components/library-card-skeleton/index.d.ts +2 -0
- package/dist/features/connector-library/components/library-card-skeleton/index.d.ts.map +1 -0
- package/dist/features/connector-library/components/library-card-skeleton/styles.d.ts +4 -0
- package/dist/features/connector-library/components/library-card-skeleton/styles.d.ts.map +1 -0
- package/dist/features/connector-library/components/library-edit-list/index.d.ts +2 -0
- package/dist/features/connector-library/components/library-edit-list/index.d.ts.map +1 -0
- package/dist/features/connector-library/components/library-edit-list/styles.d.ts +2 -0
- package/dist/features/connector-library/components/library-edit-list/styles.d.ts.map +1 -0
- package/dist/features/connector-library/constants/api-library.d.ts +3 -0
- package/dist/features/connector-library/constants/api-library.d.ts.map +1 -0
- package/dist/features/connector-library/constants/api.d.ts +5 -0
- package/dist/features/connector-library/constants/api.d.ts.map +1 -0
- package/dist/features/connector-library/constants/content-page.d.ts +5 -0
- package/dist/features/connector-library/constants/content-page.d.ts.map +1 -0
- package/dist/features/connector-library/store/initial-state.d.ts +22 -0
- package/dist/features/connector-library/store/initial-state.d.ts.map +1 -0
- package/dist/features/connector-library/store/selectors.d.ts +18 -0
- package/dist/features/connector-library/store/selectors.d.ts.map +1 -0
- package/dist/features/connector-library/store/slice.d.ts +78 -0
- package/dist/features/connector-library/store/slice.d.ts.map +1 -0
- package/dist/features/connector-library/types/connector.d.ts +54 -0
- package/dist/features/connector-library/types/connector.d.ts.map +1 -0
- package/dist/features/connector-library/utils/type-guards.d.ts +7 -0
- package/dist/features/connector-library/utils/type-guards.d.ts.map +1 -0
- package/dist/features/request-new-connector/components/custom-connector-card/__tests__/custom-connector-card.test.d.ts +2 -0
- package/dist/features/request-new-connector/components/custom-connector-card/__tests__/custom-connector-card.test.d.ts.map +1 -0
- package/dist/features/request-new-connector/components/custom-connector-card/index.d.ts +9 -0
- package/dist/features/request-new-connector/components/custom-connector-card/index.d.ts.map +1 -0
- package/dist/features/request-new-connector/components/custom-connector-card/style.d.ts +10 -0
- package/dist/features/request-new-connector/components/custom-connector-card/style.d.ts.map +1 -0
- package/dist/features/request-new-connector/components/request-new-card/index.d.ts +7 -0
- package/dist/features/request-new-connector/components/request-new-card/index.d.ts.map +1 -0
- package/dist/features/request-new-connector/components/request-new-card/styles.d.ts +22 -0
- package/dist/features/request-new-connector/components/request-new-card/styles.d.ts.map +1 -0
- package/dist/features/request-new-connector/components/request-new-modal/__tests__/request-new-modal.test.d.ts +2 -0
- package/dist/features/request-new-connector/components/request-new-modal/__tests__/request-new-modal.test.d.ts.map +1 -0
- package/dist/features/request-new-connector/components/request-new-modal/index.d.ts +8 -0
- package/dist/features/request-new-connector/components/request-new-modal/index.d.ts.map +1 -0
- package/dist/features/request-new-connector/components/request-new-modal/request-panel.d.ts +13 -0
- package/dist/features/request-new-connector/components/request-new-modal/request-panel.d.ts.map +1 -0
- package/dist/features/request-new-connector/components/request-new-modal/styles.d.ts +4 -0
- package/dist/features/request-new-connector/components/request-new-modal/styles.d.ts.map +1 -0
- package/dist/features/request-new-connector/components/request-new-modal/submitted-panel.d.ts +7 -0
- package/dist/features/request-new-connector/components/request-new-modal/submitted-panel.d.ts.map +1 -0
- package/dist/features/request-new-connector/constants/index.d.ts +21 -0
- package/dist/features/request-new-connector/constants/index.d.ts.map +1 -0
- package/dist/features/request-new-connector/types/index.d.ts +5 -0
- package/dist/features/request-new-connector/types/index.d.ts.map +1 -0
- package/dist/features/settings/components/auth/auth.d.ts +2 -0
- package/dist/features/settings/components/auth/auth.d.ts.map +1 -0
- package/dist/features/settings/constants/auth.d.ts +2 -0
- package/dist/features/settings/constants/auth.d.ts.map +1 -0
- package/dist/index-BaRBVtu0.js +39 -0
- package/dist/index-C47HiJVp.js +68 -0
- package/dist/index-CJMPXxRz.js +52 -0
- package/dist/index-DTpk0Iib.js +29155 -0
- package/dist/index-Dji7oatk.js +3356 -0
- package/dist/index-DxrxS1sg.js +5 -0
- package/dist/index-IXLZm0uz.js +2954 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.es.js +7 -0
- package/dist/index.umd.js +2549 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/mockServiceWorker.js +280 -0
- package/dist/store/counter/initial-state.d.ts +6 -0
- package/dist/store/counter/initial-state.d.ts.map +1 -0
- package/dist/store/counter/selectors.d.ts +4 -0
- package/dist/store/counter/selectors.d.ts.map +1 -0
- package/dist/store/counter/slice.d.ts +23 -0
- package/dist/store/counter/slice.d.ts.map +1 -0
- package/dist/store/hooks.d.ts +9 -0
- package/dist/store/hooks.d.ts.map +1 -0
- package/dist/store/index.d.ts +22 -0
- package/dist/store/index.d.ts.map +1 -0
- package/dist/testing/mocks/browser.d.ts +2 -0
- package/dist/testing/mocks/browser.d.ts.map +1 -0
- package/dist/testing/mocks/handlers/bifrost-token.d.ts +2 -0
- package/dist/testing/mocks/handlers/bifrost-token.d.ts.map +1 -0
- package/dist/testing/mocks/handlers/connector-template.d.ts +2 -0
- package/dist/testing/mocks/handlers/connector-template.d.ts.map +1 -0
- package/dist/testing/mocks/handlers/update-connector.d.ts +2 -0
- package/dist/testing/mocks/handlers/update-connector.d.ts.map +1 -0
- package/dist/testing/mocks/handlers.d.ts +2 -0
- package/dist/testing/mocks/handlers.d.ts.map +1 -0
- package/dist/testing/mocks/server.d.ts +2 -0
- package/dist/testing/mocks/server.d.ts.map +1 -0
- package/dist/testing/setup-store.d.ts +11 -0
- package/dist/testing/setup-store.d.ts.map +1 -0
- package/dist/testing/setup-test.d.ts +1 -0
- package/dist/testing/setup-test.d.ts.map +1 -0
- package/dist/testing/test-utils.d.ts +69 -0
- package/dist/testing/test-utils.d.ts.map +1 -0
- package/dist/theme.d.ts +3 -0
- package/dist/theme.d.ts.map +1 -0
- package/dist/types/api.d.ts +2 -0
- package/dist/types/api.d.ts.map +1 -0
- package/dist/types/router.d.ts +4 -0
- package/dist/types/router.d.ts.map +1 -0
- package/dist/types/sidebar.d.ts +8 -0
- package/dist/types/sidebar.d.ts.map +1 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +48 -0
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=main.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.tsx"],"names":[],"mappings":"AAMA,OAAO,aAAa,CAAC"}
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Mock Service Worker.
|
|
5
|
+
* @see https://github.com/mswjs/msw
|
|
6
|
+
* - Please do NOT modify this file.
|
|
7
|
+
* - Please do NOT serve this file on production.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
const PACKAGE_VERSION = '2.4.4';
|
|
11
|
+
const INTEGRITY_CHECKSUM = '26357c79639bfa20d64c0efca2a87423';
|
|
12
|
+
const IS_MOCKED_RESPONSE = Symbol('isMockedResponse');
|
|
13
|
+
const activeClientIds = new Set();
|
|
14
|
+
|
|
15
|
+
self.addEventListener('install', function () {
|
|
16
|
+
self.skipWaiting();
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
self.addEventListener('activate', function (event) {
|
|
20
|
+
event.waitUntil(self.clients.claim());
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
self.addEventListener('message', async function (event) {
|
|
24
|
+
const clientId = event.source.id;
|
|
25
|
+
|
|
26
|
+
if (!clientId || !self.clients) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const client = await self.clients.get(clientId);
|
|
31
|
+
|
|
32
|
+
if (!client) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const allClients = await self.clients.matchAll({
|
|
37
|
+
type: 'window'
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
switch (event.data) {
|
|
41
|
+
case 'KEEPALIVE_REQUEST': {
|
|
42
|
+
sendToClient(client, {
|
|
43
|
+
type: 'KEEPALIVE_RESPONSE'
|
|
44
|
+
});
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
case 'INTEGRITY_CHECK_REQUEST': {
|
|
49
|
+
sendToClient(client, {
|
|
50
|
+
type: 'INTEGRITY_CHECK_RESPONSE',
|
|
51
|
+
payload: {
|
|
52
|
+
packageVersion: PACKAGE_VERSION,
|
|
53
|
+
checksum: INTEGRITY_CHECKSUM
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
case 'MOCK_ACTIVATE': {
|
|
60
|
+
activeClientIds.add(clientId);
|
|
61
|
+
|
|
62
|
+
sendToClient(client, {
|
|
63
|
+
type: 'MOCKING_ENABLED',
|
|
64
|
+
payload: true
|
|
65
|
+
});
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
case 'MOCK_DEACTIVATE': {
|
|
70
|
+
activeClientIds.delete(clientId);
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
case 'CLIENT_CLOSED': {
|
|
75
|
+
activeClientIds.delete(clientId);
|
|
76
|
+
|
|
77
|
+
const remainingClients = allClients.filter((client) => {
|
|
78
|
+
return client.id !== clientId;
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
// Unregister itself when there are no more clients
|
|
82
|
+
if (remainingClients.length === 0) {
|
|
83
|
+
self.registration.unregister();
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
self.addEventListener('fetch', function (event) {
|
|
92
|
+
const { request } = event;
|
|
93
|
+
|
|
94
|
+
// Bypass navigation requests.
|
|
95
|
+
if (request.mode === 'navigate') {
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// Opening the DevTools triggers the "only-if-cached" request
|
|
100
|
+
// that cannot be handled by the worker. Bypass such requests.
|
|
101
|
+
if (request.cache === 'only-if-cached' && request.mode !== 'same-origin') {
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// Bypass all requests when there are no active clients.
|
|
106
|
+
// Prevents the self-unregistered worked from handling requests
|
|
107
|
+
// after it's been deleted (still remains active until the next reload).
|
|
108
|
+
if (activeClientIds.size === 0) {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// Generate unique request ID.
|
|
113
|
+
const requestId = crypto.randomUUID();
|
|
114
|
+
event.respondWith(handleRequest(event, requestId));
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
async function handleRequest(event, requestId) {
|
|
118
|
+
const client = await resolveMainClient(event);
|
|
119
|
+
const response = await getResponse(event, client, requestId);
|
|
120
|
+
|
|
121
|
+
// Send back the response clone for the "response:*" life-cycle events.
|
|
122
|
+
// Ensure MSW is active and ready to handle the message, otherwise
|
|
123
|
+
// this message will pend indefinitely.
|
|
124
|
+
if (client && activeClientIds.has(client.id)) {
|
|
125
|
+
(async function () {
|
|
126
|
+
const responseClone = response.clone();
|
|
127
|
+
|
|
128
|
+
sendToClient(
|
|
129
|
+
client,
|
|
130
|
+
{
|
|
131
|
+
type: 'RESPONSE',
|
|
132
|
+
payload: {
|
|
133
|
+
requestId,
|
|
134
|
+
isMockedResponse: IS_MOCKED_RESPONSE in response,
|
|
135
|
+
type: responseClone.type,
|
|
136
|
+
status: responseClone.status,
|
|
137
|
+
statusText: responseClone.statusText,
|
|
138
|
+
body: responseClone.body,
|
|
139
|
+
headers: Object.fromEntries(responseClone.headers.entries())
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
[responseClone.body]
|
|
143
|
+
);
|
|
144
|
+
})();
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
return response;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// Resolve the main client for the given event.
|
|
151
|
+
// Client that issues a request doesn't necessarily equal the client
|
|
152
|
+
// that registered the worker. It's with the latter the worker should
|
|
153
|
+
// communicate with during the response resolving phase.
|
|
154
|
+
async function resolveMainClient(event) {
|
|
155
|
+
const client = await self.clients.get(event.clientId);
|
|
156
|
+
|
|
157
|
+
if (client?.frameType === 'top-level') {
|
|
158
|
+
return client;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
const allClients = await self.clients.matchAll({
|
|
162
|
+
type: 'window'
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
return allClients
|
|
166
|
+
.filter((client) => {
|
|
167
|
+
// Get only those clients that are currently visible.
|
|
168
|
+
return client.visibilityState === 'visible';
|
|
169
|
+
})
|
|
170
|
+
.find((client) => {
|
|
171
|
+
// Find the client ID that's recorded in the
|
|
172
|
+
// set of clients that have registered the worker.
|
|
173
|
+
return activeClientIds.has(client.id);
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
async function getResponse(event, client, requestId) {
|
|
178
|
+
const { request } = event;
|
|
179
|
+
|
|
180
|
+
// Clone the request because it might've been already used
|
|
181
|
+
// (i.e. its body has been read and sent to the client).
|
|
182
|
+
const requestClone = request.clone();
|
|
183
|
+
|
|
184
|
+
function passthrough() {
|
|
185
|
+
const headers = Object.fromEntries(requestClone.headers.entries());
|
|
186
|
+
|
|
187
|
+
// Remove internal MSW request header so the passthrough request
|
|
188
|
+
// complies with any potential CORS preflight checks on the server.
|
|
189
|
+
// Some servers forbid unknown request headers.
|
|
190
|
+
delete headers['x-msw-intention'];
|
|
191
|
+
|
|
192
|
+
return fetch(requestClone, { headers });
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
// Bypass mocking when the client is not active.
|
|
196
|
+
if (!client) {
|
|
197
|
+
return passthrough();
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// Bypass initial page load requests (i.e. static assets).
|
|
201
|
+
// The absence of the immediate/parent client in the map of the active clients
|
|
202
|
+
// means that MSW hasn't dispatched the "MOCK_ACTIVATE" event yet
|
|
203
|
+
// and is not ready to handle requests.
|
|
204
|
+
if (!activeClientIds.has(client.id)) {
|
|
205
|
+
return passthrough();
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
// Notify the client that a request has been intercepted.
|
|
209
|
+
const requestBuffer = await request.arrayBuffer();
|
|
210
|
+
const clientMessage = await sendToClient(
|
|
211
|
+
client,
|
|
212
|
+
{
|
|
213
|
+
type: 'REQUEST',
|
|
214
|
+
payload: {
|
|
215
|
+
id: requestId,
|
|
216
|
+
url: request.url,
|
|
217
|
+
mode: request.mode,
|
|
218
|
+
method: request.method,
|
|
219
|
+
headers: Object.fromEntries(request.headers.entries()),
|
|
220
|
+
cache: request.cache,
|
|
221
|
+
credentials: request.credentials,
|
|
222
|
+
destination: request.destination,
|
|
223
|
+
integrity: request.integrity,
|
|
224
|
+
redirect: request.redirect,
|
|
225
|
+
referrer: request.referrer,
|
|
226
|
+
referrerPolicy: request.referrerPolicy,
|
|
227
|
+
body: requestBuffer,
|
|
228
|
+
keepalive: request.keepalive
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
[requestBuffer]
|
|
232
|
+
);
|
|
233
|
+
|
|
234
|
+
switch (clientMessage.type) {
|
|
235
|
+
case 'MOCK_RESPONSE': {
|
|
236
|
+
return respondWithMock(clientMessage.data);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
case 'PASSTHROUGH': {
|
|
240
|
+
return passthrough();
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
return passthrough();
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
function sendToClient(client, message, transferrables = []) {
|
|
248
|
+
return new Promise((resolve, reject) => {
|
|
249
|
+
const channel = new MessageChannel();
|
|
250
|
+
|
|
251
|
+
channel.port1.onmessage = (event) => {
|
|
252
|
+
if (event.data && event.data.error) {
|
|
253
|
+
return reject(event.data.error);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
resolve(event.data);
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
client.postMessage(message, [channel.port2].concat(transferrables.filter(Boolean)));
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
async function respondWithMock(response) {
|
|
264
|
+
// Setting response status code to 0 is a no-op.
|
|
265
|
+
// However, when responding with a "Response.error()", the produced Response
|
|
266
|
+
// instance will have status code set to 0. Since it's not possible to create
|
|
267
|
+
// a Response instance with status code 0, handle that use-case separately.
|
|
268
|
+
if (response.status === 0) {
|
|
269
|
+
return Response.error();
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
const mockedResponse = new Response(response.body, response);
|
|
273
|
+
|
|
274
|
+
Reflect.defineProperty(mockedResponse, IS_MOCKED_RESPONSE, {
|
|
275
|
+
value: true,
|
|
276
|
+
enumerable: true
|
|
277
|
+
});
|
|
278
|
+
|
|
279
|
+
return mockedResponse;
|
|
280
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initial-state.d.ts","sourceRoot":"","sources":["../../../src/store/counter/initial-state.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;CACvC;AAGD,eAAO,MAAM,YAAY,EAAE,YAG1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../src/store/counter/selectors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,eAAO,MAAM,WAAW,UAAW,SAAS,WAAwB,CAAC;AACrE,eAAO,MAAM,YAAY,UAAW,SAAS,kCAAyB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { AppThunk } from '..';
|
|
3
|
+
export declare const counterSlice: import('@reduxjs/toolkit').Slice<import('./initial-state').CounterState, {
|
|
4
|
+
increment: (state: import('immer').WritableDraft<import('./initial-state').CounterState>) => void;
|
|
5
|
+
decrement: (state: import('immer').WritableDraft<import('./initial-state').CounterState>) => void;
|
|
6
|
+
incrementByAmount: (state: import('immer').WritableDraft<import('./initial-state').CounterState>, action: PayloadAction<number>) => void;
|
|
7
|
+
}, "counter", "counter", import('@reduxjs/toolkit').SliceSelectors<import('./initial-state').CounterState>>;
|
|
8
|
+
declare const increment: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"counter/increment">, decrement: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"counter/decrement">, incrementByAmount: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "counter/incrementByAmount">;
|
|
9
|
+
declare const incrementIfOdd: (amount: number) => AppThunk;
|
|
10
|
+
declare const incrementAsync: import('@reduxjs/toolkit').AsyncThunk<number, number, {
|
|
11
|
+
state?: unknown;
|
|
12
|
+
dispatch?: import('redux-thunk').ThunkDispatch<unknown, unknown, import('redux').UnknownAction>;
|
|
13
|
+
extra?: unknown;
|
|
14
|
+
rejectValue?: unknown;
|
|
15
|
+
serializedErrorType?: unknown;
|
|
16
|
+
pendingMeta?: unknown;
|
|
17
|
+
fulfilledMeta?: unknown;
|
|
18
|
+
rejectedMeta?: unknown;
|
|
19
|
+
}>;
|
|
20
|
+
declare const _default: import('redux').Reducer<import('./initial-state').CounterState>;
|
|
21
|
+
export default _default;
|
|
22
|
+
export { increment, decrement, incrementByAmount, incrementAsync, incrementIfOdd };
|
|
23
|
+
//# sourceMappingURL=slice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../../src/store/counter/slice.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAIxC,eAAO,MAAM,YAAY;;;8GAUc,aAAa,CAAC,MAAM,CAAC;2GAiB1D,CAAC;AAEH,QAAA,MAAQ,SAAS,+EAAE,SAAS,+EAAE,iBAAiB,0FAAyB,CAAC;AAGzE,QAAA,MAAM,cAAc,WAAY,MAAM,KAAG,QAOxC,CAAC;AAEF,QAAA,MAAM,cAAc;;;;;;;;;EAQlB,CAAC;;AAEH,wBAAoC;AAEpC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const useAppDispatch: import('react-redux').UseDispatch<import('redux-thunk').ThunkDispatch<{
|
|
2
|
+
counter: import('./counter/initial-state').CounterState;
|
|
3
|
+
connectorLirary: import('../features/connector-library/store/initial-state').ConnectorState;
|
|
4
|
+
}, undefined, import('redux').UnknownAction> & import('redux').Dispatch<import('redux').UnknownAction>>;
|
|
5
|
+
export declare const useAppSelector: import('react-redux').UseSelector<{
|
|
6
|
+
counter: import('./counter/initial-state').CounterState;
|
|
7
|
+
connectorLirary: import('../features/connector-library/store/initial-state').ConnectorState;
|
|
8
|
+
}>;
|
|
9
|
+
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/store/hooks.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,cAAc;;;uGAAuC,CAAC;AACnE,eAAO,MAAM,cAAc;;;EAAqC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Action, ThunkAction } from '@reduxjs/toolkit';
|
|
2
|
+
export declare const rootReducer: import('redux').Reducer<{
|
|
3
|
+
counter: import('./counter/initial-state').CounterState;
|
|
4
|
+
connectorLirary: import('../features/connector-library/store/initial-state').ConnectorState;
|
|
5
|
+
}, import('redux').UnknownAction, Partial<{
|
|
6
|
+
counter: import('./counter/initial-state').CounterState | undefined;
|
|
7
|
+
connectorLirary: import('../features/connector-library/store/initial-state').ConnectorState | undefined;
|
|
8
|
+
}>>;
|
|
9
|
+
export declare const store: import('@reduxjs/toolkit').EnhancedStore<{
|
|
10
|
+
counter: import('./counter/initial-state').CounterState;
|
|
11
|
+
connectorLirary: import('../features/connector-library/store/initial-state').ConnectorState;
|
|
12
|
+
}, import('redux').UnknownAction, import('@reduxjs/toolkit').Tuple<[import('redux').StoreEnhancer<{
|
|
13
|
+
dispatch: import('redux-thunk').ThunkDispatch<{
|
|
14
|
+
counter: import('./counter/initial-state').CounterState;
|
|
15
|
+
connectorLirary: import('../features/connector-library/store/initial-state').ConnectorState;
|
|
16
|
+
}, undefined, import('redux').UnknownAction>;
|
|
17
|
+
}>, import('redux').StoreEnhancer]>>;
|
|
18
|
+
export type AppStore = typeof store;
|
|
19
|
+
export type RootState = ReturnType<AppStore['getState']>;
|
|
20
|
+
export type AppDispatch = AppStore['dispatch'];
|
|
21
|
+
export type AppThunk<ThunkReturnType = void> = ThunkAction<ThunkReturnType, RootState, unknown, Action>;
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE5D,eAAO,MAAM,WAAW;;;;;;GAGtB,CAAC;AAEH,eAAO,MAAM,KAAK;;;;;;;;oCAGhB,CAAC;AAGH,MAAM,MAAM,QAAQ,GAAG,OAAO,KAAK,CAAC;AACpC,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC;AAEzD,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC;AAE/C,MAAM,MAAM,QAAQ,CAAC,eAAe,GAAG,IAAI,IAAI,WAAW,CAAC,eAAe,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../../src/testing/mocks/browser.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,mCAA2B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bifrost-token.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/bifrost-token.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,QAAQ,6BAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connector-template.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/connector-template.ts"],"names":[],"mappings":"AA0FA,eAAO,MAAM,QAAQ,6BAAsE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-connector.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/update-connector.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,QAAQ,6BAAyB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../src/testing/mocks/handlers.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,QAAQ,6BAA+E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/testing/mocks/server.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,mCAA2B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RootState } from '../store';
|
|
2
|
+
export declare const setupStore: (preloadedState?: Partial<RootState>) => import('@reduxjs/toolkit').EnhancedStore<{
|
|
3
|
+
counter: import('../store/counter/initial-state').CounterState;
|
|
4
|
+
connectorLirary: import('../features/connector-library/store/initial-state').ConnectorState;
|
|
5
|
+
}, import('redux').UnknownAction, import('@reduxjs/toolkit').Tuple<[import('redux').StoreEnhancer<{
|
|
6
|
+
dispatch: import('redux-thunk').ThunkDispatch<{
|
|
7
|
+
counter: import('../store/counter/initial-state').CounterState;
|
|
8
|
+
connectorLirary: import('../features/connector-library/store/initial-state').ConnectorState;
|
|
9
|
+
}, undefined, import('redux').UnknownAction>;
|
|
10
|
+
}>, import('redux').StoreEnhancer]>>;
|
|
11
|
+
//# sourceMappingURL=setup-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup-store.d.ts","sourceRoot":"","sources":["../../src/testing/setup-store.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAe,MAAM,SAAS,CAAC;AAEjD,eAAO,MAAM,UAAU,oBAAqB,OAAO,CAAC,SAAS,CAAC;;;;;;;;oCAK7D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=setup-test.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup-test.d.ts","sourceRoot":"","sources":["../../src/testing/setup-test.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { render as rtlRender, RenderOptions } from '@testing-library/react';
|
|
2
|
+
import { default as userEvent } from '@testing-library/user-event';
|
|
3
|
+
import { AppStore, RootState } from '../store';
|
|
4
|
+
interface ExtendedRenderOptions extends Omit<RenderOptions, 'queries'> {
|
|
5
|
+
url?: string;
|
|
6
|
+
path?: string;
|
|
7
|
+
preloadedState?: Partial<RootState>;
|
|
8
|
+
store?: AppStore;
|
|
9
|
+
}
|
|
10
|
+
export declare const waitForLoadingToFinish: () => Promise<void>;
|
|
11
|
+
export declare const renderApp: (ui: React.ReactElement, { url, path, preloadedState, store, ...renderOptions }?: ExtendedRenderOptions) => Promise<{
|
|
12
|
+
container: HTMLElement;
|
|
13
|
+
baseElement: HTMLElement;
|
|
14
|
+
debug: (baseElement?: import('react-dom/client').Container | (Element | Document) | Array<import('react-dom/client').Container | (Element | Document)> | undefined, maxLength?: number | undefined, options?: import('pretty-format').OptionsReceived | undefined) => void;
|
|
15
|
+
rerender: (ui: React.ReactNode) => void;
|
|
16
|
+
unmount: () => void;
|
|
17
|
+
asFragment: () => DocumentFragment;
|
|
18
|
+
getByLabelText: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').SelectorMatcherOptions | undefined) => HTMLElement;
|
|
19
|
+
getAllByLabelText: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').SelectorMatcherOptions | undefined) => HTMLElement[];
|
|
20
|
+
queryByLabelText: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').SelectorMatcherOptions | undefined) => HTMLElement | null;
|
|
21
|
+
queryAllByLabelText: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').SelectorMatcherOptions | undefined) => HTMLElement[];
|
|
22
|
+
findByLabelText: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').SelectorMatcherOptions | undefined, waitForElementOptions?: import('@testing-library/dom').waitForOptions | undefined) => Promise<HTMLElement>;
|
|
23
|
+
findAllByLabelText: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').SelectorMatcherOptions | undefined, waitForElementOptions?: import('@testing-library/dom').waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
24
|
+
getByPlaceholderText: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').MatcherOptions | undefined) => HTMLElement;
|
|
25
|
+
getAllByPlaceholderText: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').MatcherOptions | undefined) => HTMLElement[];
|
|
26
|
+
queryByPlaceholderText: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').MatcherOptions | undefined) => HTMLElement | null;
|
|
27
|
+
queryAllByPlaceholderText: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').MatcherOptions | undefined) => HTMLElement[];
|
|
28
|
+
findByPlaceholderText: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').MatcherOptions | undefined, waitForElementOptions?: import('@testing-library/dom').waitForOptions | undefined) => Promise<HTMLElement>;
|
|
29
|
+
findAllByPlaceholderText: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').MatcherOptions | undefined, waitForElementOptions?: import('@testing-library/dom').waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
30
|
+
getByText: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').SelectorMatcherOptions | undefined) => HTMLElement;
|
|
31
|
+
getAllByText: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').SelectorMatcherOptions | undefined) => HTMLElement[];
|
|
32
|
+
queryByText: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').SelectorMatcherOptions | undefined) => HTMLElement | null;
|
|
33
|
+
queryAllByText: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').SelectorMatcherOptions | undefined) => HTMLElement[];
|
|
34
|
+
findByText: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').SelectorMatcherOptions | undefined, waitForElementOptions?: import('@testing-library/dom').waitForOptions | undefined) => Promise<HTMLElement>;
|
|
35
|
+
findAllByText: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').SelectorMatcherOptions | undefined, waitForElementOptions?: import('@testing-library/dom').waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
36
|
+
getByAltText: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').MatcherOptions | undefined) => HTMLElement;
|
|
37
|
+
getAllByAltText: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').MatcherOptions | undefined) => HTMLElement[];
|
|
38
|
+
queryByAltText: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').MatcherOptions | undefined) => HTMLElement | null;
|
|
39
|
+
queryAllByAltText: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').MatcherOptions | undefined) => HTMLElement[];
|
|
40
|
+
findByAltText: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').MatcherOptions | undefined, waitForElementOptions?: import('@testing-library/dom').waitForOptions | undefined) => Promise<HTMLElement>;
|
|
41
|
+
findAllByAltText: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').MatcherOptions | undefined, waitForElementOptions?: import('@testing-library/dom').waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
42
|
+
getByTitle: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').MatcherOptions | undefined) => HTMLElement;
|
|
43
|
+
getAllByTitle: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').MatcherOptions | undefined) => HTMLElement[];
|
|
44
|
+
queryByTitle: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').MatcherOptions | undefined) => HTMLElement | null;
|
|
45
|
+
queryAllByTitle: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').MatcherOptions | undefined) => HTMLElement[];
|
|
46
|
+
findByTitle: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').MatcherOptions | undefined, waitForElementOptions?: import('@testing-library/dom').waitForOptions | undefined) => Promise<HTMLElement>;
|
|
47
|
+
findAllByTitle: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').MatcherOptions | undefined, waitForElementOptions?: import('@testing-library/dom').waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
48
|
+
getByDisplayValue: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').MatcherOptions | undefined) => HTMLElement;
|
|
49
|
+
getAllByDisplayValue: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').MatcherOptions | undefined) => HTMLElement[];
|
|
50
|
+
queryByDisplayValue: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').MatcherOptions | undefined) => HTMLElement | null;
|
|
51
|
+
queryAllByDisplayValue: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').MatcherOptions | undefined) => HTMLElement[];
|
|
52
|
+
findByDisplayValue: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').MatcherOptions | undefined, waitForElementOptions?: import('@testing-library/dom').waitForOptions | undefined) => Promise<HTMLElement>;
|
|
53
|
+
findAllByDisplayValue: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').MatcherOptions | undefined, waitForElementOptions?: import('@testing-library/dom').waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
54
|
+
getByRole: (role: import('@testing-library/dom').ByRoleMatcher, options?: import('@testing-library/dom').ByRoleOptions | undefined) => HTMLElement;
|
|
55
|
+
getAllByRole: (role: import('@testing-library/dom').ByRoleMatcher, options?: import('@testing-library/dom').ByRoleOptions | undefined) => HTMLElement[];
|
|
56
|
+
queryByRole: (role: import('@testing-library/dom').ByRoleMatcher, options?: import('@testing-library/dom').ByRoleOptions | undefined) => HTMLElement | null;
|
|
57
|
+
queryAllByRole: (role: import('@testing-library/dom').ByRoleMatcher, options?: import('@testing-library/dom').ByRoleOptions | undefined) => HTMLElement[];
|
|
58
|
+
findByRole: (role: import('@testing-library/dom').ByRoleMatcher, options?: import('@testing-library/dom').ByRoleOptions | undefined, waitForElementOptions?: import('@testing-library/dom').waitForOptions | undefined) => Promise<HTMLElement>;
|
|
59
|
+
findAllByRole: (role: import('@testing-library/dom').ByRoleMatcher, options?: import('@testing-library/dom').ByRoleOptions | undefined, waitForElementOptions?: import('@testing-library/dom').waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
60
|
+
getByTestId: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').MatcherOptions | undefined) => HTMLElement;
|
|
61
|
+
getAllByTestId: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').MatcherOptions | undefined) => HTMLElement[];
|
|
62
|
+
queryByTestId: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').MatcherOptions | undefined) => HTMLElement | null;
|
|
63
|
+
queryAllByTestId: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').MatcherOptions | undefined) => HTMLElement[];
|
|
64
|
+
findByTestId: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').MatcherOptions | undefined, waitForElementOptions?: import('@testing-library/dom').waitForOptions | undefined) => Promise<HTMLElement>;
|
|
65
|
+
findAllByTestId: (id: import('@testing-library/dom').Matcher, options?: import('@testing-library/dom').MatcherOptions | undefined, waitForElementOptions?: import('@testing-library/dom').waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
66
|
+
}>;
|
|
67
|
+
export * from '@testing-library/react';
|
|
68
|
+
export { userEvent, rtlRender };
|
|
69
|
+
//# sourceMappingURL=test-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../src/testing/test-utils.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,SAAS,EAAqC,MAAM,wBAAwB,CAAC;AAChG,OAAO,SAAS,MAAM,6BAA6B,CAAC;AAKpD,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,UAAU,qBAAsB,SAAQ,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC;IACpE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACpC,KAAK,CAAC,EAAE,QAAQ,CAAC;CAClB;AAED,eAAO,MAAM,sBAAsB,qBAG/B,CAAC;AAEL,eAAO,MAAM,SAAS,OAChB,KAAK,CAAC,YAAY,2DAOnB,qBAAqB;;;uBAJtB,CAAC,yJAMY,CAAC,6BAGV,CAAP;yBAKkB,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqB3B,CAAC;AAGF,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC"}
|
package/dist/theme.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AA4HA,QAAA,MAAM,UAAU,qCAAqC,CAAC;AAEtD,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/types/api.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/types/router.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../src/types/sidebar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAE3C,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,EAAE,CAAC;CACX;AAED,MAAM,MAAM,WAAW,GAAG,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,CAAA;CAAE,CAStF;AAED,wBAAgB,SAAS,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,YAEhE"}
|
package/dist/vite.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|