@hot-updater/console 1.0.0-rc.20 → 1.0.0-rc.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.
- package/.output/nitro.json +1 -1
- package/.output/public/assets/{ConsoleFeatureUnavailable-B9VYGA3N.js → ConsoleFeatureUnavailable-D0LPL1Gy.js} +1 -1
- package/.output/public/assets/{HashValueDisplay-D880zntR.js → HashValueDisplay-BmuB4FW-.js} +1 -1
- package/.output/public/assets/InsightsInfo--v4SC07c.js +1 -0
- package/.output/public/assets/InsightsPageHeader-dU83CAQY.js +1 -0
- package/.output/public/assets/{NotFoundPage-Dys8C0cW.js → NotFoundPage-B5mhGG2a.js} +1 -1
- package/.output/public/assets/api-D-vOVlQ4.js +1 -0
- package/.output/public/assets/api-keys-Csh8ARKU.js +1 -0
- package/.output/public/assets/api-keys-OMPUoA_A.js +1 -0
- package/.output/public/assets/arrow-left-Bwq9X1eS.js +1 -0
- package/.output/public/assets/arrow-up-right-BkOVn4if.js +1 -0
- package/.output/public/assets/{card-DzCPSRsh.js → card-C_7d6O9a.js} +1 -1
- package/.output/public/assets/console-features-api-C1jRZTGw.js +1 -0
- package/.output/public/assets/dialog-DE8wFN_P.js +1 -0
- package/.output/public/assets/{dist-Clb6cQ9l.js → dist-C7ENGzpS.js} +1 -1
- package/.output/public/assets/empty-CVd5NlQD.js +1 -0
- package/.output/public/assets/{field-Bou7shoO.js → field-C06q1iC9.js} +1 -1
- package/.output/public/assets/index-BeWlQtO6.js +11 -0
- package/.output/public/assets/{input-group-DVtWFUUF.js → input-group-Bi61biIA.js} +1 -1
- package/.output/public/assets/insights-BjnAtC0f.js +2 -0
- package/.output/public/assets/insights-D86m11yH.js +42 -0
- package/.output/public/assets/insights-DpYstMoY.js +1 -0
- package/.output/public/assets/{insights-recovery-rpc-wvdyM4LD.js → insights-recovery-rpc-BIm5_ALc.js} +1 -1
- package/.output/public/assets/{insights-usage-rpc-qUkNtrWr.js → insights-usage-rpc-VHj8vyBt.js} +1 -1
- package/.output/public/assets/insights_.distribution-ADcrX48c.js +2 -0
- package/.output/public/assets/insights_.distribution-CuuJUN6Y.js +1 -0
- package/.output/public/assets/{insights_.distribution-CItZw3-8.js → insights_.distribution-DJRjuXsO.js} +1 -1
- package/.output/public/assets/installations-BSBBzqWs.js +2 -0
- package/.output/public/assets/installations-DqIE6WcO.js +1 -0
- package/.output/public/assets/installations-UsELbDvw.js +1 -0
- package/.output/public/assets/{loader-circle-Ca7C9YY1.js → loader-circle-CnCBxzHp.js} +1 -1
- package/.output/public/assets/mutation-Csp7xUNh.js +1 -0
- package/.output/public/assets/preload-helper-B-cOmpLH.js +1 -0
- package/.output/public/assets/{refresh-cw-CVGqvy8Z.js → refresh-cw-FF1NtzlQ.js} +1 -1
- package/.output/public/assets/{routes-veKtDW39.js → routes-CoN9XHP_.js} +2 -2
- package/.output/public/assets/routes-DT1jB0Zi.js +1 -0
- package/.output/public/assets/sidebar-D8mJRF15.js +3 -0
- package/.output/public/assets/styles-Bwt7v6U5.css +2 -0
- package/.output/public/assets/table-WBgfvgXg.js +1 -0
- package/.output/public/assets/{useCompositeListItem-CF7vsfcA.js → useCompositeListItem-CloBmDwn.js} +1 -1
- package/.output/public/assets/useMutation-DO8cvsTx.js +1 -0
- package/.output/public/assets/{useOpenInteractionType-AnAMWYIY.js → useOpenInteractionType-ReGr9GzJ.js} +1 -1
- package/.output/public/assets/valueToPercent-BvPAi4bP.js +1 -0
- package/.output/server/{__23tanstack-start-server-fn-resolver-CUQLz7hs.mjs → __23tanstack-start-server-fn-resolver-DMRD4e4f.mjs} +34 -42
- package/.output/server/_libs/@tanstack/react-router+[...].mjs +3756 -4022
- package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +138 -95
- package/.output/server/_libs/tanstack__history.mjs +68 -41
- package/.output/server/_libs/tanstack__query-core.mjs +1618 -309
- package/.output/server/_libs/tanstack__react-query.mjs +255 -20
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-DoxET2AT.mjs → ConsoleFeatureUnavailable-Du7jNPNS.mjs} +7 -7
- package/.output/server/_ssr/{HashValueDisplay-BplboHEb.mjs → HashValueDisplay-GQvFkXoi.mjs} +2 -2
- package/.output/server/_ssr/{InsightsInfo-o2YPd5Qc.mjs → InsightsInfo-Do7QSaFR.mjs} +2 -2
- package/.output/server/_ssr/{InsightsPageHeader-NExCJL1I.mjs → InsightsPageHeader-DSUWUWRc.mjs} +6 -6
- package/.output/server/_ssr/{NotFoundPage-Cd-A8ock.mjs → NotFoundPage-DsF4Vrhg.mjs} +2 -2
- package/.output/server/_ssr/{api-B1Ro0uys.mjs → api-BEiVs0H7.mjs} +9 -8
- package/.output/server/_ssr/{api-keys-Dvvy1sem.mjs → api-keys-BrvBWGRf.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-CT3HG7KT.mjs → api-keys-K5v32nf7.mjs} +8 -8
- package/.output/server/_ssr/{api-keys-rpc-b1qTTFfG.mjs → api-keys-rpc-B96bBllm.mjs} +5 -5
- package/.output/server/_ssr/{api-rpc-Cbns2MGx.mjs → api-rpc-DcUe280B.mjs} +13 -55
- package/.output/server/_ssr/{auth-rpc-DChS7m9y.mjs → auth-rpc-C68W56DP.mjs} +6 -6
- package/.output/server/_ssr/{api-C0G9MTMI.mjs → auth.server-DM1J6NwR.mjs} +2815 -1308
- package/.output/server/_ssr/{bundleActivity-D17Pb_h5.mjs → bundleActivity-CpuY9CTP.mjs} +1 -1
- package/.output/server/_ssr/{card-DMbcvlPz.mjs → card-CPAEKx0w.mjs} +1 -1
- package/.output/server/_ssr/config-nsIcsHh8.mjs +15 -0
- package/.output/server/_ssr/config.server-DDCZk3Sq.mjs +36 -0
- package/.output/server/_ssr/{console-access-KpPv5lin.mjs → console-access-Da-2Qd7q.mjs} +3 -3
- package/.output/server/_ssr/{console-features-CsbyHYfK.mjs → console-features-Dzu2iUGD.mjs} +6 -6
- package/.output/server/_ssr/{console-features-api-B-KVuo4p.mjs → console-features-api-xAsSgFa_.mjs} +6 -6
- package/.output/server/_ssr/{console-features-rpc-Djyo5740.mjs → console-features-rpc-qARGpB24.mjs} +5 -5
- package/.output/server/_ssr/{createMiddleware-B_I3Ll4M.mjs → createMiddleware-BdBf_ezN.mjs} +41 -56
- package/.output/server/_ssr/{createServerRpc-DuNm5mmo.mjs → createServerRpc-B_y2lrwA.mjs} +2 -2
- package/.output/server/_ssr/databaseJsonValue-Bhxciy7Z.mjs +68 -0
- package/.output/server/_ssr/databaseRows-DwMAjaF8.mjs +74 -0
- package/.output/server/_ssr/{dialog-cOmLTUV2.mjs → dialog-q__BJ7mQ.mjs} +1 -1
- package/.output/server/_ssr/{dist-B-r4u3Lg.mjs → dist-Cxo9ghYv.mjs} +114 -3
- package/.output/server/_ssr/{downloadBundle-CexOFoZ4.mjs → downloadBundle-BW9I-pMQ.mjs} +6 -5
- package/.output/server/_ssr/{empty-BHoY_5jt.mjs → empty-DcBTAooP.mjs} +2 -2
- package/.output/server/_ssr/{empty-plugin-adapters-B5QvGpEl.mjs → empty-plugin-adapters-CYdinE-i.mjs} +1 -1
- package/.output/server/_ssr/{field-mjhcNEXD.mjs → field-QCDBVpXA.mjs} +2 -2
- package/.output/server/_ssr/{getBundleChildren-DbDXe9wB.mjs → getBundleChildren-DIAGCF4a.mjs} +2 -2
- package/.output/server/_ssr/{input-group-96H30HWC.mjs → input-group-hCk2nUoU.mjs} +1 -1
- package/.output/server/_ssr/{insights-DgFv1NsO.mjs → insights-BfBO0RFr.mjs} +18 -18
- package/.output/server/_ssr/{insights-D359GJFL.mjs → insights-DsAU3-TB.mjs} +5 -5
- package/.output/server/_ssr/{insights-D25VDVaz.mjs → insights-RIfg447W.mjs} +2 -2
- package/.output/server/_ssr/{insights-api-ChAKrbhG.mjs → insights-api-CDn-QQHU.mjs} +5 -5
- package/.output/server/_ssr/{insights-failures-WQ-ttjOx.mjs → insights-failures-BBGMhuUr.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-rpc-BFsqlltN.mjs → insights-failures-rpc-rA2dctK2.mjs} +8 -8
- package/.output/server/_ssr/{insights-recovery-DkL6bxMW.mjs → insights-recovery-Dpk6Mfb9.mjs} +1 -1
- package/.output/server/_ssr/{insights-recovery-rpc-2P5m8F62.mjs → insights-recovery-rpc-BCaF-xSd.mjs} +11 -11
- package/.output/server/_ssr/{insights-recovery-rpc-Tj8vNC19.mjs → insights-recovery-rpc-CcgYyUHk.mjs} +5 -5
- package/.output/server/_ssr/{insights-rpc-DrkVmV9o.mjs → insights-rpc-keycmwzw.mjs} +5 -5
- package/.output/server/_ssr/{insights-search-BsalnNw-.mjs → insights-search-BRg5VsNe.mjs} +1 -1
- package/.output/server/_ssr/{insights-usage-1nVTQrLy.mjs → insights-usage-cbw9n2Fq.mjs} +1 -1
- package/.output/server/_ssr/{insights-usage-rpc-Ct_4xHhZ.mjs → insights-usage-rpc-BKgV1QDf.mjs} +8 -8
- package/.output/server/_ssr/{insights-usage-rpc-DaYIRtFK.mjs → insights-usage-rpc-D-JYachy.mjs} +5 -5
- package/.output/server/_ssr/{insightsRecovery-CpGucWN1.mjs → insightsRecovery-B7oMc8d8.mjs} +2 -2
- package/.output/server/_ssr/{insightsUsage-JYpKZAF7.mjs → insightsUsage-Oa7kk5ek.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-jQZEF07J.mjs → insights_.distribution-BIqOqRW0.mjs} +13 -13
- package/.output/server/_ssr/{insights_.distribution-Bcu6uYs_.mjs → insights_.distribution-CuUrDa7P.mjs} +2 -2
- package/.output/server/_ssr/{insights_.distribution-D3Csuyjw.mjs → insights_.distribution-RT_6x_ud.mjs} +5 -5
- package/.output/server/_ssr/{installations-Cxikllmx.mjs → installations-BO5CjX2z.mjs} +11 -11
- package/.output/server/_ssr/{installations-BI5kelHv.mjs → installations-BjaHiIfh.mjs} +2 -2
- package/.output/server/_ssr/{installations-B8Vh54lH.mjs → installations-Dt5luA-N.mjs} +4 -4
- package/.output/server/_ssr/{listReleases-DqU9t1l3.mjs → listReleases-BitHzOYB.mjs} +1 -1
- package/.output/server/_ssr/{router-CRkm-wHD.mjs → router-DfVAixxe.mjs} +42 -39
- package/.output/server/_ssr/{routes-CNAi0Mmv.mjs → routes-C6LstNp8.mjs} +14 -14
- package/.output/server/_ssr/{routes-B3IJo_jL.mjs → routes-Q3Uhmwwz.mjs} +11 -11
- package/.output/server/_ssr/{runtime.server-NucbYjc7.mjs → runtime.server-fL0o6I2b.mjs} +500 -413
- package/.output/server/_ssr/schema-BKY9SqaY.mjs +25 -0
- package/.output/server/_ssr/{select-BkPAJFL7.mjs → select-CUlInmjk.mjs} +1 -1
- package/.output/server/_ssr/server-C43wq9ft.mjs +8330 -0
- package/.output/server/_ssr/{sidebar-Cw1VuC7d.mjs → sidebar-DKbx2ach.mjs} +3 -3
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/start-BXUOv_n8.mjs +4 -0
- package/.output/server/_ssr/{table-q0P9wz7x.mjs → table-NGWV8B-S.mjs} +1 -1
- package/.output/server/_ssr/{updateFailures-DMU9f0pK.mjs → updateFailures-Jwe2Baab.mjs} +3 -3
- package/.output/server/_ssr/{uuidv7-BzSO-fr-.mjs → uuidv7-C8bwiZr8.mjs} +2 -2
- package/.output/server/_tanstack-start-manifest_v-WQ5qGn8n.mjs +124 -0
- package/.output/server/index.mjs +218 -218
- package/LICENSE +13 -14
- package/README.md +16 -12
- package/lib/index.d.mts +18 -8
- package/lib/vite-internal.mjs +15 -8
- package/lib/vite.d.mts +2 -0
- package/package.json +14 -14
- package/src/components/AppSidebar.tsx +9 -0
- package/src/components/ConsoleFeatureUnavailable.tsx +1 -3
- package/src/components/features/bundles/BundleMetadata.tsx +1 -1
- package/src/components/features/bundles/RolloutCohortsDialog.tsx +1 -1
- package/src/components/features/releases/ReleaseEditorSheet.tsx +6 -6
- package/src/index.ts +27 -15
- package/src/lib/api-rpc.ts +1 -54
- package/src/lib/api.ts +8 -89
- package/src/lib/console-features.ts +5 -5
- package/src/lib/scroll-restoration.ts +1 -1
- package/src/lib/server/config.server.ts +15 -52
- package/src/lib/server/console-runtime.server.ts +84 -6
- package/src/lib/server/downloadBundle.ts +10 -6
- package/src/lib/server/releaseReachability.ts +4 -4
- package/src/lib/server/runtime.server.ts +34 -46
- package/src/routeTree.gen.ts +31 -31
- package/src/routes/api/bundles/$bundleId/download.ts +2 -2
- package/src/vite-internal.ts +17 -8
- package/src/vite.ts +2 -0
- package/.output/public/assets/InsightsInfo-By_sPjTE.js +0 -1
- package/.output/public/assets/InsightsPageHeader-9_kx_LL7.js +0 -1
- package/.output/public/assets/api-CtarlV0l.js +0 -1
- package/.output/public/assets/api-keys-DFF_QqtN.js +0 -1
- package/.output/public/assets/api-keys-evfsQ4sN.js +0 -1
- package/.output/public/assets/arrow-left-BP9D-ta_.js +0 -1
- package/.output/public/assets/arrow-up-right-CDP9Tevw.js +0 -1
- package/.output/public/assets/console-features-api-yv7rm3DX.js +0 -1
- package/.output/public/assets/dialog-BDvCy_QO.js +0 -1
- package/.output/public/assets/empty-C5x9mn_s.js +0 -1
- package/.output/public/assets/index-0eg3l8aC.js +0 -10
- package/.output/public/assets/insights-2MbdiSNv.js +0 -1
- package/.output/public/assets/insights-C6tmCZHk.js +0 -2
- package/.output/public/assets/insights-CadS_aIA.js +0 -42
- package/.output/public/assets/insights_.distribution-BhBs6PNA.js +0 -1
- package/.output/public/assets/insights_.distribution-CJUH_wAS.js +0 -2
- package/.output/public/assets/installations-CH2H7JQt.js +0 -2
- package/.output/public/assets/installations-DMeMuwsW.js +0 -1
- package/.output/public/assets/installations-DnvxI9Dt.js +0 -1
- package/.output/public/assets/mutation-x9L28_CD.js +0 -1
- package/.output/public/assets/preload-helper-BN-UkjOE.js +0 -1
- package/.output/public/assets/routes-BhK8DuZA.js +0 -1
- package/.output/public/assets/sidebar-B45aMqRm.js +0 -3
- package/.output/public/assets/styles-Dn0pK1EX.css +0 -2
- package/.output/public/assets/table-CwLnN6KX.js +0 -1
- package/.output/public/assets/useMutation-CN1ygYEr.js +0 -1
- package/.output/public/assets/valueToPercent-C-t8FT0y.js +0 -1
- package/.output/server/_ssr/auth.server-Ccqz2iVv.mjs +0 -37
- package/.output/server/_ssr/config-DMEJdhoW.mjs +0 -13
- package/.output/server/_ssr/config.server-DyypN6cQ.mjs +0 -60
- package/.output/server/_ssr/databaseRows-CXxf_VIB.mjs +0 -132
- package/.output/server/_ssr/deleteBundle-Dcc21Lbd.mjs +0 -56
- package/.output/server/_ssr/server-DKJYsaCP.mjs +0 -7442
- package/.output/server/_ssr/start-DpViQGnt.mjs +0 -4
- package/.output/server/_tanstack-start-manifest_v-Bb0gKDbb.mjs +0 -124
- package/src/lib/server/deleteBundle.ts +0 -136
|
@@ -1,16 +1,46 @@
|
|
|
1
1
|
import { i as __toESM } from "../_runtime.mjs";
|
|
2
2
|
import { mt as require_react, pt as require_jsx_runtime } from "./@base-ui/react+[...].mjs";
|
|
3
|
-
import { c as
|
|
4
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-query@5.
|
|
3
|
+
import { c as shouldThrowError, i as notifyManager, n as MutationObserver, r as QueryObserver, s as noop } from "./tanstack__query-core.mjs";
|
|
4
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-query@5.104.0_react@19.2.6/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
|
|
5
5
|
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
6
6
|
var import_jsx_runtime = require_jsx_runtime();
|
|
7
|
+
/**
|
|
8
|
+
* The context that `useQueryClient` reads from. `QueryClientProvider` is the normal way to set it.
|
|
9
|
+
*/
|
|
7
10
|
var QueryClientContext = import_react.createContext(void 0);
|
|
11
|
+
/**
|
|
12
|
+
* The `useQueryClient` hook returns the current `QueryClient` instance.
|
|
13
|
+
*
|
|
14
|
+
* @param queryClient - Use this to use a custom `QueryClient`. Otherwise, the one from the nearest context will
|
|
15
|
+
* be used.
|
|
16
|
+
* @returns The current `QueryClient` instance.
|
|
17
|
+
* @throws If no `queryClient` argument is passed and no `QueryClientProvider` is found in the component tree.
|
|
18
|
+
*/
|
|
8
19
|
var useQueryClient = (queryClient) => {
|
|
9
20
|
const client = import_react.useContext(QueryClientContext);
|
|
10
21
|
if (queryClient) return queryClient;
|
|
11
22
|
if (!client) throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
12
23
|
return client;
|
|
13
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* Use the `QueryClientProvider` component to connect and provide a `QueryClient` to your application. Also
|
|
27
|
+
* calls `client.mount()`/`client.unmount()` as this component mounts/unmounts, which subscribes the client to
|
|
28
|
+
* focus/online events (resuming any paused mutations and refetching as needed when the app regains focus or
|
|
29
|
+
* comes back online).
|
|
30
|
+
*
|
|
31
|
+
* @returns The provided `children`, wrapped so they can read the `QueryClient` via `useQueryClient`.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```tsx
|
|
35
|
+
* import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
|
|
36
|
+
*
|
|
37
|
+
* const queryClient = new QueryClient()
|
|
38
|
+
*
|
|
39
|
+
* function App() {
|
|
40
|
+
* return <QueryClientProvider client={queryClient}>...</QueryClientProvider>
|
|
41
|
+
* }
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
14
44
|
var QueryClientProvider = ({ client, children }) => {
|
|
15
45
|
import_react.useEffect(() => {
|
|
16
46
|
client.mount();
|
|
@@ -24,12 +54,22 @@ var QueryClientProvider = ({ client, children }) => {
|
|
|
24
54
|
});
|
|
25
55
|
};
|
|
26
56
|
//#endregion
|
|
27
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-query@5.
|
|
57
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-query@5.104.0_react@19.2.6/node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js
|
|
28
58
|
var IsRestoringContext = import_react.createContext(false);
|
|
59
|
+
/**
|
|
60
|
+
* If you are using `PersistQueryClientProvider`, you can also use the `useIsRestoring` hook alongside it to
|
|
61
|
+
* check if a restore is currently in progress. `useQuery` and friends also check this internally to avoid
|
|
62
|
+
* race conditions between the restore and mounting queries.
|
|
63
|
+
*
|
|
64
|
+
* @returns `true` while a persisted client is being restored, `false` otherwise.
|
|
65
|
+
*/
|
|
29
66
|
var useIsRestoring = () => import_react.useContext(IsRestoringContext);
|
|
30
67
|
IsRestoringContext.Provider;
|
|
31
68
|
//#endregion
|
|
32
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-query@5.
|
|
69
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-query@5.104.0_react@19.2.6/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
|
|
70
|
+
/**
|
|
71
|
+
* Resets any query errors within the boundary, so queries know they can try again.
|
|
72
|
+
*/
|
|
33
73
|
function createValue() {
|
|
34
74
|
let isReset = false;
|
|
35
75
|
return {
|
|
@@ -45,12 +85,42 @@ function createValue() {
|
|
|
45
85
|
};
|
|
46
86
|
}
|
|
47
87
|
var QueryErrorResetBoundaryContext = import_react.createContext(createValue());
|
|
88
|
+
/**
|
|
89
|
+
* This hook will reset any query errors within the closest `QueryErrorResetBoundary`. If there is no boundary
|
|
90
|
+
* defined it will reset them globally.
|
|
91
|
+
*
|
|
92
|
+
* @returns The boundary's {@link QueryErrorResetBoundaryValue}.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```tsx
|
|
96
|
+
* import { ErrorBoundary } from 'react-error-boundary'
|
|
97
|
+
* import { useQueryErrorResetBoundary } from '@tanstack/react-query'
|
|
98
|
+
*
|
|
99
|
+
* function App({ children }: { children: React.ReactNode }) {
|
|
100
|
+
* const { reset } = useQueryErrorResetBoundary()
|
|
101
|
+
*
|
|
102
|
+
* return (
|
|
103
|
+
* <ErrorBoundary
|
|
104
|
+
* onReset={reset}
|
|
105
|
+
* fallbackRender={({ resetErrorBoundary }) => (
|
|
106
|
+
* <div>
|
|
107
|
+
* There was an error!
|
|
108
|
+
* <button onClick={() => resetErrorBoundary()}>Try again</button>
|
|
109
|
+
* </div>
|
|
110
|
+
* )}
|
|
111
|
+
* >
|
|
112
|
+
* {children}
|
|
113
|
+
* </ErrorBoundary>
|
|
114
|
+
* )
|
|
115
|
+
* }
|
|
116
|
+
* ```
|
|
117
|
+
*/
|
|
48
118
|
var useQueryErrorResetBoundary = () => import_react.useContext(QueryErrorResetBoundaryContext);
|
|
49
119
|
//#endregion
|
|
50
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-query@5.
|
|
120
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-query@5.104.0_react@19.2.6/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
|
|
51
121
|
var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary, query) => {
|
|
52
122
|
const throwOnError = query?.state.error && typeof options.throwOnError === "function" ? shouldThrowError(options.throwOnError, [query.state.error, query]) : options.throwOnError;
|
|
53
|
-
if (options.suspense ||
|
|
123
|
+
if (options.suspense || throwOnError) {
|
|
54
124
|
if (!errorResetBoundary.isReset()) options.retryOnMount = false;
|
|
55
125
|
}
|
|
56
126
|
};
|
|
@@ -63,7 +133,7 @@ var getHasError = ({ result, errorResetBoundary, throwOnError, query, suspense }
|
|
|
63
133
|
return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));
|
|
64
134
|
};
|
|
65
135
|
//#endregion
|
|
66
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-query@5.
|
|
136
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-query@5.104.0_react@19.2.6/node_modules/@tanstack/react-query/build/modern/suspense.js
|
|
67
137
|
var ensureSuspenseTimers = (defaultedOptions) => {
|
|
68
138
|
if (defaultedOptions.suspense) {
|
|
69
139
|
const MIN_SUSPENSE_TIME_MS = 1e3;
|
|
@@ -73,26 +143,23 @@ var ensureSuspenseTimers = (defaultedOptions) => {
|
|
|
73
143
|
if (typeof defaultedOptions.gcTime === "number") defaultedOptions.gcTime = Math.max(defaultedOptions.gcTime, MIN_SUSPENSE_TIME_MS);
|
|
74
144
|
}
|
|
75
145
|
};
|
|
76
|
-
var willFetch = (result, isRestoring) => result.isLoading && result.isFetching && !isRestoring;
|
|
77
146
|
var shouldSuspend = (defaultedOptions, result) => defaultedOptions?.suspense && result.isPending;
|
|
78
147
|
var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observer.fetchOptimistic(defaultedOptions).catch(() => {
|
|
79
148
|
errorResetBoundary.clearReset();
|
|
80
149
|
});
|
|
81
150
|
//#endregion
|
|
82
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-query@5.
|
|
151
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-query@5.104.0_react@19.2.6/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
|
|
83
152
|
function useBaseQuery(options, Observer, queryClient) {
|
|
84
153
|
const isRestoring = useIsRestoring();
|
|
85
154
|
const errorResetBoundary = useQueryErrorResetBoundary();
|
|
86
155
|
const client = useQueryClient(queryClient);
|
|
87
156
|
const defaultedOptions = client.defaultQueryOptions(options);
|
|
88
|
-
client.getDefaultOptions().queries?._experimental_beforeQuery?.(defaultedOptions);
|
|
89
157
|
const query = client.getQueryCache().get(defaultedOptions.queryHash);
|
|
90
158
|
const subscribed = options.subscribed !== false;
|
|
91
159
|
defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : subscribed ? "optimistic" : void 0;
|
|
92
160
|
ensureSuspenseTimers(defaultedOptions);
|
|
93
161
|
ensurePreventErrorBoundaryRetry(defaultedOptions, errorResetBoundary, query);
|
|
94
162
|
useClearResetErrorBoundary(errorResetBoundary);
|
|
95
|
-
const isNewCacheEntry = !client.getQueryCache().get(defaultedOptions.queryHash);
|
|
96
163
|
const [observer] = import_react.useState(() => new Observer(client, defaultedOptions));
|
|
97
164
|
const result = observer.getOptimisticResult(defaultedOptions);
|
|
98
165
|
const shouldSubscribe = !isRestoring && subscribed;
|
|
@@ -112,24 +179,192 @@ function useBaseQuery(options, Observer, queryClient) {
|
|
|
112
179
|
query,
|
|
113
180
|
suspense: defaultedOptions.suspense
|
|
114
181
|
})) throw result.error;
|
|
115
|
-
client.getDefaultOptions().queries?._experimental_afterQuery?.(defaultedOptions, result);
|
|
116
|
-
if (defaultedOptions.experimental_prefetchInRender && !environmentManager.isServer() && willFetch(result, isRestoring)) (isNewCacheEntry ? fetchOptimistic(defaultedOptions, observer, errorResetBoundary) : query?.promise)?.catch(noop).finally(() => {
|
|
117
|
-
observer.updateResult();
|
|
118
|
-
});
|
|
119
182
|
return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
|
|
120
183
|
}
|
|
121
184
|
//#endregion
|
|
122
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-query@5.
|
|
185
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-query@5.104.0_react@19.2.6/node_modules/@tanstack/react-query/build/modern/useQuery.js
|
|
123
186
|
function useQuery(options, queryClient) {
|
|
124
187
|
return useBaseQuery(options, QueryObserver, queryClient);
|
|
125
188
|
}
|
|
126
189
|
//#endregion
|
|
127
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-query@5.
|
|
190
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-query@5.104.0_react@19.2.6/node_modules/@tanstack/react-query/build/modern/queryOptions.js
|
|
128
191
|
function queryOptions(options) {
|
|
129
192
|
return options;
|
|
130
193
|
}
|
|
131
194
|
//#endregion
|
|
132
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-query@5.
|
|
195
|
+
//#region ../../node_modules/.pnpm/@tanstack+react-query@5.104.0_react@19.2.6/node_modules/@tanstack/react-query/build/modern/useMutation.js
|
|
196
|
+
/**
|
|
197
|
+
* Unlike queries, mutations are typically used to create/update/delete data or perform server side-effects.
|
|
198
|
+
* `useMutation` is the hook for that.
|
|
199
|
+
*
|
|
200
|
+
* @see {@link mutationOptions} to share these options across multiple `useMutation` call sites, or to look
|
|
201
|
+
* the mutation up elsewhere via its `mutationKey` (e.g. with `useMutationState`).
|
|
202
|
+
* @param options - The {@link UseMutationOptions} to use — everything you can pass to `useMutation`.
|
|
203
|
+
* @param queryClient - Use this to use a custom `QueryClient`. Otherwise, the one from the nearest context will
|
|
204
|
+
* be used.
|
|
205
|
+
* @returns `mutate`/`mutateAsync` also accept per-call `onSuccess`/`onError`/`onSettled` callbacks as a second
|
|
206
|
+
* argument, useful for triggering call-site side effects (e.g. navigation) without coupling them to the shared
|
|
207
|
+
* mutation definition. Hook-level callbacks (passed to `options`) fire for every mutation; per-call callbacks
|
|
208
|
+
* fire only for the latest call you've made, and only while the component is still mounted — unmounting before
|
|
209
|
+
* the mutation settles removes the subscription and prevents them from firing.
|
|
210
|
+
*
|
|
211
|
+
* @example
|
|
212
|
+
* ```tsx
|
|
213
|
+
* import { useMutation, useQueryClient } from '@tanstack/react-query'
|
|
214
|
+
*
|
|
215
|
+
* function AddTodo() {
|
|
216
|
+
* const queryClient = useQueryClient()
|
|
217
|
+
*
|
|
218
|
+
* const addMutation = useMutation({
|
|
219
|
+
* mutationFn: addTodo,
|
|
220
|
+
* onSuccess: () => queryClient.invalidateQueries({ queryKey: ['todos'] }),
|
|
221
|
+
* })
|
|
222
|
+
*
|
|
223
|
+
* return (
|
|
224
|
+
* <button
|
|
225
|
+
* onClick={() =>
|
|
226
|
+
* addMutation.mutate('Item', {
|
|
227
|
+
* onError: (error) => console.error('Failed to add item:', error),
|
|
228
|
+
* })
|
|
229
|
+
* }
|
|
230
|
+
* >
|
|
231
|
+
* Add
|
|
232
|
+
* </button>
|
|
233
|
+
* )
|
|
234
|
+
* }
|
|
235
|
+
* ```
|
|
236
|
+
*
|
|
237
|
+
* @example
|
|
238
|
+
* Rendering the mutation's own state, rather than just firing it off:
|
|
239
|
+
* ```tsx
|
|
240
|
+
* import { useMutation, useQueryClient } from '@tanstack/react-query'
|
|
241
|
+
*
|
|
242
|
+
* function AddTodo() {
|
|
243
|
+
* const queryClient = useQueryClient()
|
|
244
|
+
*
|
|
245
|
+
* const addMutation = useMutation({
|
|
246
|
+
* mutationFn: addTodo,
|
|
247
|
+
* onSuccess: () => queryClient.invalidateQueries({ queryKey: ['todos'] }),
|
|
248
|
+
* })
|
|
249
|
+
*
|
|
250
|
+
* return (
|
|
251
|
+
* <div>
|
|
252
|
+
* {addMutation.isPending ? (
|
|
253
|
+
* 'Adding todo...'
|
|
254
|
+
* ) : (
|
|
255
|
+
* <>
|
|
256
|
+
* {addMutation.isError ? (
|
|
257
|
+
* <div>An error occurred: {addMutation.error.message}</div>
|
|
258
|
+
* ) : null}
|
|
259
|
+
* <button onClick={() => addMutation.mutate('Item')}>Add</button>
|
|
260
|
+
* </>
|
|
261
|
+
* )}
|
|
262
|
+
* </div>
|
|
263
|
+
* )
|
|
264
|
+
* }
|
|
265
|
+
* ```
|
|
266
|
+
*
|
|
267
|
+
* @example
|
|
268
|
+
* Optimistic update via `onMutate`, rolling back on `onError`:
|
|
269
|
+
* ```tsx
|
|
270
|
+
* import { useMutation, useQueryClient } from '@tanstack/react-query'
|
|
271
|
+
*
|
|
272
|
+
* function AddTodo() {
|
|
273
|
+
* const queryClient = useQueryClient()
|
|
274
|
+
*
|
|
275
|
+
* const addMutation = useMutation({
|
|
276
|
+
* mutationFn: addTodo,
|
|
277
|
+
* onMutate: async (newTodo) => {
|
|
278
|
+
* await queryClient.cancelQueries({ queryKey: ['todos'] })
|
|
279
|
+
* const previousTodos = queryClient.getQueryData<Array<string>>(['todos'])
|
|
280
|
+
*
|
|
281
|
+
* queryClient.setQueryData<Array<string>>(['todos'], (old) => [
|
|
282
|
+
* ...(old ?? []),
|
|
283
|
+
* newTodo,
|
|
284
|
+
* ])
|
|
285
|
+
*
|
|
286
|
+
* // Passed to `onError` as `onMutateResult` if the mutation fails.
|
|
287
|
+
* return { previousTodos }
|
|
288
|
+
* },
|
|
289
|
+
* onError: (_err, _newTodo, onMutateResult) => {
|
|
290
|
+
* queryClient.setQueryData(['todos'], onMutateResult?.previousTodos)
|
|
291
|
+
* },
|
|
292
|
+
* onSettled: () => {
|
|
293
|
+
* queryClient.invalidateQueries({ queryKey: ['todos'] })
|
|
294
|
+
* },
|
|
295
|
+
* })
|
|
296
|
+
*
|
|
297
|
+
* return (
|
|
298
|
+
* <button onClick={() => addMutation.mutate('Item')}>Add</button>
|
|
299
|
+
* )
|
|
300
|
+
* }
|
|
301
|
+
* ```
|
|
302
|
+
*
|
|
303
|
+
* @example
|
|
304
|
+
* Callbacks passed per call to `mutate` only fire for the last call — `mutateAsync` gives you a
|
|
305
|
+
* promise per call instead, so you can wait for all of them when they succeed:
|
|
306
|
+
* ```tsx
|
|
307
|
+
* import { useMutation, useQueryClient } from '@tanstack/react-query'
|
|
308
|
+
*
|
|
309
|
+
* function AddTodos() {
|
|
310
|
+
* const queryClient = useQueryClient()
|
|
311
|
+
*
|
|
312
|
+
* const addMutation = useMutation({
|
|
313
|
+
* mutationFn: addTodo,
|
|
314
|
+
* onSuccess: () => queryClient.invalidateQueries({ queryKey: ['todos'] }),
|
|
315
|
+
* })
|
|
316
|
+
*
|
|
317
|
+
* async function handleAddAll(todos: Array<string>) {
|
|
318
|
+
* try {
|
|
319
|
+
* await Promise.all(todos.map((todo) => addMutation.mutateAsync(todo)))
|
|
320
|
+
* } catch (error) {
|
|
321
|
+
* console.error('Failed to add todos:', error)
|
|
322
|
+
* }
|
|
323
|
+
* }
|
|
324
|
+
*
|
|
325
|
+
* return (
|
|
326
|
+
* <button onClick={() => handleAddAll(['Todo 1', 'Todo 2', 'Todo 3'])}>
|
|
327
|
+
* Add all
|
|
328
|
+
* </button>
|
|
329
|
+
* )
|
|
330
|
+
* }
|
|
331
|
+
* ```
|
|
332
|
+
*
|
|
333
|
+
* @example
|
|
334
|
+
* If some of the mutations above can fail independently of the others, and you want to know which ones
|
|
335
|
+
* did — rather than losing that information the moment the first one rejects — swap `Promise.all` for
|
|
336
|
+
* `Promise.allSettled`:
|
|
337
|
+
* ```tsx
|
|
338
|
+
* import { useMutation, useQueryClient } from '@tanstack/react-query'
|
|
339
|
+
*
|
|
340
|
+
* function AddTodos() {
|
|
341
|
+
* const queryClient = useQueryClient()
|
|
342
|
+
*
|
|
343
|
+
* const addMutation = useMutation({
|
|
344
|
+
* mutationFn: addTodo,
|
|
345
|
+
* onSuccess: () => queryClient.invalidateQueries({ queryKey: ['todos'] }),
|
|
346
|
+
* })
|
|
347
|
+
*
|
|
348
|
+
* async function handleAddAll(todos: Array<string>) {
|
|
349
|
+
* const addResults = await Promise.allSettled(
|
|
350
|
+
* todos.map((todo) => addMutation.mutateAsync(todo)),
|
|
351
|
+
* )
|
|
352
|
+
*
|
|
353
|
+
* addResults.forEach((addResult, index) => {
|
|
354
|
+
* if (addResult.status === 'rejected') {
|
|
355
|
+
* console.error(`Failed to add "${todos[index]}":`, addResult.reason)
|
|
356
|
+
* }
|
|
357
|
+
* })
|
|
358
|
+
* }
|
|
359
|
+
*
|
|
360
|
+
* return (
|
|
361
|
+
* <button onClick={() => handleAddAll(['Todo 1', 'Todo 2', 'Todo 3'])}>
|
|
362
|
+
* Add all
|
|
363
|
+
* </button>
|
|
364
|
+
* )
|
|
365
|
+
* }
|
|
366
|
+
* ```
|
|
367
|
+
*/
|
|
133
368
|
function useMutation(options, queryClient) {
|
|
134
369
|
const client = useQueryClient(queryClient);
|
|
135
370
|
const [observer] = import_react.useState(() => new MutationObserver(client, options));
|
|
@@ -137,8 +372,8 @@ function useMutation(options, queryClient) {
|
|
|
137
372
|
observer.setOptions(options);
|
|
138
373
|
}, [observer, options]);
|
|
139
374
|
const result = import_react.useSyncExternalStore(import_react.useCallback((onStoreChange) => observer.subscribe(notifyManager.batchCalls(onStoreChange)), [observer]), () => observer.getCurrentResult(), () => observer.getCurrentResult());
|
|
140
|
-
const mutate = import_react.useCallback((
|
|
141
|
-
observer.mutate(
|
|
375
|
+
const mutate = import_react.useCallback((...args) => {
|
|
376
|
+
observer.mutate(args[0], args[1]).catch(noop);
|
|
142
377
|
}, [observer]);
|
|
143
378
|
if (result.error && shouldThrowError(observer.options.throwOnError, [result.error])) throw result.error;
|
|
144
379
|
return {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { a as unavailableReason, n as consoleFeatures } from "./console-features-Dzu2iUGD.mjs";
|
|
1
2
|
import { pt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
|
|
2
3
|
import { L as ArrowUpRight } from "../_libs/lucide-react.mjs";
|
|
3
|
-
import { D as buttonVariants, x as SidebarTrigger } from "./sidebar-
|
|
4
|
-
import { a as
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
|
|
8
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/ConsoleFeatureUnavailable-DoxET2AT.js
|
|
4
|
+
import { D as buttonVariants, x as SidebarTrigger } from "./sidebar-DKbx2ach.mjs";
|
|
5
|
+
import { a as useConsoleFeatures, n as notFoundFeature } from "./console-features-api-xAsSgFa_.mjs";
|
|
6
|
+
import { t as NotFoundPage } from "./NotFoundPage-DsF4Vrhg.mjs";
|
|
7
|
+
import { a as EmptyTitle, i as EmptyHeader, n as EmptyContent, r as EmptyDescription, t as Empty } from "./empty-DcBTAooP.mjs";
|
|
8
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/ConsoleFeatureUnavailable-Du7jNPNS.js
|
|
9
9
|
var import_jsx_runtime = require_jsx_runtime();
|
|
10
10
|
var CONSOLE_DEPLOYMENT_GUIDE_URL = "https://hot-updater.dev/docs/guides/console-deployment";
|
|
11
11
|
/**
|
|
@@ -40,7 +40,7 @@ function ConsoleFeatureUnavailable({ data }) {
|
|
|
40
40
|
children: "plugins"
|
|
41
41
|
}),
|
|
42
42
|
" ",
|
|
43
|
-
|
|
43
|
+
"where you create the server and in the console config."
|
|
44
44
|
] })] }) }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", {
|
|
45
45
|
className: buttonVariants({ variant: "outline" }),
|
|
46
46
|
href: CONSOLE_DEPLOYMENT_GUIDE_URL,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { pt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
|
|
2
|
-
import { C as Tooltip$1, E as TooltipTrigger, O as cn, w as TooltipContent } from "./sidebar-
|
|
2
|
+
import { C as Tooltip$1, E as TooltipTrigger, O as cn, w as TooltipContent } from "./sidebar-DKbx2ach.mjs";
|
|
3
3
|
import { n as toast } from "../_libs/sonner.mjs";
|
|
4
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/HashValueDisplay-
|
|
4
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/HashValueDisplay-GQvFkXoi.js
|
|
5
5
|
var import_jsx_runtime = require_jsx_runtime();
|
|
6
6
|
var shortenIdentifier = (value, maxLength = 12) => value.length > maxLength ? `${value.slice(0, Math.max(1, maxLength - 4))}…${value.slice(-4)}` : value;
|
|
7
7
|
function HashValueDisplay({ value, maxLength = 12, className, buttonClassName }) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as __toESM } from "../_runtime.mjs";
|
|
2
2
|
import { mt as require_react, pt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
|
|
3
3
|
import { S as Info } from "../_libs/lucide-react.mjs";
|
|
4
|
-
import { C as Tooltip$1, E as TooltipTrigger, t as Button$1, w as TooltipContent } from "./sidebar-
|
|
5
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/InsightsInfo-
|
|
4
|
+
import { C as Tooltip$1, E as TooltipTrigger, t as Button$1, w as TooltipContent } from "./sidebar-DKbx2ach.mjs";
|
|
5
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/InsightsInfo-Do7QSaFR.js
|
|
6
6
|
var import_react = /* @__PURE__ */ __toESM(require_react());
|
|
7
7
|
var import_jsx_runtime = require_jsx_runtime();
|
|
8
8
|
function InsightsInfo({ label, children }) {
|
package/.output/server/_ssr/{InsightsPageHeader-NExCJL1I.mjs → InsightsPageHeader-DSUWUWRc.mjs}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { r as isConsoleFeatureUnavailableError } from "./console-features-Dzu2iUGD.mjs";
|
|
1
2
|
import { E as TabsRoot, T as TabsTab, pt as require_jsx_runtime, w as TabsList$1 } from "../_libs/@base-ui/react+[...].mjs";
|
|
2
3
|
import { I as ChartNoAxesCombined, S as Info, b as List, n as TriangleAlert } from "../_libs/lucide-react.mjs";
|
|
3
4
|
import { t as cva } from "../_libs/class-variance-authority+clsx.mjs";
|
|
4
|
-
import { D as buttonVariants, O as cn, x as SidebarTrigger } from "./sidebar-
|
|
5
|
-
import { i as AlertTitle, r as AlertDescription, t as Alert } from "./field-mjhcNEXD.mjs";
|
|
6
|
-
import { r as isConsoleFeatureUnavailableError } from "./console-features-CsbyHYfK.mjs";
|
|
5
|
+
import { D as buttonVariants, O as cn, x as SidebarTrigger } from "./sidebar-DKbx2ach.mjs";
|
|
7
6
|
import { h as Link } from "../_libs/@tanstack/react-router+[...].mjs";
|
|
8
|
-
import { i as useConsoleFeature } from "./console-features-api-
|
|
9
|
-
import {
|
|
10
|
-
|
|
7
|
+
import { i as useConsoleFeature } from "./console-features-api-xAsSgFa_.mjs";
|
|
8
|
+
import { i as AlertTitle, r as AlertDescription, t as Alert } from "./field-QCDBVpXA.mjs";
|
|
9
|
+
import { n as usageMetrics } from "./insights-usage-cbw9n2Fq.mjs";
|
|
10
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/InsightsPageHeader-DSUWUWRc.js
|
|
11
11
|
var import_jsx_runtime = require_jsx_runtime();
|
|
12
12
|
function InsightsErrorAlert({ error, fallbackTitle }) {
|
|
13
13
|
if (isConsoleFeatureUnavailableError(error)) return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Alert, { children: [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { pt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
|
|
2
|
-
import { D as buttonVariants } from "./sidebar-
|
|
2
|
+
import { D as buttonVariants } from "./sidebar-DKbx2ach.mjs";
|
|
3
3
|
import { h as Link } from "../_libs/@tanstack/react-router+[...].mjs";
|
|
4
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/NotFoundPage-
|
|
4
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/NotFoundPage-DsF4Vrhg.js
|
|
5
5
|
var import_jsx_runtime = require_jsx_runtime();
|
|
6
6
|
var homeSearch = {
|
|
7
7
|
afterReleaseId: void 0,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { u as createServerFn } from "./createMiddleware-BdBf_ezN.mjs";
|
|
2
|
+
import { k as createSsrRpc } from "./sidebar-DKbx2ach.mjs";
|
|
3
|
+
import { t as consoleAccess } from "./console-access-Da-2Qd7q.mjs";
|
|
4
4
|
import { a as useQueryClient, r as useQuery, t as useMutation } from "../_libs/tanstack__react-query.mjs";
|
|
5
|
-
import { n as readReleaseFilter } from "./listReleases-
|
|
6
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/api-
|
|
5
|
+
import { n as readReleaseFilter } from "./listReleases-BitHzOYB.mjs";
|
|
6
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/api-BEiVs0H7.js
|
|
7
7
|
var MAX_PAGE_LIMIT = 100;
|
|
8
8
|
var pageLimit = (limit) => {
|
|
9
9
|
const value = limit ?? 20;
|
|
@@ -46,8 +46,6 @@ var getBundleChildCounts = createServerFn({ method: "GET" }).middleware([console
|
|
|
46
46
|
if (!Array.isArray(input?.bundleIds) || input.bundleIds.length > 100) throw new Error("Choose up to 100 bundles.");
|
|
47
47
|
return input;
|
|
48
48
|
}).handler(createSsrRpc("4ca367070b00f58179a572f0bb8196a4ccdd3881e9b1dbfe33deee0cb6e1f549"));
|
|
49
|
-
createServerFn({ method: "POST" }).middleware([consoleAccess]).validator((input) => input).handler(createSsrRpc("3a27ff5679228b86a346b3fe42142e7a5bf0264f73173c0dbe5f07fb37c43cf7"));
|
|
50
|
-
createServerFn({ method: "POST" }).middleware([consoleAccess]).validator((input) => input).handler(createSsrRpc("61de3b69779c5ce2a5f5d3c27e2cfaca8fba8f14c8803559b9cd733c456494fa"));
|
|
51
49
|
var bundleListQueryKey = ["bundles"];
|
|
52
50
|
var releaseListQueryKey = ["releases"];
|
|
53
51
|
var queryKeys = {
|
|
@@ -179,7 +177,10 @@ function useDeleteReleaseMutation() {
|
|
|
179
177
|
await Promise.all([
|
|
180
178
|
queryClient.invalidateQueries({ queryKey: queryKeys.releases.all }),
|
|
181
179
|
queryClient.invalidateQueries({ queryKey: ["release-catalog"] }),
|
|
182
|
-
queryClient.invalidateQueries({ queryKey: queryKeys.channels })
|
|
180
|
+
queryClient.invalidateQueries({ queryKey: queryKeys.channels }),
|
|
181
|
+
queryClient.invalidateQueries({ queryKey: queryKeys.bundles.all }),
|
|
182
|
+
queryClient.invalidateQueries({ queryKey: ["bundle"] }),
|
|
183
|
+
queryClient.invalidateQueries({ queryKey: queryKeys.bundleChildren.all })
|
|
183
184
|
]);
|
|
184
185
|
}
|
|
185
186
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as ConsoleFeatureUnavailable } from "./ConsoleFeatureUnavailable-
|
|
2
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/api-keys-
|
|
1
|
+
import { t as ConsoleFeatureUnavailable } from "./ConsoleFeatureUnavailable-Du7jNPNS.mjs";
|
|
2
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/api-keys-BrvBWGRf.js
|
|
3
3
|
var SplitNotFoundComponent = ConsoleFeatureUnavailable;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { SplitNotFoundComponent as notFoundComponent };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { i as __toESM } from "../_runtime.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { t as consoleAccess } from "./console-access-KpPv5lin.mjs";
|
|
2
|
+
import { u as createServerFn } from "./createMiddleware-BdBf_ezN.mjs";
|
|
4
3
|
import { mt as require_react, pt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
|
|
5
4
|
import { D as Clipboard, F as Check, d as RefreshCw, f as Plus, n as TriangleAlert, s as ShieldOff, x as KeyRound, y as LoaderCircle } from "../_libs/lucide-react.mjs";
|
|
6
|
-
import { S as Skeleton, k as createSsrRpc, n as Input, t as Button$1, x as SidebarTrigger } from "./sidebar-
|
|
7
|
-
import {
|
|
8
|
-
import { a as Badge, c as FieldError, i as AlertTitle, l as FieldGroup, n as AlertAction, o as Field, r as AlertDescription, s as FieldDescription, t as Alert, u as FieldLabel } from "./field-mjhcNEXD.mjs";
|
|
9
|
-
import { a as AlertDialogDescription, c as AlertDialogMedia, d as Dialog$1, f as DialogContent, g as DialogTitle, h as DialogHeader, i as AlertDialogContent, l as AlertDialogTitle, m as DialogFooter, n as AlertDialogAction, o as AlertDialogFooter, p as DialogDescription, r as AlertDialogCancel, s as AlertDialogHeader, t as AlertDialog$1, u as AlertDialogTrigger } from "./dialog-cOmLTUV2.mjs";
|
|
10
|
-
import { a as TableHeader, i as TableHead, n as TableBody, o as TableRow, r as TableCell, t as Table } from "./table-q0P9wz7x.mjs";
|
|
5
|
+
import { S as Skeleton, k as createSsrRpc, n as Input, t as Button$1, x as SidebarTrigger } from "./sidebar-DKbx2ach.mjs";
|
|
6
|
+
import { t as consoleAccess } from "./console-access-Da-2Qd7q.mjs";
|
|
11
7
|
import { a as useQueryClient, r as useQuery, t as useMutation } from "../_libs/tanstack__react-query.mjs";
|
|
8
|
+
import { a as CardHeader, n as CardContent, o as CardTitle, t as Card } from "./card-CPAEKx0w.mjs";
|
|
9
|
+
import { a as Badge, c as FieldError, i as AlertTitle, l as FieldGroup, n as AlertAction, o as Field, r as AlertDescription, s as FieldDescription, t as Alert, u as FieldLabel } from "./field-QCDBVpXA.mjs";
|
|
10
|
+
import { a as AlertDialogDescription, c as AlertDialogMedia, d as Dialog$1, f as DialogContent, g as DialogTitle, h as DialogHeader, i as AlertDialogContent, l as AlertDialogTitle, m as DialogFooter, n as AlertDialogAction, o as AlertDialogFooter, p as DialogDescription, r as AlertDialogCancel, s as AlertDialogHeader, t as AlertDialog$1, u as AlertDialogTrigger } from "./dialog-q__BJ7mQ.mjs";
|
|
11
|
+
import { a as TableHeader, i as TableHead, n as TableBody, o as TableRow, r as TableCell, t as Table } from "./table-NGWV8B-S.mjs";
|
|
12
12
|
import { n as toast } from "../_libs/sonner.mjs";
|
|
13
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/api-keys-
|
|
13
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/api-keys-K5v32nf7.js
|
|
14
14
|
var import_react = /* @__PURE__ */ __toESM(require_react());
|
|
15
15
|
var import_jsx_runtime = require_jsx_runtime();
|
|
16
16
|
var parseName = (input) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as consoleAccess } from "./console-access-
|
|
3
|
-
import { t as createServerRpc } from "./createServerRpc-
|
|
4
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/api-keys-rpc-
|
|
1
|
+
import { u as createServerFn } from "./createMiddleware-BdBf_ezN.mjs";
|
|
2
|
+
import { t as consoleAccess } from "./console-access-Da-2Qd7q.mjs";
|
|
3
|
+
import { t as createServerRpc } from "./createServerRpc-B_y2lrwA.mjs";
|
|
4
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/api-keys-rpc-B96bBllm.js
|
|
5
5
|
var parseName = (input) => {
|
|
6
6
|
const name = typeof input === "object" && input !== null ? Reflect.get(input, "name") : void 0;
|
|
7
7
|
if (typeof name !== "string") throw new TypeError("API key name must be a string.");
|
|
@@ -14,7 +14,7 @@ var parseId = (input) => {
|
|
|
14
14
|
};
|
|
15
15
|
/** API key management, once the console's access check and the feature guard pass. */
|
|
16
16
|
var apiKeyManagement = async () => {
|
|
17
|
-
const [{ prepareConfig }, { requireFeature }] = await Promise.all([import("./config.server-
|
|
17
|
+
const [{ prepareConfig }, { requireFeature }] = await Promise.all([import("./config.server-DDCZk3Sq.mjs"), import("./runtime.server-fL0o6I2b.mjs")]);
|
|
18
18
|
const { runtime } = await prepareConfig();
|
|
19
19
|
return requireFeature(runtime, "apiKeys");
|
|
20
20
|
};
|