@flamingo-stack/openframe-frontend-core 0.0.407 → 0.0.408-snapshot.20260711133945
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-4UZH3MT2.js → chunk-5HOII3WB.js} +2 -2
- package/dist/{chunk-SY3QS2E5.cjs → chunk-A3RW7M6B.cjs} +26 -26
- package/dist/{chunk-SY3QS2E5.cjs.map → chunk-A3RW7M6B.cjs.map} +1 -1
- package/dist/{chunk-43H2WOAW.js → chunk-E4J5KKHH.js} +2 -2
- package/dist/{chunk-LPC3C7MG.cjs → chunk-F4KE5AZO.cjs} +37 -37
- package/dist/{chunk-LPC3C7MG.cjs.map → chunk-F4KE5AZO.cjs.map} +1 -1
- package/dist/{chunk-NSF7JUXF.js → chunk-IK5AR6QG.js} +4 -4
- package/dist/{chunk-CVYSW33D.js → chunk-IVM47EGI.js} +149 -109
- package/dist/chunk-IVM47EGI.js.map +1 -0
- package/dist/{chunk-KLBEIJVZ.js → chunk-J6M2G6TD.js} +4 -4
- package/dist/{chunk-R4MXLJUS.cjs → chunk-KPGKNUJF.cjs} +31 -31
- package/dist/{chunk-R4MXLJUS.cjs.map → chunk-KPGKNUJF.cjs.map} +1 -1
- package/dist/{chunk-74FWQI73.cjs → chunk-KRLBVBYU.cjs} +11 -11
- package/dist/{chunk-74FWQI73.cjs.map → chunk-KRLBVBYU.cjs.map} +1 -1
- package/dist/{chunk-HB63TQQO.js → chunk-KZPVN7AZ.js} +2 -2
- package/dist/{chunk-XFP43YKG.js → chunk-L6OPVKVR.js} +4 -4
- package/dist/{chunk-H66L2265.js → chunk-LQWYXIKB.js} +4 -4
- package/dist/{chunk-DOBNDDNE.cjs → chunk-NEMUCNCG.cjs} +59 -59
- package/dist/{chunk-DOBNDDNE.cjs.map → chunk-NEMUCNCG.cjs.map} +1 -1
- package/dist/{chunk-GJSLKATJ.js → chunk-O5W26SCL.js} +2 -2
- package/dist/{chunk-5M5W6XDY.cjs → chunk-RL344I7V.cjs} +7 -7
- package/dist/{chunk-5M5W6XDY.cjs.map → chunk-RL344I7V.cjs.map} +1 -1
- package/dist/{chunk-Q2MC3CBI.cjs → chunk-RPGFIUN3.cjs} +26 -26
- package/dist/{chunk-Q2MC3CBI.cjs.map → chunk-RPGFIUN3.cjs.map} +1 -1
- package/dist/{chunk-GGDM5J4B.cjs → chunk-SOALFYU6.cjs} +149 -109
- package/dist/chunk-SOALFYU6.cjs.map +1 -0
- package/dist/{chunk-PRKMOF2U.cjs → chunk-T6ZUBXPA.cjs} +9 -9
- package/dist/{chunk-PRKMOF2U.cjs.map → chunk-T6ZUBXPA.cjs.map} +1 -1
- package/dist/{chunk-WCPUJA3Y.cjs → chunk-V3EZQWHQ.cjs} +5 -5
- package/dist/{chunk-WCPUJA3Y.cjs.map → chunk-V3EZQWHQ.cjs.map} +1 -1
- package/dist/{chunk-HJIRG7R6.js → chunk-VUW4G6SU.js} +2 -2
- package/dist/{chunk-YX7C5JD7.cjs → chunk-WGOATV3P.cjs} +62 -62
- package/dist/{chunk-YX7C5JD7.cjs.map → chunk-WGOATV3P.cjs.map} +1 -1
- package/dist/{chunk-LC6RRLFA.cjs → chunk-YRKPMYI3.cjs} +15 -15
- package/dist/{chunk-LC6RRLFA.cjs.map → chunk-YRKPMYI3.cjs.map} +1 -1
- package/dist/{chunk-7XVFSGQA.js → chunk-ZF5O3KUQ.js} +2 -2
- package/dist/{chunk-GMZL4T7C.js → chunk-ZMFQWMM7.js} +2 -2
- package/dist/components/announcement-bar.d.ts.map +1 -1
- package/dist/components/case-studies/index.cjs +9 -8
- package/dist/components/case-studies/index.cjs.map +1 -1
- package/dist/components/case-studies/index.js +3 -2
- package/dist/components/case-studies/index.js.map +1 -1
- package/dist/components/chat/index.cjs +3 -2
- package/dist/components/chat/index.cjs.map +1 -1
- package/dist/components/chat/index.js +2 -1
- package/dist/components/chat/quick-action-chip.d.ts +11 -2
- package/dist/components/chat/quick-action-chip.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +4 -3
- package/dist/components/contact/index.cjs.map +1 -1
- package/dist/components/contact/index.js +3 -2
- package/dist/components/docs/index.cjs +6 -6
- package/dist/components/docs/index.js +5 -5
- package/dist/components/embeds/index.cjs +4 -3
- package/dist/components/embeds/index.cjs.map +1 -1
- package/dist/components/embeds/index.js +3 -2
- package/dist/components/embeds/reddit-embed-client.d.ts.map +1 -1
- package/dist/components/faq/index.cjs +4 -3
- package/dist/components/faq/index.cjs.map +1 -1
- package/dist/components/faq/index.js +3 -2
- package/dist/components/features/index.cjs +3 -2
- package/dist/components/features/index.cjs.map +1 -1
- package/dist/components/features/index.js +2 -1
- package/dist/components/help-center-pages/index.cjs +21 -21
- package/dist/components/help-center-pages/index.js +12 -12
- package/dist/components/index.cjs +136 -130
- 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 +20 -14
- package/dist/components/index.js.map +1 -1
- package/dist/components/media-carousel.d.ts +28 -4
- package/dist/components/media-carousel.d.ts.map +1 -1
- package/dist/components/navigation/index.cjs +3 -2
- package/dist/components/navigation/index.cjs.map +1 -1
- package/dist/components/navigation/index.js +2 -1
- package/dist/components/onboarding-guides/index.cjs +6 -6
- package/dist/components/onboarding-guides/index.js +5 -5
- package/dist/components/related-content/index.cjs +4 -3
- package/dist/components/related-content/index.cjs.map +1 -1
- package/dist/components/related-content/index.js +3 -2
- package/dist/components/tickets/index.cjs +6 -6
- package/dist/components/tickets/index.js +5 -5
- package/dist/components/ui/index.cjs +3 -2
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.js +2 -1
- package/dist/components/ui/tag.d.ts +3 -2
- package/dist/components/ui/tag.d.ts.map +1 -1
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/utils/media-carousel-utils-stub.d.ts +3 -1
- package/dist/utils/media-carousel-utils-stub.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/announcement-bar.tsx +18 -10
- package/src/components/chat/quick-action-chip.tsx +18 -4
- package/src/components/embeds/reddit-embed-client.tsx +0 -3
- package/src/components/index.ts +5 -0
- package/src/components/media-carousel.tsx +195 -149
- package/src/components/ui/tag.tsx +21 -3
- package/src/styles/ods-design-tokens.css +2 -0
- package/src/utils/media-carousel-utils-stub.ts +3 -1
- package/dist/chunk-CVYSW33D.js.map +0 -1
- package/dist/chunk-GGDM5J4B.cjs.map +0 -1
- package/dist/utils/media-carousel-utils.d.ts +0 -10
- package/dist/utils/media-carousel-utils.d.ts.map +0 -1
- package/src/utils/.media-carousel-utils.md +0 -31
- package/src/utils/media-carousel-utils.ts +0 -22
- /package/dist/{chunk-4UZH3MT2.js.map → chunk-5HOII3WB.js.map} +0 -0
- /package/dist/{chunk-43H2WOAW.js.map → chunk-E4J5KKHH.js.map} +0 -0
- /package/dist/{chunk-NSF7JUXF.js.map → chunk-IK5AR6QG.js.map} +0 -0
- /package/dist/{chunk-KLBEIJVZ.js.map → chunk-J6M2G6TD.js.map} +0 -0
- /package/dist/{chunk-HB63TQQO.js.map → chunk-KZPVN7AZ.js.map} +0 -0
- /package/dist/{chunk-XFP43YKG.js.map → chunk-L6OPVKVR.js.map} +0 -0
- /package/dist/{chunk-H66L2265.js.map → chunk-LQWYXIKB.js.map} +0 -0
- /package/dist/{chunk-GJSLKATJ.js.map → chunk-O5W26SCL.js.map} +0 -0
- /package/dist/{chunk-HJIRG7R6.js.map → chunk-VUW4G6SU.js.map} +0 -0
- /package/dist/{chunk-7XVFSGQA.js.map → chunk-ZF5O3KUQ.js.map} +0 -0
- /package/dist/{chunk-GMZL4T7C.js.map → chunk-ZMFQWMM7.js.map} +0 -0
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface MediaItem {
|
|
2
|
-
id: string;
|
|
3
|
-
type: 'image' | 'video' | 'embed';
|
|
4
|
-
url: string;
|
|
5
|
-
alt?: string;
|
|
6
|
-
caption?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare function processMediaItems(items: any[]): MediaItem[];
|
|
9
|
-
export declare function getMediaThumbnail(item: MediaItem): string;
|
|
10
|
-
//# sourceMappingURL=media-carousel-utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"media-carousel-utils.d.ts","sourceRoot":"","sources":["../../src/utils/media-carousel-utils.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,SAAS,EAAE,CAQ3D;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAEzD"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<!-- source-hash: 4cdb3166112b0dff8dcc314964dcbba3 -->
|
|
2
|
-
Utility functions for processing and handling media items in carousel components, providing standardized interfaces for images, videos, and embedded content.
|
|
3
|
-
|
|
4
|
-
## Key Components
|
|
5
|
-
|
|
6
|
-
- **`MediaItem`** - Interface defining the structure for carousel media items with id, type, URL, and optional metadata
|
|
7
|
-
- **`processMediaItems()`** - Transforms raw media data arrays into standardized MediaItem objects with fallback values
|
|
8
|
-
- **`getMediaThumbnail()`** - Retrieves thumbnail URL for media items (currently returns the main URL)
|
|
9
|
-
|
|
10
|
-
## Usage Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import { MediaItem, processMediaItems, getMediaThumbnail } from './media-carousel-utils';
|
|
14
|
-
|
|
15
|
-
// Process raw media data
|
|
16
|
-
const rawItems = [
|
|
17
|
-
{ id: '1', type: 'image', url: '/photo1.jpg', alt: 'Photo 1' },
|
|
18
|
-
{ url: '/video1.mp4', type: 'video', caption: 'Demo video' },
|
|
19
|
-
{ url: '/embed-content' } // Missing fields will use defaults
|
|
20
|
-
];
|
|
21
|
-
|
|
22
|
-
const mediaItems: MediaItem[] = processMediaItems(rawItems);
|
|
23
|
-
|
|
24
|
-
// Get thumbnail for display
|
|
25
|
-
mediaItems.forEach(item => {
|
|
26
|
-
const thumbnail = getMediaThumbnail(item);
|
|
27
|
-
console.log(`${item.type}: ${thumbnail}`);
|
|
28
|
-
});
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
The utility handles missing properties gracefully, using index-based IDs and 'image' as the default type when not specified.
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// Media carousel utilities stub
|
|
2
|
-
export interface MediaItem {
|
|
3
|
-
id: string;
|
|
4
|
-
type: 'image' | 'video' | 'embed';
|
|
5
|
-
url: string;
|
|
6
|
-
alt?: string;
|
|
7
|
-
caption?: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export function processMediaItems(items: any[]): MediaItem[] {
|
|
11
|
-
return items.map((item, index) => ({
|
|
12
|
-
id: item.id || index.toString(),
|
|
13
|
-
type: item.type || 'image',
|
|
14
|
-
url: item.url || '',
|
|
15
|
-
alt: item.alt || '',
|
|
16
|
-
caption: item.caption || ''
|
|
17
|
-
}));
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export function getMediaThumbnail(item: MediaItem): string {
|
|
21
|
-
return item.url;
|
|
22
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|