zudoku 0.47.0 → 0.47.2
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/dist/app/ZuploBuildConfig.d.ts +21 -21
- package/dist/app/ZuploBuildConfig.js +7 -7
- package/dist/app/ZuploBuildConfig.js.map +1 -1
- package/dist/app/entry.client.d.ts +0 -2
- package/dist/app/entry.client.js +0 -2
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.d.ts +0 -2
- package/dist/app/entry.server.js +0 -2
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/env.d.ts +7 -7
- package/dist/app/env.js +8 -0
- package/dist/app/env.js.map +1 -1
- package/dist/app/main.d.ts +1 -0
- package/dist/app/main.js +3 -2
- package/dist/app/main.js.map +1 -1
- package/dist/config/validators/validate.d.ts +319 -76
- package/dist/config/validators/validate.js +33 -11
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/lib/auth/issuer.js +4 -1
- package/dist/lib/auth/issuer.js.map +1 -1
- package/dist/lib/auth/issuer.test.js +14 -1
- package/dist/lib/auth/issuer.test.js.map +1 -1
- package/dist/lib/authentication/components/CallbackHandler.js +1 -1
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
- package/dist/lib/components/Framed.d.ts +7 -0
- package/dist/lib/components/Framed.js +26 -0
- package/dist/lib/components/Framed.js.map +1 -0
- package/dist/lib/components/MobileTopNavigation.js +2 -1
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +4 -4
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.js +1 -3
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/ui/CodeBlock.js +1 -1
- package/dist/lib/ui/CodeBlock.js.map +1 -1
- package/dist/lib/util/MdxComponents.d.ts +6 -0
- package/dist/lib/util/MdxComponents.js +4 -2
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/vite/css/plugin.js +11 -0
- package/dist/vite/css/plugin.js.map +1 -1
- package/dist/vite/plugin-mdx.js +4 -2
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-theme.d.ts +8 -0
- package/dist/vite/plugin-theme.js +223 -0
- package/dist/vite/plugin-theme.js.map +1 -0
- package/dist/vite/plugin-theme.test.d.ts +1 -0
- package/dist/vite/plugin-theme.test.js +270 -0
- package/dist/vite/plugin-theme.test.js.map +1 -0
- package/dist/vite/plugin.js +2 -4
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/shadcn-registry.d.ts +45 -0
- package/dist/vite/shadcn-registry.js +29 -0
- package/dist/vite/shadcn-registry.js.map +1 -0
- package/lib/Drawer-BzkOKwgC.js.map +1 -1
- package/lib/{Markdown-BUE2ViaD.js → Markdown-C5j8kKSX.js} +444 -404
- package/lib/Markdown-C5j8kKSX.js.map +1 -0
- package/lib/{MdxPage-By4UkRkI.js → MdxPage-CKTMf1cR.js} +4 -4
- package/lib/{MdxPage-By4UkRkI.js.map → MdxPage-CKTMf1cR.js.map} +1 -1
- package/lib/{OasProvider-C6_Kx5O7.js → OasProvider-_GzmsbMg.js} +2 -2
- package/lib/{OasProvider-C6_Kx5O7.js.map → OasProvider-_GzmsbMg.js.map} +1 -1
- package/lib/{OperationList-BISd29LY.js → OperationList-BJAKaG5p.js} +6 -6
- package/lib/{OperationList-BISd29LY.js.map → OperationList-BJAKaG5p.js.map} +1 -1
- package/lib/{RouteGuard-CgmsSw7T.js → RouteGuard-B7GVW4oL.js} +2 -2
- package/lib/{RouteGuard-CgmsSw7T.js.map → RouteGuard-B7GVW4oL.js.map} +1 -1
- package/lib/{SchemaList-BqnRo5ov.js → SchemaList-Dgc0A8x5.js} +6 -6
- package/lib/{SchemaList-BqnRo5ov.js.map → SchemaList-Dgc0A8x5.js.map} +1 -1
- package/lib/{SchemaView-CtYJpxQI.js → SchemaView-DVx-jFN4.js} +13 -13
- package/lib/{SchemaView-CtYJpxQI.js.map → SchemaView-DVx-jFN4.js.map} +1 -1
- package/lib/{SignUp-CrjeBbqN.js → SignUp-CRIKdWt9.js} +2 -2
- package/lib/{SignUp-CrjeBbqN.js.map → SignUp-CRIKdWt9.js.map} +1 -1
- package/lib/{Slot-DANV2b7_.js → Slot-ITby_hMb.js} +4 -4
- package/lib/{Slot-DANV2b7_.js.map → Slot-ITby_hMb.js.map} +1 -1
- package/lib/{SyntaxHighlight-DtvR7RLF.js → SyntaxHighlight-CqKHkyEy.js} +2 -2
- package/lib/{SyntaxHighlight-DtvR7RLF.js.map → SyntaxHighlight-CqKHkyEy.js.map} +1 -1
- package/lib/{Toc-ClJBmdtI.js → Toc-Csq3UNtW.js} +2 -2
- package/lib/{Toc-ClJBmdtI.js.map → Toc-Csq3UNtW.js.map} +1 -1
- package/lib/{circular-pOdgLzpG.js → circular-BP4OrHFK.js} +2 -2
- package/lib/{circular-pOdgLzpG.js.map → circular-BP4OrHFK.js.map} +1 -1
- package/lib/clerk-yAKDC3Qz.js.map +1 -1
- package/lib/{createServer-qAtUf99r.js → createServer-zu4cDiPe.js} +5 -5
- package/lib/{createServer-qAtUf99r.js.map → createServer-zu4cDiPe.js.map} +1 -1
- package/lib/{errors-Bpodza84.js → errors-CPPSp5F4.js} +10 -10
- package/lib/{errors-Bpodza84.js.map → errors-CPPSp5F4.js.map} +1 -1
- package/lib/{hook-wIlTGE-2.js → hook-7wZANGJP.js} +2 -5
- package/lib/{hook-wIlTGE-2.js.map → hook-7wZANGJP.js.map} +1 -1
- package/lib/index-CrcNWbel.js.map +1 -1
- package/lib/{index-zddirpDj.js → index-DmNq2fbN.js} +226 -221
- package/lib/index-DmNq2fbN.js.map +1 -0
- package/lib/index-QzXzw_ra.js.map +1 -1
- package/lib/{index-RFzRn4fM.js → index-jWXxqkni.js} +9 -9
- package/lib/{index-RFzRn4fM.js.map → index-jWXxqkni.js.map} +1 -1
- package/lib/{mutation-C-kdA_1r.js → mutation-C1XCQTQL.js} +2 -2
- package/lib/{mutation-C-kdA_1r.js.map → mutation-C1XCQTQL.js.map} +1 -1
- package/lib/ui/CodeBlock.js +7 -7
- package/lib/ui/CodeBlock.js.map +1 -1
- package/lib/ui/SyntaxHighlight.js +2 -2
- package/lib/{useMutation-3Ph3x6En.js → useMutation-BKvPttRn.js} +3 -3
- package/lib/{useMutation-3Ph3x6En.js.map → useMutation-BKvPttRn.js.map} +1 -1
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-azureb2c.js +2 -2
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +2 -2
- package/lib/zudoku.components.js +28 -27
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +2 -2
- package/lib/zudoku.plugin-api-catalog.js +2 -2
- package/lib/zudoku.plugin-api-keys.js +68 -62
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +2 -2
- package/lib/zudoku.plugin-search-pagefind.js +2 -2
- package/package.json +8 -8
- package/src/app/ZuploBuildConfig.ts +7 -7
- package/src/app/defaultTheme.css +68 -49
- package/src/app/entry.client.tsx +0 -2
- package/src/app/entry.server.tsx +0 -2
- package/src/app/env.ts +8 -0
- package/src/app/main.css +1 -52
- package/src/app/main.tsx +3 -2
- package/src/lib/auth/issuer.test.ts +17 -1
- package/src/lib/auth/issuer.ts +4 -1
- package/src/lib/authentication/components/CallbackHandler.tsx +1 -1
- package/src/lib/components/Framed.tsx +51 -0
- package/src/lib/components/MobileTopNavigation.tsx +4 -0
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +11 -8
- package/src/lib/plugins/api-keys/index.tsx +1 -3
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +1 -1
- package/src/lib/ui/CodeBlock.tsx +1 -1
- package/src/lib/util/MdxComponents.tsx +13 -2
- package/dist/vite/plugin-configure-tailwind.d.ts +0 -2
- package/dist/vite/plugin-configure-tailwind.js +0 -38
- package/dist/vite/plugin-configure-tailwind.js.map +0 -1
- package/dist/vite/plugin-theme-css.d.ts +0 -5
- package/dist/vite/plugin-theme-css.js +0 -77
- package/dist/vite/plugin-theme-css.js.map +0 -1
- package/lib/Markdown-BUE2ViaD.js.map +0 -1
- package/lib/index-zddirpDj.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as a, c as r, n as u } from "./hook-
|
|
1
|
+
import { R as a, c as r, n as u } from "./hook-7wZANGJP.js";
|
|
2
2
|
var d = class extends a {
|
|
3
3
|
#e;
|
|
4
4
|
#t;
|
|
@@ -193,4 +193,4 @@ export {
|
|
|
193
193
|
d as M,
|
|
194
194
|
h as g
|
|
195
195
|
};
|
|
196
|
-
//# sourceMappingURL=mutation-
|
|
196
|
+
//# sourceMappingURL=mutation-C1XCQTQL.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutation-C-kdA_1r.js","sources":["../../../node_modules/.pnpm/@tanstack+query-core@5.74.3/node_modules/@tanstack/query-core/build/modern/mutation.js"],"sourcesContent":["// src/mutation.ts\nimport { notifyManager } from \"./notifyManager.js\";\nimport { Removable } from \"./removable.js\";\nimport { createRetryer } from \"./retryer.js\";\nvar Mutation = class extends Removable {\n #observers;\n #mutationCache;\n #retryer;\n constructor(config) {\n super();\n this.mutationId = config.mutationId;\n this.#mutationCache = config.mutationCache;\n this.#observers = [];\n this.state = config.state || getDefaultState();\n this.setOptions(config.options);\n this.scheduleGc();\n }\n setOptions(options) {\n this.options = options;\n this.updateGcTime(this.options.gcTime);\n }\n get meta() {\n return this.options.meta;\n }\n addObserver(observer) {\n if (!this.#observers.includes(observer)) {\n this.#observers.push(observer);\n this.clearGcTimeout();\n this.#mutationCache.notify({\n type: \"observerAdded\",\n mutation: this,\n observer\n });\n }\n }\n removeObserver(observer) {\n this.#observers = this.#observers.filter((x) => x !== observer);\n this.scheduleGc();\n this.#mutationCache.notify({\n type: \"observerRemoved\",\n mutation: this,\n observer\n });\n }\n optionalRemove() {\n if (!this.#observers.length) {\n if (this.state.status === \"pending\") {\n this.scheduleGc();\n } else {\n this.#mutationCache.remove(this);\n }\n }\n }\n continue() {\n return this.#retryer?.continue() ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before\n this.execute(this.state.variables);\n }\n async execute(variables) {\n const onContinue = () => {\n this.#dispatch({ type: \"continue\" });\n };\n this.#retryer = createRetryer({\n fn: () => {\n if (!this.options.mutationFn) {\n return Promise.reject(new Error(\"No mutationFn found\"));\n }\n return this.options.mutationFn(variables);\n },\n onFail: (failureCount, error) => {\n this.#dispatch({ type: \"failed\", failureCount, error });\n },\n onPause: () => {\n this.#dispatch({ type: \"pause\" });\n },\n onContinue,\n retry: this.options.retry ?? 0,\n retryDelay: this.options.retryDelay,\n networkMode: this.options.networkMode,\n canRun: () => this.#mutationCache.canRun(this)\n });\n const restored = this.state.status === \"pending\";\n const isPaused = !this.#retryer.canStart();\n try {\n if (restored) {\n onContinue();\n } else {\n this.#dispatch({ type: \"pending\", variables, isPaused });\n await this.#mutationCache.config.onMutate?.(\n variables,\n this\n );\n const context = await this.options.onMutate?.(variables);\n if (context !== this.state.context) {\n this.#dispatch({\n type: \"pending\",\n context,\n variables,\n isPaused\n });\n }\n }\n const data = await this.#retryer.start();\n await this.#mutationCache.config.onSuccess?.(\n data,\n variables,\n this.state.context,\n this\n );\n await this.options.onSuccess?.(data, variables, this.state.context);\n await this.#mutationCache.config.onSettled?.(\n data,\n null,\n this.state.variables,\n this.state.context,\n this\n );\n await this.options.onSettled?.(data, null, variables, this.state.context);\n this.#dispatch({ type: \"success\", data });\n return data;\n } catch (error) {\n try {\n await this.#mutationCache.config.onError?.(\n error,\n variables,\n this.state.context,\n this\n );\n await this.options.onError?.(\n error,\n variables,\n this.state.context\n );\n await this.#mutationCache.config.onSettled?.(\n void 0,\n error,\n this.state.variables,\n this.state.context,\n this\n );\n await this.options.onSettled?.(\n void 0,\n error,\n variables,\n this.state.context\n );\n throw error;\n } finally {\n this.#dispatch({ type: \"error\", error });\n }\n } finally {\n this.#mutationCache.runNext(this);\n }\n }\n #dispatch(action) {\n const reducer = (state) => {\n switch (action.type) {\n case \"failed\":\n return {\n ...state,\n failureCount: action.failureCount,\n failureReason: action.error\n };\n case \"pause\":\n return {\n ...state,\n isPaused: true\n };\n case \"continue\":\n return {\n ...state,\n isPaused: false\n };\n case \"pending\":\n return {\n ...state,\n context: action.context,\n data: void 0,\n failureCount: 0,\n failureReason: null,\n error: null,\n isPaused: action.isPaused,\n status: \"pending\",\n variables: action.variables,\n submittedAt: Date.now()\n };\n case \"success\":\n return {\n ...state,\n data: action.data,\n failureCount: 0,\n failureReason: null,\n error: null,\n status: \"success\",\n isPaused: false\n };\n case \"error\":\n return {\n ...state,\n data: void 0,\n error: action.error,\n failureCount: state.failureCount + 1,\n failureReason: action.error,\n isPaused: false,\n status: \"error\"\n };\n }\n };\n this.state = reducer(this.state);\n notifyManager.batch(() => {\n this.#observers.forEach((observer) => {\n observer.onMutationUpdate(action);\n });\n this.#mutationCache.notify({\n mutation: this,\n type: \"updated\",\n action\n });\n });\n }\n};\nfunction getDefaultState() {\n return {\n context: void 0,\n data: void 0,\n error: null,\n failureCount: 0,\n failureReason: null,\n isPaused: false,\n status: \"idle\",\n variables: void 0,\n submittedAt: 0\n };\n}\nexport {\n Mutation,\n getDefaultState\n};\n//# sourceMappingURL=mutation.js.map"],"names":["Mutation","Removable","#observers","#mutationCache","#retryer","config","getDefaultState","options","observer","x","variables","onContinue","#dispatch","createRetryer","failureCount","error","restored","isPaused","context","data","action","reducer","state","notifyManager"],"mappings":";AAIG,IAACA,IAAW,cAAcC,EAAU;AAAA,EACrCC;AAAA,EACAC;AAAA,EACAC;AAAA,EACA,YAAYC,GAAQ;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ACjB,QAAQ;AAAA,YACR,WAAWA,EAAO;AAAA,YAClB,aAAa,KAAK,IAAG;AAAA,UACtB;AAAA,QACH,KAAK;AACH,iBAAO;AAAA,YACL,GAAGE;AAAA,YACH,MAAMF,EAAO;AAAA,YACb,cAAc;AAAA,YACd,eAAe;AAAA,YACf,OAAO;AAAA,YACP,QAAQ;AAAA,YACR,UAAU;AAAA,UACX;AAAA,QACH,KAAK;AACH,iBAAO;AAAA,YACL,GAAGE;AAAA,YACH,MAAM;AAAA,YACN,OAAOF,EAAO;AAAA,YACd,cAAcE,EAAM,eAAe;AAAA,YACnC,eAAeF,EAAO;AAAA,YACtB,UAAU;AAAA,YACV,QAAQ;AAAA,UACT;AAAA,MACX;AAAA,IACK;AACD,SAAK,QAAQC,EAAQ,KAAK,KAAK,GAC/BE,EAAc,MAAM,MAAM;AACxB,WAAKrB,GAAW,QAAQ,CAACM,MAAa;AACpC,QAAAA,EAAS,iBAAiBY,CAAM;AAAA,MACxC,CAAO,GACD,KAAKjB,GAAe,OAAO;AAAA,QACzB,UAAU;AAAA,QACV,MAAM;AAAA,QACN,QAAAiB;AAAA,MACR,CAAO;AAAA,IACP,CAAK;AAAA,EACL;AACA;AACA,SAASd,IAAkB;AACzB,SAAO;AAAA,IACL,SAAS;AAAA,IACT,MAAM;AAAA,IACN,OAAO;AAAA,IACP,cAAc;AAAA,IACd,eAAe;AAAA,IACf,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,aAAa;AAAA,EACd;AACH;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"mutation-C1XCQTQL.js","sources":["../../../node_modules/.pnpm/@tanstack+query-core@5.74.3/node_modules/@tanstack/query-core/build/modern/mutation.js"],"sourcesContent":["// src/mutation.ts\nimport { notifyManager } from \"./notifyManager.js\";\nimport { Removable } from \"./removable.js\";\nimport { createRetryer } from \"./retryer.js\";\nvar Mutation = class extends Removable {\n #observers;\n #mutationCache;\n #retryer;\n constructor(config) {\n super();\n this.mutationId = config.mutationId;\n this.#mutationCache = config.mutationCache;\n this.#observers = [];\n this.state = config.state || getDefaultState();\n this.setOptions(config.options);\n this.scheduleGc();\n }\n setOptions(options) {\n this.options = options;\n this.updateGcTime(this.options.gcTime);\n }\n get meta() {\n return this.options.meta;\n }\n addObserver(observer) {\n if (!this.#observers.includes(observer)) {\n this.#observers.push(observer);\n this.clearGcTimeout();\n this.#mutationCache.notify({\n type: \"observerAdded\",\n mutation: this,\n observer\n });\n }\n }\n removeObserver(observer) {\n this.#observers = this.#observers.filter((x) => x !== observer);\n this.scheduleGc();\n this.#mutationCache.notify({\n type: \"observerRemoved\",\n mutation: this,\n observer\n });\n }\n optionalRemove() {\n if (!this.#observers.length) {\n if (this.state.status === \"pending\") {\n this.scheduleGc();\n } else {\n this.#mutationCache.remove(this);\n }\n }\n }\n continue() {\n return this.#retryer?.continue() ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before\n this.execute(this.state.variables);\n }\n async execute(variables) {\n const onContinue = () => {\n this.#dispatch({ type: \"continue\" });\n };\n this.#retryer = createRetryer({\n fn: () => {\n if (!this.options.mutationFn) {\n return Promise.reject(new Error(\"No mutationFn found\"));\n }\n return this.options.mutationFn(variables);\n },\n onFail: (failureCount, error) => {\n this.#dispatch({ type: \"failed\", failureCount, error });\n },\n onPause: () => {\n this.#dispatch({ type: \"pause\" });\n },\n onContinue,\n retry: this.options.retry ?? 0,\n retryDelay: this.options.retryDelay,\n networkMode: this.options.networkMode,\n canRun: () => this.#mutationCache.canRun(this)\n });\n const restored = this.state.status === \"pending\";\n const isPaused = !this.#retryer.canStart();\n try {\n if (restored) {\n onContinue();\n } else {\n this.#dispatch({ type: \"pending\", variables, isPaused });\n await this.#mutationCache.config.onMutate?.(\n variables,\n this\n );\n const context = await this.options.onMutate?.(variables);\n if (context !== this.state.context) {\n this.#dispatch({\n type: \"pending\",\n context,\n variables,\n isPaused\n });\n }\n }\n const data = await this.#retryer.start();\n await this.#mutationCache.config.onSuccess?.(\n data,\n variables,\n this.state.context,\n this\n );\n await this.options.onSuccess?.(data, variables, this.state.context);\n await this.#mutationCache.config.onSettled?.(\n data,\n null,\n this.state.variables,\n this.state.context,\n this\n );\n await this.options.onSettled?.(data, null, variables, this.state.context);\n this.#dispatch({ type: \"success\", data });\n return data;\n } catch (error) {\n try {\n await this.#mutationCache.config.onError?.(\n error,\n variables,\n this.state.context,\n this\n );\n await this.options.onError?.(\n error,\n variables,\n this.state.context\n );\n await this.#mutationCache.config.onSettled?.(\n void 0,\n error,\n this.state.variables,\n this.state.context,\n this\n );\n await this.options.onSettled?.(\n void 0,\n error,\n variables,\n this.state.context\n );\n throw error;\n } finally {\n this.#dispatch({ type: \"error\", error });\n }\n } finally {\n this.#mutationCache.runNext(this);\n }\n }\n #dispatch(action) {\n const reducer = (state) => {\n switch (action.type) {\n case \"failed\":\n return {\n ...state,\n failureCount: action.failureCount,\n failureReason: action.error\n };\n case \"pause\":\n return {\n ...state,\n isPaused: true\n };\n case \"continue\":\n return {\n ...state,\n isPaused: false\n };\n case \"pending\":\n return {\n ...state,\n context: action.context,\n data: void 0,\n failureCount: 0,\n failureReason: null,\n error: null,\n isPaused: action.isPaused,\n status: \"pending\",\n variables: action.variables,\n submittedAt: Date.now()\n };\n case \"success\":\n return {\n ...state,\n data: action.data,\n failureCount: 0,\n failureReason: null,\n error: null,\n status: \"success\",\n isPaused: false\n };\n case \"error\":\n return {\n ...state,\n data: void 0,\n error: action.error,\n failureCount: state.failureCount + 1,\n failureReason: action.error,\n isPaused: false,\n status: \"error\"\n };\n }\n };\n this.state = reducer(this.state);\n notifyManager.batch(() => {\n this.#observers.forEach((observer) => {\n observer.onMutationUpdate(action);\n });\n this.#mutationCache.notify({\n mutation: this,\n type: \"updated\",\n action\n });\n });\n }\n};\nfunction getDefaultState() {\n return {\n context: void 0,\n data: void 0,\n error: null,\n failureCount: 0,\n failureReason: null,\n isPaused: false,\n status: \"idle\",\n variables: void 0,\n submittedAt: 0\n };\n}\nexport {\n Mutation,\n getDefaultState\n};\n//# sourceMappingURL=mutation.js.map"],"names":["Mutation","Removable","#observers","#mutationCache","#retryer","config","getDefaultState","options","observer","x","variables","onContinue","#dispatch","createRetryer","failureCount","error","restored","isPaused","context","data","action","reducer","state","notifyManager"],"mappings":";AAIG,IAACA,IAAW,cAAcC,EAAU;AAAA,EACrCC;AAAA,EACAC;AAAA,EACAC;AAAA,EACA,YAAYC,GAAQ;AAClB,UAAO,GACP,KAAK,aAAaA,EAAO,YACzB,KAAKF,KAAiBE,EAAO,eAC7B,KAAKH,KAAa,CAAE,GACpB,KAAK,QAAQG,EAAO,SAASC,EAAiB,GAC9C,KAAK,WAAWD,EAAO,OAAO,GAC9B,KAAK,WAAY;AAAA,EACrB;AAAA,EACE,WAAWE,GAAS;AAClB,SAAK,UAAUA,GACf,KAAK,aAAa,KAAK,QAAQ,MAAM;AAAA,EACzC;AAAA,EACE,IAAI,OAAO;AACT,WAAO,KAAK,QAAQ;AAAA,EACxB;AAAA,EACE,YAAYC,GAAU;AACpB,IAAK,KAAKN,GAAW,SAASM,CAAQ,MACpC,KAAKN,GAAW,KAAKM,CAAQ,GAC7B,KAAK,eAAgB,GACrB,KAAKL,GAAe,OAAO;AAAA,MACzB,MAAM;AAAA,MACN,UAAU;AAAA,MACV,UAAAK;AAAA,IACR,CAAO;AAAA,EAEP;AAAA,EACE,eAAeA,GAAU;AACvB,SAAKN,KAAa,KAAKA,GAAW,OAAO,CAACO,MAAMA,MAAMD,CAAQ,GAC9D,KAAK,WAAY,GACjB,KAAKL,GAAe,OAAO;AAAA,MACzB,MAAM;AAAA,MACN,UAAU;AAAA,MACV,UAAAK;AAAA,IACN,CAAK;AAAA,EACL;AAAA,EACE,iBAAiB;AACf,IAAK,KAAKN,GAAW,WACf,KAAK,MAAM,WAAW,YACxB,KAAK,WAAY,IAEjB,KAAKC,GAAe,OAAO,IAAI;AAAA,EAGvC;AAAA,EACE,WAAW;AACT,WAAO,KAAKC,IAAU,SA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0]}
|
package/lib/ui/CodeBlock.js
CHANGED
|
@@ -2,14 +2,14 @@ import { j as e } from "../jsx-runtime-C5mzlN2N.js";
|
|
|
2
2
|
import { CheckIcon as p, CopyIcon as x } from "lucide-react";
|
|
3
3
|
import { useState as f, useRef as b } from "react";
|
|
4
4
|
import { c as t } from "../cn-wvCW-ho6.js";
|
|
5
|
-
const
|
|
5
|
+
const C = ({
|
|
6
6
|
children: n,
|
|
7
7
|
title: o,
|
|
8
8
|
language: l,
|
|
9
9
|
showCopy: r = "hover",
|
|
10
10
|
showCopyText: a,
|
|
11
|
-
showLanguageIndicator:
|
|
12
|
-
showLineNumbers:
|
|
11
|
+
showLanguageIndicator: c = !0,
|
|
12
|
+
showLineNumbers: u,
|
|
13
13
|
...m
|
|
14
14
|
}) => {
|
|
15
15
|
const [d, i] = f(!1), s = b(null);
|
|
@@ -18,7 +18,7 @@ const k = ({
|
|
|
18
18
|
{
|
|
19
19
|
className: t(
|
|
20
20
|
"code-block-wrapper relative group bg-muted/50 rounded-md",
|
|
21
|
-
|
|
21
|
+
u && "line-numbers"
|
|
22
22
|
),
|
|
23
23
|
children: [
|
|
24
24
|
o && /* @__PURE__ */ e.jsx("div", { className: "text-xs text-muted-foreground top-2 font-mono border-b w-full py-2 px-4 ", children: o }),
|
|
@@ -33,7 +33,7 @@ const k = ({
|
|
|
33
33
|
children: n
|
|
34
34
|
}
|
|
35
35
|
),
|
|
36
|
-
|
|
36
|
+
c && /* @__PURE__ */ e.jsx(
|
|
37
37
|
"span",
|
|
38
38
|
{
|
|
39
39
|
className: t(
|
|
@@ -51,7 +51,7 @@ const k = ({
|
|
|
51
51
|
"aria-label": "Copy code",
|
|
52
52
|
title: "Copy code",
|
|
53
53
|
className: t(
|
|
54
|
-
"absolute top-2 end-2 p-2 hover:
|
|
54
|
+
"absolute top-2 end-2 p-2 transition hover:shadow-xs active:shadow-none active:inset-shadow-xs hover:outline outline-border rounded-md text-sm text-muted-foreground",
|
|
55
55
|
o && "top-10",
|
|
56
56
|
r === "hover" && "opacity-0 group-hover:opacity-100",
|
|
57
57
|
a && "flex gap-2 items-center font-medium"
|
|
@@ -79,6 +79,6 @@ const k = ({
|
|
|
79
79
|
) : null;
|
|
80
80
|
};
|
|
81
81
|
export {
|
|
82
|
-
|
|
82
|
+
C as CodeBlock
|
|
83
83
|
};
|
|
84
84
|
//# sourceMappingURL=CodeBlock.js.map
|
package/lib/ui/CodeBlock.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeBlock.js","sources":["../../src/lib/ui/CodeBlock.tsx"],"sourcesContent":["import { CheckIcon, CopyIcon } from \"lucide-react\";\nimport type { ReactNode } from \"react\";\nimport { useRef, useState } from \"react\";\nimport { cn } from \"../util/cn.js\";\n\nexport type CodeBlockProps = {\n className?: string;\n noBackground?: boolean;\n wrapLines?: boolean;\n showLanguageIndicator?: boolean;\n language?: string;\n title?: string;\n children?: ReactNode;\n code?: ReactNode;\n showCopy?: \"hover\" | \"always\" | \"never\";\n showCopyText?: boolean;\n disabled?: boolean;\n showLineNumbers?: boolean;\n};\n\nexport const CodeBlock = ({\n children,\n title,\n language,\n showCopy = \"hover\",\n showCopyText,\n showLanguageIndicator = true,\n showLineNumbers,\n ...props\n}: CodeBlockProps) => {\n const [isCopied, setIsCopied] = useState(false);\n const ref = useRef<HTMLDivElement>(null);\n\n if (!children) return null;\n\n return (\n <div\n className={cn(\n \"code-block-wrapper relative group bg-muted/50 rounded-md\",\n showLineNumbers && \"line-numbers\",\n )}\n >\n {title && (\n <div className=\"text-xs text-muted-foreground top-2 font-mono border-b w-full py-2 px-4 \">\n {title}\n </div>\n )}\n <div\n className={cn(\n \"code-block text-sm not-prose scrollbar overflow-x-auto scrollbar p-4\",\n props.className,\n )}\n ref={ref}\n >\n {children}\n </div>\n {showLanguageIndicator && (\n <span\n className={cn(\n \"absolute top-1.5 end-3 !text-[11px] font-mono text-muted-foreground transition group-hover:opacity-0\",\n title && \"top-12\",\n showCopy === \"always\" && \"hidden\",\n )}\n >\n {language}\n </span>\n )}\n {showCopy !== \"never\" && (\n <button\n type=\"button\"\n aria-label=\"Copy code\"\n title=\"Copy code\"\n className={cn(\n \"absolute top-2 end-2 p-2 hover:
|
|
1
|
+
{"version":3,"file":"CodeBlock.js","sources":["../../src/lib/ui/CodeBlock.tsx"],"sourcesContent":["import { CheckIcon, CopyIcon } from \"lucide-react\";\nimport type { ReactNode } from \"react\";\nimport { useRef, useState } from \"react\";\nimport { cn } from \"../util/cn.js\";\n\nexport type CodeBlockProps = {\n className?: string;\n noBackground?: boolean;\n wrapLines?: boolean;\n showLanguageIndicator?: boolean;\n language?: string;\n title?: string;\n children?: ReactNode;\n code?: ReactNode;\n showCopy?: \"hover\" | \"always\" | \"never\";\n showCopyText?: boolean;\n disabled?: boolean;\n showLineNumbers?: boolean;\n};\n\nexport const CodeBlock = ({\n children,\n title,\n language,\n showCopy = \"hover\",\n showCopyText,\n showLanguageIndicator = true,\n showLineNumbers,\n ...props\n}: CodeBlockProps) => {\n const [isCopied, setIsCopied] = useState(false);\n const ref = useRef<HTMLDivElement>(null);\n\n if (!children) return null;\n\n return (\n <div\n className={cn(\n \"code-block-wrapper relative group bg-muted/50 rounded-md\",\n showLineNumbers && \"line-numbers\",\n )}\n >\n {title && (\n <div className=\"text-xs text-muted-foreground top-2 font-mono border-b w-full py-2 px-4 \">\n {title}\n </div>\n )}\n <div\n className={cn(\n \"code-block text-sm not-prose scrollbar overflow-x-auto scrollbar p-4\",\n props.className,\n )}\n ref={ref}\n >\n {children}\n </div>\n {showLanguageIndicator && (\n <span\n className={cn(\n \"absolute top-1.5 end-3 !text-[11px] font-mono text-muted-foreground transition group-hover:opacity-0\",\n title && \"top-12\",\n showCopy === \"always\" && \"hidden\",\n )}\n >\n {language}\n </span>\n )}\n {showCopy !== \"never\" && (\n <button\n type=\"button\"\n aria-label=\"Copy code\"\n title=\"Copy code\"\n className={cn(\n \"absolute top-2 end-2 p-2 transition hover:shadow-xs active:shadow-none active:inset-shadow-xs hover:outline outline-border rounded-md text-sm text-muted-foreground\",\n title && \"top-10\",\n showCopy === \"hover\" && \"opacity-0 group-hover:opacity-100\",\n showCopyText && \"flex gap-2 items-center font-medium\",\n )}\n disabled={isCopied}\n onClick={() => {\n if (!ref.current?.textContent) return;\n\n setIsCopied(true);\n void navigator.clipboard.writeText(ref.current.textContent);\n setTimeout(() => setIsCopied(false), 2000);\n }}\n >\n {isCopied ? (\n <CheckIcon\n className=\"text-emerald-600\"\n size={16}\n strokeWidth={2.5}\n absoluteStrokeWidth\n />\n ) : (\n <CopyIcon size={16} />\n )}\n {showCopyText && \"Copy\"}\n </button>\n )}\n </div>\n );\n};\n"],"names":["CodeBlock","children","title","language","showCopy","showCopyText","showLanguageIndicator","showLineNumbers","props","isCopied","setIsCopied","useState","ref","useRef","jsxs","cn","jsx","CheckIcon","CopyIcon"],"mappings":";;;;AAoBO,MAAMA,IAAY,CAAC;AAAA,EACxB,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,cAAAC;AAAA,EACA,uBAAAC,IAAwB;AAAA,EACxB,iBAAAC;AAAA,EACA,GAAGC;AACL,MAAsB;AACpB,QAAM,CAACC,GAAUC,CAAW,IAAIC,EAAS,EAAK,GACxCC,IAAMC,EAAuB,IAAI;AAEnC,SAACZ,IAGHa,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC;AAAA,QACT;AAAA,QACAR,KAAmB;AAAA,MACrB;AAAA,MAEC,UAAA;AAAA,QAAAL,KACEc,gBAAAA,EAAA,IAAA,OAAA,EAAI,WAAU,4EACZ,UACHd,GAAA;AAAA,QAEFc,gBAAAA,EAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAWD;AAAA,cACT;AAAA,cACAP,EAAM;AAAA,YACR;AAAA,YACA,KAAAI;AAAA,YAEC,UAAAX;AAAA,UAAA;AAAA,QACH;AAAA,QACCK,KACCU,gBAAAA,EAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAWD;AAAA,cACT;AAAA,cACAb,KAAS;AAAA,cACTE,MAAa,YAAY;AAAA,YAC3B;AAAA,YAEC,UAAAD;AAAA,UAAA;AAAA,QACH;AAAA,QAEDC,MAAa,WACZU,gBAAAA,EAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,cAAW;AAAA,YACX,OAAM;AAAA,YACN,WAAWC;AAAA,cACT;AAAA,cACAb,KAAS;AAAA,cACTE,MAAa,WAAW;AAAA,cACxBC,KAAgB;AAAA,YAClB;AAAA,YACA,UAAUI;AAAA,YACV,SAAS,MAAM;AACT,cAACG,EAAI,SAAS,gBAElBF,EAAY,EAAI,GACX,UAAU,UAAU,UAAUE,EAAI,QAAQ,WAAW,GAC1D,WAAW,MAAMF,EAAY,EAAK,GAAG,GAAI;AAAA,YAC3C;AAAA,YAEC,UAAA;AAAA,cACCD,IAAAO,gBAAAA,EAAA;AAAA,gBAACC;AAAA,gBAAA;AAAA,kBACC,WAAU;AAAA,kBACV,MAAM;AAAA,kBACN,aAAa;AAAA,kBACb,qBAAmB;AAAA,gBAAA;AAAA,cAGrB,IAAAD,gBAAAA,EAAA,IAACE,GAAS,EAAA,MAAM,GAAI,CAAA;AAAA,cAErBb,KAAgB;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MACnB;AAAA,IAAA;AAAA,EAEJ,IAnEoB;AAqExB;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import "react";
|
|
3
|
-
import "../hook-
|
|
4
|
-
import { S as g } from "../SyntaxHighlight-
|
|
3
|
+
import "../hook-7wZANGJP.js";
|
|
4
|
+
import { S as g } from "../SyntaxHighlight-CqKHkyEy.js";
|
|
5
5
|
import "../invariant-DAFpPywt.js";
|
|
6
6
|
import "./CodeBlock.js";
|
|
7
7
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as o from "react";
|
|
2
|
-
import { g as l } from "./mutation-
|
|
3
|
-
import { S as p, s as d, h, n as a, e as b, f as m, g as f } from "./hook-
|
|
2
|
+
import { g as l } from "./mutation-C1XCQTQL.js";
|
|
3
|
+
import { S as p, s as d, h, n as a, e as b, f as m, g as f } from "./hook-7wZANGJP.js";
|
|
4
4
|
var v = class extends p {
|
|
5
5
|
#e;
|
|
6
6
|
#i = void 0;
|
|
@@ -94,4 +94,4 @@ function g(t, s) {
|
|
|
94
94
|
export {
|
|
95
95
|
g as u
|
|
96
96
|
};
|
|
97
|
-
//# sourceMappingURL=useMutation-
|
|
97
|
+
//# sourceMappingURL=useMutation-BKvPttRn.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMutation-
|
|
1
|
+
{"version":3,"file":"useMutation-BKvPttRn.js","sources":["../../../node_modules/.pnpm/@tanstack+query-core@5.74.3/node_modules/@tanstack/query-core/build/modern/mutationObserver.js","../../../node_modules/.pnpm/@tanstack+react-query@5.74.3_react@19.1.0/node_modules/@tanstack/react-query/build/modern/useMutation.js"],"sourcesContent":["// src/mutationObserver.ts\nimport { getDefaultState } from \"./mutation.js\";\nimport { notifyManager } from \"./notifyManager.js\";\nimport { Subscribable } from \"./subscribable.js\";\nimport { hashKey, shallowEqualObjects } from \"./utils.js\";\nvar MutationObserver = class extends Subscribable {\n #client;\n #currentResult = void 0;\n #currentMutation;\n #mutateOptions;\n constructor(client, options) {\n super();\n this.#client = client;\n this.setOptions(options);\n this.bindMethods();\n this.#updateResult();\n }\n bindMethods() {\n this.mutate = this.mutate.bind(this);\n this.reset = this.reset.bind(this);\n }\n setOptions(options) {\n const prevOptions = this.options;\n this.options = this.#client.defaultMutationOptions(options);\n if (!shallowEqualObjects(this.options, prevOptions)) {\n this.#client.getMutationCache().notify({\n type: \"observerOptionsUpdated\",\n mutation: this.#currentMutation,\n observer: this\n });\n }\n if (prevOptions?.mutationKey && this.options.mutationKey && hashKey(prevOptions.mutationKey) !== hashKey(this.options.mutationKey)) {\n this.reset();\n } else if (this.#currentMutation?.state.status === \"pending\") {\n this.#currentMutation.setOptions(this.options);\n }\n }\n onUnsubscribe() {\n if (!this.hasListeners()) {\n this.#currentMutation?.removeObserver(this);\n }\n }\n onMutationUpdate(action) {\n this.#updateResult();\n this.#notify(action);\n }\n getCurrentResult() {\n return this.#currentResult;\n }\n reset() {\n this.#currentMutation?.removeObserver(this);\n this.#currentMutation = void 0;\n this.#updateResult();\n this.#notify();\n }\n mutate(variables, options) {\n this.#mutateOptions = options;\n this.#currentMutation?.removeObserver(this);\n this.#currentMutation = this.#client.getMutationCache().build(this.#client, this.options);\n this.#currentMutation.addObserver(this);\n return this.#currentMutation.execute(variables);\n }\n #updateResult() {\n const state = this.#currentMutation?.state ?? getDefaultState();\n this.#currentResult = {\n ...state,\n isPending: state.status === \"pending\",\n isSuccess: state.status === \"success\",\n isError: state.status === \"error\",\n isIdle: state.status === \"idle\",\n mutate: this.mutate,\n reset: this.reset\n };\n }\n #notify(action) {\n notifyManager.batch(() => {\n if (this.#mutateOptions && this.hasListeners()) {\n const variables = this.#currentResult.variables;\n const context = this.#currentResult.context;\n if (action?.type === \"success\") {\n this.#mutateOptions.onSuccess?.(action.data, variables, context);\n this.#mutateOptions.onSettled?.(action.data, null, variables, context);\n } else if (action?.type === \"error\") {\n this.#mutateOptions.onError?.(action.error, variables, context);\n this.#mutateOptions.onSettled?.(\n void 0,\n action.error,\n variables,\n context\n );\n }\n }\n this.listeners.forEach((listener) => {\n listener(this.#currentResult);\n });\n });\n }\n};\nexport {\n MutationObserver\n};\n//# sourceMappingURL=mutationObserver.js.map","\"use client\";\n\n// src/useMutation.ts\nimport * as React from \"react\";\nimport { MutationObserver, notifyManager } from \"@tanstack/query-core\";\nimport { useQueryClient } from \"./QueryClientProvider.js\";\nimport { noop, shouldThrowError } from \"./utils.js\";\nfunction useMutation(options, queryClient) {\n const client = useQueryClient(queryClient);\n const [observer] = React.useState(\n () => new MutationObserver(\n client,\n options\n )\n );\n React.useEffect(() => {\n observer.setOptions(options);\n }, [observer, options]);\n const result = React.useSyncExternalStore(\n React.useCallback(\n (onStoreChange) => observer.subscribe(notifyManager.batchCalls(onStoreChange)),\n [observer]\n ),\n () => observer.getCurrentResult(),\n () => observer.getCurrentResult()\n );\n const mutate = React.useCallback(\n (variables, mutateOptions) => {\n observer.mutate(variables, mutateOptions).catch(noop);\n },\n [observer]\n );\n if (result.error && shouldThrowError(observer.options.throwOnError, [result.error])) {\n throw result.error;\n }\n return { ...result, mutate, mutateAsync: result.mutate };\n}\nexport {\n useMutation\n};\n//# sourceMappingURL=useMutation.js.map"],"names":["MutationObserver","Subscribable","#client","#currentResult","#currentMutation","#mutateOptions","client","options","#updateResult","prevOptions","shallowEqualObjects","hashKey","action","#notify","variables","state","getDefaultState","notifyManager","context","listener","useMutation","queryClient","useQueryClient","observer","React","result","onStoreChange","mutate","mutateOptions","noop","shouldThrowError"],"mappings":";;;AAKA,IAAIA,IAAmB,cAAcC,EAAa;AAAA,EAChDC;AAAA,EACAC,KAAiB;AAAA,EACjBC;AAAA,EACAC;AAAA,EACA,YAAYC,GAAQC,GAAS;AAC3B,UAAO,GACP,KAAKL,KAAUI,GACf,KAAK,WAAWC,CAAO,GACvB,KAAK,YAAa,GAClB,KAAKC,GAAe;AAAA,EACxB;AAAA,EACE,cAAc;AACZ,SAAK,SAAS,KAAK,OAAO,KAAK,IAAI,GACnC,KAAK,QAAQ,KAAK,MAAM,KAAK,IAAI;AAAA,EACrC;AAAA,EACE,WAAWD,GAAS;AAClB,UAAME,IAAc,KAAK;AACzB,SAAK,UAAU,KAAKP,GAAQ,uBAAuBK,CAAO,GACrDG,EAAoB,KAAK,SAASD,CAAW,KAChD,KAAKP,GAAQ,iBAAkB,EAAC,OAAO;AAAA,MACrC,MAAM;AAAA,MACN,UAAU,KAAKE;AAAA,MACf,UAAU;AAAA,IAClB,CAAO,GAECK,GAAa,e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AE,GAAQ,aAAaF,EAAO,OAAQ;AAC1D;","x_google_ignoreList":[0,1]}
|
package/lib/zudoku.auth-auth0.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as yo } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import { C as aa } from "./ClientOnly-E7hGysn1.js";
|
|
3
|
-
import { j as sa, u as To } from "./hook-
|
|
4
|
-
import { C as ca, A as qt, a as la } from "./errors-
|
|
3
|
+
import { j as sa, u as To } from "./hook-7wZANGJP.js";
|
|
4
|
+
import { C as ca, A as qt, a as la } from "./errors-CPPSp5F4.js";
|
|
5
5
|
/*! @azure/msal-common v15.7.0 2025-05-30 */
|
|
6
6
|
const d = {
|
|
7
7
|
LIBRARY_NAME: "MSAL.JS",
|
package/lib/zudoku.auth-clerk.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as l } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import { LogOutIcon as g } from "lucide-react";
|
|
3
|
-
import { S as f, a as w, b as p } from "./SignUp-
|
|
4
|
-
import { u as n } from "./hook-
|
|
3
|
+
import { S as f, a as w, b as p } from "./SignUp-CRIKdWt9.js";
|
|
4
|
+
import { u as n } from "./hook-7wZANGJP.js";
|
|
5
5
|
const y = ({
|
|
6
6
|
clerkPubKey: d,
|
|
7
7
|
redirectToAfterSignOut: c = "/",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as ne } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import { g as Le } from "./invariant-DAFpPywt.js";
|
|
3
3
|
import { C as Ue } from "./ClientOnly-E7hGysn1.js";
|
|
4
|
-
import { j as xe, u as S } from "./hook-
|
|
5
|
-
import { C as Ce, O as re, A as R, a as Ie } from "./errors-
|
|
4
|
+
import { j as xe, u as S } from "./hook-7wZANGJP.js";
|
|
5
|
+
import { C as Ce, O as re, A as R, a as Ie } from "./errors-CPPSp5F4.js";
|
|
6
6
|
var O = { exports: {} }, je = O.exports, oe;
|
|
7
7
|
function De() {
|
|
8
8
|
return oe || (oe = 1, function(t) {
|
package/lib/zudoku.components.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { a as ft, H as Se } from "./index.esm-BFcSKCe-.js";
|
|
2
2
|
import { z as mt, J as Wt } from "./index--oeBayMa.js";
|
|
3
|
-
import { R as Kt, S as Yt, u as fe, f as me, g as Gt, L as
|
|
4
|
-
import { S as gt, r as yt, Q as Jt, n as O, t as Me, v as Ze, w as Z, x as Xt, y as es, z as ts, A as ss, B as De, D as $e, E as rs, h as ze, F as qe, G as as, e as vt, H as xt, l as ns, k as P, i as ee, I as _t, J as bt, K as is, j as H, u as os, d as ds, N as cs, Z as ls, m as us, C as hs } from "./hook-
|
|
5
|
-
import { B as kt, R as fs } from "./RouteGuard-
|
|
6
|
-
import { E as wt, S as T, a as ms, R as ps } from "./Slot-
|
|
3
|
+
import { R as Kt, S as Yt, u as fe, f as me, g as Gt, L as Te, O as pt } from "./chunk-DQRVZFIR-BblmKnHy.js";
|
|
4
|
+
import { S as gt, r as yt, Q as Jt, n as O, t as Me, v as Ze, w as Z, x as Xt, y as es, z as ts, A as ss, B as De, D as $e, E as rs, h as ze, F as qe, G as as, e as vt, H as xt, l as ns, k as P, i as ee, I as _t, J as bt, K as is, j as H, u as os, d as ds, N as cs, Z as ls, m as us, C as hs } from "./hook-7wZANGJP.js";
|
|
5
|
+
import { B as kt, R as fs } from "./RouteGuard-B7GVW4oL.js";
|
|
6
|
+
import { E as wt, S as T, a as ms, R as ps } from "./Slot-ITby_hMb.js";
|
|
7
7
|
import { j as i } from "./jsx-runtime-C5mzlN2N.js";
|
|
8
8
|
import { Button as jt } from "./ui/Button.js";
|
|
9
9
|
import { Callout as gs } from "./ui/Callout.js";
|
|
10
|
-
import { M as ys } from "./mutation-
|
|
10
|
+
import { M as ys } from "./mutation-C1XCQTQL.js";
|
|
11
11
|
import * as D from "react";
|
|
12
|
-
import { createContext as
|
|
12
|
+
import { createContext as Oe, StrictMode as Nt, useRef as Ae, useEffect as V, useState as J, useCallback as vs, Suspense as Ee, memo as Ct, Component as xs, createElement as Le, useMemo as ge, useContext as _s } from "react";
|
|
13
13
|
import * as bs from "react-dom";
|
|
14
|
-
import { CircleFadingArrowUpIcon as ks, LoaderCircleIcon as ws, ExternalLink as js, CircleXIcon as Ns, ChevronRightIcon as Cs, SearchIcon as Ss, SunIcon as
|
|
14
|
+
import { CircleFadingArrowUpIcon as ks, LoaderCircleIcon as ws, ExternalLink as js, CircleXIcon as Ns, ChevronRightIcon as Cs, SearchIcon as Ss, SunIcon as Ts, MoonIcon as Os, MenuIcon as As, PanelLeftIcon as Es } from "lucide-react";
|
|
15
15
|
import { C as pe } from "./ClientOnly-E7hGysn1.js";
|
|
16
16
|
import { c as C } from "./cn-wvCW-ho6.js";
|
|
17
|
-
import { A as Ps, s as Rs, a as Be, b as Is, H as Ms, P as Zs, c as Ds, V as $s, M as zs } from "./Markdown-
|
|
17
|
+
import { A as Ps, s as Rs, a as Be, b as Is, H as Ms, P as Zs, c as Ds, V as $s, M as zs } from "./Markdown-C5j8kKSX.js";
|
|
18
18
|
import { S as St } from "./Spinner-mNLZ6awP.js";
|
|
19
19
|
import { C as qs } from "./CategoryHeading-Cu2RwgjC.js";
|
|
20
20
|
import { isSearchPlugin as Ls, isProfileMenuPlugin as Bs, isNavigationPlugin as Fe, isAuthenticationPlugin as Fs, isEventConsumerPlugin as Qs, needsInitialization as Vs, isApiIdentityPlugin as Us, isMdxProviderPlugin as Hs, hasHead as Ws } from "./zudoku.plugins.js";
|
|
@@ -22,8 +22,8 @@ import { j as Ks } from "./joinPath-B7kNnUX4.js";
|
|
|
22
22
|
import { o as Ys } from "./objectEntries-yMIkr2mI.js";
|
|
23
23
|
import { B as _e } from "./Button-BE9IVkWV.js";
|
|
24
24
|
import { DropdownMenu as Gs, DropdownMenuTrigger as Js, DropdownMenuContent as Xs, DropdownMenuLabel as er, DropdownMenuSeparator as ye, DropdownMenuSub as tr, DropdownMenuSubTrigger as sr, DropdownMenuPortal as rr, DropdownMenuSubContent as ar, DropdownMenuItem as nr } from "./ui/DropdownMenu.js";
|
|
25
|
-
import { VisuallyHidden as
|
|
26
|
-
import { D as ir, a as or, b as
|
|
25
|
+
import { VisuallyHidden as Tt } from "@radix-ui/react-visually-hidden";
|
|
26
|
+
import { D as ir, a as or, b as Ot, c as At, d as I } from "./Drawer-BzkOKwgC.js";
|
|
27
27
|
import { u as dr } from "./react-nprogress.esm-C2MPXjiJ.js";
|
|
28
28
|
import { a as cr } from "./index-DI5SPFK9.js";
|
|
29
29
|
import { M as lr, u as ur } from "./index-QzXzw_ra.js";
|
|
@@ -570,7 +570,7 @@ function vr({ error: t }) {
|
|
|
570
570
|
function xr(t) {
|
|
571
571
|
return /* @__PURE__ */ D.createElement(Kt, { flushSync: bs.flushSync, ...t });
|
|
572
572
|
}
|
|
573
|
-
const be =
|
|
573
|
+
const be = Oe({ stagger: !1 }), _r = new pr({
|
|
574
574
|
defaultOptions: {
|
|
575
575
|
queries: {
|
|
576
576
|
staleTime: 1e3 * 60 * 5
|
|
@@ -1150,7 +1150,7 @@ class _ {
|
|
|
1150
1150
|
return this.safeParse(null).success;
|
|
1151
1151
|
}
|
|
1152
1152
|
}
|
|
1153
|
-
const Cr = /^c[^\s-]{8,}$/i, Sr = /^[0-9a-z]+$/,
|
|
1153
|
+
const Cr = /^c[^\s-]{8,}$/i, Sr = /^[0-9a-z]+$/, Tr = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Or = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Ar = /^[a-z0-9_-]{21}$/i, Er = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Pr = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?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et = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Lr = new RegExp(`^${Et}$`);
|
|
1156
1156
|
function Pt(t) {
|
|
@@ -1244,7 +1244,7 @@ class q extends _ {
|
|
|
1244
1244
|
message: n.message
|
|
1245
1245
|
}), r.dirty());
|
|
1246
1246
|
else if (n.kind === "uuid")
|
|
1247
|
-
|
|
1247
|
+
Or.test(e.data) || (a = this._getOrReturnCtx(e, a), h(a, {
|
|
1248
1248
|
validation: "uuid",
|
|
1249
1249
|
code: c.invalid_string,
|
|
1250
1250
|
message: n.message
|
|
@@ -1268,7 +1268,7 @@ class q extends _ {
|
|
|
1268
1268
|
message: n.message
|
|
1269
1269
|
}), r.dirty());
|
|
1270
1270
|
else if (n.kind === "ulid")
|
|
1271
|
-
|
|
1271
|
+
Tr.test(e.data) || (a = this._getOrReturnCtx(e, a), h(a, {
|
|
1272
1272
|
validation: "ulid",
|
|
1273
1273
|
code: c.invalid_string,
|
|
1274
1274
|
message: n.message
|
|
@@ -3509,7 +3509,7 @@ const Zt = ({ className: t }) => {
|
|
|
3509
3509
|
t === "light" && "border-border bg-muted",
|
|
3510
3510
|
t === "dark" && "group-hover:[&>svg>path]:scale-110 group-hover:[&>svg>path]:-translate-x-[1px] group-hover:[&>svg>path]:-translate-y-[1px] group-hover:rotate-[15deg] "
|
|
3511
3511
|
),
|
|
3512
|
-
children: /* @__PURE__ */ i.jsx(
|
|
3512
|
+
children: /* @__PURE__ */ i.jsx(Ts, { size: 16 })
|
|
3513
3513
|
}
|
|
3514
3514
|
),
|
|
3515
3515
|
/* @__PURE__ */ i.jsx(
|
|
@@ -3520,7 +3520,7 @@ const Zt = ({ className: t }) => {
|
|
|
3520
3520
|
t === "dark" && "border-border bg-muted [&>svg>path]:fill-white [&>svg>path]:stroke-transparent",
|
|
3521
3521
|
t === "light" && "group-hover:rotate-[-10deg] [&>svg>path]:stroke-currentColor"
|
|
3522
3522
|
),
|
|
3523
|
-
children: /* @__PURE__ */ i.jsx(
|
|
3523
|
+
children: /* @__PURE__ */ i.jsx(Os, { size: 16 })
|
|
3524
3524
|
}
|
|
3525
3525
|
)
|
|
3526
3526
|
]
|
|
@@ -3589,15 +3589,16 @@ const Zt = ({ className: t }) => {
|
|
|
3589
3589
|
/* @__PURE__ */ i.jsx($t, {})
|
|
3590
3590
|
] }),
|
|
3591
3591
|
/* @__PURE__ */ i.jsx(
|
|
3592
|
-
|
|
3592
|
+
Ot,
|
|
3593
3593
|
{
|
|
3594
3594
|
className: "lg:hidden h-[100dvh] end-0 start-auto w-[320px] rounded-none",
|
|
3595
3595
|
"aria-describedby": void 0,
|
|
3596
3596
|
children: /* @__PURE__ */ i.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none h-full flex flex-col justify-between", children: [
|
|
3597
3597
|
/* @__PURE__ */ i.jsxs("div", { children: [
|
|
3598
|
-
/* @__PURE__ */ i.jsx(
|
|
3598
|
+
/* @__PURE__ */ i.jsx(Tt, { children: /* @__PURE__ */ i.jsx(At, { children: "Navigation" }) }),
|
|
3599
3599
|
/* @__PURE__ */ i.jsx(Zt, { className: "flex p-4" }),
|
|
3600
3600
|
/* @__PURE__ */ i.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
|
|
3601
|
+
/* @__PURE__ */ i.jsx("li", { className: "empty:hidden", children: /* @__PURE__ */ i.jsx(T.Target, { name: "top-navigation-side" }) }),
|
|
3601
3602
|
/* @__PURE__ */ i.jsx("li", { children: /* @__PURE__ */ i.jsx(Dt, {}) }),
|
|
3602
3603
|
t.filter(_t(s)).map((n) => /* @__PURE__ */ i.jsx("li", { children: /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => a(!1), children: /* @__PURE__ */ i.jsx(zt, { ...n }) }) }, n.label))
|
|
3603
3604
|
] })
|
|
@@ -3615,7 +3616,7 @@ const Zt = ({ className: t }) => {
|
|
|
3615
3616
|
// eslint-disable-next-line react/no-array-index-key
|
|
3616
3617
|
/* @__PURE__ */ i.jsx(oe, { item: e }, s)
|
|
3617
3618
|
)) }) })
|
|
3618
|
-
] }, t.label) : /* @__PURE__ */ i.jsx(
|
|
3619
|
+
] }, t.label) : /* @__PURE__ */ i.jsx(Te, { to: t.path ?? "", children: /* @__PURE__ */ i.jsxs(nr, { className: "flex gap-2", children: [
|
|
3619
3620
|
t.icon && /* @__PURE__ */ i.jsx(t.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
|
|
3620
3621
|
t.label
|
|
3621
3622
|
] }, t.label) }), qt = Ct(function() {
|
|
@@ -3623,7 +3624,7 @@ const Zt = ({ className: t }) => {
|
|
|
3623
3624
|
return /* @__PURE__ */ i.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
|
|
3624
3625
|
/* @__PURE__ */ i.jsx(aa, {}),
|
|
3625
3626
|
/* @__PURE__ */ i.jsx("div", { className: k, children: /* @__PURE__ */ i.jsxs("div", { className: "max-w-screen-2xl mx-auto flex relative items-center justify-between h-(--top-header-height) px-4 lg:px-8 border-transparent", children: [
|
|
3626
|
-
/* @__PURE__ */ i.jsx("div", { className: "flex", children: /* @__PURE__ */ i.jsx(
|
|
3627
|
+
/* @__PURE__ */ i.jsx("div", { className: "flex", children: /* @__PURE__ */ i.jsx(Te, { to: "/", children: /* @__PURE__ */ i.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
3627
3628
|
o?.logo && /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
3628
3629
|
/* @__PURE__ */ i.jsx(
|
|
3629
3630
|
"img",
|
|
@@ -3797,12 +3798,12 @@ const ma = ({
|
|
|
3797
3798
|
/* @__PURE__ */ i.jsx(T.Target, { name: "navigation-after" })
|
|
3798
3799
|
] }),
|
|
3799
3800
|
/* @__PURE__ */ i.jsx(
|
|
3800
|
-
|
|
3801
|
+
Ot,
|
|
3801
3802
|
{
|
|
3802
3803
|
className: "lg:hidden h-[100dvh] start-0 w-[320px] rounded-none",
|
|
3803
3804
|
"aria-describedby": void 0,
|
|
3804
3805
|
children: /* @__PURE__ */ i.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
3805
|
-
/* @__PURE__ */ i.jsx(
|
|
3806
|
+
/* @__PURE__ */ i.jsx(Tt, { children: /* @__PURE__ */ i.jsx(At, { children: "Sidebar" }) }),
|
|
3806
3807
|
e.map((s) => /* @__PURE__ */ i.jsx(
|
|
3807
3808
|
Be,
|
|
3808
3809
|
{
|
|
@@ -3970,7 +3971,7 @@ const ma = ({
|
|
|
3970
3971
|
category: t
|
|
3971
3972
|
}
|
|
3972
3973
|
);
|
|
3973
|
-
}, ba =
|
|
3974
|
+
}, ba = Oe(null), xe = {
|
|
3974
3975
|
didCatch: !1,
|
|
3975
3976
|
error: null
|
|
3976
3977
|
};
|
|
@@ -4124,7 +4125,7 @@ const ie = globalThis;
|
|
|
4124
4125
|
(!ie.requestIdleCallback || !ie.cancelIdleCallback) && (ie.requestIdleCallback = (t) => setTimeout(t, 1), ie.cancelIdleCallback = clearTimeout);
|
|
4125
4126
|
const Qt = {
|
|
4126
4127
|
Header: qt
|
|
4127
|
-
}, Sa =
|
|
4128
|
+
}, Sa = Oe(Qt), Ta = Sa.Provider, Oa = () => {
|
|
4128
4129
|
const t = fe(), e = P(), s = Ae(void 0);
|
|
4129
4130
|
return V(() => {
|
|
4130
4131
|
e.emitEvent("location", {
|
|
@@ -4167,8 +4168,8 @@ const Vt = Ct(
|
|
|
4167
4168
|
return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
4168
4169
|
j,
|
|
4169
4170
|
/* @__PURE__ */ i.jsx(be.Provider, { value: u, children: /* @__PURE__ */ i.jsxs(Aa, { context: ht, children: [
|
|
4170
|
-
/* @__PURE__ */ i.jsx(
|
|
4171
|
-
/* @__PURE__ */ i.jsx(ms, { slots: e.slots ?? e.UNSAFE_slotlets, children: /* @__PURE__ */ i.jsx(lr, { components: a, children: /* @__PURE__ */ i.jsx(Wt, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ i.jsx(
|
|
4171
|
+
/* @__PURE__ */ i.jsx(Oa, {}),
|
|
4172
|
+
/* @__PURE__ */ i.jsx(ms, { slots: e.slots ?? e.UNSAFE_slotlets, children: /* @__PURE__ */ i.jsx(lr, { components: a, children: /* @__PURE__ */ i.jsx(Wt, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ i.jsx(Ta, { value: s, children: /* @__PURE__ */ i.jsx($s, { children: t ?? /* @__PURE__ */ i.jsx(pt, {}) }) }) }) }) })
|
|
4172
4173
|
] }) })
|
|
4173
4174
|
] });
|
|
4174
4175
|
}
|
|
@@ -4176,7 +4177,7 @@ const Vt = Ct(
|
|
|
4176
4177
|
Vt.displayName = "ZudokoInner";
|
|
4177
4178
|
const Ut = (t) => /* @__PURE__ */ i.jsx(ka, { FallbackComponent: Ca, children: /* @__PURE__ */ i.jsx(Vt, { ...t }) });
|
|
4178
4179
|
Ut.displayName = "Zudoku";
|
|
4179
|
-
const nn = ya, on = ps, dn = vr, cn = br, ln = kr, un = fs, hn = Se, fn = _a, mn = gs, pn = zs, gn = St, yn = pe, vn = jt, xn =
|
|
4180
|
+
const nn = ya, on = ps, dn = vr, cn = br, ln = kr, un = fs, hn = Se, fn = _a, mn = gs, pn = zs, gn = St, yn = pe, vn = jt, xn = Te, _n = Jr, bn = Ut, kn = ur, Ea = P, wn = ee, jn = us, Nn = hs, Cn = mt;
|
|
4180
4181
|
export {
|
|
4181
4182
|
cn as Bootstrap,
|
|
4182
4183
|
ln as BootstrapStatic,
|