@flamingo-stack/openframe-frontend-core 0.0.625 → 0.0.626-snapshot.20260914041231
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/{chunk-IYQRUTJI.js → chunk-25UWKNII.js} +10 -8
- package/dist/{chunk-IYQRUTJI.js.map → chunk-25UWKNII.js.map} +1 -1
- package/dist/{chunk-EW6PYGB3.js → chunk-2J7EFH4V.js} +819 -396
- package/dist/chunk-2J7EFH4V.js.map +1 -0
- package/dist/{chunk-X3LC6R37.js → chunk-32P6KUZP.js} +2 -2
- package/dist/{chunk-YSCRM2AG.cjs → chunk-4E3UZZ2J.cjs} +34 -34
- package/dist/{chunk-YSCRM2AG.cjs.map → chunk-4E3UZZ2J.cjs.map} +1 -1
- package/dist/{chunk-EHAYNUOL.cjs → chunk-4E7XCEV3.cjs} +77 -2
- package/dist/chunk-4E7XCEV3.cjs.map +1 -0
- package/dist/{chunk-2RTH6JR5.js → chunk-4PIHIFJM.js} +4 -4
- package/dist/{chunk-ELU7SGM6.cjs → chunk-4SXZT7JP.cjs} +83 -83
- package/dist/{chunk-ELU7SGM6.cjs.map → chunk-4SXZT7JP.cjs.map} +1 -1
- package/dist/{chunk-ISXADEGT.cjs → chunk-53ARMJHM.cjs} +38 -38
- package/dist/chunk-53ARMJHM.cjs.map +1 -0
- package/dist/{chunk-MP2K44EK.cjs → chunk-55X46LKR.cjs} +514 -91
- package/dist/chunk-55X46LKR.cjs.map +1 -0
- package/dist/{chunk-VGZ7WZ7F.js → chunk-5E55S5SI.js} +4 -4
- package/dist/{chunk-U7TTQV4N.cjs → chunk-6I3KNDBF.cjs} +3 -3
- package/dist/{chunk-U7TTQV4N.cjs.map → chunk-6I3KNDBF.cjs.map} +1 -1
- package/dist/{chunk-S6WBBSII.js → chunk-76HB456V.js} +5 -5
- package/dist/{chunk-QAYRZTFU.cjs → chunk-BC726XIQ.cjs} +49 -47
- package/dist/chunk-BC726XIQ.cjs.map +1 -0
- package/dist/{chunk-F7UZDBZZ.cjs → chunk-BJGAFPG5.cjs} +42 -42
- package/dist/{chunk-F7UZDBZZ.cjs.map → chunk-BJGAFPG5.cjs.map} +1 -1
- package/dist/{chunk-HOASBISN.js → chunk-CAQ5MNLJ.js} +3 -3
- package/dist/{chunk-PSANPD64.js → chunk-CK2CPZXB.js} +12 -12
- package/dist/{chunk-YQCA4ZEJ.js → chunk-CMUNJZWN.js} +2 -2
- package/dist/{chunk-7LH2LC6N.js → chunk-DH3YH3TV.js} +8 -8
- package/dist/{chunk-CXTOKOMK.cjs → chunk-FR6EDA3P.cjs} +105 -105
- package/dist/{chunk-CXTOKOMK.cjs.map → chunk-FR6EDA3P.cjs.map} +1 -1
- package/dist/{chunk-VOKLGRHX.cjs → chunk-G46NJNTL.cjs} +28 -26
- package/dist/chunk-G46NJNTL.cjs.map +1 -0
- package/dist/{chunk-P52MUJTG.js → chunk-G47XRVZA.js} +3 -3
- package/dist/{chunk-7VOLW4WX.cjs → chunk-GQ7267OV.cjs} +5 -5
- package/dist/{chunk-7VOLW4WX.cjs.map → chunk-GQ7267OV.cjs.map} +1 -1
- package/dist/{chunk-YCO4UA62.js → chunk-HIZAMJPT.js} +12 -12
- package/dist/{chunk-YWFMYZ4G.js → chunk-J6ATJUEE.js} +5 -5
- package/dist/{chunk-YWFMYZ4G.js.map → chunk-J6ATJUEE.js.map} +1 -1
- package/dist/{chunk-5LIDR7HL.js → chunk-JRYS4VMV.js} +4 -79
- package/dist/{chunk-5LIDR7HL.js.map → chunk-JRYS4VMV.js.map} +1 -1
- package/dist/{chunk-FDE52ADN.js → chunk-KXDYBRRR.js} +7 -7
- package/dist/{chunk-NCY7J6YZ.js → chunk-L5FEAOGJ.js} +14 -360
- package/dist/chunk-L5FEAOGJ.js.map +1 -0
- package/dist/{chunk-BNH76PZH.cjs → chunk-N6XNJX25.cjs} +15 -15
- package/dist/{chunk-BNH76PZH.cjs.map → chunk-N6XNJX25.cjs.map} +1 -1
- package/dist/{chunk-DKNDJNSW.js → chunk-NLADJ4IX.js} +6 -6
- package/dist/{chunk-ETH2WO6U.cjs → chunk-OAXASIVG.cjs} +7 -7
- package/dist/{chunk-ETH2WO6U.cjs.map → chunk-OAXASIVG.cjs.map} +1 -1
- package/dist/{chunk-3IXDZI3R.cjs → chunk-P7UT2YSC.cjs} +3 -3
- package/dist/{chunk-3IXDZI3R.cjs.map → chunk-P7UT2YSC.cjs.map} +1 -1
- package/dist/{chunk-RSJMF2YO.js → chunk-PKSH6PAK.js} +10 -8
- package/dist/{chunk-RSJMF2YO.js.map → chunk-PKSH6PAK.js.map} +1 -1
- package/dist/{chunk-35JUSLEJ.js → chunk-PTP5LSYM.js} +16 -28
- package/dist/{chunk-35JUSLEJ.js.map → chunk-PTP5LSYM.js.map} +1 -1
- package/dist/{chunk-AT44NN6G.cjs → chunk-QCSWM3VU.cjs} +9 -9
- package/dist/{chunk-AT44NN6G.cjs.map → chunk-QCSWM3VU.cjs.map} +1 -1
- package/dist/{chunk-JJUV7Z4L.cjs → chunk-QIVX7F3N.cjs} +27 -27
- package/dist/{chunk-JJUV7Z4L.cjs.map → chunk-QIVX7F3N.cjs.map} +1 -1
- package/dist/{chunk-CP5QJZGS.cjs → chunk-R3SJ6PMI.cjs} +280 -292
- package/dist/chunk-R3SJ6PMI.cjs.map +1 -0
- package/dist/{chunk-2MMEPNSX.cjs → chunk-RAPPN6MN.cjs} +3 -3
- package/dist/{chunk-2MMEPNSX.cjs.map → chunk-RAPPN6MN.cjs.map} +1 -1
- package/dist/{chunk-7H2H6HYE.cjs → chunk-SLT5C3PQ.cjs} +25 -25
- package/dist/{chunk-7H2H6HYE.cjs.map → chunk-SLT5C3PQ.cjs.map} +1 -1
- package/dist/{chunk-FKBM6U43.js → chunk-USIRWQJ3.js} +76 -1
- package/dist/{chunk-FKBM6U43.js.map → chunk-USIRWQJ3.js.map} +1 -1
- package/dist/{chunk-CCWI3622.cjs → chunk-VOZZQ6HQ.cjs} +4 -4
- package/dist/{chunk-CCWI3622.cjs.map → chunk-VOZZQ6HQ.cjs.map} +1 -1
- package/dist/{chunk-CWK7BQTZ.cjs → chunk-VUAEDAUN.cjs} +6 -6
- package/dist/{chunk-CWK7BQTZ.cjs.map → chunk-VUAEDAUN.cjs.map} +1 -1
- package/dist/{chunk-OFRCNA6N.cjs → chunk-VZQ3VVFH.cjs} +22 -20
- package/dist/chunk-VZQ3VVFH.cjs.map +1 -0
- package/dist/{chunk-627V5GNY.js → chunk-WZ6CUZMM.js} +4 -4
- package/dist/{chunk-F2KBCLUG.js → chunk-X5NN4NJM.js} +2 -2
- package/dist/{chunk-C2E3TDRF.js → chunk-Y3MIFC5M.js} +4 -4
- package/dist/{chunk-NDUNUXS2.cjs → chunk-ZCQVUIPH.cjs} +18 -18
- package/dist/{chunk-NDUNUXS2.cjs.map → chunk-ZCQVUIPH.cjs.map} +1 -1
- package/dist/{chunk-UQWJWIEK.js → chunk-ZGZ7YAJH.js} +10 -8
- package/dist/{chunk-UQWJWIEK.js.map → chunk-ZGZ7YAJH.js.map} +1 -1
- package/dist/{chunk-YXWGSDK4.cjs → chunk-ZI27ALYX.cjs} +5 -80
- package/dist/chunk-ZI27ALYX.cjs.map +1 -0
- package/dist/{chunk-BVQEU5JB.js → chunk-ZOMGXH7C.js} +2 -2
- package/dist/{chunk-XOREK735.cjs → chunk-ZYDNPUSH.cjs} +285 -631
- package/dist/chunk-ZYDNPUSH.cjs.map +1 -0
- package/dist/components/case-studies/index.cjs +14 -14
- package/dist/components/case-studies/index.js +8 -8
- package/dist/components/chat/entity-cards/admin-content-card-grid.d.ts +8 -5
- package/dist/components/chat/entity-cards/admin-content-card-grid.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/admin-content-card.d.ts +8 -1
- package/dist/components/chat/entity-cards/admin-content-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/ai-prompt-card.d.ts +2 -1
- package/dist/components/chat/entity-cards/ai-prompt-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/employee-entry-card.d.ts +3 -3
- package/dist/components/chat/entity-cards/employee-entry-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/entity-author-card.d.ts +8 -6
- package/dist/components/chat/entity-cards/entity-author-card.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +5 -5
- package/dist/components/chat/index.js +4 -4
- package/dist/components/contact/index.cjs +9 -9
- package/dist/components/contact/index.js +8 -8
- package/dist/components/docs/index.cjs +12 -12
- package/dist/components/docs/index.js +11 -11
- package/dist/components/embeds/index.cjs +9 -9
- package/dist/components/embeds/index.js +8 -8
- package/dist/components/faq/index.cjs +10 -10
- package/dist/components/faq/index.js +9 -9
- package/dist/components/features/index.cjs +8 -8
- package/dist/components/features/index.js +7 -7
- package/dist/components/help-center-pages/index.cjs +31 -31
- package/dist/components/help-center-pages/index.js +22 -22
- package/dist/components/index.cjs +75 -69
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +30 -24
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +49 -49
- package/dist/components/meeting-scheduler/index.js +9 -9
- package/dist/components/navigation/index.cjs +11 -11
- package/dist/components/navigation/index.js +10 -10
- package/dist/components/onboarding-guides/index.cjs +12 -12
- package/dist/components/onboarding-guides/index.js +11 -11
- package/dist/components/related-content/card-registry.d.ts.map +1 -1
- package/dist/components/related-content/index.cjs +6 -6
- package/dist/components/related-content/index.js +5 -5
- package/dist/components/tickets/index.cjs +13 -13
- package/dist/components/tickets/index.js +12 -12
- package/dist/components/ui/color-preset-select.d.ts +4 -5
- package/dist/components/ui/color-preset-select.d.ts.map +1 -1
- package/dist/components/ui/department-badge.d.ts +21 -0
- package/dist/components/ui/department-badge.d.ts.map +1 -0
- package/dist/components/ui/index.cjs +14 -8
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.d.ts +2 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +13 -7
- package/dist/components/ui/palette-badge.d.ts +22 -0
- package/dist/components/ui/palette-badge.d.ts.map +1 -0
- package/dist/hooks/index.cjs +5 -5
- package/dist/hooks/index.js +4 -4
- package/dist/index.cjs +28 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +50 -40
- package/dist/index.js.map +1 -1
- package/dist/types/department.d.ts +4 -0
- package/dist/types/department.d.ts.map +1 -1
- package/dist/utils/color-presets.d.ts +24 -0
- package/dist/utils/color-presets.d.ts.map +1 -0
- package/dist/utils/index.cjs +32 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +30 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/chat/entity-cards/__tests__/admin-content-card-grid.test.tsx +14 -1
- package/src/components/chat/entity-cards/admin-content-card-grid.tsx +15 -12
- package/src/components/chat/entity-cards/admin-content-card.tsx +24 -6
- package/src/components/chat/entity-cards/ai-prompt-card.tsx +7 -4
- package/src/components/chat/entity-cards/employee-entry-card.tsx +21 -24
- package/src/components/chat/entity-cards/entity-author-card.tsx +10 -4
- package/src/components/related-content/card-registry.tsx +3 -1
- package/src/components/ui/.department-badge.md +2 -0
- package/src/components/ui/.palette-badge.md +2 -0
- package/src/components/ui/__tests__/department-badge.test.tsx +47 -0
- package/src/components/ui/color-preset-select.tsx +5 -21
- package/src/components/ui/department-badge.tsx +35 -0
- package/src/components/ui/index.ts +2 -0
- package/src/components/ui/palette-badge.tsx +39 -0
- package/src/types/department.ts +4 -0
- package/src/utils/.color-presets.md +2 -0
- package/src/utils/color-presets.ts +48 -0
- package/src/utils/index.ts +1 -0
- package/dist/chunk-CP5QJZGS.cjs.map +0 -1
- package/dist/chunk-EHAYNUOL.cjs.map +0 -1
- package/dist/chunk-EW6PYGB3.js.map +0 -1
- package/dist/chunk-ISXADEGT.cjs.map +0 -1
- package/dist/chunk-MP2K44EK.cjs.map +0 -1
- package/dist/chunk-NCY7J6YZ.js.map +0 -1
- package/dist/chunk-OFRCNA6N.cjs.map +0 -1
- package/dist/chunk-QAYRZTFU.cjs.map +0 -1
- package/dist/chunk-VOKLGRHX.cjs.map +0 -1
- package/dist/chunk-XOREK735.cjs.map +0 -1
- package/dist/chunk-YXWGSDK4.cjs.map +0 -1
- /package/dist/{chunk-X3LC6R37.js.map → chunk-32P6KUZP.js.map} +0 -0
- /package/dist/{chunk-2RTH6JR5.js.map → chunk-4PIHIFJM.js.map} +0 -0
- /package/dist/{chunk-VGZ7WZ7F.js.map → chunk-5E55S5SI.js.map} +0 -0
- /package/dist/{chunk-S6WBBSII.js.map → chunk-76HB456V.js.map} +0 -0
- /package/dist/{chunk-HOASBISN.js.map → chunk-CAQ5MNLJ.js.map} +0 -0
- /package/dist/{chunk-PSANPD64.js.map → chunk-CK2CPZXB.js.map} +0 -0
- /package/dist/{chunk-YQCA4ZEJ.js.map → chunk-CMUNJZWN.js.map} +0 -0
- /package/dist/{chunk-7LH2LC6N.js.map → chunk-DH3YH3TV.js.map} +0 -0
- /package/dist/{chunk-P52MUJTG.js.map → chunk-G47XRVZA.js.map} +0 -0
- /package/dist/{chunk-YCO4UA62.js.map → chunk-HIZAMJPT.js.map} +0 -0
- /package/dist/{chunk-FDE52ADN.js.map → chunk-KXDYBRRR.js.map} +0 -0
- /package/dist/{chunk-DKNDJNSW.js.map → chunk-NLADJ4IX.js.map} +0 -0
- /package/dist/{chunk-627V5GNY.js.map → chunk-WZ6CUZMM.js.map} +0 -0
- /package/dist/{chunk-F2KBCLUG.js.map → chunk-X5NN4NJM.js.map} +0 -0
- /package/dist/{chunk-C2E3TDRF.js.map → chunk-Y3MIFC5M.js.map} +0 -0
- /package/dist/{chunk-BVQEU5JB.js.map → chunk-ZOMGXH7C.js.map} +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkR3SJ6PMIcjs = require('./chunk-R3SJ6PMI.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkQIVX7F3Ncjs = require('./chunk-QIVX7F3N.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkGSQM4PDRcjs = require('./chunk-GSQM4PDR.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk55X46LKRcjs = require('./chunk-55X46LKR.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunkWRJVEB2Jcjs = require('./chunk-WRJVEB2J.cjs');
|
|
@@ -27,7 +27,7 @@ function FileDownloadCard({ fileName, mimeType, fileSize, fileUrl }) {
|
|
|
27
27
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-ods-text-primary text-h3", children: fileName || "File" }),
|
|
28
28
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mt-2 flex items-center justify-center gap-3 text-ods-text-secondary text-h6", children: [
|
|
29
29
|
mimeType && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: mimeType }),
|
|
30
|
-
typeof fileSize === "number" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children:
|
|
30
|
+
typeof fileSize === "number" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _chunk55X46LKRcjs.formatFileSize.call(void 0, fileSize) })
|
|
31
31
|
] })
|
|
32
32
|
] }),
|
|
33
33
|
fileUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWRJVEB2Jcjs.Button, { variant: "accent", href: fileUrl, openInNewTab: true, leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Download, { className: "h-4 w-4" }), children: "Download File" })
|
|
@@ -46,7 +46,7 @@ function GoogleSheetsViewer({ externalUrl, fileName, height }) {
|
|
|
46
46
|
] });
|
|
47
47
|
}
|
|
48
48
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
49
|
-
|
|
49
|
+
_chunkR3SJ6PMIcjs.EmbedViewerFrame,
|
|
50
50
|
{
|
|
51
51
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.GoogleSheetsIcon, { className: "h-5 w-5 shrink-0" }),
|
|
52
52
|
title: displayName,
|
|
@@ -55,7 +55,7 @@ function GoogleSheetsViewer({ externalUrl, fileName, height }) {
|
|
|
55
55
|
{
|
|
56
56
|
variant: "outline",
|
|
57
57
|
size: "small-legacy",
|
|
58
|
-
href:
|
|
58
|
+
href: _chunkQIVX7F3Ncjs.toGoogleSheetsOriginalUrl.call(void 0, externalUrl),
|
|
59
59
|
openInNewTab: true,
|
|
60
60
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.GoogleSheetsIcon, { className: "h-4 w-4" }),
|
|
61
61
|
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-4 w-4" }),
|
|
@@ -63,7 +63,7 @@ function GoogleSheetsViewer({ externalUrl, fileName, height }) {
|
|
|
63
63
|
children: "Open in Google Sheets"
|
|
64
64
|
}
|
|
65
65
|
),
|
|
66
|
-
src:
|
|
66
|
+
src: _chunkQIVX7F3Ncjs.toGoogleSheetsEmbedUrl.call(void 0, externalUrl),
|
|
67
67
|
height
|
|
68
68
|
}
|
|
69
69
|
);
|
|
@@ -81,7 +81,7 @@ function PdfViewer({ src, fileName, onPreview, onDownload, height }) {
|
|
|
81
81
|
] });
|
|
82
82
|
}
|
|
83
83
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
84
|
-
|
|
84
|
+
_chunkR3SJ6PMIcjs.EmbedViewerFrame,
|
|
85
85
|
{
|
|
86
86
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSQM4PDRcjs.AdobePdfIcon, { className: "h-5 w-5 shrink-0" }),
|
|
87
87
|
title: displayName,
|
|
@@ -124,4 +124,4 @@ function PdfViewer({ src, fileName, onPreview, onDownload, height }) {
|
|
|
124
124
|
|
|
125
125
|
|
|
126
126
|
exports.FileDownloadCard = FileDownloadCard; exports.GoogleSheetsViewer = GoogleSheetsViewer; exports.PdfViewer = PdfViewer;
|
|
127
|
-
//# sourceMappingURL=chunk-
|
|
127
|
+
//# sourceMappingURL=chunk-QCSWM3VU.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-QCSWM3VU.cjs","../src/components/embeds/file-download-card.tsx","../src/components/embeds/google-sheets-viewer.tsx","../src/components/embeds/pdf-viewer.tsx"],"names":["jsxs","jsx","Download"],"mappings":"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","file":"/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-QCSWM3VU.cjs","sourcesContent":[null,"import { FileText, Download } from 'lucide-react';\nimport { formatFileSize } from '../../utils';\nimport { Button } from '../ui';\n\nexport interface FileDownloadCardProps {\n fileName?: string;\n mimeType?: string;\n fileSize?: number;\n fileUrl?: string;\n}\n\n/**\n * Generic downloadable-file card for the `file` document type. Used by\n * `<DocsHubPage>`'s default `documentTypeRenderers.file`. Embedders can\n * override the default by passing their own `file` renderer.\n *\n * When `fileUrl` is missing, the Download button is omitted (the card still\n * renders the filename + type + size so the user knows what they were\n * about to download).\n */\nexport function FileDownloadCard({ fileName, mimeType, fileSize, fileUrl }: FileDownloadCardProps) {\n return (\n <div className=\"flex flex-col items-center justify-center py-16\">\n <div className=\"w-full max-w-md space-y-4 rounded-xl border border-ods-border bg-ods-card p-8 text-center\">\n <FileText className=\"mx-auto h-16 w-16 text-ods-text-secondary\" />\n <div>\n <h3 className=\"text-ods-text-primary text-h3\">{fileName || 'File'}</h3>\n <div className=\"mt-2 flex items-center justify-center gap-3 text-ods-text-secondary text-h6\">\n {mimeType && <span>{mimeType}</span>}\n {typeof fileSize === 'number' && <span>{formatFileSize(fileSize)}</span>}\n </div>\n </div>\n {fileUrl && (\n <Button variant=\"accent\" href={fileUrl} openInNewTab leftIcon={<Download className=\"h-4 w-4\" />}>\n Download File\n </Button>\n )}\n </div>\n </div>\n );\n}\n","'use client';\n\nimport { ExternalLink } from 'lucide-react';\nimport { toGoogleSheetsEmbedUrl, toGoogleSheetsOriginalUrl } from '../../utils/embed-url-converters';\nimport { GoogleSheetsIcon } from '../icons-v2-generated';\nimport { Button } from '../ui';\nimport { EmbedViewerFrame } from './embed-viewer-frame';\n\nexport interface GoogleSheetsViewerProps {\n externalUrl: string;\n fileName?: string;\n height?: string;\n}\n\nexport function GoogleSheetsViewer({ externalUrl, fileName, height }: GoogleSheetsViewerProps) {\n const displayName = fileName || 'Google Sheet';\n\n // Historical shape: no URL at all → standalone empty state with NO header\n // (the frame's empty body keeps the header — that's the figma behavior).\n if (!externalUrl) {\n return (\n <div className=\"flex flex-col items-center justify-center py-16 text-center\">\n <GoogleSheetsIcon className=\"mb-4 h-16 w-16 text-ods-text-secondary\" />\n <p className=\"text-ods-text-secondary\">Google Sheet URL not configured</p>\n </div>\n );\n }\n\n return (\n <EmbedViewerFrame\n icon={<GoogleSheetsIcon className=\"h-5 w-5 shrink-0\" />}\n title={displayName}\n actions={\n <Button\n variant=\"outline\"\n size=\"small-legacy\"\n href={toGoogleSheetsOriginalUrl(externalUrl)}\n openInNewTab\n leftIcon={<GoogleSheetsIcon className=\"h-4 w-4\" />}\n rightIcon={<ExternalLink className=\"h-4 w-4\" />}\n className=\"w-full sm:w-auto\"\n >\n Open in Google Sheets\n </Button>\n }\n src={toGoogleSheetsEmbedUrl(externalUrl)}\n height={height}\n />\n );\n}\n","'use client';\n\nimport { Download, Eye } from 'lucide-react';\nimport { AdobePdfIcon } from '../icons-v2-generated';\nimport { Button } from '../ui';\nimport { EmbedViewerFrame } from './embed-viewer-frame';\n\nexport interface PdfViewerProps {\n src: string;\n fileName?: string;\n onPreview?: () => void;\n onDownload?: () => void;\n height?: string;\n}\n\nexport function PdfViewer({ src, fileName, onPreview, onDownload, height }: PdfViewerProps) {\n const displayName = fileName || 'PDF Document';\n\n // Historical shape: no src at all → standalone empty state with NO header.\n if (!src) {\n return (\n <div className=\"flex flex-col items-center justify-center py-16 text-center\">\n <AdobePdfIcon className=\"mb-4 h-16 w-16 text-ods-text-secondary\" />\n <p className=\"text-ods-text-secondary\">PDF file not available</p>\n </div>\n );\n }\n\n return (\n <EmbedViewerFrame\n icon={<AdobePdfIcon className=\"h-5 w-5 shrink-0\" />}\n title={displayName}\n actions={\n <div className=\"flex w-full items-center gap-2 sm:w-auto\">\n <Button\n variant=\"outline\"\n size=\"small-legacy\"\n href={onPreview ? undefined : src}\n openInNewTab={!onPreview}\n onClick={onPreview}\n leftIcon={<Eye className=\"h-4 w-4\" />}\n className=\"flex-1 sm:flex-initial\"\n >\n Preview\n </Button>\n <Button\n variant=\"outline\"\n size=\"small-legacy\"\n href={onDownload ? undefined : src}\n openInNewTab={!onDownload}\n onClick={onDownload}\n leftIcon={<Download className=\"h-4 w-4\" />}\n className=\"flex-1 sm:flex-initial\"\n >\n Download\n </Button>\n </div>\n }\n src={src}\n height={height}\n />\n );\n}\n"]}
|
|
@@ -9,7 +9,7 @@ var _chunkD55IENZJcjs = require('./chunk-D55IENZJ.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkVOZZQ6HQcjs = require('./chunk-VOZZQ6HQ.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -18,8 +18,7 @@ var _chunkCCWI3622cjs = require('./chunk-CCWI3622.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
var _chunkYXWGSDK4cjs = require('./chunk-YXWGSDK4.cjs');
|
|
21
|
+
var _chunkZI27ALYXcjs = require('./chunk-ZI27ALYX.cjs');
|
|
23
22
|
|
|
24
23
|
|
|
25
24
|
|
|
@@ -36,7 +35,8 @@ var _chunkGSQM4PDRcjs = require('./chunk-GSQM4PDR.cjs');
|
|
|
36
35
|
|
|
37
36
|
|
|
38
37
|
|
|
39
|
-
|
|
38
|
+
|
|
39
|
+
var _chunk4E7XCEV3cjs = require('./chunk-4E7XCEV3.cjs');
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
@@ -144,9 +144,9 @@ function useDeferredError(error, value, delay = 1500) {
|
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
// src/hooks/ui/use-drag-and-drop-enabled.ts
|
|
147
|
-
var DRAG_AND_DROP_MEDIA_QUERY = `(pointer: fine) and (hover: hover) and ${
|
|
147
|
+
var DRAG_AND_DROP_MEDIA_QUERY = `(pointer: fine) and (hover: hover) and ${_chunkZI27ALYXcjs.breakpoints.md}`;
|
|
148
148
|
function useDragAndDropEnabled() {
|
|
149
|
-
return _nullishCoalesce(
|
|
149
|
+
return _nullishCoalesce(_chunkZI27ALYXcjs.useMediaQuery.call(void 0, DRAG_AND_DROP_MEDIA_QUERY), () => ( false));
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
// src/hooks/ui/use-focus-trap.ts
|
|
@@ -476,7 +476,7 @@ function useLocalStorage(key, initialValue, options) {
|
|
|
476
476
|
});
|
|
477
477
|
const validate = _optionalChain([options, 'optionalAccess', _17 => _17.validate]);
|
|
478
478
|
const storage = _react.useMemo.call(void 0,
|
|
479
|
-
() =>
|
|
479
|
+
() => _chunk4E7XCEV3cjs.createLocalStorageAdapter.call(void 0, { key, validate, logTag: `[useLocalStorage:${key}]` }),
|
|
480
480
|
[key, validate]
|
|
481
481
|
);
|
|
482
482
|
const [storedValue, setStoredValue] = _react.useState.call(void 0, () => _nullishCoalesce(storage.load(), () => ( initialValue)));
|
|
@@ -751,7 +751,7 @@ function useSearch(config) {
|
|
|
751
751
|
searchFnRef.current = searchFn;
|
|
752
752
|
mapResultRef.current = mapResult;
|
|
753
753
|
});
|
|
754
|
-
const debouncedQuery =
|
|
754
|
+
const debouncedQuery = _chunkZI27ALYXcjs.useDebounce.call(void 0, query, debounceMs);
|
|
755
755
|
const clearResults = _react.useCallback.call(void 0, () => {
|
|
756
756
|
setResults(NO_RESULTS);
|
|
757
757
|
setError(null);
|
|
@@ -888,7 +888,7 @@ var _overlays = require('@react-aria/overlays');
|
|
|
888
888
|
var _lucidereact = require('lucide-react');
|
|
889
889
|
var _jsxruntime = require('react/jsx-runtime');
|
|
890
890
|
function renderPlatformIcon(platformName, className) {
|
|
891
|
-
const tinted = _chunk23V5BSHDcjs.cn.call(void 0, className,
|
|
891
|
+
const tinted = _chunk23V5BSHDcjs.cn.call(void 0, className, _chunk4E7XCEV3cjs.getPlatformBrandClasses.call(void 0, platformName).accentText);
|
|
892
892
|
switch (platformName) {
|
|
893
893
|
case "openframe":
|
|
894
894
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -956,7 +956,7 @@ function getPlatformIconComponent(platformName, className = "h-6 w-6") {
|
|
|
956
956
|
return renderPlatformIcon(platformName, className);
|
|
957
957
|
}
|
|
958
958
|
function getPlatformColorClass(platformName) {
|
|
959
|
-
return
|
|
959
|
+
return _chunk4E7XCEV3cjs.getPlatformBrandClasses.call(void 0, platformName).accentBg;
|
|
960
960
|
}
|
|
961
961
|
|
|
962
962
|
// src/hooks/platform/use-platform-config.ts
|
|
@@ -1222,7 +1222,7 @@ function CommandApprovalToast({
|
|
|
1222
1222
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "overflow-hidden", children: [
|
|
1223
1223
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-11 w-full items-center gap-2 border-b border-ods-border bg-ods-card px-3 py-2", children: [
|
|
1224
1224
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h6", title: command, children: command }),
|
|
1225
|
-
toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1225
|
+
toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZI27ALYXcjs.ToolIcon, { toolType, size: 16 }) : null
|
|
1226
1226
|
] }),
|
|
1227
1227
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2 bg-ods-bg p-3", children: [
|
|
1228
1228
|
approvalDescription ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: approvalDescription }) : null,
|
|
@@ -1395,7 +1395,7 @@ function useContactSubmission(options = {}) {
|
|
|
1395
1395
|
if (isSubmitting) return;
|
|
1396
1396
|
setIsSubmitting(true);
|
|
1397
1397
|
try {
|
|
1398
|
-
const response = await
|
|
1398
|
+
const response = await _chunkVOZZQ6HQcjs.contentFetch.call(void 0, contactUrl, {
|
|
1399
1399
|
method: "POST",
|
|
1400
1400
|
headers: { "Content-Type": "application/json" },
|
|
1401
1401
|
body: JSON.stringify({
|
|
@@ -1405,7 +1405,7 @@ function useContactSubmission(options = {}) {
|
|
|
1405
1405
|
});
|
|
1406
1406
|
if (!response.ok) {
|
|
1407
1407
|
const failure = await response.json().catch(() => null);
|
|
1408
|
-
throw new Error(
|
|
1408
|
+
throw new Error(_chunk4E7XCEV3cjs.apiErrorMessage.call(void 0, failure, "Failed to submit contact form"));
|
|
1409
1409
|
}
|
|
1410
1410
|
setIsSuccess(true);
|
|
1411
1411
|
const message = successToastMessage ? `Thank you! Your message has been sent. ${successToastMessage}` : "Thank you! Your message has been sent successfully.";
|
|
@@ -2090,7 +2090,7 @@ function variablesToUrlParams(variables, schema) {
|
|
|
2090
2090
|
const params = new URLSearchParams();
|
|
2091
2091
|
for (const [paramName, paramConfig] of Object.entries(schema)) {
|
|
2092
2092
|
const value = getNestedValue(variables, paramConfig.graphqlPath);
|
|
2093
|
-
if (!
|
|
2093
|
+
if (!_chunkVOZZQ6HQcjs.shouldIncludeInUrl.call(void 0, value, paramConfig)) {
|
|
2094
2094
|
continue;
|
|
2095
2095
|
}
|
|
2096
2096
|
if (Array.isArray(value)) {
|
|
@@ -2119,7 +2119,7 @@ function coerceScalar(value, type) {
|
|
|
2119
2119
|
return isNaN(num) ? null : num;
|
|
2120
2120
|
}
|
|
2121
2121
|
case "int":
|
|
2122
|
-
return
|
|
2122
|
+
return _chunkVOZZQ6HQcjs.positiveInt.call(void 0, value, null);
|
|
2123
2123
|
case "boolean":
|
|
2124
2124
|
return value === "true" || value === "1";
|
|
2125
2125
|
case "string":
|
|
@@ -2425,7 +2425,7 @@ function useApiParams(schema, options = {}) {
|
|
|
2425
2425
|
return flattened;
|
|
2426
2426
|
}, [stableSchema]);
|
|
2427
2427
|
const rawParams = _react.useMemo.call(void 0, () => {
|
|
2428
|
-
const result =
|
|
2428
|
+
const result = _chunkVOZZQ6HQcjs.parseSchemaParams.call(void 0, stableSchema, new URLSearchParams(searchString), {
|
|
2429
2429
|
absent: options.absent === "null" ? "null" : "undefined"
|
|
2430
2430
|
});
|
|
2431
2431
|
if (debug) {
|
|
@@ -2441,14 +2441,14 @@ function useApiParams(schema, options = {}) {
|
|
|
2441
2441
|
}
|
|
2442
2442
|
const params = stableParams;
|
|
2443
2443
|
const addParamToSearchParams = _react.useCallback.call(void 0, (searchParams, key, value) => {
|
|
2444
|
-
for (const [k, v] of
|
|
2444
|
+
for (const [k, v] of _chunkVOZZQ6HQcjs.createSearchParams.call(void 0, { [key]: value })) searchParams.append(k, v);
|
|
2445
2445
|
}, []);
|
|
2446
2446
|
const urlSearchParams = _react.useMemo.call(void 0, () => {
|
|
2447
2447
|
const newParams = new URLSearchParams();
|
|
2448
2448
|
for (const key of Object.keys(stableSchema)) {
|
|
2449
2449
|
const value = params[key];
|
|
2450
2450
|
const paramConfig = flattenedSchema[key];
|
|
2451
|
-
if (!
|
|
2451
|
+
if (!_chunkVOZZQ6HQcjs.shouldIncludeInUrl.call(void 0, value, paramConfig)) {
|
|
2452
2452
|
continue;
|
|
2453
2453
|
}
|
|
2454
2454
|
addParamToSearchParams(newParams, key, value);
|
|
@@ -2505,7 +2505,7 @@ function useApiParams(schema, options = {}) {
|
|
|
2505
2505
|
return;
|
|
2506
2506
|
}
|
|
2507
2507
|
const newParams = new URLSearchParams();
|
|
2508
|
-
if (
|
|
2508
|
+
if (_chunkVOZZQ6HQcjs.shouldIncludeInUrl.call(void 0, value, config)) {
|
|
2509
2509
|
addParamToSearchParams(newParams, key, value);
|
|
2510
2510
|
updateUrl(newParams);
|
|
2511
2511
|
} else {
|
|
@@ -2524,7 +2524,7 @@ function useApiParams(schema, options = {}) {
|
|
|
2524
2524
|
console.warn(`[useApiParams] Unknown parameter: ${key}`);
|
|
2525
2525
|
continue;
|
|
2526
2526
|
}
|
|
2527
|
-
if (
|
|
2527
|
+
if (_chunkVOZZQ6HQcjs.shouldIncludeInUrl.call(void 0, value, flattenedSchema[key])) {
|
|
2528
2528
|
addParamToSearchParams(newParams, key, value);
|
|
2529
2529
|
} else {
|
|
2530
2530
|
keysToRemove.push(key);
|
|
@@ -2549,7 +2549,7 @@ function useApiParams(schema, options = {}) {
|
|
|
2549
2549
|
}, [router, debug]);
|
|
2550
2550
|
const pendingParams = _react.useMemo.call(void 0, () => {
|
|
2551
2551
|
if (pendingTail === void 0 || pendingTail === searchString) return params;
|
|
2552
|
-
return
|
|
2552
|
+
return _chunkVOZZQ6HQcjs.parseSchemaParams.call(void 0, stableSchema, new URLSearchParams(pendingTail), {
|
|
2553
2553
|
absent: options.absent === "null" ? "null" : "undefined"
|
|
2554
2554
|
});
|
|
2555
2555
|
}, [pendingTail, searchString, params, stableSchema, options.absent]);
|
|
@@ -2723,7 +2723,7 @@ async function validateAccessCode(email, code, endpoints) {
|
|
|
2723
2723
|
});
|
|
2724
2724
|
if (!response.ok) {
|
|
2725
2725
|
const failure = await response.json().catch(() => null);
|
|
2726
|
-
throw new Error(
|
|
2726
|
+
throw new Error(_chunk4E7XCEV3cjs.apiErrorMessage.call(void 0, failure, "Validation request failed"));
|
|
2727
2727
|
}
|
|
2728
2728
|
return await response.json();
|
|
2729
2729
|
} catch (error) {
|
|
@@ -2744,7 +2744,7 @@ async function consumeAccessCode(email, code, endpoints) {
|
|
|
2744
2744
|
});
|
|
2745
2745
|
if (!response.ok) {
|
|
2746
2746
|
const failure = await response.json().catch(() => null);
|
|
2747
|
-
throw new Error(
|
|
2747
|
+
throw new Error(_chunk4E7XCEV3cjs.apiErrorMessage.call(void 0, failure, "Consumption request failed"));
|
|
2748
2748
|
}
|
|
2749
2749
|
return await response.json();
|
|
2750
2750
|
} catch (error) {
|
|
@@ -2945,15 +2945,15 @@ function useScrollToHash(readyDep = true, options) {
|
|
|
2945
2945
|
}
|
|
2946
2946
|
};
|
|
2947
2947
|
const tryScrollToHash = () => {
|
|
2948
|
-
const hash =
|
|
2948
|
+
const hash = _chunkZI27ALYXcjs.normalizeHashFragment.call(void 0, window.location.hash).slice(1);
|
|
2949
2949
|
if (!hash) return;
|
|
2950
2950
|
cancelPoll();
|
|
2951
2951
|
let frames = 0;
|
|
2952
2952
|
const tick = () => {
|
|
2953
|
-
const el =
|
|
2953
|
+
const el = _chunkZI27ALYXcjs.getHashTargetElement.call(void 0, hash);
|
|
2954
2954
|
if (el) {
|
|
2955
2955
|
rafId = null;
|
|
2956
|
-
|
|
2956
|
+
_chunkZI27ALYXcjs.scrollElementIntoView.call(void 0, el, { headerOffset });
|
|
2957
2957
|
return;
|
|
2958
2958
|
}
|
|
2959
2959
|
if (frames++ < MAX_POLL_FRAMES) {
|
|
@@ -3140,4 +3140,4 @@ function useHumanitySignals() {
|
|
|
3140
3140
|
|
|
3141
3141
|
|
|
3142
3142
|
exports.useAutoLimitTags = useAutoLimitTags; exports.useKeyboardCollisionPadding = useKeyboardCollisionPadding; exports.useDeferredError = useDeferredError; exports.DRAG_AND_DROP_MEDIA_QUERY = DRAG_AND_DROP_MEDIA_QUERY; exports.useDragAndDropEnabled = useDragAndDropEnabled; exports.useFocusTrap = useFocusTrap; exports.useHorizontalScrollbar = useHorizontalScrollbar; exports.useLocalStorage = useLocalStorage; exports.useMemoizedCallback = useMemoizedCallback; exports.useNotificationPermission = useNotificationPermission; exports.useOnboardingState = useOnboardingState; exports.useSearch = useSearch; exports.useTablePagination = useTablePagination; exports.useThrottle = useThrottle; exports.useWindowSize = useWindowSize; exports.usePreventScroll = _overlays.usePreventScroll; exports.platformIcons = platformIcons; exports.transformPlatformConfigsToOptions = transformPlatformConfigsToOptions; exports.getPlatformIcon = getPlatformIcon; exports.getSmallPlatformIcon = getSmallPlatformIcon; exports.getPlatformIconComponent = getPlatformIconComponent; exports.usePlatformConfig = usePlatformConfig; exports.usePlatformByValue = usePlatformByValue; exports.useValidatePlatform = useValidatePlatform; exports.dotColorByVariant = dotColorByVariant; exports.progressColorByVariant = progressColorByVariant; exports.ToastCard = ToastCard; exports.CommandApprovalToast = CommandApprovalToast; exports.Toaster = Toaster; exports.showToast = showToast; exports.showCommandApprovalToast = showCommandApprovalToast; exports.toast = toast; exports.useToast = useToast; exports.useContactSubmission = useContactSubmission; exports.useCopyToClipboard = useCopyToClipboard; exports.configureBatchImageFetch = configureBatchImageFetch; exports.batchFetchAuthenticatedImages = batchFetchAuthenticatedImages; exports.useBatchImages = useBatchImages; exports.configureAuthenticatedImage = configureAuthenticatedImage; exports.useAuthenticatedImage = useAuthenticatedImage; exports.flattenQueryVariables = flattenQueryVariables; exports.mergeDefaults = mergeDefaults; exports.validateSchema = validateSchema; exports.getArrayParams = getArrayParams; exports.getRequiredParams = getRequiredParams; exports.extractVariablesFromQuery = extractVariablesFromQuery; exports.isScalarType = isScalarType; exports.isInputObjectType = isInputObjectType; exports.GraphQLIntrospector = GraphQLIntrospector; exports.introspector = introspector; exports.urlParamsToVariables = urlParamsToVariables; exports.variablesToUrlParams = variablesToUrlParams; exports.coerceValue = coerceValue; exports.setNestedValue = setNestedValue; exports.getNestedValue = getNestedValue; exports.mergeVariables = mergeVariables; exports.clearParams = clearParams; exports.validateVariables = validateVariables; exports.useQueryParams = useQueryParams; exports.useApiParams = useApiParams; exports.useCursorPaginationState = useCursorPaginationState; exports.useNatsClient = useNatsClient; exports.validateAccessCode = validateAccessCode; exports.consumeAccessCode = consumeAccessCode; exports.validateAndConsumeAccessCode = validateAndConsumeAccessCode; exports.useAccessCodeIntegration = useAccessCodeIntegration; exports.toGoogleSheetsEmbedUrl = toGoogleSheetsEmbedUrl; exports.toGoogleSheetsOriginalUrl = toGoogleSheetsOriginalUrl; exports.toFigmaEmbedUrl = toFigmaEmbedUrl; exports.isFigmaSlidesUrl = isFigmaSlidesUrl; exports.toFigmaOriginalUrl = toFigmaOriginalUrl; exports.toClaudeMirrorPath = toClaudeMirrorPath; exports.toClaudeEmbedUrl = toClaudeEmbedUrl; exports.useClaudeMirrorSrc = useClaudeMirrorSrc; exports.useScrollToHash = useScrollToHash; exports.HONEYPOT_FIELD = HONEYPOT_FIELD; exports.ELAPSED_MS_FIELD = ELAPSED_MS_FIELD; exports.DEFAULT_MIN_FILL_MS = DEFAULT_MIN_FILL_MS; exports.HUMANITY_SIGNAL_KEYS = HUMANITY_SIGNAL_KEYS; exports.isHumanitySignalKey = isHumanitySignalKey; exports.extractHumanitySignals = extractHumanitySignals; exports.findHoneypotCopySource = findHoneypotCopySource; exports.evaluateHumanitySignals = evaluateHumanitySignals; exports.splitCsvEnv = splitCsvEnv; exports.useHumanitySignals = useHumanitySignals;
|
|
3143
|
-
//# sourceMappingURL=chunk-
|
|
3143
|
+
//# sourceMappingURL=chunk-QIVX7F3N.cjs.map
|