@flamingo-stack/openframe-frontend-core 0.0.829 → 0.0.831
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/build/export-map.json +1 -1
- package/dist/{case-study-card-QMFGPABF.cjs → case-study-card-TK7ZCNLM.cjs} +5 -5
- package/dist/{chunk-LKP5R3EQ.cjs → chunk-46LATWQR.cjs} +2 -2
- package/dist/{chunk-IBD2FPSX.cjs → chunk-4JHO2NVI.cjs} +2 -2
- package/dist/{chunk-3B6ZE4EZ.cjs → chunk-5L3UKDC6.cjs} +16 -16
- package/dist/{chunk-THPAGFT6.cjs → chunk-7COZUANC.cjs} +60 -69
- package/dist/{chunk-DWSU35QQ.cjs → chunk-7WQD3R5J.cjs} +84 -84
- package/dist/{chunk-DAKGX2WF.cjs → chunk-APNONOHY.cjs} +2 -2
- package/dist/{chunk-KPGKTEEB.cjs → chunk-BUEEQD3G.cjs} +2 -2
- package/dist/{chunk-YMLRDVPO.cjs → chunk-C4OQIYGW.cjs} +11 -11
- package/dist/{chunk-IFLGIBFZ.cjs → chunk-CP46CVUC.cjs} +91 -91
- package/dist/{chunk-UO6F6LLI.cjs → chunk-D6ZSRGH2.cjs} +699 -642
- package/dist/{chunk-UE5ZBCJ4.cjs → chunk-DAQMCWCK.cjs} +3 -3
- package/dist/{chunk-MFYSV7DE.cjs → chunk-EYSIQORA.cjs} +94 -94
- package/dist/{chunk-DU6AF77X.cjs → chunk-FNNDGOR3.cjs} +33 -33
- package/dist/{chunk-OKTNRGM5.cjs → chunk-GPXKG34G.cjs} +54 -54
- package/dist/{chunk-FMSAN6SR.cjs → chunk-H3WTYAVR.cjs} +129 -129
- package/dist/{chunk-HMC2IWV4.cjs → chunk-HDLY6OMQ.cjs} +6 -6
- package/dist/{chunk-2VLPXUQK.cjs → chunk-HLJXCOMA.cjs} +4 -4
- package/dist/{chunk-PBHP3FHO.cjs → chunk-JBTH3O2C.cjs} +4 -4
- package/dist/{chunk-2HQNXX2K.cjs → chunk-JQCQCE6U.cjs} +2 -2
- package/dist/{chunk-AY6XJOIN.cjs → chunk-LWMWY3JO.cjs} +45 -45
- package/dist/{chunk-R3PKAIX3.cjs → chunk-OGPAVRNF.cjs} +17 -17
- package/dist/{chunk-4DUVTJ6A.cjs → chunk-P5DWAVWK.cjs} +28 -28
- package/dist/{chunk-4ZIKDOPY.cjs → chunk-QHBKZJ6A.cjs} +4 -4
- package/dist/{chunk-PRZAEPGG.cjs → chunk-R6QZHOJB.cjs} +46 -46
- package/dist/{chunk-F2J5WN6U.cjs → chunk-SOCCHWDK.cjs} +2 -2
- package/dist/{chunk-IMDYB77M.cjs → chunk-SRHHLDBP.cjs} +36 -36
- package/dist/{chunk-7PZQ7SHB.cjs → chunk-SWMUW3RR.cjs} +18 -18
- package/dist/{chunk-6GPMVHJN.cjs → chunk-TD4CC4KV.cjs} +20 -20
- package/dist/{chunk-6WNSZ5XP.cjs → chunk-UGM3YDCK.cjs} +25 -25
- package/dist/{chunk-AH4YWTWZ.cjs → chunk-UQS2RI5Y.cjs} +12 -12
- package/dist/{chunk-IHRMX3X6.cjs → chunk-VBGBKRDO.cjs} +684 -661
- package/dist/{chunk-YHQDB5QJ.cjs → chunk-VQG2A7GA.cjs} +2 -2
- package/dist/{chunk-S6UJEW4G.cjs → chunk-WCOSGDGA.cjs} +2 -2
- package/dist/{chunk-ENMPSEEQ.cjs → chunk-WVNUCKB7.cjs} +4 -4
- package/dist/{chunk-LNXRTVOY.cjs → chunk-X76TZ5YR.cjs} +21 -21
- package/dist/{chunk-IBQ3CSKL.cjs → chunk-X7VQM5TU.cjs} +6 -6
- package/dist/{chunk-BIG3O33P.cjs → chunk-YJZ7R3W5.cjs} +28 -2
- package/dist/{chunk-W4VEDSAX.cjs → chunk-ZABZIM2Y.cjs} +6 -6
- package/dist/{chunk-ZJXLNIWC.cjs → chunk-ZJ5K6XHW.cjs} +21 -21
- package/dist/{cloud-tenants-YVCSVVIS.cjs → cloud-tenants-E2AC4WEJ.cjs} +20 -20
- package/dist/components/case-studies/index.cjs +36 -36
- package/dist/components/chat/embeddable-chat.d.ts +3 -3
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +21 -14
- package/dist/components/chat/guide-welcome.d.ts +5 -16
- package/dist/components/chat/guide-welcome.d.ts.map +1 -1
- package/dist/components/chat/guide-welcome.js +4 -29
- package/dist/components/chat/index.cjs +19 -15
- package/dist/components/chat/mingo-quick-action-wall.d.ts +42 -16
- package/dist/components/chat/mingo-quick-action-wall.d.ts.map +1 -1
- package/dist/components/chat/mingo-quick-action-wall.js +105 -19
- package/dist/components/chat/mingo-welcome.d.ts +6 -13
- package/dist/components/chat/mingo-welcome.d.ts.map +1 -1
- package/dist/components/chat/mingo-welcome.js +5 -9
- package/dist/components/chat/quick-action-chip.d.ts +8 -2
- package/dist/components/chat/quick-action-chip.d.ts.map +1 -1
- package/dist/components/chat/quick-action-chip.js +18 -8
- package/dist/components/chat/utils/icon-registry.d.ts +2 -2
- package/dist/components/chat/utils/icon-registry.js +2 -2
- package/dist/components/contact/index.cjs +21 -21
- package/dist/components/docs/index.cjs +24 -24
- package/dist/components/embeds/index.cjs +21 -21
- package/dist/components/faq/index.cjs +22 -22
- package/dist/components/features/index.cjs +22 -20
- package/dist/components/features/notifications/index.d.ts +3 -1
- package/dist/components/features/notifications/index.d.ts.map +1 -1
- package/dist/components/features/notifications/index.js +2 -0
- package/dist/components/features/notifications/notification-category-icon.d.ts +7 -0
- package/dist/components/features/notifications/notification-category-icon.d.ts.map +1 -0
- package/dist/components/features/notifications/notification-category-icon.js +26 -0
- package/dist/components/features/notifications/notification-tile.d.ts.map +1 -1
- package/dist/components/features/notifications/types.d.ts +1 -1
- package/dist/components/features/notifications/types.d.ts.map +1 -1
- package/dist/components/help-center-pages/index.cjs +125 -125
- package/dist/components/index.cjs +90 -82
- package/dist/components/meeting-scheduler/index.cjs +69 -69
- package/dist/components/navigation/index.cjs +23 -23
- package/dist/components/navigation/site-footer.d.ts.map +1 -1
- package/dist/components/navigation/site-footer.js +2 -12
- package/dist/components/onboarding-guides/index.cjs +23 -23
- package/dist/components/product-demo/index.cjs +31 -31
- package/dist/components/related-content/index.cjs +9 -9
- package/dist/components/social-icon-row.d.ts +6 -2
- package/dist/components/social-icon-row.d.ts.map +1 -1
- package/dist/components/social-icon-row.js +5 -6
- package/dist/components/tickets/index.cjs +27 -27
- package/dist/components/ui/actions-menu.d.ts.map +1 -1
- package/dist/components/ui/actions-menu.js +27 -1
- package/dist/components/ui/index.cjs +24 -20
- package/dist/{devices-AW6BERJF.cjs → devices-CAYUGD2N.cjs} +21 -21
- package/dist/{embeddable-chat-ZJIOMMSA.cjs → embeddable-chat-FYHMR66R.cjs} +121 -114
- package/dist/hooks/index.cjs +7 -7
- package/dist/index.cjs +31 -25
- package/dist/{knowledge-PEOXTIVS.cjs → knowledge-OI4OPEVL.cjs} +21 -21
- package/dist/{logs-CYA7H4KM.cjs → logs-B3XV2NHV.cjs} +27 -27
- package/dist/platform-domains.cjs +4 -0
- package/dist/platform-domains.d.ts +2 -0
- package/dist/platform-domains.d.ts.map +1 -1
- package/dist/platform-domains.js +4 -0
- package/dist/{policies-M6QSFL5G.cjs → policies-ZB4Z42DV.cjs} +24 -24
- package/dist/{remote-session-QGFG5WAL.cjs → remote-session-CN3G7JNR.cjs} +7 -7
- package/dist/{scripts-Y46ECDDP.cjs → scripts-I4DNUOQC.cjs} +27 -27
- package/dist/{software-update-OTC2DGQZ.cjs → software-update-AWH4WXOH.cjs} +24 -24
- package/dist/{tickets-board-KCH6ITUV.cjs → tickets-board-PLYD2NSY.cjs} +11 -11
- package/dist/types/marketing.d.ts +61 -216
- package/dist/types/marketing.d.ts.map +1 -1
- package/dist/utils/index.cjs +2 -2
- package/dist/utils/notifications.cjs +55 -0
- package/dist/utils/notifications.d.ts +29 -0
- package/dist/utils/notifications.d.ts.map +1 -0
- package/dist/utils/notifications.js +53 -0
- package/dist/utils/social-platforms.d.ts +9 -9
- package/dist/utils/social-platforms.d.ts.map +1 -1
- package/package.json +7 -1
- package/src/components/chat/embeddable-chat.tsx +29 -45
- package/src/components/chat/guide-welcome.tsx +12 -57
- package/src/components/chat/mingo-quick-action-wall.tsx +166 -31
- package/src/components/chat/mingo-welcome.tsx +16 -35
- package/src/components/chat/quick-action-chip.tsx +32 -8
- package/src/components/chat/utils/icon-registry.ts +5 -5
- package/src/components/chat/utils/index.ts +1 -1
- package/src/components/features/notifications/index.ts +2 -1
- package/src/components/features/notifications/notification-category-icon.tsx +38 -0
- package/src/components/features/notifications/notification-tile.tsx +2 -1
- package/src/components/features/notifications/types.ts +1 -2
- package/src/components/navigation/site-footer.tsx +2 -11
- package/src/components/social-icon-row.tsx +11 -10
- package/src/components/ui/actions-menu.tsx +35 -1
- package/src/platform-domains.ts +5 -0
- package/src/types/marketing.ts +90 -268
- package/src/utils/index.ts +1 -1
- package/src/utils/notifications.ts +71 -0
- package/src/utils/social-platforms.ts +9 -9
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* type, and the "find the link for a platform" picker.
|
|
4
4
|
*
|
|
5
5
|
* **This module does NOT own the list of platforms.** That list lives in the
|
|
6
|
-
* `
|
|
6
|
+
* `channel_platforms` table and only there: it is admin-editable, it carries
|
|
7
7
|
* `display_name`, `icon_name`, `base_url`, `url_pattern`, `category` and
|
|
8
8
|
* `sort_order`, and the hub already reads it everywhere
|
|
9
|
-
* (`lib/data/
|
|
9
|
+
* (`lib/data/channel-platforms-utils.ts`, `useChannelPlatforms`). A hardcoded
|
|
10
10
|
* tuple here would be a second vocabulary that drifts the first time somebody
|
|
11
11
|
* adds a row — and, being a compile-time union, would reject that row outright.
|
|
12
12
|
*
|
|
@@ -23,25 +23,25 @@
|
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
|
-
* One row of `
|
|
26
|
+
* One row of `channel_platforms`, in the shape callers pass around.
|
|
27
27
|
*
|
|
28
28
|
* Deliberately a narrow READ view: the columns that decide presentation and
|
|
29
29
|
* URL-building, not the OAuth or media-config columns, which have their own
|
|
30
30
|
* consumers and no business here.
|
|
31
31
|
*/
|
|
32
32
|
export interface SocialPlatformDefinition {
|
|
33
|
-
/** `
|
|
33
|
+
/** `channel_platforms.name` — the canonical key, lowercase. */
|
|
34
34
|
name: string;
|
|
35
|
-
/** `
|
|
35
|
+
/** `channel_platforms.base_url`, e.g. `https://twitter.com/`. */
|
|
36
36
|
baseUrl?: string | null;
|
|
37
|
-
/** `
|
|
37
|
+
/** `channel_platforms.url_pattern`, e.g. `https://twitter.com/{username}`. */
|
|
38
38
|
urlPattern?: string | null;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* Accepted SPELLINGS that resolve onto a platform name.
|
|
43
43
|
*
|
|
44
|
-
* Not a vocabulary — every value here must be a `
|
|
44
|
+
* Not a vocabulary — every value here must be a `channel_platforms.name`. These
|
|
45
45
|
* exist because external data says `x`, `fb` or `generic` where the table says
|
|
46
46
|
* `twitter`, `facebook` and `website`.
|
|
47
47
|
*/
|
|
@@ -84,7 +84,7 @@ export function hostMatches(hostname: string | null | undefined, domain: string)
|
|
|
84
84
|
* (`x.com`), a share domain (`youtu.be`), an invite domain (`discord.gg`).
|
|
85
85
|
*
|
|
86
86
|
* The ONLY hardcoded host knowledge left, and it is additive: every primary
|
|
87
|
-
* host is derived from the row. Keyed by `
|
|
87
|
+
* host is derived from the row. Keyed by `channel_platforms.name`, so a row that
|
|
88
88
|
* does not exist contributes nothing. If this grows, the answer is an
|
|
89
89
|
* `alt_hosts` column on the table, not a longer map here.
|
|
90
90
|
*/
|
|
@@ -115,7 +115,7 @@ export function socialPlatformHosts(platform: SocialPlatformDefinition): string[
|
|
|
115
115
|
/**
|
|
116
116
|
* Classify a URL by its host against the platforms the DATABASE defines.
|
|
117
117
|
*
|
|
118
|
-
* `platforms` is the caller's loaded `
|
|
118
|
+
* `platforms` is the caller's loaded `channel_platforms` rows — passing them in
|
|
119
119
|
* is what keeps this function pure and this module free of a platform list.
|
|
120
120
|
* Returns `'website'` for a URL that parses but matches no row (the table's own
|
|
121
121
|
* catch-all row), and `null` for something that is not a URL at all.
|