zudoku 0.41.3 → 0.41.5
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/main.js +3 -1
- package/dist/app/main.js.map +1 -1
- package/dist/lib/components/BuildCheck.js +18 -3
- package/dist/lib/components/BuildCheck.js.map +1 -1
- package/lib/{AuthenticationPlugin-CJOFRBk3.js → AuthenticationPlugin-DPCuR3xm.js} +3 -3
- package/lib/{AuthenticationPlugin-CJOFRBk3.js.map → AuthenticationPlugin-DPCuR3xm.js.map} +1 -1
- package/lib/{Markdown-DqDbGCj2.js → Markdown-mFpg_n9p.js} +3 -3
- package/lib/{Markdown-DqDbGCj2.js.map → Markdown-mFpg_n9p.js.map} +1 -1
- package/lib/{MdxPage-B7MyVLV5.js → MdxPage-CH19q_hk.js} +7 -7
- package/lib/{MdxPage-B7MyVLV5.js.map → MdxPage-CH19q_hk.js.map} +1 -1
- package/lib/{OasProvider-C15HpDwF.js → OasProvider-n805wUHH.js} +4 -4
- package/lib/{OasProvider-C15HpDwF.js.map → OasProvider-n805wUHH.js.map} +1 -1
- package/lib/{OperationList-j4pFeiTb.js → OperationList-BAhWsh8C.js} +10 -10
- package/lib/{OperationList-j4pFeiTb.js.map → OperationList-BAhWsh8C.js.map} +1 -1
- package/lib/{Pagination-9TA5cwCh.js → Pagination-DAjXddnj.js} +3 -3
- package/lib/{Pagination-9TA5cwCh.js.map → Pagination-DAjXddnj.js.map} +1 -1
- package/lib/{RouteGuard-BZ_VsiXc.js → RouteGuard-DRtEu9nh.js} +3 -3
- package/lib/{RouteGuard-BZ_VsiXc.js.map → RouteGuard-DRtEu9nh.js.map} +1 -1
- package/lib/{SchemaList-DRck1myS.js → SchemaList-BJ0GDIcI.js} +6 -6
- package/lib/{SchemaList-DRck1myS.js.map → SchemaList-BJ0GDIcI.js.map} +1 -1
- package/lib/{SchemaView-DwlVvFfp.js → SchemaView-J7Srn-Iy.js} +2 -2
- package/lib/{SchemaView-DwlVvFfp.js.map → SchemaView-J7Srn-Iy.js.map} +1 -1
- package/lib/{Select-Dg5R11Dx.js → Select-CT64Ou40.js} +3 -3
- package/lib/{Select-Dg5R11Dx.js.map → Select-CT64Ou40.js.map} +1 -1
- package/lib/{SlotletProvider-p4XaFFOh.js → SlotletProvider-CS_nO-XT.js} +4 -4
- package/lib/{SlotletProvider-p4XaFFOh.js.map → SlotletProvider-CS_nO-XT.js.map} +1 -1
- package/lib/{Toc-BVdRaIC0.js → Toc-D_tV8_Ri.js} +2 -2
- package/lib/{Toc-BVdRaIC0.js.map → Toc-D_tV8_Ri.js.map} +1 -1
- package/lib/{chunk-KNED5TY2-BUPjb3LQ.js → chunk-BAXFHI7N-BVBOl9s0.js} +125 -121
- package/lib/chunk-BAXFHI7N-BVBOl9s0.js.map +1 -0
- package/lib/{hook-pPrHCB6G.js → hook-CldJlP5c.js} +2 -2
- package/lib/{hook-pPrHCB6G.js.map → hook-CldJlP5c.js.map} +1 -1
- package/lib/index-BeYI7Btu.js +5031 -0
- package/lib/index-BeYI7Btu.js.map +1 -0
- package/lib/{index-Dk7l9To6.js → index-Dbvpddzr.js} +7 -7
- package/lib/{index-Dk7l9To6.js.map → index-Dbvpddzr.js.map} +1 -1
- package/lib/{mutation-Csa9eQDM.js → mutation-DBQh7AOZ.js} +2 -2
- package/lib/{mutation-Csa9eQDM.js.map → mutation-DBQh7AOZ.js.map} +1 -1
- package/lib/{useExposedProps-Dq2yUQIG.js → useExposedProps-DbIZXspi.js} +2 -2
- package/lib/{useExposedProps-Dq2yUQIG.js.map → useExposedProps-DbIZXspi.js.map} +1 -1
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +3 -3
- package/lib/zudoku.components.js +6 -6
- package/lib/zudoku.hooks.js +1 -1
- package/lib/zudoku.plugin-api-catalog.js +5 -5
- package/lib/zudoku.plugin-api-keys.js +4 -4
- package/lib/zudoku.plugin-custom-pages.js +2 -2
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +3 -3
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +3 -3
- package/package.json +4 -4
- package/src/app/main.tsx +7 -3
- package/src/lib/components/BuildCheck.tsx +20 -7
- package/lib/chunk-KNED5TY2-BUPjb3LQ.js.map +0 -1
- package/lib/index-BPmAnNGI.js +0 -2054
- package/lib/index-BPmAnNGI.js.map +0 -1
|
@@ -3,7 +3,7 @@ var j = (i) => {
|
|
|
3
3
|
};
|
|
4
4
|
var y = (i, t, s) => t.has(i) || j("Cannot " + s);
|
|
5
5
|
var e = (i, t, s) => (y(i, t, "read from private field"), s ? s.call(i) : t.get(i)), l = (i, t, s) => t.has(i) ? j("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, s), p = (i, t, s, a) => (y(i, t, "write to private field"), a ? a.call(i, s) : t.set(i, s), s), h = (i, t, s) => (y(i, t, "access private method"), s);
|
|
6
|
-
import { R as q, c as z, n as B } from "./hook-
|
|
6
|
+
import { R as q, c as z, n as B } from "./hook-CldJlP5c.js";
|
|
7
7
|
var r, o, d, u, c, U, L = (U = class extends q {
|
|
8
8
|
constructor(t) {
|
|
9
9
|
super();
|
|
@@ -208,4 +208,4 @@ export {
|
|
|
208
208
|
L as M,
|
|
209
209
|
H as g
|
|
210
210
|
};
|
|
211
|
-
//# sourceMappingURL=mutation-
|
|
211
|
+
//# sourceMappingURL=mutation-DBQh7AOZ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutation-Csa9eQDM.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","_a","Removable","config","__privateAdd","_Mutation_instances","_observers","_mutationCache","_retryer","__privateSet","getDefaultState","options","observer","__privateGet","x","variables","onContinue","__privateMethod","dispatch_fn","createRetryer","failureCount","error","restored","isPaused","_b","context","_d","_c","data","_f","_e","_h","_g","_j","_i","_l","_k","_n","_m","_p","_o","_r","_q","_t","_s","action","reducer","state","notifyManager"],"mappings":";;;;;;sBAIIA,KAAWC,IAAA,cAAcC,EAAU;AAAA,EAIrC,YAAYC,GAAQ;AAClB,UAAO;AALI,IAAAC,EAAA,MAAAC;AACb,IAAAD,EAAA,MAAAE;AACA,IAAAF,EAAA,MAAAG;AACA,IAAAH,EAAA,MAAAI;AAGE,SAAK,aAAaL,EAAO,YACzBM,EAAA,MAAKF,GAAiBJ,EAAO,gBAC7BM,EAAA,MAAKH,GAAa,CAAE,IACpB,KAAK,QAAQH,EAAO,SAASO,EAAiB,GAC9C,KAAK,WAAWP,EAAO,OAAO,GAC9B,KAAK,WAAY;AAAA,EACrB;AAAA,EACE,WAAWQ,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,IAAKC,EAAA,MAAKP,GAAW,SAASM,CAAQ,MACpCC,EAAA,MAAKP,GAAW,KAAKM,CAAQ,GAC7B,KAAK,eAAgB,GACrBC,EAAA,MAAKN,GAAe,OAAO;AAAA,MACzB,MAAM;AAAA,MACN,UAAU;AAAA,MACV,UAAAK;AAAA,IACR,CAAO;AAAA,EAEP;AAAA,EACE,eAAeA,GAAU;AACvB,IAAAH,EAAA,MAAKH,GAAaO,EAAA,MAAKP,GAAW,OAAO,CAACQ,MAAMA,MAAMF,CAAQ,IAC9D,KAAK,WAAY,GACjBC,EA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AA,UACN,cAAc;AAAA,UACd,eAAe;AAAA,UACf,OAAO;AAAA,UACP,UAAUA,EAAO;AAAA,UACjB,QAAQ;AAAA,UACR,WAAWA,EAAO;AAAA,UAClB,aAAa,KAAK,IAAG;AAAA,QACtB;AAAA,MACH,KAAK;AACH,eAAO;AAAA,UACL,GAAGE;AAAA,UACH,MAAMF,EAAO;AAAA,UACb,cAAc;AAAA,UACd,eAAe;AAAA,UACf,OAAO;AAAA,UACP,QAAQ;AAAA,UACR,UAAU;AAAA,QACX;AAAA,MACH,KAAK;AACH,eAAO;AAAA,UACL,GAAGE;AAAA,UACH,MAAM;AAAA,UACN,OAAOF,EAAO;AAAA,UACd,cAAcE,EAAM,eAAe;AAAA,UACnC,eAAeF,EAAO;AAAA,UACtB,UAAU;AAAA,UACV,QAAQ;AAAA,QACT;AAAA,IACX;AAAA,EACK;AACD,OAAK,QAAQC,EAAQ,KAAK,KAAK,GAC/BE,EAAc,MAAM,MAAM;AACxB,IAAAnC,EAAA,MAAKP,GAAW,QAAQ,CAACM,MAAa;AACpC,MAAAA,EAAS,iBAAiBiC,CAAM;AAAA,IACxC,CAAO,GACDhC,EAAA,MAAKN,GAAe,OAAO;AAAA,MACzB,UAAU;AAAA,MACV,MAAM;AAAA,MACN,QAAAsC;AAAA,IACR,CAAO;AAAA,EACP,CAAK;AACL,GAtNe5C;AAwNf,SAASS,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-DBQh7AOZ.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","_a","Removable","config","__privateAdd","_Mutation_instances","_observers","_mutationCache","_retryer","__privateSet","getDefaultState","options","observer","__privateGet","x","variables","onContinue","__privateMethod","dispatch_fn","createRetryer","failureCount","error","restored","isPaused","_b","context","_d","_c","data","_f","_e","_h","_g","_j","_i","_l","_k","_n","_m","_p","_o","_r","_q","_t","_s","action","reducer","state","notifyManager"],"mappings":";;;;;;sBAIIA,KAAWC,IAAA,cAAcC,EAAU;AAAA,EAIrC,YAAYC,GAAQ;AAClB,UAAO;AALI,IAAAC,EAAA,MAAAC;AACb,IAAAD,EAAA,MAAAE;AACA,IAAAF,EAAA,MAAAG;AACA,IAAAH,EAAA,MAAAI;AAGE,SAAK,aAAaL,EAAO,YACzBM,EAAA,MAAKF,GAAiBJ,EAAO,gBAC7BM,EAAA,MAAKH,GAAa,CAAE,IACpB,KAAK,QAAQH,EAAO,SAASO,EAAiB,GAC9C,KAAK,WAAWP,EAAO,OAAO,GAC9B,KAAK,WAAY;AAAA,EACrB;AAAA,EACE,WAAWQ,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,IAAKC,EAAA,MAAKP,GAAW,SAASM,CAAQ,MACpCC,EAAA,MAAKP,GAAW,KAAKM,CAAQ,GAC7B,KAAK,eAAgB,GACrBC,EAAA,MAAKN,GAAe,OAAO;AAAA,MACzB,MAAM;AAAA,MACN,UAAU;AAAA,MACV,UAAAK;AAAA,IACR,CAAO;AAAA,EAEP;AAAA,EACE,eAAeA,GAAU;AACvB,IAAAH,EAAA,MAAKH,GAA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AA,MACH,KAAK;AACH,eAAO;AAAA,UACL,GAAGA;AAAA,UACH,SAASF,EAAO;AAAA,UAChB,MAAM;AAAA,UACN,cAAc;AAAA,UACd,eAAe;AAAA,UACf,OAAO;AAAA,UACP,UAAUA,EAAO;AAAA,UACjB,QAAQ;AAAA,UACR,WAAWA,EAAO;AAAA,UAClB,aAAa,KAAK,IAAG;AAAA,QACtB;AAAA,MACH,KAAK;AACH,eAAO;AAAA,UACL,GAAGE;AAAA,UACH,MAAMF,EAAO;AAAA,UACb,cAAc;AAAA,UACd,eAAe;AAAA,UACf,OAAO;AAAA,UACP,QAAQ;AAAA,UACR,UAAU;AAAA,QACX;AAAA,MACH,KAAK;AACH,eAAO;AAAA,UACL,GAAGE;AAAA,UACH,MAAM;AAAA,UACN,OAAOF,EAAO;AAAA,UACd,cAAcE,EAAM,eAAe;AAAA,UACnC,eAAeF,EAAO;AAAA,UACtB,UAAU;AAAA,UACV,QAAQ;AAAA,QACT;AAAA,IACX;AAAA,EACK;AACD,OAAK,QAAQC,EAAQ,KAAK,KAAK,GAC/BE,EAAc,MAAM,MAAM;AACxB,IAAAnC,EAAA,MAAKP,GAAW,QAAQ,CAACM,MAAa;AACpC,MAAAA,EAAS,iBAAiBiC,CAAM;AAAA,IACxC,CAAO,GACDhC,EAAA,MAAKN,GAAe,OAAO;AAAA,MACzB,UAAU;AAAA,MACV,MAAM;AAAA,MACN,QAAAsC;AAAA,IACR,CAAO;AAAA,EACP,CAAK;AACL,GAtNe5C;AAwNf,SAASS,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,4 +1,4 @@
|
|
|
1
|
-
import { u as t, a as c, b as n, c as u } from "./chunk-
|
|
1
|
+
import { u as t, a as c, b as n, c as u } from "./chunk-BAXFHI7N-BVBOl9s0.js";
|
|
2
2
|
const i = () => {
|
|
3
3
|
const a = t(), s = c(), [e, o] = n(), r = u();
|
|
4
4
|
return { location: a, navigate: s, params: r, searchParams: e, setSearchParams: o };
|
|
@@ -6,4 +6,4 @@ const i = () => {
|
|
|
6
6
|
export {
|
|
7
7
|
i as u
|
|
8
8
|
};
|
|
9
|
-
//# sourceMappingURL=useExposedProps-
|
|
9
|
+
//# sourceMappingURL=useExposedProps-DbIZXspi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useExposedProps-
|
|
1
|
+
{"version":3,"file":"useExposedProps-DbIZXspi.js","sources":["../src/lib/util/useExposedProps.tsx"],"sourcesContent":["import {\n useLocation,\n useNavigate,\n useParams,\n useSearchParams,\n} from \"react-router\";\nimport type { ExposedComponentProps } from \"../components/SlotletProvider.js\";\n\nexport const useExposedProps = (): ExposedComponentProps => {\n const location = useLocation();\n const navigate = useNavigate();\n const [searchParams, setSearchParams] = useSearchParams();\n const params = useParams();\n\n return { location, navigate, params, searchParams, setSearchParams };\n};\n"],"names":["useExposedProps","location","useLocation","navigate","useNavigate","searchParams","setSearchParams","useSearchParams","params","useParams"],"mappings":";AAQO,MAAMA,IAAkB,MAA6B;AAC1D,QAAMC,IAAWC,EAAY,GACvBC,IAAWC,EAAY,GACvB,CAACC,GAAcC,CAAe,IAAIC,EAAgB,GAClDC,IAASC,EAAU;AAEzB,SAAO,EAAE,UAAAR,GAAU,UAAAE,GAAU,QAAAK,GAAQ,cAAAH,GAAc,iBAAAC,EAAgB;AACrE;"}
|
package/lib/zudoku.auth-auth0.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var r = Object.defineProperty;
|
|
2
2
|
var c = (t, s, e) => s in t ? r(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e;
|
|
3
3
|
var n = (t, s, e) => c(t, typeof s != "symbol" ? s + "" : s, e);
|
|
4
|
-
import { u } from "./hook-
|
|
4
|
+
import { u } from "./hook-CldJlP5c.js";
|
|
5
5
|
import { OpenIDAuthenticationProvider as d } from "./zudoku.auth-openid.js";
|
|
6
6
|
class h extends d {
|
|
7
7
|
constructor(e) {
|
package/lib/zudoku.auth-clerk.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var g = Object.defineProperty;
|
|
2
2
|
var m = (n, t, s) => t in n ? g(n, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[t] = s;
|
|
3
3
|
var c = (n, t, s) => m(n, typeof t != "symbol" ? t + "" : t, s);
|
|
4
|
-
import { A as h } from "./AuthenticationPlugin-
|
|
5
|
-
import { u as l } from "./hook-
|
|
4
|
+
import { A as h } from "./AuthenticationPlugin-DPCuR3xm.js";
|
|
5
|
+
import { u as l } from "./hook-CldJlP5c.js";
|
|
6
6
|
class p extends h {
|
|
7
7
|
constructor(s) {
|
|
8
8
|
super();
|
|
@@ -4,9 +4,9 @@ var w = (t, e, n) => Le(t, typeof e != "symbol" ? e + "" : e, n);
|
|
|
4
4
|
import { j as B } from "./jsx-runtime-C5mzlN2N.js";
|
|
5
5
|
import { g as xe } from "./_commonjsHelpers-B4e78b8K.js";
|
|
6
6
|
import { C as Ie } from "./ClientOnly-E7hGysn1.js";
|
|
7
|
-
import { d as je, f as ie, u as L } from "./hook-
|
|
8
|
-
import { A as Je } from "./AuthenticationPlugin-
|
|
9
|
-
import { N as Oe } from "./chunk-
|
|
7
|
+
import { d as je, f as ie, u as L } from "./hook-CldJlP5c.js";
|
|
8
|
+
import { A as Je } from "./AuthenticationPlugin-DPCuR3xm.js";
|
|
9
|
+
import { N as Oe } from "./chunk-BAXFHI7N-BVBOl9s0.js";
|
|
10
10
|
import { Z as ze } from "./invariant-Caa8-XvF.js";
|
|
11
11
|
var D = { exports: {} }, De = D.exports, ae;
|
|
12
12
|
function Ne() {
|
package/lib/zudoku.components.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./RouteGuard-
|
|
1
|
+
import "./RouteGuard-DRtEu9nh.js";
|
|
2
2
|
import "./index-DwT-v3zK.js";
|
|
3
|
-
import "./chunk-
|
|
4
|
-
import "./hook-
|
|
5
|
-
import "./SlotletProvider-
|
|
6
|
-
import { e as d, f as k, n as l, B as S, C as h, j as B, l as c, H as E, d as H, L, M, g as R, R as Z, S as f, k as g, i as y, Z as A, a as b, h as j, c as v, m as w, b as x } from "./index-
|
|
3
|
+
import "./chunk-BAXFHI7N-BVBOl9s0.js";
|
|
4
|
+
import "./hook-CldJlP5c.js";
|
|
5
|
+
import "./SlotletProvider-CS_nO-XT.js";
|
|
6
|
+
import { e as d, f as k, n as l, B as S, C as h, j as B, l as c, H as E, d as H, L, M, g as R, R as Z, S as f, k as g, i as y, Z as A, a as b, h as j, c as v, m as w, b as x } from "./index-BeYI7Btu.js";
|
|
7
7
|
import "./ui/Button.js";
|
|
8
8
|
import "./ui/Callout.js";
|
|
9
9
|
import "./ClientOnly-E7hGysn1.js";
|
|
10
|
-
import "./Markdown-
|
|
10
|
+
import "./Markdown-mFpg_n9p.js";
|
|
11
11
|
import "./Spinner-mNLZ6awP.js";
|
|
12
12
|
export {
|
|
13
13
|
d as Bootstrap,
|
package/lib/zudoku.hooks.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z as f } from "./index-DwT-v3zK.js";
|
|
2
2
|
import { useState as m, useEffect as i } from "react";
|
|
3
|
-
import { e as a } from "./hook-
|
|
3
|
+
import { e as a } from "./hook-CldJlP5c.js";
|
|
4
4
|
function d(e, t) {
|
|
5
5
|
const s = a(), [n, o] = m();
|
|
6
6
|
return i(() => s.addEventListener(e, (...u) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { j as s } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import { s as h } from "./index-LNp6rxyU.js";
|
|
3
|
-
import { d as b, m as x } from "./chunk-
|
|
4
|
-
import { u as j, d as y, f as p } from "./hook-
|
|
5
|
-
import { H as v } from "./RouteGuard-
|
|
6
|
-
import { L as N } from "./index-
|
|
7
|
-
import { H as S, M as w } from "./Markdown-
|
|
3
|
+
import { d as b, m as x } from "./chunk-BAXFHI7N-BVBOl9s0.js";
|
|
4
|
+
import { u as j, d as y, f as p } from "./hook-CldJlP5c.js";
|
|
5
|
+
import { H as v } from "./RouteGuard-DRtEu9nh.js";
|
|
6
|
+
import { L as N } from "./index-BeYI7Btu.js";
|
|
7
|
+
import { H as S, M as w } from "./Markdown-mFpg_n9p.js";
|
|
8
8
|
const H = ({
|
|
9
9
|
items: r,
|
|
10
10
|
filterCatalogItems: o = (n) => n,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import { RotateCwIcon as j, TrashIcon as v, EyeOffIcon as w, EyeIcon as K, CheckIcon as b, CopyIcon as k, FileKey2Icon as N } from "lucide-react";
|
|
3
|
-
import { D as I, S as x, R as S } from "./SlotletProvider-
|
|
3
|
+
import { D as I, S as x, R as S } from "./SlotletProvider-CS_nO-XT.js";
|
|
4
4
|
import { i as c } from "./invariant-Caa8-XvF.js";
|
|
5
|
-
import { e as h, g, l as A, d as C } from "./hook-
|
|
6
|
-
import { u as d, S as E, a as P, b as D, c as q, d as R, e as p } from "./Select-
|
|
5
|
+
import { e as h, g, l as A, d as C } from "./hook-CldJlP5c.js";
|
|
6
|
+
import { u as d, S as E, a as P, b as D, c as q, d as R, e as p } from "./Select-CT64Ou40.js";
|
|
7
7
|
import { a as O } from "./index.esm-D2ZUREQN.js";
|
|
8
|
-
import { a as z, L as u, O as F } from "./chunk-
|
|
8
|
+
import { a as z, L as u, O as F } from "./chunk-BAXFHI7N-BVBOl9s0.js";
|
|
9
9
|
import { Button as l } from "./ui/Button.js";
|
|
10
10
|
import { Input as T } from "./ui/Input.js";
|
|
11
11
|
import { useState as y } from "react";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as o } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import a from "react";
|
|
3
|
-
import { P as n } from "./Markdown-
|
|
3
|
+
import { P as n } from "./Markdown-mFpg_n9p.js";
|
|
4
4
|
import { c } from "./cn-qaFjX9_3.js";
|
|
5
|
-
import { u as p } from "./useExposedProps-
|
|
5
|
+
import { u as p } from "./useExposedProps-DbIZXspi.js";
|
|
6
6
|
const u = ({
|
|
7
7
|
element: t,
|
|
8
8
|
render: s,
|
|
@@ -53,7 +53,7 @@ const P = (e) => ({
|
|
|
53
53
|
const u = {
|
|
54
54
|
path: r,
|
|
55
55
|
lazy: async () => {
|
|
56
|
-
const { MdxPage: p } = await import("./MdxPage-
|
|
56
|
+
const { MdxPage: p } = await import("./MdxPage-CH19q_hk.js"), { default: f, ...l } = await i();
|
|
57
57
|
return {
|
|
58
58
|
element: /* @__PURE__ */ d.jsx(
|
|
59
59
|
p,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import "lucide-react";
|
|
3
|
-
import "./chunk-
|
|
4
|
-
import "./hook-
|
|
3
|
+
import "./chunk-BAXFHI7N-BVBOl9s0.js";
|
|
4
|
+
import "./hook-CldJlP5c.js";
|
|
5
5
|
import "./ui/Button.js";
|
|
6
|
-
import { U as a, o as e } from "./index-
|
|
6
|
+
import { U as a, o as e } from "./index-Dbvpddzr.js";
|
|
7
7
|
export {
|
|
8
8
|
a as UNTAGGED_PATH,
|
|
9
9
|
e as openApiPlugin
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import { C as k } from "./ClientOnly-E7hGysn1.js";
|
|
3
3
|
import { VisuallyHidden as v } from "@radix-ui/react-visually-hidden";
|
|
4
|
-
import { u as N, e as j, m as S, o as _, f as L } from "./hook-
|
|
4
|
+
import { u as N, e as j, m as S, o as _, f as L } from "./hook-CldJlP5c.js";
|
|
5
5
|
import { useRef as b, useLayoutEffect as T, useState as w } from "react";
|
|
6
6
|
import { B as E } from "./Button-BBNrKpQd.js";
|
|
7
7
|
import { C as R, a as p, b as x, c as F, d as I, e as q, f as P } from "./Callout-D3Ja4OPX.js";
|
|
8
8
|
import { b as $ } from "./Dialog-ByYz4ABw.js";
|
|
9
|
-
import { S as A } from "./RouteGuard-
|
|
9
|
+
import { S as A } from "./RouteGuard-DRtEu9nh.js";
|
|
10
10
|
import { BracketsIcon as D, FileTextIcon as O } from "lucide-react";
|
|
11
|
-
import { a as B, L as g } from "./chunk-
|
|
11
|
+
import { a as B, L as g } from "./chunk-BAXFHI7N-BVBOl9s0.js";
|
|
12
12
|
const U = async ({
|
|
13
13
|
search: r,
|
|
14
14
|
options: n,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zudoku",
|
|
3
|
-
"version": "0.41.
|
|
3
|
+
"version": "0.41.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"homepage": "https://zudoku.dev",
|
|
6
6
|
"repository": {
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
"react-error-boundary": "5.0.0",
|
|
209
209
|
"react-hook-form": "7.55.0",
|
|
210
210
|
"react-is": "19.1.0",
|
|
211
|
-
"react-router": "7.5.
|
|
211
|
+
"react-router": "7.5.2",
|
|
212
212
|
"rehype-mdx-import-media": "1.2.0",
|
|
213
213
|
"rehype-raw": "7.0.0",
|
|
214
214
|
"rehype-slug": "6.0.0",
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
"remark-mdx-frontmatter": "5.1.0",
|
|
221
221
|
"remark-parse": "^11.0.0",
|
|
222
222
|
"remark-rehype": "^11.1.2",
|
|
223
|
-
"rollup": "4.40.
|
|
223
|
+
"rollup": "4.40.1",
|
|
224
224
|
"semver": "7.7.1",
|
|
225
225
|
"sitemap": "8.0.0",
|
|
226
226
|
"spin-delay": "2.0.1",
|
|
@@ -271,7 +271,7 @@
|
|
|
271
271
|
"react-dom": ">=19"
|
|
272
272
|
},
|
|
273
273
|
"optionalDependencies": {
|
|
274
|
-
"@clerk/clerk-js": "^5.
|
|
274
|
+
"@clerk/clerk-js": "^5.63.1",
|
|
275
275
|
"@sentry/react": "^9.12.0",
|
|
276
276
|
"@supabase/supabase-js": "^2.49.4"
|
|
277
277
|
},
|
package/src/app/main.tsx
CHANGED
|
@@ -129,9 +129,13 @@ export const getRoutesByConfig = (config: ZudokuConfig): RouteObject[] => {
|
|
|
129
129
|
{
|
|
130
130
|
element: (
|
|
131
131
|
<Zudoku {...options}>
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
132
|
+
<BuildCheck
|
|
133
|
+
buildId={
|
|
134
|
+
import.meta.env.IS_ZUPLO && import.meta.env.ZUPLO_BUILD_ID
|
|
135
|
+
? import.meta.env.ZUPLO_BUILD_ID
|
|
136
|
+
: undefined
|
|
137
|
+
}
|
|
138
|
+
/>
|
|
135
139
|
<Layout />
|
|
136
140
|
</Zudoku>
|
|
137
141
|
),
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { useQuery } from "@tanstack/react-query";
|
|
2
2
|
import { CircleFadingArrowUpIcon, LoaderCircleIcon } from "lucide-react";
|
|
3
|
+
import { z } from "zod";
|
|
3
4
|
import { Button } from "../ui/Button.js";
|
|
4
5
|
|
|
6
|
+
const BuildStatusSchema = z.object({
|
|
7
|
+
buildId: z.string(),
|
|
8
|
+
timestamp: z.string(),
|
|
9
|
+
status: z.enum(["in-progress", "success", "failed"]),
|
|
10
|
+
});
|
|
11
|
+
|
|
5
12
|
export const BuildCheck = ({
|
|
6
13
|
buildId,
|
|
7
14
|
endpoint = "/__zuplo/docs",
|
|
@@ -13,19 +20,25 @@ export const BuildCheck = ({
|
|
|
13
20
|
queryKey: ["zuplo-build-check", buildId, endpoint],
|
|
14
21
|
refetchInterval: 2000,
|
|
15
22
|
enabled: !!buildId,
|
|
23
|
+
retry: false,
|
|
16
24
|
queryFn: () =>
|
|
17
|
-
fetch(endpoint
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
25
|
+
fetch(endpoint, { signal: AbortSignal.timeout(2000) })
|
|
26
|
+
.then((res) => {
|
|
27
|
+
if (!res.ok) throw new Error("Failed to fetch build status");
|
|
28
|
+
return res.json();
|
|
29
|
+
})
|
|
30
|
+
.then((data) => BuildStatusSchema.parse(data)),
|
|
22
31
|
});
|
|
23
32
|
|
|
24
|
-
if (
|
|
33
|
+
if (
|
|
34
|
+
buildStatusQuery.isError ||
|
|
35
|
+
!buildStatusQuery.data ||
|
|
36
|
+
buildStatusQuery.data.buildId === buildId
|
|
37
|
+
) {
|
|
25
38
|
return null;
|
|
26
39
|
}
|
|
27
40
|
|
|
28
|
-
const isCompleted = buildStatusQuery.data
|
|
41
|
+
const isCompleted = buildStatusQuery.data.status === "success";
|
|
29
42
|
|
|
30
43
|
return (
|
|
31
44
|
<div className="fixed flex flex-col gap-3 p-4 rounded-xl w-96 border z-20 bg-background left-0 right-0 top-4 mx-auto shadow-lg">
|