@simpleapps-com/augur-web 2.0.20 → 2.0.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.
@@ -0,0 +1,77 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
2
+ "use client";
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+ var _chunkXO3LJ5FDcjs = require('./chunk-XO3LJ5FD.cjs');
11
+
12
+ // src/payment-modal.tsx
13
+ var _react = require('react'); var React = _interopRequireWildcard(_react);
14
+ var _jsxruntime = require('react/jsx-runtime');
15
+ function extractBin(data) {
16
+ if (typeof data === "string") {
17
+ const match = /[?&]Bin=([^&]+)/.exec(data);
18
+ return _optionalChain([match, 'optionalAccess', _ => _[1]]) || void 0;
19
+ }
20
+ if (typeof data === "object" && data !== null) {
21
+ const obj = data;
22
+ for (const key of ["Bin", "bin", "CardBIN", "cardBin"]) {
23
+ if (typeof obj[key] === "string" && obj[key]) {
24
+ return obj[key];
25
+ }
26
+ }
27
+ if (typeof obj["data"] === "object" && obj["data"] !== null) {
28
+ const nested = obj["data"];
29
+ if (typeof nested["Bin"] === "string" && nested["Bin"]) {
30
+ return nested["Bin"];
31
+ }
32
+ }
33
+ }
34
+ return void 0;
35
+ }
36
+ function PaymentModal({
37
+ open,
38
+ onOpenChange,
39
+ unified,
40
+ onBinCapture,
41
+ title = "Enter Credit Card Details",
42
+ closeLabel = "Close"
43
+ }) {
44
+ React.useEffect(() => {
45
+ if (!open || !onBinCapture) return;
46
+ function handleMessage(event) {
47
+ const bin = extractBin(event.data);
48
+ if (bin) {
49
+ onBinCapture(bin);
50
+ }
51
+ }
52
+ window.addEventListener("message", handleMessage);
53
+ return () => window.removeEventListener("message", handleMessage);
54
+ }, [open, onBinCapture]);
55
+ const iframeSrc = unified ? `${unified.uiEndpoint}?TransactionSetupID=${unified.transactionSetupId}` : void 0;
56
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXO3LJ5FDcjs.Dialog, { open, onOpenChange, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkXO3LJ5FDcjs.DialogContent, { className: "sm:max-w-md", children: [
57
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkXO3LJ5FDcjs.DialogHeader, { children: [
58
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXO3LJ5FDcjs.DialogTitle, { children: title }),
59
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXO3LJ5FDcjs.DialogDescription, { className: "sr-only", children: "Secure credit card entry form" })
60
+ ] }),
61
+ iframeSrc ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "iframe", { src: iframeSrc, title: "Payment", className: "h-[400px] w-full border-0" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[400px] items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-muted-foreground", children: "Loading payment form..." }) }),
62
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXO3LJ5FDcjs.DialogFooter, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
63
+ "button",
64
+ {
65
+ type: "button",
66
+ onClick: () => onOpenChange(false),
67
+ className: "bg-secondary text-secondary-foreground hover:bg-secondary/80 inline-flex h-10 items-center justify-center rounded-md px-4 py-2 text-sm font-medium",
68
+ children: closeLabel
69
+ }
70
+ ) })
71
+ ] }) });
72
+ }
73
+
74
+
75
+
76
+ exports.PaymentModal = PaymentModal; exports.extractBin = extractBin;
77
+ //# sourceMappingURL=payment-modal.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/augur-packages/augur-packages/packages/augur-web/dist/payment-modal.cjs","../src/payment-modal.tsx"],"names":[],"mappings":"AAAA,22BAAY;AACZ,YAAY;AACZ;AACE;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;ACTA,2EAAuB;AAmGf,+CAAA;AA9ED,SAAS,UAAA,CAAW,IAAA,EAAmC;AAC5D,EAAA,GAAA,CAAI,OAAO,KAAA,IAAS,QAAA,EAAU;AAC5B,IAAA,MAAM,MAAA,EAAQ,iBAAA,CAAkB,IAAA,CAAK,IAAI,CAAA;AACzC,IAAA,uBAAO,KAAA,0BAAA,CAAQ,CAAC,IAAA,GAAK,KAAA,CAAA;AAAA,EACvB;AAEA,EAAA,GAAA,CAAI,OAAO,KAAA,IAAS,SAAA,GAAY,KAAA,IAAS,IAAA,EAAM;AAC7C,IAAA,MAAM,IAAA,EAAM,IAAA;AAEZ,IAAA,IAAA,CAAA,MAAW,IAAA,GAAO,CAAC,KAAA,EAAO,KAAA,EAAO,SAAA,EAAW,SAAS,CAAA,EAAG;AACtD,MAAA,GAAA,CAAI,OAAO,GAAA,CAAI,GAAG,EAAA,IAAM,SAAA,GAAY,GAAA,CAAI,GAAG,CAAA,EAAG;AAC5C,QAAA,OAAO,GAAA,CAAI,GAAG,CAAA;AAAA,MAChB;AAAA,IACF;AAEA,IAAA,GAAA,CAAI,OAAO,GAAA,CAAI,MAAM,EAAA,IAAM,SAAA,GAAY,GAAA,CAAI,MAAM,EAAA,IAAM,IAAA,EAAM;AAC3D,MAAA,MAAM,OAAA,EAAS,GAAA,CAAI,MAAM,CAAA;AACzB,MAAA,GAA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ent":[null,"\"use client\";\n\nimport * as React from \"react\";\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n} from \"./dialog\";\n\n// ---------------------------------------------------------------------------\n// BIN extraction utility\n// ---------------------------------------------------------------------------\n\n/**\n * Extract a card BIN from a postMessage payload.\n * Handles multiple formats returned by Element/Unified iframes:\n * - URL-encoded string with Bin= parameter\n * - Object with Bin, bin, CardBIN, or cardBin property\n * - Nested data.Bin structure\n */\nexport function extractBin(data: unknown): string | undefined {\n if (typeof data === \"string\") {\n const match = /[?&]Bin=([^&]+)/.exec(data);\n return match?.[1] || undefined;\n }\n\n if (typeof data === \"object\" && data !== null) {\n const obj = data as Record<string, unknown>;\n\n for (const key of [\"Bin\", \"bin\", \"CardBIN\", \"cardBin\"]) {\n if (typeof obj[key] === \"string\" && obj[key]) {\n return obj[key] as string;\n }\n }\n\n if (typeof obj[\"data\"] === \"object\" && obj[\"data\"] !== null) {\n const nested = obj[\"data\"] as Record<string, unknown>;\n if (typeof nested[\"Bin\"] === \"string\" && nested[\"Bin\"]) {\n return nested[\"Bin\"];\n }\n }\n }\n\n return undefined;\n}\n\n// ---------------------------------------------------------------------------\n// PaymentModal types\n// ---------------------------------------------------------------------------\n\nexport interface PaymentModalProps {\n /** Whether the modal is open. */\n open: boolean;\n /** Callback when open state changes. */\n onOpenChange: (open: boolean) => void;\n /** Unified/Element iframe configuration. Modal shows loading when null. */\n unified: { uiEndpoint: string; transactionSetupId: string } | null;\n /** Called when a card BIN is captured from the iframe postMessage. */\n onBinCapture?: (bin: string) => void;\n /** Modal title. Defaults to \"Enter Credit Card Details\". */\n title?: string;\n /** Close button label. Defaults to \"Close\". */\n closeLabel?: string;\n}\n\n// ---------------------------------------------------------------------------\n// PaymentModal component\n// ---------------------------------------------------------------------------\n\nexport function PaymentModal({\n open,\n onOpenChange,\n unified,\n onBinCapture,\n title = \"Enter Credit Card Details\",\n closeLabel = \"Close\",\n}: PaymentModalProps) {\n React.useEffect(() => {\n if (!open || !onBinCapture) return;\n\n function handleMessage(event: MessageEvent) {\n const bin = extractBin(event.data);\n if (bin) {\n onBinCapture!(bin);\n }\n }\n\n window.addEventListener(\"message\", handleMessage);\n return () => window.removeEventListener(\"message\", handleMessage);\n }, [open, onBinCapture]);\n\n const iframeSrc = unified\n ? `${unified.uiEndpoint}?TransactionSetupID=${unified.transactionSetupId}`\n : undefined;\n\n return (\n <Dialog open={open} onOpenChange={onOpenChange}>\n <DialogContent className=\"sm:max-w-md\">\n <DialogHeader>\n <DialogTitle>{title}</DialogTitle>\n <DialogDescription className=\"sr-only\">Secure credit card entry form</DialogDescription>\n </DialogHeader>\n {iframeSrc ? (\n <iframe src={iframeSrc} title=\"Payment\" className=\"h-[400px] w-full border-0\" />\n ) : (\n <div className=\"flex h-[400px] items-center justify-center\">\n <p className=\"text-muted-foreground\">Loading payment form...</p>\n </div>\n )}\n <DialogFooter>\n <button\n type=\"button\"\n onClick={() => onOpenChange(false)}\n className=\"bg-secondary text-secondary-foreground hover:bg-secondary/80 inline-flex h-10 items-center justify-center rounded-md px-4 py-2 text-sm font-medium\"\n >\n {closeLabel}\n </button>\n </DialogFooter>\n </DialogContent>\n </Dialog>\n );\n}\n"]}
@@ -0,0 +1,30 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ /**
4
+ * Extract a card BIN from a postMessage payload.
5
+ * Handles multiple formats returned by Element/Unified iframes:
6
+ * - URL-encoded string with Bin= parameter
7
+ * - Object with Bin, bin, CardBIN, or cardBin property
8
+ * - Nested data.Bin structure
9
+ */
10
+ declare function extractBin(data: unknown): string | undefined;
11
+ interface PaymentModalProps {
12
+ /** Whether the modal is open. */
13
+ open: boolean;
14
+ /** Callback when open state changes. */
15
+ onOpenChange: (open: boolean) => void;
16
+ /** Unified/Element iframe configuration. Modal shows loading when null. */
17
+ unified: {
18
+ uiEndpoint: string;
19
+ transactionSetupId: string;
20
+ } | null;
21
+ /** Called when a card BIN is captured from the iframe postMessage. */
22
+ onBinCapture?: (bin: string) => void;
23
+ /** Modal title. Defaults to "Enter Credit Card Details". */
24
+ title?: string;
25
+ /** Close button label. Defaults to "Close". */
26
+ closeLabel?: string;
27
+ }
28
+ declare function PaymentModal({ open, onOpenChange, unified, onBinCapture, title, closeLabel, }: PaymentModalProps): react_jsx_runtime.JSX.Element;
29
+
30
+ export { PaymentModal, type PaymentModalProps, extractBin };
@@ -0,0 +1,30 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ /**
4
+ * Extract a card BIN from a postMessage payload.
5
+ * Handles multiple formats returned by Element/Unified iframes:
6
+ * - URL-encoded string with Bin= parameter
7
+ * - Object with Bin, bin, CardBIN, or cardBin property
8
+ * - Nested data.Bin structure
9
+ */
10
+ declare function extractBin(data: unknown): string | undefined;
11
+ interface PaymentModalProps {
12
+ /** Whether the modal is open. */
13
+ open: boolean;
14
+ /** Callback when open state changes. */
15
+ onOpenChange: (open: boolean) => void;
16
+ /** Unified/Element iframe configuration. Modal shows loading when null. */
17
+ unified: {
18
+ uiEndpoint: string;
19
+ transactionSetupId: string;
20
+ } | null;
21
+ /** Called when a card BIN is captured from the iframe postMessage. */
22
+ onBinCapture?: (bin: string) => void;
23
+ /** Modal title. Defaults to "Enter Credit Card Details". */
24
+ title?: string;
25
+ /** Close button label. Defaults to "Close". */
26
+ closeLabel?: string;
27
+ }
28
+ declare function PaymentModal({ open, onOpenChange, unified, onBinCapture, title, closeLabel, }: PaymentModalProps): react_jsx_runtime.JSX.Element;
29
+
30
+ export { PaymentModal, type PaymentModalProps, extractBin };
@@ -0,0 +1,77 @@
1
+ "use client";
2
+ "use client";
3
+ import {
4
+ Dialog,
5
+ DialogContent,
6
+ DialogDescription,
7
+ DialogFooter,
8
+ DialogHeader,
9
+ DialogTitle
10
+ } from "./chunk-RKUHWABX.js";
11
+
12
+ // src/payment-modal.tsx
13
+ import * as React from "react";
14
+ import { jsx, jsxs } from "react/jsx-runtime";
15
+ function extractBin(data) {
16
+ if (typeof data === "string") {
17
+ const match = /[?&]Bin=([^&]+)/.exec(data);
18
+ return match?.[1] || void 0;
19
+ }
20
+ if (typeof data === "object" && data !== null) {
21
+ const obj = data;
22
+ for (const key of ["Bin", "bin", "CardBIN", "cardBin"]) {
23
+ if (typeof obj[key] === "string" && obj[key]) {
24
+ return obj[key];
25
+ }
26
+ }
27
+ if (typeof obj["data"] === "object" && obj["data"] !== null) {
28
+ const nested = obj["data"];
29
+ if (typeof nested["Bin"] === "string" && nested["Bin"]) {
30
+ return nested["Bin"];
31
+ }
32
+ }
33
+ }
34
+ return void 0;
35
+ }
36
+ function PaymentModal({
37
+ open,
38
+ onOpenChange,
39
+ unified,
40
+ onBinCapture,
41
+ title = "Enter Credit Card Details",
42
+ closeLabel = "Close"
43
+ }) {
44
+ React.useEffect(() => {
45
+ if (!open || !onBinCapture) return;
46
+ function handleMessage(event) {
47
+ const bin = extractBin(event.data);
48
+ if (bin) {
49
+ onBinCapture(bin);
50
+ }
51
+ }
52
+ window.addEventListener("message", handleMessage);
53
+ return () => window.removeEventListener("message", handleMessage);
54
+ }, [open, onBinCapture]);
55
+ const iframeSrc = unified ? `${unified.uiEndpoint}?TransactionSetupID=${unified.transactionSetupId}` : void 0;
56
+ return /* @__PURE__ */ jsx(Dialog, { open, onOpenChange, children: /* @__PURE__ */ jsxs(DialogContent, { className: "sm:max-w-md", children: [
57
+ /* @__PURE__ */ jsxs(DialogHeader, { children: [
58
+ /* @__PURE__ */ jsx(DialogTitle, { children: title }),
59
+ /* @__PURE__ */ jsx(DialogDescription, { className: "sr-only", children: "Secure credit card entry form" })
60
+ ] }),
61
+ iframeSrc ? /* @__PURE__ */ jsx("iframe", { src: iframeSrc, title: "Payment", className: "h-[400px] w-full border-0" }) : /* @__PURE__ */ jsx("div", { className: "flex h-[400px] items-center justify-center", children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: "Loading payment form..." }) }),
62
+ /* @__PURE__ */ jsx(DialogFooter, { children: /* @__PURE__ */ jsx(
63
+ "button",
64
+ {
65
+ type: "button",
66
+ onClick: () => onOpenChange(false),
67
+ className: "bg-secondary text-secondary-foreground hover:bg-secondary/80 inline-flex h-10 items-center justify-center rounded-md px-4 py-2 text-sm font-medium",
68
+ children: closeLabel
69
+ }
70
+ ) })
71
+ ] }) });
72
+ }
73
+ export {
74
+ PaymentModal,
75
+ extractBin
76
+ };
77
+ //# sourceMappingURL=payment-modal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/payment-modal.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n} from \"./dialog\";\n\n// ---------------------------------------------------------------------------\n// BIN extraction utility\n// ---------------------------------------------------------------------------\n\n/**\n * Extract a card BIN from a postMessage payload.\n * Handles multiple formats returned by Element/Unified iframes:\n * - URL-encoded string with Bin= parameter\n * - Object with Bin, bin, CardBIN, or cardBin property\n * - Nested data.Bin structure\n */\nexport function extractBin(data: unknown): string | undefined {\n if (typeof data === \"string\") {\n const match = /[?&]Bin=([^&]+)/.exec(data);\n return match?.[1] || undefined;\n }\n\n if (typeof data === \"object\" && data !== null) {\n const obj = data as Record<string, unknown>;\n\n for (const key of [\"Bin\", \"bin\", \"CardBIN\", \"cardBin\"]) {\n if (typeof obj[key] === \"string\" && obj[key]) {\n return obj[key] as string;\n }\n }\n\n if (typeof obj[\"data\"] === \"object\" && obj[\"data\"] !== null) {\n const nested = obj[\"data\"] as Record<string, unknown>;\n if (typeof nested[\"Bin\"] === \"string\" && nested[\"Bin\"]) {\n return nested[\"Bin\"];\n }\n }\n }\n\n return undefined;\n}\n\n// ---------------------------------------------------------------------------\n// PaymentModal types\n// ---------------------------------------------------------------------------\n\nexport interface PaymentModalProps {\n /** Whether the modal is open. */\n open: boolean;\n /** Callback when open state changes. */\n onOpenChange: (open: boolean) => void;\n /** Unified/Element iframe configuration. Modal shows loading when null. */\n unified: { uiEndpoint: string; transactionSetupId: string } | null;\n /** Called when a card BIN is captured from the iframe postMessage. */\n onBinCapture?: (bin: string) => void;\n /** Modal title. Defaults to \"Enter Credit Card Details\". */\n title?: string;\n /** Close button label. Defaults to \"Close\". */\n closeLabel?: string;\n}\n\n// ---------------------------------------------------------------------------\n// PaymentModal component\n// ---------------------------------------------------------------------------\n\nexport function PaymentModal({\n open,\n onOpenChange,\n unified,\n onBinCapture,\n title = \"Enter Credit Card Details\",\n closeLabel = \"Close\",\n}: PaymentModalProps) {\n React.useEffect(() => {\n if (!open || !onBinCapture) return;\n\n function handleMessage(event: MessageEvent) {\n const bin = extractBin(event.data);\n if (bin) {\n onBinCapture!(bin);\n }\n }\n\n window.addEventListener(\"message\", handleMessage);\n return () => window.removeEventListener(\"message\", handleMessage);\n }, [open, onBinCapture]);\n\n const iframeSrc = unified\n ? `${unified.uiEndpoint}?TransactionSetupID=${unified.transactionSetupId}`\n : undefined;\n\n return (\n <Dialog open={open} onOpenChange={onOpenChange}>\n <DialogContent className=\"sm:max-w-md\">\n <DialogHeader>\n <DialogTitle>{title}</DialogTitle>\n <DialogDescription className=\"sr-only\">Secure credit card entry form</DialogDescription>\n </DialogHeader>\n {iframeSrc ? (\n <iframe src={iframeSrc} title=\"Payment\" className=\"h-[400px] w-full border-0\" />\n ) : (\n <div className=\"flex h-[400px] items-center justify-center\">\n <p className=\"text-muted-foreground\">Loading payment form...</p>\n </div>\n )}\n <DialogFooter>\n <button\n type=\"button\"\n onClick={() => onOpenChange(false)}\n className=\"bg-secondary text-secondary-foreground hover:bg-secondary/80 inline-flex h-10 items-center justify-center rounded-md px-4 py-2 text-sm font-medium\"\n >\n {closeLabel}\n </button>\n </DialogFooter>\n </DialogContent>\n </Dialog>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAEA,YAAY,WAAW;AAmGf,SACE,KADF;AA9ED,SAAS,WAAW,MAAmC;AAC5D,MAAI,OAAO,SAAS,UAAU;AAC5B,UAA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AAM,WAAU,WAAU,6BAA4B,IAE9E,oBAAC,SAAI,WAAU,8CACb,8BAAC,OAAE,WAAU,yBAAwB,qCAAuB,GAC9D;AAAA,IAEF,oBAAC,gBACC;AAAA,MAAC;AAAA;AAAA,QACC,MAAK;AAAA,QACL,SAAS,MAAM,aAAa,KAAK;AAAA,QACjC,WAAU;AAAA,QAET;AAAA;AAAA,IACH,GACF;AAAA,KACF,GACF;AAEJ;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simpleapps-com/augur-web",
3
- "version": "2.0.20",
3
+ "version": "2.0.21",
4
4
  "description": "Shared React UI components for Augur ecommerce sites (Radix + Tailwind)",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -175,6 +175,11 @@
175
175
  "import": "./dist/mdx-components.js",
176
176
  "require": "./dist/mdx-components.cjs"
177
177
  },
178
+ "./payment-modal": {
179
+ "types": "./dist/payment-modal.d.ts",
180
+ "import": "./dist/payment-modal.js",
181
+ "require": "./dist/payment-modal.cjs"
182
+ },
178
183
  "./quantity-input": {
179
184
  "types": "./dist/quantity-input.d.ts",
180
185
  "import": "./dist/quantity-input.js",
@@ -203,7 +208,7 @@
203
208
  "llms.txt"
204
209
  ],
205
210
  "dependencies": {
206
- "@simpleapps-com/augur-utils": "2.0.20"
211
+ "@simpleapps-com/augur-utils": "2.0.21"
207
212
  },
208
213
  "peerDependencies": {
209
214
  "@radix-ui/react-accordion": "^1.2.0",
@@ -224,8 +229,8 @@
224
229
  "react-dom": "^19.0.0",
225
230
  "react-icons": "^5.4.0",
226
231
  "tailwindcss": "^4.0.0",
227
- "@simpleapps-com/augur-core": "2.0.20",
228
- "@simpleapps-com/augur-hooks": "2.0.20"
232
+ "@simpleapps-com/augur-core": "2.0.21",
233
+ "@simpleapps-com/augur-hooks": "2.0.21"
229
234
  },
230
235
  "devDependencies": {
231
236
  "@tanstack/react-query": "^5.0.0",
@@ -255,8 +260,8 @@
255
260
  "tsup": "^8.5.0",
256
261
  "vitest": "^3.2.0",
257
262
  "@augur-packages/tsconfig": "0.0.0",
258
- "@simpleapps-com/augur-core": "2.0.20",
259
- "@simpleapps-com/augur-hooks": "2.0.20"
263
+ "@simpleapps-com/augur-core": "2.0.21",
264
+ "@simpleapps-com/augur-hooks": "2.0.21"
260
265
  },
261
266
  "scripts": {
262
267
  "build": "tsup",