@oxy.so/bloom 7.33.1 → 8.0.0
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 +1 -1
- package/docs/adoption-matrix.mdx +1 -1
- package/docs/link-preview.mdx +19 -2
- package/docs/tab-bar.mdx +1 -1
- package/lib/commonjs/index.js +102 -110
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js +102 -110
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/link-preview/LinkPreviewCard.js +25 -10
- package/lib/commonjs/link-preview/LinkPreviewCard.js.map +1 -1
- package/lib/module/index.js +5 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js +5 -2
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/link-preview/LinkPreviewCard.js +27 -10
- package/lib/module/link-preview/LinkPreviewCard.js.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +0 -2
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.web.d.ts +0 -2
- package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/link-preview/LinkPreviewCard.d.ts +5 -4
- package/lib/typescript/commonjs/link-preview/LinkPreviewCard.d.ts.map +1 -1
- package/lib/typescript/commonjs/link-preview/index.d.ts +1 -1
- package/lib/typescript/commonjs/link-preview/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/link-preview/types.d.ts +16 -4
- package/lib/typescript/commonjs/link-preview/types.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +0 -2
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/index.web.d.ts +0 -2
- package/lib/typescript/module/index.web.d.ts.map +1 -1
- package/lib/typescript/module/link-preview/LinkPreviewCard.d.ts +5 -4
- package/lib/typescript/module/link-preview/LinkPreviewCard.d.ts.map +1 -1
- package/lib/typescript/module/link-preview/index.d.ts +1 -1
- package/lib/typescript/module/link-preview/index.d.ts.map +1 -1
- package/lib/typescript/module/link-preview/types.d.ts +16 -4
- package/lib/typescript/module/link-preview/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/__tests__/support/adoption-matrix.ts +695 -0
- package/src/__tests__/support/card-surface.ts +31 -0
- package/src/__tests__/support/collision-fixture-barrel.ts +20 -0
- package/src/__tests__/support/commerce-harness.tsx +97 -0
- package/src/__tests__/support/composite.ts +71 -0
- package/src/__tests__/support/constructed-style-sheets.ts +64 -0
- package/src/__tests__/support/messages-in.ts +10 -0
- package/src/__tests__/support/press-host.ts +30 -0
- package/src/__tests__/support/rendered-style.ts +99 -0
- package/src/__tests__/support/unread-hook-fixture.ts +33 -0
- package/src/__tests__/support/worklet-capture-fixture.tsx +34 -0
- package/src/__tests__/support/yoga-host-tree.ts +73 -0
- package/src/agent-avatar/__tests__/artwork-golden.json +774 -0
- package/src/agent-creator/__tests__/support/character-runtime-fixture.tsx +24 -0
- package/src/index.ts +4 -3
- package/src/index.web.ts +4 -3
- package/src/link-preview/LinkPreviewCard.tsx +31 -9
- package/src/link-preview/index.ts +1 -1
- package/src/link-preview/types.ts +17 -4
- package/src/theme/__tests__/__fixtures__/golden-resolved-tokens.json +9346 -0
- package/src/theme/__tests__/__fixtures__/tonal-glass-primary-failures.json +69 -0
- package/src/theme/__tests__/fixtures/color-engine-golden.json +1 -0
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
/**
|
|
3
|
+
* One rendition of the cover image and the pixel width it was rendered at —
|
|
4
|
+
* the shape `@oxy.so/utils/image` `contentImageSources` returns. Given several,
|
|
5
|
+
* the card loads the smallest one that covers the space it is laid out in.
|
|
6
|
+
*/
|
|
7
|
+
export interface LinkPreviewImageSource {
|
|
8
|
+
uri: string;
|
|
9
|
+
width: number;
|
|
10
|
+
}
|
|
2
11
|
/**
|
|
3
12
|
* Props for {@link LinkPreviewCard}.
|
|
4
13
|
*
|
|
@@ -15,11 +24,14 @@ export interface LinkPreviewCardProps {
|
|
|
15
24
|
/** OpenGraph / meta description. */
|
|
16
25
|
description?: string;
|
|
17
26
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
27
|
+
* The cover image: one absolute URL, or the same image at several widths
|
|
28
|
+
* (e.g. `contentImageSources(url)` from `@oxy.so/utils/image`). With several,
|
|
29
|
+
* `expo-image` loads the smallest that covers the cover's rendered size — a
|
|
30
|
+
* `srcset` on web, the view's size × pixel ratio on native — so a card in a
|
|
31
|
+
* narrow row never downloads the full-width rendition. Rendered directly, NOT
|
|
32
|
+
* through `ImageResolver` / `Avatar`, which are for bare Oxy file IDs.
|
|
21
33
|
*/
|
|
22
|
-
image?: string;
|
|
34
|
+
image?: string | readonly LinkPreviewImageSource[];
|
|
23
35
|
/** Site / brand name shown above the title. Falls back to the URL hostname. */
|
|
24
36
|
siteName?: string;
|
|
25
37
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/link-preview/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD;;;;;;;GAOG;AACH,MAAM,WAAW,oBAAoB;IACnC,iFAAiF;IACjF,GAAG,EAAE,MAAM,CAAC;IACZ,0EAA0E;IAC1E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oCAAoC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/link-preview/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,oBAAoB;IACnC,iFAAiF;IACjF,GAAG,EAAE,MAAM,CAAC;IACZ,0EAA0E;IAC1E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oCAAoC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,sBAAsB,EAAE,CAAC;IACnD,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;;;;;;OAUG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxy.so/bloom",
|
|
3
|
-
"version": "
|
|
4
|
-
"packageManager": "bun@1.3
|
|
3
|
+
"version": "8.0.0",
|
|
4
|
+
"packageManager": "bun@1.4.3",
|
|
5
5
|
"description": "Bloom UI — Oxy ecosystem component library for React Native + Expo + Web",
|
|
6
6
|
"main": "lib/commonjs/index.js",
|
|
7
7
|
"module": "lib/module/index.js",
|