@flamingo-stack/openframe-frontend-core 0.0.644 → 0.0.645-snapshot.20260917103313
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/README.md +2 -2
- package/dist/{chunk-RFFF2EYD.cjs → chunk-2KE2M67P.cjs} +15 -15
- package/dist/{chunk-RFFF2EYD.cjs.map → chunk-2KE2M67P.cjs.map} +1 -1
- package/dist/{chunk-PFV4DAX5.js → chunk-2ZLCQSG4.js} +10 -10
- package/dist/{chunk-FOSIR4QF.js → chunk-3DWDJ54N.js} +5 -5
- package/dist/{chunk-YB6FI2G3.js → chunk-3SMLYVM2.js} +1 -1
- package/dist/{chunk-YB6FI2G3.js.map → chunk-3SMLYVM2.js.map} +1 -1
- package/dist/{chunk-4EEUB62O.js → chunk-4HVWGYHI.js} +2 -2
- package/dist/{chunk-27RD5XTP.js → chunk-4TLGU2FT.js} +5 -5
- package/dist/{chunk-G5U4JP45.js → chunk-5ONM3FHQ.js} +4 -4
- package/dist/{chunk-MRIOYSXH.js → chunk-63RIPFJ4.js} +5 -5
- package/dist/{chunk-GELNUDBT.cjs → chunk-77BLJHKI.cjs} +10 -10
- package/dist/{chunk-GELNUDBT.cjs.map → chunk-77BLJHKI.cjs.map} +1 -1
- package/dist/{chunk-KJWPAJRT.js → chunk-7EI3NES7.js} +3 -3
- package/dist/{chunk-DCCY54LU.cjs → chunk-7HHVE7DC.cjs} +14 -14
- package/dist/{chunk-DCCY54LU.cjs.map → chunk-7HHVE7DC.cjs.map} +1 -1
- package/dist/{chunk-CBXZSTAG.cjs → chunk-7UWJMWDH.cjs} +1004 -794
- package/dist/chunk-7UWJMWDH.cjs.map +1 -0
- package/dist/{chunk-3DGRXC74.js → chunk-CH5E4GXC.js} +5 -5
- package/dist/{chunk-VE52MSYC.js → chunk-CJMWRV65.js} +8 -8
- package/dist/{chunk-65EVGKFV.cjs → chunk-CSZBFSYT.cjs} +14 -14
- package/dist/{chunk-65EVGKFV.cjs.map → chunk-CSZBFSYT.cjs.map} +1 -1
- package/dist/{chunk-TTVOBWAH.js → chunk-D5PU7K2W.js} +5 -5
- package/dist/{chunk-3IXDZI3R.cjs → chunk-DOVVKQMZ.cjs} +3 -3
- package/dist/{chunk-3IXDZI3R.cjs.map → chunk-DOVVKQMZ.cjs.map} +1 -1
- package/dist/{chunk-I57XLISO.js → chunk-DULSS7R6.js} +226 -16
- package/dist/chunk-DULSS7R6.js.map +1 -0
- package/dist/{chunk-KOQCA5X5.cjs → chunk-DWJREJRA.cjs} +5 -5
- package/dist/{chunk-KOQCA5X5.cjs.map → chunk-DWJREJRA.cjs.map} +1 -1
- package/dist/{chunk-7R2DIGG4.cjs → chunk-EX5PJGVA.cjs} +76 -76
- package/dist/{chunk-7R2DIGG4.cjs.map → chunk-EX5PJGVA.cjs.map} +1 -1
- package/dist/{chunk-GBEUGDZG.cjs → chunk-F6U2H42L.cjs} +23 -23
- package/dist/{chunk-GBEUGDZG.cjs.map → chunk-F6U2H42L.cjs.map} +1 -1
- package/dist/{chunk-3UBT2OIX.cjs → chunk-FMG2YUBW.cjs} +74 -74
- package/dist/{chunk-3UBT2OIX.cjs.map → chunk-FMG2YUBW.cjs.map} +1 -1
- package/dist/{chunk-KEKN76JR.js → chunk-FRQ2DE5Z.js} +5 -5
- package/dist/{chunk-JOV64HW5.js → chunk-GRBZC5N3.js} +3 -3
- package/dist/{chunk-CHIHYC7Q.cjs → chunk-GSD62VAY.cjs} +21 -21
- package/dist/{chunk-CHIHYC7Q.cjs.map → chunk-GSD62VAY.cjs.map} +1 -1
- package/dist/{chunk-LPMDCQLL.js → chunk-H3EJDISW.js} +2 -2
- package/dist/{chunk-HPWLIYRL.js → chunk-HT4B4NGI.js} +14 -14
- package/dist/{chunk-KOLVBEW5.js → chunk-IWISVG4P.js} +3 -3
- package/dist/{chunk-MCQAOIUK.cjs → chunk-JEH4PXJG.cjs} +37 -37
- package/dist/{chunk-MCQAOIUK.cjs.map → chunk-JEH4PXJG.cjs.map} +1 -1
- package/dist/{chunk-GNKM6R55.cjs → chunk-JH5P72AF.cjs} +25 -25
- package/dist/{chunk-GNKM6R55.cjs.map → chunk-JH5P72AF.cjs.map} +1 -1
- package/dist/{chunk-HOGOQA2X.js → chunk-JNOPOJHH.js} +3 -3
- package/dist/{chunk-LCK7T2RM.cjs → chunk-JU6SBF3C.cjs} +13 -13
- package/dist/{chunk-LCK7T2RM.cjs.map → chunk-JU6SBF3C.cjs.map} +1 -1
- package/dist/{chunk-F2KBCLUG.js → chunk-KKSSA4CS.js} +2 -2
- package/dist/{chunk-IXD6SHQ6.js → chunk-KMI4VAS2.js} +6 -6
- package/dist/{chunk-IIXB5REN.cjs → chunk-KNMCYCY3.cjs} +16 -16
- package/dist/{chunk-IIXB5REN.cjs.map → chunk-KNMCYCY3.cjs.map} +1 -1
- package/dist/{chunk-RNMGKAS6.js → chunk-KPEBCJIH.js} +15 -15
- package/dist/{chunk-OMSUWB6A.cjs → chunk-LPMW5CNR.cjs} +118 -118
- package/dist/{chunk-OMSUWB6A.cjs.map → chunk-LPMW5CNR.cjs.map} +1 -1
- package/dist/{chunk-FKBM6U43.js → chunk-LZLT67PE.js} +2 -2
- package/dist/{chunk-B3Z3RJRW.js → chunk-M4AD2PHE.js} +5 -5
- package/dist/{chunk-BVQEU5JB.js → chunk-MT5A25AX.js} +2 -2
- package/dist/chunk-OXB6LRBK.js +20 -0
- package/dist/chunk-OXB6LRBK.js.map +1 -0
- package/dist/{chunk-OVXYX47B.cjs → chunk-PP6RACFB.cjs} +19 -19
- package/dist/{chunk-OVXYX47B.cjs.map → chunk-PP6RACFB.cjs.map} +1 -1
- package/dist/{chunk-S2KMNFFN.js → chunk-RJUXSUSM.js} +7 -7
- package/dist/{chunk-TGUA3C4U.cjs → chunk-RKN3TM24.cjs} +9 -9
- package/dist/{chunk-TGUA3C4U.cjs.map → chunk-RKN3TM24.cjs.map} +1 -1
- package/dist/{chunk-C5Y5T6GC.cjs → chunk-SBJ7BWYG.cjs} +20 -20
- package/dist/{chunk-C5Y5T6GC.cjs.map → chunk-SBJ7BWYG.cjs.map} +1 -1
- package/dist/{chunk-UKV52KAP.cjs → chunk-SIXBT6BA.cjs} +44 -44
- package/dist/{chunk-UKV52KAP.cjs.map → chunk-SIXBT6BA.cjs.map} +1 -1
- package/dist/{chunk-SKABQX44.js → chunk-SKA27VLR.js} +7 -7
- package/dist/{chunk-UPKZU6QU.cjs → chunk-U2YLMFJK.cjs} +1 -1
- package/dist/{chunk-UPKZU6QU.cjs.map → chunk-U2YLMFJK.cjs.map} +1 -1
- package/dist/{chunk-B5IFXCRF.cjs → chunk-VJOZGHTK.cjs} +41 -41
- package/dist/{chunk-B5IFXCRF.cjs.map → chunk-VJOZGHTK.cjs.map} +1 -1
- package/dist/{chunk-UEXIMEVU.js → chunk-VK7YKTAL.js} +10 -10
- package/dist/{chunk-CCWI3622.cjs → chunk-VTYP25OW.cjs} +4 -4
- package/dist/{chunk-CCWI3622.cjs.map → chunk-VTYP25OW.cjs.map} +1 -1
- package/dist/{chunk-4WVWRFGP.js → chunk-W2HZUFVB.js} +9 -9
- package/dist/{chunk-T3C3JLGV.cjs → chunk-WKX7DYFM.cjs} +8 -8
- package/dist/{chunk-T3C3JLGV.cjs.map → chunk-WKX7DYFM.cjs.map} +1 -1
- package/dist/{chunk-RB6L5EGM.cjs → chunk-X2YUAHNR.cjs} +1131 -1131
- package/dist/{chunk-RB6L5EGM.cjs.map → chunk-X2YUAHNR.cjs.map} +1 -1
- package/dist/{chunk-LZYPSDFE.cjs → chunk-X5OMIX5I.cjs} +90 -90
- package/dist/{chunk-LZYPSDFE.cjs.map → chunk-X5OMIX5I.cjs.map} +1 -1
- package/dist/chunk-X7CEWD6V.cjs +20 -0
- package/dist/chunk-X7CEWD6V.cjs.map +1 -0
- package/dist/{chunk-5JUTGEZE.js → chunk-XBTZOO74.js} +2 -2
- package/dist/{chunk-RWURXICE.cjs → chunk-XGD6SCHN.cjs} +44 -44
- package/dist/{chunk-RWURXICE.cjs.map → chunk-XGD6SCHN.cjs.map} +1 -1
- package/dist/{chunk-EHAYNUOL.cjs → chunk-XOGD2AME.cjs} +3 -3
- package/dist/{chunk-EHAYNUOL.cjs.map → chunk-XOGD2AME.cjs.map} +1 -1
- package/dist/{chunk-FAD5WURS.cjs → chunk-YR5S7VBA.cjs} +124 -124
- package/dist/{chunk-FAD5WURS.cjs.map → chunk-YR5S7VBA.cjs.map} +1 -1
- package/dist/{chunk-N6HNK25A.cjs → chunk-YWUZL3RT.cjs} +11 -11
- package/dist/{chunk-N6HNK25A.cjs.map → chunk-YWUZL3RT.cjs.map} +1 -1
- package/dist/{chunk-7Q5XXPCB.js → chunk-Z3HJFVYS.js} +14 -14
- package/dist/components/calendar.cjs +10 -10
- package/dist/components/calendar.js +2 -2
- package/dist/components/case-studies/index.cjs +30 -30
- package/dist/components/case-studies/index.js +14 -14
- package/dist/components/chat/embeddable-chat.d.ts +14 -1
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +9 -9
- package/dist/components/chat/index.d.ts +1 -1
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +8 -8
- package/dist/components/chat/utils/source-row-cta.d.ts +1 -1
- package/dist/components/command.d.ts +7 -7
- package/dist/components/contact/index.cjs +15 -15
- package/dist/components/contact/index.js +14 -14
- package/dist/components/docs/index.cjs +18 -18
- package/dist/components/docs/index.js +17 -17
- package/dist/components/embeds/index.cjs +15 -15
- package/dist/components/embeds/index.js +14 -14
- package/dist/components/faq/index.cjs +16 -16
- package/dist/components/faq/index.js +15 -15
- package/dist/components/features/index.cjs +14 -14
- package/dist/components/features/index.js +13 -13
- package/dist/components/help-center-pages/index.cjs +37 -37
- package/dist/components/help-center-pages/index.js +28 -28
- package/dist/components/icons/index.cjs +3 -3
- package/dist/components/icons/index.js +2 -2
- package/dist/components/index.cjs +115 -115
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +31 -31
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +119 -119
- package/dist/components/meeting-scheduler/index.js +15 -15
- package/dist/components/navigation/index.cjs +17 -17
- package/dist/components/navigation/index.js +16 -16
- package/dist/components/onboarding-guides/index.cjs +18 -18
- package/dist/components/onboarding-guides/index.js +17 -17
- package/dist/components/related-content/index.cjs +10 -10
- package/dist/components/related-content/index.js +9 -9
- package/dist/components/resizable.d.ts +1 -1
- package/dist/components/tickets/index.cjs +19 -19
- package/dist/components/tickets/index.js +18 -18
- package/dist/components/ui/file-manager/index.cjs +57 -57
- package/dist/components/ui/file-manager/index.js +4 -4
- package/dist/components/ui/index.cjs +14 -14
- package/dist/components/ui/index.js +13 -13
- package/dist/contexts/chat-runtime-context.d.ts +1 -1
- package/dist/contexts/index.cjs +2 -2
- package/dist/contexts/index.js +1 -1
- package/dist/hooks/index.cjs +7 -7
- package/dist/hooks/index.js +6 -6
- package/dist/index.cjs +36 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +30 -22
- package/dist/index.js.map +1 -1
- package/dist/platform-domains.cjs +43 -0
- package/dist/platform-domains.cjs.map +1 -1
- package/dist/platform-domains.d.ts +62 -4
- package/dist/platform-domains.d.ts.map +1 -1
- package/dist/platform-domains.js +39 -1
- package/dist/platform-domains.js.map +1 -1
- package/dist/types/index.cjs +0 -104
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.js +0 -104
- package/dist/types/index.js.map +1 -1
- package/dist/utils/cn.d.ts +0 -21
- package/dist/utils/cn.d.ts.map +1 -1
- package/dist/utils/index.cjs +53 -25
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +1 -2
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +49 -25
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/platform-domains.test.ts +124 -0
- package/src/components/chat/embeddable-chat.tsx +65 -3
- package/src/components/chat/index.ts +6 -1
- package/src/components/chat/utils/__tests__/source-row-cta.test.ts +2 -2
- package/src/components/chat/utils/source-row-cta.ts +4 -4
- package/src/components/made-with-love.tsx +2 -2
- package/src/contexts/chat-runtime-context.tsx +1 -1
- package/src/platform-domains.ts +99 -4
- package/src/utils/.cn.md +3 -23
- package/src/utils/cn.ts +0 -47
- package/src/utils/index.ts +9 -2
- package/dist/chunk-23V5BSHD.cjs +0 -169
- package/dist/chunk-23V5BSHD.cjs.map +0 -1
- package/dist/chunk-CBXZSTAG.cjs.map +0 -1
- package/dist/chunk-I57XLISO.js.map +0 -1
- package/dist/chunk-O4MCCKKN.js +0 -169
- package/dist/chunk-O4MCCKKN.js.map +0 -1
- /package/dist/{chunk-PFV4DAX5.js.map → chunk-2ZLCQSG4.js.map} +0 -0
- /package/dist/{chunk-FOSIR4QF.js.map → chunk-3DWDJ54N.js.map} +0 -0
- /package/dist/{chunk-4EEUB62O.js.map → chunk-4HVWGYHI.js.map} +0 -0
- /package/dist/{chunk-27RD5XTP.js.map → chunk-4TLGU2FT.js.map} +0 -0
- /package/dist/{chunk-G5U4JP45.js.map → chunk-5ONM3FHQ.js.map} +0 -0
- /package/dist/{chunk-MRIOYSXH.js.map → chunk-63RIPFJ4.js.map} +0 -0
- /package/dist/{chunk-KJWPAJRT.js.map → chunk-7EI3NES7.js.map} +0 -0
- /package/dist/{chunk-3DGRXC74.js.map → chunk-CH5E4GXC.js.map} +0 -0
- /package/dist/{chunk-VE52MSYC.js.map → chunk-CJMWRV65.js.map} +0 -0
- /package/dist/{chunk-TTVOBWAH.js.map → chunk-D5PU7K2W.js.map} +0 -0
- /package/dist/{chunk-KEKN76JR.js.map → chunk-FRQ2DE5Z.js.map} +0 -0
- /package/dist/{chunk-JOV64HW5.js.map → chunk-GRBZC5N3.js.map} +0 -0
- /package/dist/{chunk-LPMDCQLL.js.map → chunk-H3EJDISW.js.map} +0 -0
- /package/dist/{chunk-HPWLIYRL.js.map → chunk-HT4B4NGI.js.map} +0 -0
- /package/dist/{chunk-KOLVBEW5.js.map → chunk-IWISVG4P.js.map} +0 -0
- /package/dist/{chunk-HOGOQA2X.js.map → chunk-JNOPOJHH.js.map} +0 -0
- /package/dist/{chunk-F2KBCLUG.js.map → chunk-KKSSA4CS.js.map} +0 -0
- /package/dist/{chunk-IXD6SHQ6.js.map → chunk-KMI4VAS2.js.map} +0 -0
- /package/dist/{chunk-RNMGKAS6.js.map → chunk-KPEBCJIH.js.map} +0 -0
- /package/dist/{chunk-FKBM6U43.js.map → chunk-LZLT67PE.js.map} +0 -0
- /package/dist/{chunk-B3Z3RJRW.js.map → chunk-M4AD2PHE.js.map} +0 -0
- /package/dist/{chunk-BVQEU5JB.js.map → chunk-MT5A25AX.js.map} +0 -0
- /package/dist/{chunk-S2KMNFFN.js.map → chunk-RJUXSUSM.js.map} +0 -0
- /package/dist/{chunk-SKABQX44.js.map → chunk-SKA27VLR.js.map} +0 -0
- /package/dist/{chunk-UEXIMEVU.js.map → chunk-VK7YKTAL.js.map} +0 -0
- /package/dist/{chunk-4WVWRFGP.js.map → chunk-W2HZUFVB.js.map} +0 -0
- /package/dist/{chunk-5JUTGEZE.js.map → chunk-XBTZOO74.js.map} +0 -0
- /package/dist/{chunk-7Q5XXPCB.js.map → chunk-Z3HJFVYS.js.map} +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
|
+
|
|
3
|
+
// src/utils/cn.ts
|
|
4
|
+
var _clsx = require('clsx');
|
|
5
|
+
var _tailwindmerge = require('tailwind-merge');
|
|
6
|
+
var twMerge = _tailwindmerge.extendTailwindMerge.call(void 0, {
|
|
7
|
+
extend: {
|
|
8
|
+
classGroups: {
|
|
9
|
+
"ods-typography": ["text-h1", "text-h2", "text-h3", "text-h4", "text-h5", "text-h6", "text-code", "text-badge"]
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
function cn(...inputs) {
|
|
14
|
+
return twMerge(_clsx.clsx.call(void 0, inputs));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
exports.cn = cn;
|
|
20
|
+
//# sourceMappingURL=chunk-X7CEWD6V.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-X7CEWD6V.cjs","../src/utils/cn.ts"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACA;ACFA,4BAAsC;AACtC,+CAAoC;AAmBpC,IAAM,QAAA,EAAU,gDAAA;AAAsC,EACpD,MAAA,EAAQ;AAAA,IACN,WAAA,EAAa;AAAA,MACX,gBAAA,EAAkB,CAAC,SAAA,EAAW,SAAA,EAAW,SAAA,EAAW,SAAA,EAAW,SAAA,EAAW,SAAA,EAAW,WAAA,EAAa,YAAY;AAAA,IAChH;AAAA,EACF;AACF,CAAC,CAAA;AAKM,SAAS,EAAA,CAAA,GAAM,MAAA,EAAsB;AAC1C,EAAA,OAAO,OAAA,CAAQ,wBAAA,MAAW,CAAC,CAAA;AAC7B;ADlBA;AACA;AACE;AACF,gBAAC","file":"/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-X7CEWD6V.cjs","sourcesContent":[null,"import { clsx, type ClassValue } from 'clsx';\nimport { extendTailwindMerge } from 'tailwind-merge';\n\n/**\n * EVERY custom `text-*` utility we add in `tailwind.config.ts` MUST be listed here.\n *\n * tailwind-merge has no knowledge of our utilities, and `text-<word>` is\n * indistinguishable from a text COLOUR to it. So an unlisted `text-badge` gets\n * filed in tailwind-merge's `text-color` group, where it and any real colour\n * class silently annihilate each other — last one wins, the other is dropped\n * from the output entirely:\n *\n * cn('text-badge', 'text-ods-text-on-accent') -> 'text-ods-text-on-accent' (size lost)\n * cn('text-[--some-colour]', 'text-badge') -> 'text-badge' (colour lost)\n *\n * Listing them in their own group makes them non-conflicting with colours, so\n * both survive. This is why `text-h1`…`text-h6` are here; `text-code` and\n * `text-badge` were added to the config later and missing them shipped exactly\n * the two failures above (huge badges, and badge text losing its colour).\n */\nconst twMerge = extendTailwindMerge<'ods-typography'>({\n extend: {\n classGroups: {\n 'ods-typography': ['text-h1', 'text-h2', 'text-h3', 'text-h4', 'text-h5', 'text-h6', 'text-code', 'text-badge'],\n },\n },\n});\n\n/**\n * Combine class names with Tailwind's merge utility\n */\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
cn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OXB6LRBK.js";
|
|
5
5
|
|
|
6
6
|
// src/components/ui/label.tsx
|
|
7
7
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
@@ -302,4 +302,4 @@ export {
|
|
|
302
302
|
SkeletonList,
|
|
303
303
|
SkeletonNavigation
|
|
304
304
|
};
|
|
305
|
-
//# sourceMappingURL=chunk-
|
|
305
|
+
//# sourceMappingURL=chunk-XBTZOO74.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkDOVVKQMZcjs = require('./chunk-DOVVKQMZ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkJU6SBF3Ccjs = require('./chunk-JU6SBF3C.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkVTYP25OWcjs = require('./chunk-VTYP25OW.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -41,7 +41,7 @@ var _chunkCCWI3622cjs = require('./chunk-CCWI3622.cjs');
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkEX5PJGVAcjs = require('./chunk-EX5PJGVA.cjs');
|
|
45
45
|
|
|
46
46
|
// src/components/related-content/related-content-section.tsx
|
|
47
47
|
var _react = require('react');
|
|
@@ -419,13 +419,13 @@ function cardEntry(definition) {
|
|
|
419
419
|
}
|
|
420
420
|
function programEntry(configKey) {
|
|
421
421
|
return cardEntry({
|
|
422
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
422
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEX5PJGVAcjs.ProgramCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
423
423
|
decode: decodeProgramRow,
|
|
424
424
|
render: (item, ctx) => {
|
|
425
425
|
const config = _optionalChain([ctx, 'access', _2 => _2.extras, 'optionalAccess', _3 => _3.programConfigs, 'optionalAccess', _4 => _4[configKey]]);
|
|
426
426
|
if (!config) return null;
|
|
427
427
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
428
|
-
|
|
428
|
+
_chunkEX5PJGVAcjs.ProgramCard,
|
|
429
429
|
{
|
|
430
430
|
config,
|
|
431
431
|
item,
|
|
@@ -441,10 +441,10 @@ function programEntry(configKey) {
|
|
|
441
441
|
}
|
|
442
442
|
function roadmapEntry(cardType) {
|
|
443
443
|
return cardEntry({
|
|
444
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
444
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEX5PJGVAcjs.RoadmapCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
445
445
|
decode: decodeRoadmapRow,
|
|
446
446
|
render: (item, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
447
|
-
|
|
447
|
+
_chunkEX5PJGVAcjs.RoadmapCard,
|
|
448
448
|
{
|
|
449
449
|
item,
|
|
450
450
|
href: ctx.href,
|
|
@@ -461,10 +461,10 @@ function roadmapEntry(cardType) {
|
|
|
461
461
|
}
|
|
462
462
|
var RELATED_CARD_REGISTRY = {
|
|
463
463
|
blog_post_existing: cardEntry({
|
|
464
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
464
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEX5PJGVAcjs.BlogCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
465
465
|
decode: decodeBlogRow,
|
|
466
466
|
render: (post, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
467
|
-
|
|
467
|
+
_chunkEX5PJGVAcjs.BlogCard,
|
|
468
468
|
{
|
|
469
469
|
post,
|
|
470
470
|
size: ctx.legacySize,
|
|
@@ -476,10 +476,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
476
476
|
)
|
|
477
477
|
}),
|
|
478
478
|
case_study: cardEntry({
|
|
479
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
479
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEX5PJGVAcjs.CaseStudyCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
480
480
|
decode: decodeCaseStudyRow,
|
|
481
481
|
render: (study, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
482
|
-
|
|
482
|
+
_chunkEX5PJGVAcjs.CaseStudyCard,
|
|
483
483
|
{
|
|
484
484
|
study,
|
|
485
485
|
size: ctx.legacySize,
|
|
@@ -491,10 +491,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
491
491
|
)
|
|
492
492
|
}),
|
|
493
493
|
customer_interview: cardEntry({
|
|
494
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
494
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEX5PJGVAcjs.CustomerInterviewCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
495
495
|
decode: decodeCustomerInterviewRow,
|
|
496
496
|
render: (interview, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
497
|
-
|
|
497
|
+
_chunkEX5PJGVAcjs.CustomerInterviewCard,
|
|
498
498
|
{
|
|
499
499
|
interview,
|
|
500
500
|
size: ctx.legacySize,
|
|
@@ -512,13 +512,13 @@ var RELATED_CARD_REGISTRY = {
|
|
|
512
512
|
* record, and the three props the rail sets itself are read off it.
|
|
513
513
|
*/
|
|
514
514
|
product_release: cardEntry({
|
|
515
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
515
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEX5PJGVAcjs.ProductReleaseCardSkeleton, { size: size === "sm" ? "sm" : "lg" }),
|
|
516
516
|
decode: asRecord,
|
|
517
517
|
render: (release, ctx) => {
|
|
518
|
-
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _5 => _5.extras, 'optionalAccess', _6 => _6.buildProductReleaseCardProps]), () => (
|
|
518
|
+
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _5 => _5.extras, 'optionalAccess', _6 => _6.buildProductReleaseCardProps]), () => ( _chunkEX5PJGVAcjs.buildProductReleaseCardProps));
|
|
519
519
|
const releaseProps = buildReleaseProps(release);
|
|
520
520
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
521
|
-
|
|
521
|
+
_chunkEX5PJGVAcjs.ProductReleaseCard,
|
|
522
522
|
{
|
|
523
523
|
size: ctx.size === "sm" ? "sm" : "lg",
|
|
524
524
|
title: str(release, "title"),
|
|
@@ -534,10 +534,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
534
534
|
webinar: programEntry("webinar"),
|
|
535
535
|
event: programEntry("event"),
|
|
536
536
|
investor_update: cardEntry({
|
|
537
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
537
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEX5PJGVAcjs.InvestorUpdateCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
538
538
|
decode: decodeInvestorUpdateRow,
|
|
539
539
|
render: (update, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
540
|
-
|
|
540
|
+
_chunkEX5PJGVAcjs.InvestorUpdateCard,
|
|
541
541
|
{
|
|
542
542
|
update,
|
|
543
543
|
size: ctx.legacySize,
|
|
@@ -552,10 +552,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
552
552
|
* step-numbered 'default' variant is for the guide detail page's "More in
|
|
553
553
|
* section" rail, not this full-width row. */
|
|
554
554
|
onboarding_guide: cardEntry({
|
|
555
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
555
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEX5PJGVAcjs.OnboardingGuideCardSkeleton, { size: size === "sm" ? "sm" : "catalog" }),
|
|
556
556
|
decode: decodeOnboardingGuideRow,
|
|
557
557
|
render: (guide, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
558
|
-
|
|
558
|
+
_chunkEX5PJGVAcjs.OnboardingGuideCard,
|
|
559
559
|
{
|
|
560
560
|
guide,
|
|
561
561
|
size: ctx.size === "sm" ? "sm" : "catalog",
|
|
@@ -572,10 +572,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
572
572
|
* href: an object with `href: undefined` is still truthy and would wrap the
|
|
573
573
|
* card in a dead <a>. */
|
|
574
574
|
what_i_shipped: cardEntry({
|
|
575
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
575
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEX5PJGVAcjs.WhatIShippedCardSkeleton, {}),
|
|
576
576
|
decode: decodeEmployeeEntryRow,
|
|
577
577
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
578
|
-
|
|
578
|
+
_chunkEX5PJGVAcjs.WhatIShippedCard,
|
|
579
579
|
{
|
|
580
580
|
entry,
|
|
581
581
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -585,10 +585,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
585
585
|
}),
|
|
586
586
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
587
587
|
how_i_work: cardEntry({
|
|
588
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
588
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEX5PJGVAcjs.HowIWorkCardSkeleton, {}),
|
|
589
589
|
decode: decodeEmployeeEntryRow,
|
|
590
590
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
591
|
-
|
|
591
|
+
_chunkEX5PJGVAcjs.HowIWorkCard,
|
|
592
592
|
{
|
|
593
593
|
entry,
|
|
594
594
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -598,10 +598,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
598
598
|
}),
|
|
599
599
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
600
600
|
ai_prompt: cardEntry({
|
|
601
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
601
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEX5PJGVAcjs.AiPromptCardSkeleton, {}),
|
|
602
602
|
decode: decodeEmployeeEntryRow,
|
|
603
603
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
604
|
-
|
|
604
|
+
_chunkEX5PJGVAcjs.AiPromptCard,
|
|
605
605
|
{
|
|
606
606
|
entry,
|
|
607
607
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -622,7 +622,7 @@ function DefaultLinkPropsProvider({
|
|
|
622
622
|
children
|
|
623
623
|
}) {
|
|
624
624
|
if (!href) return children(null);
|
|
625
|
-
const newTab =
|
|
625
|
+
const newTab = _chunkEX5PJGVAcjs.decideNewTab.call(void 0, { href, targetPlatform, currentSource: "" });
|
|
626
626
|
return children(newTab ? { href, target: "_blank", rel: "noopener noreferrer" } : { href });
|
|
627
627
|
}
|
|
628
628
|
function defaultResolveHref(ref) {
|
|
@@ -678,15 +678,15 @@ function CardForType({
|
|
|
678
678
|
function useGroupItems(type, refs, buildUrl) {
|
|
679
679
|
const ids = refs.map((r) => r.id);
|
|
680
680
|
const url = ids.length > 0 ? buildUrl(type, ids) : null;
|
|
681
|
-
const { data, isLoading } =
|
|
682
|
-
const items = data != null ?
|
|
681
|
+
const { data, isLoading } = _chunkDOVVKQMZcjs.useSelfFetch.call(void 0, url);
|
|
682
|
+
const items = data != null ? _chunkEX5PJGVAcjs.extractItems.call(void 0, data) : null;
|
|
683
683
|
return { items, isLoading };
|
|
684
684
|
}
|
|
685
685
|
function gridClassFor(columns) {
|
|
686
686
|
return columns === 3 ? "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6" : "grid grid-cols-1 sm:grid-cols-2 gap-6";
|
|
687
687
|
}
|
|
688
688
|
function resolveGroupConfig(type) {
|
|
689
|
-
return _nullishCoalesce(
|
|
689
|
+
return _nullishCoalesce(_chunkJU6SBF3Ccjs.CONTENT_REF_GROUPS[type], () => ( {
|
|
690
690
|
label: type,
|
|
691
691
|
order: 999,
|
|
692
692
|
layout: "grid",
|
|
@@ -718,10 +718,10 @@ function ContentGroup({
|
|
|
718
718
|
setPage(1);
|
|
719
719
|
}
|
|
720
720
|
}, [refsKey]);
|
|
721
|
-
const totalGroupPages =
|
|
721
|
+
const totalGroupPages = _chunkVTYP25OWcjs.pageCount.call(void 0, refs.length, GROUP_PAGE_SIZE);
|
|
722
722
|
const safePage = Math.min(page, totalGroupPages);
|
|
723
723
|
const visibleGroupRefs = refs.length > GROUP_PAGE_SIZE ? refs.slice((safePage - 1) * GROUP_PAGE_SIZE, safePage * GROUP_PAGE_SIZE) : refs;
|
|
724
|
-
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
724
|
+
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJU6SBF3Ccjs.Pagination, { currentPage: safePage, totalPages: totalGroupPages, onPageChange: setPage }) : null;
|
|
725
725
|
if (isLoading && !items) {
|
|
726
726
|
const skeletons = visibleGroupRefs.map((r) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: renderSkeletonForType(type, cardSize, adminCampaignCard) }, r.id));
|
|
727
727
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
@@ -731,7 +731,7 @@ function ContentGroup({
|
|
|
731
731
|
}
|
|
732
732
|
if (!items || items.length === 0) return null;
|
|
733
733
|
const rowKey = (it) => {
|
|
734
|
-
const extracted =
|
|
734
|
+
const extracted = _chunkEX5PJGVAcjs.extractItemId.call(void 0, type, it);
|
|
735
735
|
if (extracted !== null) return extracted;
|
|
736
736
|
return String(typeof it === "object" && it !== null ? it.id : void 0);
|
|
737
737
|
};
|
|
@@ -799,11 +799,11 @@ function RelatedContentSection({
|
|
|
799
799
|
types: includeTypes !== void 0 ? includeTypes.join(",") : void 0,
|
|
800
800
|
excludeTypes: excludeTypes && excludeTypes.length > 0 ? excludeTypes.join(",") : void 0
|
|
801
801
|
};
|
|
802
|
-
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ?
|
|
802
|
+
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ? _chunkJU6SBF3Ccjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
803
803
|
apiBaseUrl,
|
|
804
804
|
extraParams: { authorId, ...typeFilterParams }
|
|
805
805
|
}) : null;
|
|
806
|
-
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ?
|
|
806
|
+
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ? _chunkJU6SBF3Ccjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
807
807
|
apiBaseUrl,
|
|
808
808
|
entityType,
|
|
809
809
|
entityId,
|
|
@@ -820,9 +820,9 @@ function RelatedContentSection({
|
|
|
820
820
|
() => !suggestionsDisabled && initialItems ? { refs: initialItems } : void 0,
|
|
821
821
|
[initialItems, suggestionsDisabled]
|
|
822
822
|
);
|
|
823
|
-
const { data, isLoading } =
|
|
823
|
+
const { data, isLoading } = _chunkDOVVKQMZcjs.useSelfFetch.call(void 0, suggestUrl, { initialData });
|
|
824
824
|
const effectiveBuildListUrl = _react.useMemo.call(void 0,
|
|
825
|
-
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) =>
|
|
825
|
+
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) => _chunkEX5PJGVAcjs.buildListUrl.call(void 0, type, ids, apiBaseUrl)))),
|
|
826
826
|
[buildListUrl2, apiBaseUrl]
|
|
827
827
|
);
|
|
828
828
|
const refs = _nullishCoalesce(_nullishCoalesce(contentRefs, () => ( _optionalChain([data, 'optionalAccess', _10 => _10.refs]))), () => ( []));
|
|
@@ -847,12 +847,12 @@ function RelatedContentSection({
|
|
|
847
847
|
if (!grouped[ref.type]) grouped[ref.type] = [];
|
|
848
848
|
grouped[ref.type].push(ref);
|
|
849
849
|
}
|
|
850
|
-
let orderedTypes =
|
|
850
|
+
let orderedTypes = _chunkJU6SBF3Ccjs.orderContentRefTypes.call(void 0, Object.keys(grouped));
|
|
851
851
|
if (entityType) {
|
|
852
|
-
const canonicalEntityType =
|
|
853
|
-
const sameType = orderedTypes.filter((t) =>
|
|
852
|
+
const canonicalEntityType = _chunkEX5PJGVAcjs.canonicalContentRefType.call(void 0, entityType);
|
|
853
|
+
const sameType = orderedTypes.filter((t) => _chunkEX5PJGVAcjs.canonicalContentRefType.call(void 0, t) === canonicalEntityType);
|
|
854
854
|
if (sameType.length > 0) {
|
|
855
|
-
orderedTypes = [...sameType, ...orderedTypes.filter((t) =>
|
|
855
|
+
orderedTypes = [...sameType, ...orderedTypes.filter((t) => _chunkEX5PJGVAcjs.canonicalContentRefType.call(void 0, t) !== canonicalEntityType)];
|
|
856
856
|
}
|
|
857
857
|
}
|
|
858
858
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-8", children: [
|
|
@@ -868,7 +868,7 @@ function RelatedContentSection({
|
|
|
868
868
|
LinkProvider,
|
|
869
869
|
extras,
|
|
870
870
|
adminCampaignCard,
|
|
871
|
-
heading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children:
|
|
871
|
+
heading: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children: _chunkJU6SBF3Ccjs.getContentRefLabelOrTitleCase.call(void 0, type) })
|
|
872
872
|
},
|
|
873
873
|
type
|
|
874
874
|
))
|
|
@@ -879,4 +879,4 @@ function RelatedContentSection({
|
|
|
879
879
|
|
|
880
880
|
|
|
881
881
|
exports.GROUP_PAGE_SIZE = GROUP_PAGE_SIZE; exports.RelatedContentSection = RelatedContentSection;
|
|
882
|
-
//# sourceMappingURL=chunk-
|
|
882
|
+
//# sourceMappingURL=chunk-XGD6SCHN.cjs.map
|