@flamingo-stack/openframe-frontend-core 0.0.243 → 0.0.244
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-MKVKVJQQ.js → chunk-APGMNHPY.js} +19 -32
- package/dist/chunk-APGMNHPY.js.map +1 -0
- package/dist/{chunk-3TDLFCCS.cjs → chunk-DV3YZWGN.cjs} +20 -33
- package/dist/chunk-DV3YZWGN.cjs.map +1 -0
- package/dist/{chunk-BKPS6M2F.cjs → chunk-EJ7J4QAD.cjs} +12 -12
- package/dist/{chunk-BKPS6M2F.cjs.map → chunk-EJ7J4QAD.cjs.map} +1 -1
- package/dist/{chunk-CZITXP77.cjs → chunk-EPXROXYC.cjs} +713 -645
- package/dist/chunk-EPXROXYC.cjs.map +1 -0
- package/dist/{chunk-SGJBUL2Y.cjs → chunk-FSS2MIEA.cjs} +3 -20
- package/dist/chunk-FSS2MIEA.cjs.map +1 -0
- package/dist/{chunk-VAUI3CND.js → chunk-LJGBFD52.js} +1 -18
- package/dist/chunk-LJGBFD52.js.map +1 -0
- package/dist/{chunk-FRRMXLU5.js → chunk-M7DPUWAL.js} +188 -120
- package/dist/chunk-M7DPUWAL.js.map +1 -0
- package/dist/{chunk-SEVJT2HP.js → chunk-NKGNRFSS.js} +8 -8
- package/dist/{chunk-VFKQMAUF.cjs → chunk-OB45JHDY.cjs} +3 -3
- package/dist/{chunk-VFKQMAUF.cjs.map → chunk-OB45JHDY.cjs.map} +1 -1
- package/dist/{chunk-4XLJWX2N.js → chunk-ORJREQ2W.js} +4 -4
- package/dist/{chunk-7ZHFCEJH.js → chunk-P5C732SC.js} +6 -6
- package/dist/{chunk-JJV3XGCY.js → chunk-PTSAF7T2.js} +2 -2
- package/dist/{chunk-VXP553WT.cjs → chunk-RJC3L5DT.cjs} +7 -7
- package/dist/{chunk-VXP553WT.cjs.map → chunk-RJC3L5DT.cjs.map} +1 -1
- package/dist/{chunk-MP5HOP7N.cjs → chunk-STKMIMLP.cjs} +12 -12
- package/dist/{chunk-MP5HOP7N.cjs.map → chunk-STKMIMLP.cjs.map} +1 -1
- package/dist/{chunk-V35PZSUA.js → chunk-WD2MZVJI.js} +5 -5
- package/dist/{chunk-DUZBTUXF.cjs → chunk-Z6GGYZDR.cjs} +27 -27
- package/dist/{chunk-DUZBTUXF.cjs.map → chunk-Z6GGYZDR.cjs.map} +1 -1
- package/dist/components/chat/chat-message-list.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-chat-card-item.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +16 -6
- package/dist/components/chat/index.cjs.map +1 -1
- package/dist/components/chat/index.js +15 -5
- package/dist/components/chat/types/entities/content-ref.d.ts +20 -5
- package/dist/components/chat/types/entities/content-ref.d.ts.map +1 -1
- package/dist/components/chat/utils/history-merge.d.ts +92 -0
- package/dist/components/chat/utils/history-merge.d.ts.map +1 -0
- package/dist/components/chat/utils/index.d.ts +1 -0
- package/dist/components/chat/utils/index.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +7 -7
- package/dist/components/contact/index.js +6 -6
- package/dist/components/faq/faq-section.d.ts +1 -7
- package/dist/components/faq/faq-section.d.ts.map +1 -1
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/index.cjs +6 -6
- package/dist/components/features/index.js +5 -5
- package/dist/components/features/policy-configuration-panel.d.ts.map +1 -1
- package/dist/components/index.cjs +93 -87
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +37 -31
- package/dist/components/index.js.map +1 -1
- package/dist/components/navigation/index.cjs +6 -6
- package/dist/components/navigation/index.js +5 -5
- package/dist/components/onboarding-guides/index.cjs +30 -30
- package/dist/components/onboarding-guides/index.cjs.map +1 -1
- package/dist/components/onboarding-guides/index.js +11 -11
- package/dist/components/tickets/index.cjs +73 -73
- package/dist/components/tickets/index.cjs.map +1 -1
- package/dist/components/tickets/index.js +15 -15
- package/dist/components/ui/index.cjs +19 -9
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.js +23 -13
- package/dist/embed-shims/index.cjs +3 -3
- package/dist/embed-shims/index.cjs.map +1 -1
- package/dist/embed-shims/index.js +5 -5
- package/dist/index.cjs +11 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +49 -55
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/index.cjs +0 -81
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +1 -4
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -74
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/list-url.d.ts +0 -6
- package/dist/utils/list-url.d.ts.map +1 -1
- package/package.json +1 -7
- package/src/components/chat/__tests__/chat-message-list.test.tsx +92 -0
- package/src/components/chat/chat-message-list.tsx +74 -49
- package/src/components/chat/hooks/use-chat-card-item.ts +38 -3
- package/src/components/chat/types/entities/content-ref.ts +21 -5
- package/src/components/chat/utils/__tests__/history-merge.test.ts +339 -0
- package/src/components/chat/utils/history-merge.ts +255 -0
- package/src/components/chat/utils/index.ts +12 -0
- package/src/components/faq/faq-section.tsx +24 -69
- package/src/components/features/policy-configuration-panel.tsx +1 -0
- package/src/components/index.ts +0 -1
- package/src/types/index.ts +0 -1
- package/src/utils/index.ts +1 -16
- package/src/utils/list-url.ts +0 -9
- package/dist/chunk-3TDLFCCS.cjs.map +0 -1
- package/dist/chunk-CZITXP77.cjs.map +0 -1
- package/dist/chunk-F3GMWNAT.js +0 -285
- package/dist/chunk-F3GMWNAT.js.map +0 -1
- package/dist/chunk-FRRMXLU5.js.map +0 -1
- package/dist/chunk-HU252PYJ.cjs +0 -285
- package/dist/chunk-HU252PYJ.cjs.map +0 -1
- package/dist/chunk-MKVKVJQQ.js.map +0 -1
- package/dist/chunk-SGJBUL2Y.cjs.map +0 -1
- package/dist/chunk-VAUI3CND.js.map +0 -1
- package/dist/components/related-content/index.cjs +0 -26
- package/dist/components/related-content/index.cjs.map +0 -1
- package/dist/components/related-content/index.d.ts +0 -2
- package/dist/components/related-content/index.d.ts.map +0 -1
- package/dist/components/related-content/index.js +0 -26
- package/dist/components/related-content/index.js.map +0 -1
- package/dist/components/related-content/related-content-section.d.ts +0 -141
- package/dist/components/related-content/related-content-section.d.ts.map +0 -1
- package/dist/types/content-ref.d.ts +0 -35
- package/dist/types/content-ref.d.ts.map +0 -1
- package/dist/utils/content-ref-groups.d.ts +0 -58
- package/dist/utils/content-ref-groups.d.ts.map +0 -1
- package/dist/utils/extract-items.d.ts +0 -18
- package/dist/utils/extract-items.d.ts.map +0 -1
- package/dist/utils/suggestion-url.d.ts +0 -26
- package/dist/utils/suggestion-url.d.ts.map +0 -1
- package/src/components/related-content/index.ts +0 -9
- package/src/components/related-content/related-content-section.tsx +0 -612
- package/src/types/content-ref.ts +0 -34
- package/src/utils/content-ref-groups.ts +0 -89
- package/src/utils/extract-items.ts +0 -48
- package/src/utils/suggestion-url.ts +0 -39
- /package/dist/{chunk-SEVJT2HP.js.map → chunk-NKGNRFSS.js.map} +0 -0
- /package/dist/{chunk-4XLJWX2N.js.map → chunk-ORJREQ2W.js.map} +0 -0
- /package/dist/{chunk-7ZHFCEJH.js.map → chunk-P5C732SC.js.map} +0 -0
- /package/dist/{chunk-JJV3XGCY.js.map → chunk-PTSAF7T2.js.map} +0 -0
- /package/dist/{chunk-V35PZSUA.js.map → chunk-WD2MZVJI.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -100,7 +100,6 @@ import {
|
|
|
100
100
|
COMPACT_CARD_TITLE_ROW,
|
|
101
101
|
COMPACT_HEADER_BUTTON,
|
|
102
102
|
CONNECTION_STATUS,
|
|
103
|
-
CONTENT_REF_GROUPS,
|
|
104
103
|
CUSTOM_ITEM_ID,
|
|
105
104
|
CUSTOM_PRESET_KEY,
|
|
106
105
|
CampaignCardAdmin,
|
|
@@ -417,6 +416,7 @@ import {
|
|
|
417
416
|
SHELL_TYPES,
|
|
418
417
|
SOURCE_ICON_NAMES,
|
|
419
418
|
SOURCE_LABELS_BY_TABLE,
|
|
419
|
+
SYNTHETIC_REALTIME_ID_PREFIXES,
|
|
420
420
|
ScriptArguments,
|
|
421
421
|
ScriptInfoSection,
|
|
422
422
|
SearchInput,
|
|
@@ -546,13 +546,13 @@ import {
|
|
|
546
546
|
buildListUrl,
|
|
547
547
|
buildNatsWsUrl,
|
|
548
548
|
buildProductReleaseCardProps,
|
|
549
|
-
canonicalContentRefType,
|
|
550
549
|
changelogLabels,
|
|
551
550
|
chatChipClass,
|
|
552
551
|
cleanEmailDomain,
|
|
553
552
|
clearEmbedProxyAuth,
|
|
554
553
|
clickupTaskUrl,
|
|
555
554
|
columnFromTicketStatus,
|
|
555
|
+
computeHistoryPrepend,
|
|
556
556
|
computeIsNewTab,
|
|
557
557
|
createColumnHelper,
|
|
558
558
|
createMessageSegmentAccumulator,
|
|
@@ -575,13 +575,12 @@ import {
|
|
|
575
575
|
extractErrorMessages,
|
|
576
576
|
extractImageEdgeColorAsync,
|
|
577
577
|
extractIncompleteMessageState,
|
|
578
|
-
extractItemId,
|
|
579
|
-
extractItems,
|
|
580
578
|
extractTextFromChunk,
|
|
581
579
|
extractYouTubeId,
|
|
582
580
|
fetchPriorityProp,
|
|
583
581
|
fetchSlashCommands,
|
|
584
582
|
flattenAssistantContent,
|
|
583
|
+
flattenMessagePagesChronological,
|
|
585
584
|
flexRender,
|
|
586
585
|
formatAbbreviatedNumber,
|
|
587
586
|
formatAbsoluteDate,
|
|
@@ -630,8 +629,6 @@ import {
|
|
|
630
629
|
getConfidenceLabel,
|
|
631
630
|
getConfidenceLevel,
|
|
632
631
|
getConfidenceTextClass,
|
|
633
|
-
getContentRefLabel,
|
|
634
|
-
getContentRefLabelOrTitleCase,
|
|
635
632
|
getContrastRatio,
|
|
636
633
|
getCoreRowModel,
|
|
637
634
|
getCountryByCode,
|
|
@@ -693,6 +690,8 @@ import {
|
|
|
693
690
|
isWithinMinutes,
|
|
694
691
|
kindToCanonicalStatus,
|
|
695
692
|
makeComposeContentUrl,
|
|
693
|
+
maxPersistedStreamSeq,
|
|
694
|
+
mergeHistoryWithRealtime,
|
|
696
695
|
multiSelectFilterFn,
|
|
697
696
|
nameInitials,
|
|
698
697
|
navigationMenuTriggerStyle,
|
|
@@ -703,7 +702,6 @@ import {
|
|
|
703
702
|
normalizeOSType,
|
|
704
703
|
normalizeToolType,
|
|
705
704
|
normalizeToolTypeWithFallback,
|
|
706
|
-
orderContentRefTypes,
|
|
707
705
|
osLabels,
|
|
708
706
|
parseChunkToAction,
|
|
709
707
|
parseScrollAnchor,
|
|
@@ -780,7 +778,45 @@ import {
|
|
|
780
778
|
validateEmailDomain,
|
|
781
779
|
validateEmailDomainList,
|
|
782
780
|
validatePhoneNumber
|
|
783
|
-
} from "./chunk-
|
|
781
|
+
} from "./chunk-M7DPUWAL.js";
|
|
782
|
+
import "./chunk-4YKGXZ7W.js";
|
|
783
|
+
import "./chunk-LXC6P2EO.js";
|
|
784
|
+
import "./chunk-EL5YVPD5.js";
|
|
785
|
+
import {
|
|
786
|
+
ChevronButton
|
|
787
|
+
} from "./chunk-LJGBFD52.js";
|
|
788
|
+
import {
|
|
789
|
+
Button,
|
|
790
|
+
Checkbox,
|
|
791
|
+
DropdownMenu,
|
|
792
|
+
DropdownMenuCheckboxItem,
|
|
793
|
+
DropdownMenuContent,
|
|
794
|
+
DropdownMenuGroup,
|
|
795
|
+
DropdownMenuItem,
|
|
796
|
+
DropdownMenuLabel,
|
|
797
|
+
DropdownMenuPortal,
|
|
798
|
+
DropdownMenuRadioGroup,
|
|
799
|
+
DropdownMenuRadioItem,
|
|
800
|
+
DropdownMenuSeparator,
|
|
801
|
+
DropdownMenuShortcut,
|
|
802
|
+
DropdownMenuSub,
|
|
803
|
+
DropdownMenuSubContent,
|
|
804
|
+
DropdownMenuSubTrigger,
|
|
805
|
+
DropdownMenuTrigger,
|
|
806
|
+
FieldWrapper,
|
|
807
|
+
Input,
|
|
808
|
+
Skeleton,
|
|
809
|
+
SkeletonButton,
|
|
810
|
+
SkeletonCard,
|
|
811
|
+
SkeletonGrid,
|
|
812
|
+
SkeletonHeading,
|
|
813
|
+
SkeletonList,
|
|
814
|
+
SkeletonNavigation,
|
|
815
|
+
SkeletonText,
|
|
816
|
+
SplitButton,
|
|
817
|
+
buttonVariants
|
|
818
|
+
} from "./chunk-AGU44B7B.js";
|
|
819
|
+
import "./chunk-OHPI2HRK.js";
|
|
784
820
|
import {
|
|
785
821
|
CommandApprovalToast,
|
|
786
822
|
DEFAULT_MIN_FILL_MS,
|
|
@@ -876,47 +912,8 @@ import {
|
|
|
876
912
|
validateVariables,
|
|
877
913
|
variablesToUrlParams
|
|
878
914
|
} from "./chunk-UECRKCKH.js";
|
|
879
|
-
import "./chunk-4YKGXZ7W.js";
|
|
880
915
|
import "./chunk-MJNXIEV2.js";
|
|
881
|
-
import "./chunk-LXC6P2EO.js";
|
|
882
|
-
import "./chunk-EL5YVPD5.js";
|
|
883
916
|
import "./chunk-PLJLE4A4.js";
|
|
884
|
-
import {
|
|
885
|
-
ChevronButton,
|
|
886
|
-
buildSuggestionUrl
|
|
887
|
-
} from "./chunk-VAUI3CND.js";
|
|
888
|
-
import {
|
|
889
|
-
Button,
|
|
890
|
-
Checkbox,
|
|
891
|
-
DropdownMenu,
|
|
892
|
-
DropdownMenuCheckboxItem,
|
|
893
|
-
DropdownMenuContent,
|
|
894
|
-
DropdownMenuGroup,
|
|
895
|
-
DropdownMenuItem,
|
|
896
|
-
DropdownMenuLabel,
|
|
897
|
-
DropdownMenuPortal,
|
|
898
|
-
DropdownMenuRadioGroup,
|
|
899
|
-
DropdownMenuRadioItem,
|
|
900
|
-
DropdownMenuSeparator,
|
|
901
|
-
DropdownMenuShortcut,
|
|
902
|
-
DropdownMenuSub,
|
|
903
|
-
DropdownMenuSubContent,
|
|
904
|
-
DropdownMenuSubTrigger,
|
|
905
|
-
DropdownMenuTrigger,
|
|
906
|
-
FieldWrapper,
|
|
907
|
-
Input,
|
|
908
|
-
Skeleton,
|
|
909
|
-
SkeletonButton,
|
|
910
|
-
SkeletonCard,
|
|
911
|
-
SkeletonGrid,
|
|
912
|
-
SkeletonHeading,
|
|
913
|
-
SkeletonList,
|
|
914
|
-
SkeletonNavigation,
|
|
915
|
-
SkeletonText,
|
|
916
|
-
SplitButton,
|
|
917
|
-
buttonVariants
|
|
918
|
-
} from "./chunk-AGU44B7B.js";
|
|
919
|
-
import "./chunk-OHPI2HRK.js";
|
|
920
917
|
import {
|
|
921
918
|
AboutIcon,
|
|
922
919
|
AiRobotIcon,
|
|
@@ -1195,7 +1192,6 @@ export {
|
|
|
1195
1192
|
COMPACT_CARD_TITLE_ROW,
|
|
1196
1193
|
COMPACT_HEADER_BUTTON,
|
|
1197
1194
|
CONNECTION_STATUS,
|
|
1198
|
-
CONTENT_REF_GROUPS,
|
|
1199
1195
|
CUSTOM_ITEM_ID,
|
|
1200
1196
|
CUSTOM_PRESET_KEY,
|
|
1201
1197
|
CampaignCardAdmin,
|
|
@@ -1641,6 +1637,7 @@ export {
|
|
|
1641
1637
|
SOURCE_ICON_NAMES,
|
|
1642
1638
|
SOURCE_LABELS_BY_TABLE,
|
|
1643
1639
|
SSOConfigurationIcon,
|
|
1640
|
+
SYNTHETIC_REALTIME_ID_PREFIXES,
|
|
1644
1641
|
ScriptArguments,
|
|
1645
1642
|
ScriptGenerationIcon,
|
|
1646
1643
|
ScriptIcon,
|
|
@@ -1818,9 +1815,7 @@ export {
|
|
|
1818
1815
|
buildListUrl,
|
|
1819
1816
|
buildNatsWsUrl,
|
|
1820
1817
|
buildProductReleaseCardProps,
|
|
1821
|
-
buildSuggestionUrl,
|
|
1822
1818
|
buttonVariants,
|
|
1823
|
-
canonicalContentRefType,
|
|
1824
1819
|
changelogLabels,
|
|
1825
1820
|
embedAuthedFetch as chatAuthedFetch,
|
|
1826
1821
|
chatChipClass,
|
|
@@ -1832,6 +1827,7 @@ export {
|
|
|
1832
1827
|
cn,
|
|
1833
1828
|
coerceValue,
|
|
1834
1829
|
columnFromTicketStatus,
|
|
1830
|
+
computeHistoryPrepend,
|
|
1835
1831
|
computeIsNewTab,
|
|
1836
1832
|
configureAuthenticatedImage,
|
|
1837
1833
|
configureBatchImageFetch,
|
|
@@ -1861,14 +1857,13 @@ export {
|
|
|
1861
1857
|
extractHumanitySignals,
|
|
1862
1858
|
extractImageEdgeColorAsync,
|
|
1863
1859
|
extractIncompleteMessageState,
|
|
1864
|
-
extractItemId,
|
|
1865
|
-
extractItems,
|
|
1866
1860
|
extractTextFromChunk,
|
|
1867
1861
|
extractVariablesFromQuery,
|
|
1868
1862
|
extractYouTubeId,
|
|
1869
1863
|
fetchPriorityProp,
|
|
1870
1864
|
fetchSlashCommands,
|
|
1871
1865
|
flattenAssistantContent,
|
|
1866
|
+
flattenMessagePagesChronological,
|
|
1872
1867
|
flattenQueryVariables,
|
|
1873
1868
|
flexRender,
|
|
1874
1869
|
formatAbbreviatedNumber,
|
|
@@ -1922,8 +1917,6 @@ export {
|
|
|
1922
1917
|
getConfidenceLabel,
|
|
1923
1918
|
getConfidenceLevel,
|
|
1924
1919
|
getConfidenceTextClass,
|
|
1925
|
-
getContentRefLabel,
|
|
1926
|
-
getContentRefLabelOrTitleCase,
|
|
1927
1920
|
getContrastRatio,
|
|
1928
1921
|
getCoreRowModel,
|
|
1929
1922
|
getCountryByCode,
|
|
@@ -2002,7 +1995,9 @@ export {
|
|
|
2002
1995
|
isWithinMinutes,
|
|
2003
1996
|
kindToCanonicalStatus,
|
|
2004
1997
|
makeComposeContentUrl,
|
|
1998
|
+
maxPersistedStreamSeq,
|
|
2005
1999
|
mergeDefaults,
|
|
2000
|
+
mergeHistoryWithRealtime,
|
|
2006
2001
|
mergeVariables,
|
|
2007
2002
|
multiSelectFilterFn,
|
|
2008
2003
|
nameInitials,
|
|
@@ -2014,7 +2009,6 @@ export {
|
|
|
2014
2009
|
normalizeOSType,
|
|
2015
2010
|
normalizeToolType,
|
|
2016
2011
|
normalizeToolTypeWithFallback,
|
|
2017
|
-
orderContentRefTypes,
|
|
2018
2012
|
osLabels,
|
|
2019
2013
|
parseChunkToAction,
|
|
2020
2014
|
parseScrollAnchor,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAA;AAC9B,YAAY,EAAE,QAAQ,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AACtF,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,IAAI,gBAAgB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAGjK,cAAc,YAAY,CAAA;AAG1B,cAAc,QAAQ,CAAA;AAGtB,cAAc,QAAQ,CAAA;AACtB,cAAc,cAAc,CAAA;AAC5B,cAAc,sBAAsB,CAAA;AACpC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,QAAQ,CAAA;AACtB,cAAc,mBAAmB,CAAA;AACjC,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,oBAAoB,CAAA;AAGlC,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,QAAQ,CAAA;AACtB,cAAc,QAAQ,CAAA;AAGtB,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAG1B,cAAc,OAAO,CAAA;AACrB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAA;AAC9B,YAAY,EAAE,QAAQ,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AACtF,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,IAAI,gBAAgB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAGjK,cAAc,YAAY,CAAA;AAG1B,cAAc,QAAQ,CAAA;AAGtB,cAAc,QAAQ,CAAA;AACtB,cAAc,cAAc,CAAA;AAC5B,cAAc,sBAAsB,CAAA;AACpC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,QAAQ,CAAA;AACtB,cAAc,mBAAmB,CAAA;AACjC,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,oBAAoB,CAAA;AAGlC,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,QAAQ,CAAA;AACtB,cAAc,QAAQ,CAAA;AAGtB,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAG1B,cAAc,OAAO,CAAA;AACrB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AAGvB,cAAc,cAAc,CAAA;AAG5B,cAAc,cAAc,CAAA;AAG5B,cAAc,eAAe,CAAA;AAG7B,cAAc,YAAY,CAAA;AAG1B,cAAc,aAAa,CAAA;AAE3B,cAAc,uBAAuB,CAAA;AACrC,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,QAAQ,CAAA"}
|
package/dist/utils/index.cjs
CHANGED
|
@@ -3290,9 +3290,6 @@ function scrollElementIntoView(target, options = {}) {
|
|
|
3290
3290
|
|
|
3291
3291
|
// src/utils/list-url.ts
|
|
3292
3292
|
var ALIASES = { blog_post_existing: "blog_post" };
|
|
3293
|
-
function canonicalContentRefType(contentRefType) {
|
|
3294
|
-
return ALIASES[contentRefType] ?? contentRefType;
|
|
3295
|
-
}
|
|
3296
3293
|
var BUILDERS = {
|
|
3297
3294
|
roadmap_item: (ids, b) => `${b}/api/roadmap?task_ids=${ids.join(",")}`,
|
|
3298
3295
|
delivery_item: (ids, b) => `${b}/api/delivery?task_ids=${ids.join(",")}`,
|
|
@@ -3317,76 +3314,6 @@ function buildListUrl(contentRefType, ids, base = "") {
|
|
|
3317
3314
|
return fn ? fn(ids, base) : null;
|
|
3318
3315
|
}
|
|
3319
3316
|
|
|
3320
|
-
// src/utils/content-ref-groups.ts
|
|
3321
|
-
var CONTENT_REF_GROUPS = {
|
|
3322
|
-
investor_update: { label: "Investor Updates", order: 1, layout: "grid", gridSize: "default" },
|
|
3323
|
-
product_release: { label: "Product Releases", order: 2, layout: "list", gridSize: "lg" },
|
|
3324
|
-
podcast: { label: "Podcasts", order: 3, layout: "list", gridSize: "default" },
|
|
3325
|
-
webinar: { label: "Webinars", order: 4, layout: "list", gridSize: "default" },
|
|
3326
|
-
case_study: { label: "Case Studies", order: 5, layout: "grid", gridSize: "default" },
|
|
3327
|
-
event: { label: "Events", order: 6, layout: "list", gridSize: "default" },
|
|
3328
|
-
blog_post_existing: { label: "Blog Posts", order: 7, layout: "grid", gridSize: "default" },
|
|
3329
|
-
customer_interview: { label: "Customer Interviews", order: 8, layout: "grid", gridSize: "default" },
|
|
3330
|
-
onboarding_guide: { label: "Onboarding Guides", order: 9, layout: "list", gridSize: "default" }
|
|
3331
|
-
};
|
|
3332
|
-
function getContentRefLabel(type) {
|
|
3333
|
-
return CONTENT_REF_GROUPS[type]?.label ?? null;
|
|
3334
|
-
}
|
|
3335
|
-
function getContentRefLabelOrTitleCase(type) {
|
|
3336
|
-
return CONTENT_REF_GROUPS[type]?.label ?? type.replace(/_/g, " ").replace(/\b\w/g, (ch) => ch.toUpperCase());
|
|
3337
|
-
}
|
|
3338
|
-
function orderContentRefTypes(present) {
|
|
3339
|
-
const presentSet = new Set(present);
|
|
3340
|
-
const registeredInOrder = Object.entries(CONTENT_REF_GROUPS).sort(([, a], [, b]) => a.order - b.order).map(([type]) => type).filter((type) => presentSet.has(type));
|
|
3341
|
-
const unregistered = [...presentSet].filter((type) => !CONTENT_REF_GROUPS[type]);
|
|
3342
|
-
return [...registeredInOrder, ...unregistered];
|
|
3343
|
-
}
|
|
3344
|
-
|
|
3345
|
-
// src/utils/extract-items.ts
|
|
3346
|
-
function extractItems(data) {
|
|
3347
|
-
if (!data || typeof data !== "object") return [];
|
|
3348
|
-
const obj = data;
|
|
3349
|
-
if (Array.isArray(obj.items)) return obj.items;
|
|
3350
|
-
if (Array.isArray(obj.posts)) return obj.posts;
|
|
3351
|
-
if (Array.isArray(obj.campaigns)) return obj.campaigns;
|
|
3352
|
-
if (Array.isArray(obj.completed) || Array.isArray(obj.inProgress)) {
|
|
3353
|
-
const completed = Array.isArray(obj.completed) ? obj.completed : [];
|
|
3354
|
-
const inProgress = Array.isArray(obj.inProgress) ? obj.inProgress : [];
|
|
3355
|
-
return [...completed, ...inProgress];
|
|
3356
|
-
}
|
|
3357
|
-
if (Array.isArray(obj.data)) return obj.data;
|
|
3358
|
-
if (Array.isArray(data)) return data;
|
|
3359
|
-
return [];
|
|
3360
|
-
}
|
|
3361
|
-
function extractItemId(type, item) {
|
|
3362
|
-
if (!item || typeof item !== "object") return null;
|
|
3363
|
-
const obj = item;
|
|
3364
|
-
if (type === "roadmap_item" || type === "delivery_item" || type === "internal_task") {
|
|
3365
|
-
const ext = obj.external_id;
|
|
3366
|
-
if (typeof ext === "string") return ext;
|
|
3367
|
-
}
|
|
3368
|
-
const id = obj.id;
|
|
3369
|
-
if (typeof id === "string") return id;
|
|
3370
|
-
if (typeof id === "number") return String(id);
|
|
3371
|
-
return null;
|
|
3372
|
-
}
|
|
3373
|
-
|
|
3374
|
-
// src/utils/suggestion-url.ts
|
|
3375
|
-
function buildSuggestionUrl(path, opts = {}) {
|
|
3376
|
-
const qs = new URLSearchParams();
|
|
3377
|
-
const { entityType, entityId } = opts;
|
|
3378
|
-
if (entityType && entityId !== void 0 && entityId !== null && entityId !== "") {
|
|
3379
|
-
qs.set("entityType", entityType);
|
|
3380
|
-
qs.set("entityId", String(entityId));
|
|
3381
|
-
}
|
|
3382
|
-
if (opts.count !== void 0) qs.set("count", String(opts.count));
|
|
3383
|
-
for (const [key, value] of Object.entries(opts.extraParams ?? {})) {
|
|
3384
|
-
if (value !== void 0 && value !== "") qs.set(key, value);
|
|
3385
|
-
}
|
|
3386
|
-
const query = qs.toString();
|
|
3387
|
-
return `${opts.apiBaseUrl ?? ""}${path}${query ? `?${query}` : ""}`;
|
|
3388
|
-
}
|
|
3389
|
-
|
|
3390
3317
|
// src/utils/content-href.ts
|
|
3391
3318
|
var DEFAULT_CONTENT_SUFFIXES = {
|
|
3392
3319
|
onboarding_guide: "onboarding-guides",
|
|
@@ -3452,7 +3379,6 @@ exports.CHAT_ATTACHMENT_MARKDOWN_PATTERN = CHAT_ATTACHMENT_MARKDOWN_PATTERN;
|
|
|
3452
3379
|
exports.CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM = CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM;
|
|
3453
3380
|
exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX = CHAT_ATTACHMENT_VIEW_URL_PREFIX;
|
|
3454
3381
|
exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED;
|
|
3455
|
-
exports.CONTENT_REF_GROUPS = CONTENT_REF_GROUPS;
|
|
3456
3382
|
exports.CUSTOM_ITEM_ID = CUSTOM_ITEM_ID;
|
|
3457
3383
|
exports.DEFAULT_CONTENT_SUFFIXES = DEFAULT_CONTENT_SUFFIXES;
|
|
3458
3384
|
exports.DEFAULT_MIN_FILL_MS = DEFAULT_MIN_FILL_MS;
|
|
@@ -3481,8 +3407,6 @@ exports.buildChatAttachmentViewUrl = buildChatAttachmentViewUrl;
|
|
|
3481
3407
|
exports.buildDefaultHref = buildDefaultHref;
|
|
3482
3408
|
exports.buildDiscussAddendum = buildDiscussAddendum;
|
|
3483
3409
|
exports.buildListUrl = buildListUrl;
|
|
3484
|
-
exports.buildSuggestionUrl = buildSuggestionUrl;
|
|
3485
|
-
exports.canonicalContentRefType = canonicalContentRefType;
|
|
3486
3410
|
exports.cleanEmailDomain = cleanEmailDomain;
|
|
3487
3411
|
exports.clearEmbedProxyAuth = clearEmbedProxyAuth;
|
|
3488
3412
|
exports.clickupTaskUrl = clickupTaskUrl;
|
|
@@ -3499,8 +3423,6 @@ exports.extractDominantColor = extractDominantColor;
|
|
|
3499
3423
|
exports.extractEntityIdFilter = extractEntityIdFilter;
|
|
3500
3424
|
exports.extractHumanitySignals = extractHumanitySignals;
|
|
3501
3425
|
exports.extractImageEdgeColorAsync = extractImageEdgeColorAsync;
|
|
3502
|
-
exports.extractItemId = extractItemId;
|
|
3503
|
-
exports.extractItems = extractItems;
|
|
3504
3426
|
exports.fetchPriorityProp = fetchPriorityProp;
|
|
3505
3427
|
exports.flattenAssistantContent = flattenAssistantContent;
|
|
3506
3428
|
exports.formatAbbreviatedNumber = formatAbbreviatedNumber;
|
|
@@ -3548,8 +3470,6 @@ exports.getConfidenceColorClass = getConfidenceColorClass;
|
|
|
3548
3470
|
exports.getConfidenceLabel = getConfidenceLabel;
|
|
3549
3471
|
exports.getConfidenceLevel = getConfidenceLevel;
|
|
3550
3472
|
exports.getConfidenceTextClass = getConfidenceTextClass;
|
|
3551
|
-
exports.getContentRefLabel = getContentRefLabel;
|
|
3552
|
-
exports.getContentRefLabelOrTitleCase = getContentRefLabelOrTitleCase;
|
|
3553
3473
|
exports.getContrastRatio = getContrastRatio;
|
|
3554
3474
|
exports.getCountryByCode = getCountryByCode;
|
|
3555
3475
|
exports.getCountryPhoneData = getCountryPhoneData;
|
|
@@ -3604,7 +3524,6 @@ exports.normalizeIconKey = normalizeIconKey;
|
|
|
3604
3524
|
exports.normalizeOSType = normalizeOSType;
|
|
3605
3525
|
exports.normalizeToolType = normalizeToolType;
|
|
3606
3526
|
exports.normalizeToolTypeWithFallback = normalizeToolTypeWithFallback;
|
|
3607
|
-
exports.orderContentRefTypes = orderContentRefTypes;
|
|
3608
3527
|
exports.parseScrollAnchor = parseScrollAnchor;
|
|
3609
3528
|
exports.parseWireCommandOverride = parseWireCommandOverride;
|
|
3610
3529
|
exports.platformColors = platformColors;
|