@flamingo-stack/openframe-frontend-core 0.0.565 → 0.0.566-1861.5109.1
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-AN7YK35P.cjs → chunk-2HIX2SAC.cjs} +26 -26
- package/dist/{chunk-AN7YK35P.cjs.map → chunk-2HIX2SAC.cjs.map} +1 -1
- package/dist/{chunk-6RILRC7X.js → chunk-34O6LEBN.js} +2 -2
- package/dist/{chunk-5JYX2GOP.js → chunk-3Y4OMJCR.js} +3298 -3209
- package/dist/chunk-3Y4OMJCR.js.map +1 -0
- package/dist/chunk-5I3BSQ6D.js +2 -0
- package/dist/{chunk-HJ7OVIR7.js → chunk-654BJH2M.js} +2 -2
- package/dist/{chunk-TXLUKQBI.js → chunk-6FNNXHWP.js} +2 -2
- package/dist/{chunk-7IR5LKYC.js → chunk-7PQTKAMP.js} +2 -2
- package/dist/{chunk-5K3F5AZX.js → chunk-AN7PFPJD.js} +4 -4
- package/dist/{chunk-LOLVMAT3.cjs → chunk-BXMSC3IS.cjs} +4 -4
- package/dist/{chunk-LOLVMAT3.cjs.map → chunk-BXMSC3IS.cjs.map} +1 -1
- package/dist/{chunk-TFEL2C6I.cjs → chunk-D2A72Q3F.cjs} +86 -86
- package/dist/{chunk-TFEL2C6I.cjs.map → chunk-D2A72Q3F.cjs.map} +1 -1
- package/dist/{chunk-HVS56KQE.cjs → chunk-E2FHL2MJ.cjs} +7 -7
- package/dist/{chunk-HVS56KQE.cjs.map → chunk-E2FHL2MJ.cjs.map} +1 -1
- package/dist/{chunk-DEYRHTLD.js → chunk-E4XS74Q6.js} +2 -2
- package/dist/{chunk-HWQ5HMJN.cjs → chunk-EKZXMDKE.cjs} +19 -15
- package/dist/chunk-EKZXMDKE.cjs.map +1 -0
- package/dist/{chunk-6F47STCR.js → chunk-FTFBC7K5.js} +7 -3
- package/dist/{chunk-6F47STCR.js.map → chunk-FTFBC7K5.js.map} +1 -1
- package/dist/{chunk-32QBTN5L.cjs → chunk-HF3OWWMN.cjs} +5 -5
- package/dist/{chunk-32QBTN5L.cjs.map → chunk-HF3OWWMN.cjs.map} +1 -1
- package/dist/{chunk-7FH6MZ6M.cjs → chunk-HI4VTVLC.cjs} +9 -9
- package/dist/{chunk-7FH6MZ6M.cjs.map → chunk-HI4VTVLC.cjs.map} +1 -1
- package/dist/{chunk-CCFBL7JU.cjs → chunk-ICK7MHYR.cjs} +89 -75
- package/dist/chunk-ICK7MHYR.cjs.map +1 -0
- package/dist/{chunk-ISK6LRRY.cjs → chunk-INZYKRHP.cjs} +3 -3
- package/dist/{chunk-ISK6LRRY.cjs.map → chunk-INZYKRHP.cjs.map} +1 -1
- package/dist/{chunk-26LZFWY6.cjs → chunk-J22JETDB.cjs} +797 -708
- package/dist/chunk-J22JETDB.cjs.map +1 -0
- package/dist/{chunk-GCMASPSW.js → chunk-KPVYCUPI.js} +5 -5
- package/dist/{chunk-NCJUIT3Q.cjs → chunk-LWSBP76P.cjs} +20 -20
- package/dist/{chunk-NCJUIT3Q.cjs.map → chunk-LWSBP76P.cjs.map} +1 -1
- package/dist/{chunk-TFRJ7B4X.cjs → chunk-LZYICX53.cjs} +11 -11
- package/dist/{chunk-TFRJ7B4X.cjs.map → chunk-LZYICX53.cjs.map} +1 -1
- package/dist/{chunk-QQFUJ6MS.js → chunk-NMVN2SDO.js} +2 -2
- package/dist/{chunk-5MVE77D5.js → chunk-QDQIA6JM.js} +35 -21
- package/dist/chunk-QDQIA6JM.js.map +1 -0
- package/dist/{chunk-NM5NBMMD.cjs → chunk-SDZ2XYK4.cjs} +31 -31
- package/dist/{chunk-NM5NBMMD.cjs.map → chunk-SDZ2XYK4.cjs.map} +1 -1
- package/dist/{chunk-3FBPPKV2.js → chunk-TFMFOTIB.js} +4 -4
- package/dist/chunk-UGAHDPNU.cjs +2 -0
- package/dist/{chunk-ZTM35Q76.cjs.map → chunk-UGAHDPNU.cjs.map} +1 -1
- package/dist/{chunk-TGT3JHVU.cjs → chunk-UHCMUGOB.cjs} +39 -39
- package/dist/{chunk-TGT3JHVU.cjs.map → chunk-UHCMUGOB.cjs.map} +1 -1
- package/dist/{chunk-MIBKEMZY.js → chunk-W67ZSE5J.js} +2 -2
- package/dist/{chunk-UK6SSMUR.js → chunk-ZY2NGGDQ.js} +2 -2
- package/dist/components/case-studies/index.cjs +8 -8
- package/dist/components/case-studies/index.js +2 -2
- package/dist/components/chat/entity-cards/employee-entry-card.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +2 -2
- package/dist/components/chat/index.js +1 -1
- package/dist/components/comment-card.d.ts +18 -2
- package/dist/components/comment-card.d.ts.map +1 -1
- package/dist/components/comment-composer.d.ts +42 -0
- package/dist/components/comment-composer.d.ts.map +1 -0
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/contact/index.js +2 -2
- package/dist/components/docs/index.cjs +5 -5
- package/dist/components/docs/index.js +4 -4
- package/dist/components/embeds/claude-embed.d.ts +31 -0
- package/dist/components/embeds/claude-embed.d.ts.map +1 -0
- package/dist/components/embeds/index.cjs +6 -4
- package/dist/components/embeds/index.cjs.map +1 -1
- package/dist/components/embeds/index.d.ts +2 -0
- package/dist/components/embeds/index.d.ts.map +1 -1
- package/dist/components/embeds/index.js +5 -3
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/array-entry-manager.d.ts.map +1 -1
- package/dist/components/features/clickup-tasks-manager.d.ts +6 -1
- package/dist/components/features/clickup-tasks-manager.d.ts.map +1 -1
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- package/dist/components/help-center-pages/index.cjs +22 -22
- package/dist/components/help-center-pages/index.js +13 -13
- package/dist/components/index.cjs +281 -204
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +647 -570
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +30 -30
- package/dist/components/meeting-scheduler/index.js +3 -3
- package/dist/components/navigation/index.cjs +2 -2
- package/dist/components/navigation/index.js +1 -1
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/onboarding-guides/index.js +4 -4
- package/dist/components/related-content/index.cjs +3 -3
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/shared/delivery/delivery-row.d.ts +5 -1
- package/dist/components/shared/delivery/delivery-row.d.ts.map +1 -1
- package/dist/components/shared/roadmap/roadmap-grid.d.ts +10 -1
- package/dist/components/shared/roadmap/roadmap-grid.d.ts.map +1 -1
- package/dist/components/tickets/index.cjs +6 -6
- package/dist/components/tickets/index.js +5 -5
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +4 -2
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.d.ts +1 -1
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +3 -1
- package/dist/components/ui/markdown/rich/embed-overrides.d.ts.map +1 -1
- package/dist/components/ui/markdown/rich/shortcodes.d.ts.map +1 -1
- package/dist/components/ui/table/index.d.ts +1 -1
- package/dist/components/ui/table/index.d.ts.map +1 -1
- package/dist/components/ui/table/table-row.d.ts.map +1 -1
- package/dist/components/ui/table/table-skeleton.d.ts +15 -2
- package/dist/components/ui/table/table-skeleton.d.ts.map +1 -1
- package/dist/components/ui/table/table.d.ts.map +1 -1
- package/dist/components/ui/table/types.d.ts +2 -0
- package/dist/components/ui/table/types.d.ts.map +1 -1
- package/dist/index.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -1
- package/dist/types/department.d.ts +41 -0
- package/dist/types/department.d.ts.map +1 -0
- package/dist/types/design-doc.d.ts +247 -0
- package/dist/types/design-doc.d.ts.map +1 -0
- package/dist/types/employee.d.ts +25 -2
- package/dist/types/employee.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/marketing.d.ts +1 -1
- package/dist/types/marketing.d.ts.map +1 -1
- package/dist/types/profile.d.ts +2 -1
- package/dist/types/profile.d.ts.map +1 -1
- package/dist/types/team.d.ts +15 -1
- package/dist/types/team.d.ts.map +1 -1
- package/dist/types/user.d.ts +3 -1
- package/dist/types/user.d.ts.map +1 -1
- package/dist/utils/embed-url-converters.d.ts +17 -0
- package/dist/utils/embed-url-converters.d.ts.map +1 -1
- package/dist/utils/index.cjs +12 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js +12 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/.comment-card.md +4 -5
- package/src/components/chat/entity-cards/employee-entry-card.tsx +6 -0
- package/src/components/comment-card.tsx +42 -17
- package/src/components/comment-composer.tsx +117 -0
- package/src/components/embeds/claude-embed.tsx +89 -0
- package/src/components/embeds/index.ts +2 -0
- package/src/components/features/array-entry-manager.tsx +2 -1
- package/src/components/features/clickup-tasks-manager.tsx +8 -1
- package/src/components/index.ts +1 -0
- package/src/components/shared/delivery/delivery-row.tsx +17 -1
- package/src/components/shared/roadmap/roadmap-grid.tsx +21 -1
- package/src/components/ui/card.tsx +4 -1
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/markdown/rich/__tests__/shortcodes.test.ts +44 -0
- package/src/components/ui/markdown/rich/embed-overrides.tsx +4 -0
- package/src/components/ui/markdown/rich/shortcodes.ts +12 -0
- package/src/components/ui/table/index.ts +1 -1
- package/src/components/ui/table/table-row.tsx +7 -2
- package/src/components/ui/table/table-skeleton.tsx +20 -3
- package/src/components/ui/table/table.tsx +1 -0
- package/src/components/ui/table/types.ts +2 -0
- package/src/types/department.ts +44 -0
- package/src/types/design-doc.ts +295 -0
- package/src/types/employee.ts +27 -2
- package/src/types/index.ts +2 -0
- package/src/types/marketing.ts +1 -0
- package/src/types/profile.ts +3 -1
- package/src/types/team.ts +17 -1
- package/src/types/user.ts +4 -1
- package/src/utils/__tests__/claude-embed-url.test.ts +42 -0
- package/src/utils/embed-url-converters.ts +32 -0
- package/dist/chunk-26LZFWY6.cjs.map +0 -1
- package/dist/chunk-5JYX2GOP.js.map +0 -1
- package/dist/chunk-5MVE77D5.js.map +0 -1
- package/dist/chunk-CCFBL7JU.cjs.map +0 -1
- package/dist/chunk-HWQ5HMJN.cjs.map +0 -1
- package/dist/chunk-MVWSLZG7.js +0 -2
- package/dist/chunk-ZTM35Q76.cjs +0 -2
- /package/dist/{chunk-6RILRC7X.js.map → chunk-34O6LEBN.js.map} +0 -0
- /package/dist/{chunk-MVWSLZG7.js.map → chunk-5I3BSQ6D.js.map} +0 -0
- /package/dist/{chunk-HJ7OVIR7.js.map → chunk-654BJH2M.js.map} +0 -0
- /package/dist/{chunk-TXLUKQBI.js.map → chunk-6FNNXHWP.js.map} +0 -0
- /package/dist/{chunk-7IR5LKYC.js.map → chunk-7PQTKAMP.js.map} +0 -0
- /package/dist/{chunk-5K3F5AZX.js.map → chunk-AN7PFPJD.js.map} +0 -0
- /package/dist/{chunk-DEYRHTLD.js.map → chunk-E4XS74Q6.js.map} +0 -0
- /package/dist/{chunk-GCMASPSW.js.map → chunk-KPVYCUPI.js.map} +0 -0
- /package/dist/{chunk-QQFUJ6MS.js.map → chunk-NMVN2SDO.js.map} +0 -0
- /package/dist/{chunk-3FBPPKV2.js.map → chunk-TFMFOTIB.js.map} +0 -0
- /package/dist/{chunk-MIBKEMZY.js.map → chunk-W67ZSE5J.js.map} +0 -0
- /package/dist/{chunk-UK6SSMUR.js.map → chunk-ZY2NGGDQ.js.map} +0 -0
|
@@ -75,3 +75,35 @@ export function toFigmaOriginalUrl(url: string): string {
|
|
|
75
75
|
}
|
|
76
76
|
return url.replace(/\?.*$/, '')
|
|
77
77
|
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* The EMBED url for a published Claude artifact, or `null` when the link is not
|
|
81
|
+
* one we can frame — the Claude counterpart of `toFigmaEmbedUrl`.
|
|
82
|
+
*
|
|
83
|
+
* claude.ai serves `frame-ancestors 'self'` on the artifact page itself, but a
|
|
84
|
+
* PUBLISHED artifact also has an `/embed` route whose `frame-ancestors` carries
|
|
85
|
+
* the domains its author allow-listed under "Get embed code → Allowed domains".
|
|
86
|
+
* That is Anthropic's supported way to put an artifact on another site, so that
|
|
87
|
+
* is what the iframe points at.
|
|
88
|
+
*
|
|
89
|
+
* Returns `null` for everything else, including a Claude CODE url
|
|
90
|
+
* (`claude.ai/code/artifact/…`), whose Share dialog exposes no Embed settings
|
|
91
|
+
* and whose `/embed` path answers `frame-ancestors 'self'` (verified against
|
|
92
|
+
* real artifacts, 2026-08). A trailing `/embed` is accepted because that is the
|
|
93
|
+
* url "Get embed code" hands the author.
|
|
94
|
+
*/
|
|
95
|
+
export function toClaudeEmbedUrl(url: string | null | undefined): string | null {
|
|
96
|
+
if (!url) return null
|
|
97
|
+
try {
|
|
98
|
+
const u = new URL(url)
|
|
99
|
+
const host = u.hostname.toLowerCase()
|
|
100
|
+
// `claude.site/artifacts/<id>` 308-redirects to the claude.ai public url.
|
|
101
|
+
const publicId =
|
|
102
|
+
(host === 'claude.ai' && /^\/public\/artifacts\/([\w-]+)(?:\/embed)?\/?$/.exec(u.pathname)?.[1]) ||
|
|
103
|
+
(host === 'claude.site' && /^\/artifacts\/([\w-]+)(?:\/embed)?\/?$/.exec(u.pathname)?.[1]) ||
|
|
104
|
+
null
|
|
105
|
+
return publicId ? `https://claude.ai/public/artifacts/${publicId}/embed` : null
|
|
106
|
+
} catch {
|
|
107
|
+
return null
|
|
108
|
+
}
|
|
109
|
+
}
|