@poolse/react-native 3.6.0 → 3.6.2
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/CHANGELOG.md +17 -0
- package/dist/index.cjs +39 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -2
- package/dist/index.d.ts +10 -2
- package/dist/index.js +16 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,23 @@ All notable changes to `@poolse/react-native` are documented here.
|
|
|
4
4
|
Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/);
|
|
5
5
|
versions follow [semver](https://semver.org).
|
|
6
6
|
|
|
7
|
+
## [3.6.2] - 2026-11-21
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- `usePoolseTheme()` is exported again (deprecated; use `useTheme()`). 3.4.0
|
|
12
|
+
removed the export by mistake, although the changelog called it deprecated.
|
|
13
|
+
- Re-exports from `@poolse/theme`, as the 3.4.0 notes said: `BUILT_IN_THEME_IDS`,
|
|
14
|
+
`DEFAULT_THEME_ID`, `createTheme`, `encodeTheme`, `decodeTheme`, plus the new
|
|
15
|
+
`tokensFromFlat` and the types `BuiltInThemeId`, `ColorScheme`,
|
|
16
|
+
`ColorSchemePreference`, `FlatThemeTokens`, `Theme`, `ThemeInput`.
|
|
17
|
+
- Threads follow the app's settings: `ThreadView` takes `density`, and the
|
|
18
|
+
thread `ConversationView` opens gets its `avatarFor` and `density`.
|
|
19
|
+
|
|
20
|
+
## [3.6.1] - 2026-11-21
|
|
21
|
+
|
|
22
|
+
- No changes; released with the other `@poolse/*` packages at 3.6.1.
|
|
23
|
+
|
|
7
24
|
## [3.6.0] - 2026-11-21
|
|
8
25
|
|
|
9
26
|
### Added
|
package/dist/index.cjs
CHANGED
|
@@ -387,7 +387,9 @@ function resolveThemeValue(selection, scheme) {
|
|
|
387
387
|
}
|
|
388
388
|
var ThemeContext = react.createContext(null);
|
|
389
389
|
var FALLBACK = {
|
|
390
|
-
native: legacyToNative(defaultLightTheme)
|
|
390
|
+
native: legacyToNative(defaultLightTheme),
|
|
391
|
+
legacy: defaultLightTheme
|
|
392
|
+
};
|
|
391
393
|
function PoolseTheme({ theme, colorScheme, mode, fonts, children }) {
|
|
392
394
|
const system = reactNative.useColorScheme() === "dark" ? "dark" : "light";
|
|
393
395
|
const scheme = selectedScheme({ theme, colorScheme, mode }, system);
|
|
@@ -413,6 +415,9 @@ function PoolseTheme({ theme, colorScheme, mode, fonts, children }) {
|
|
|
413
415
|
function useTheme() {
|
|
414
416
|
return (react.useContext(ThemeContext) ?? FALLBACK).native;
|
|
415
417
|
}
|
|
418
|
+
function usePoolseTheme() {
|
|
419
|
+
return (react.useContext(ThemeContext) ?? FALLBACK).legacy;
|
|
420
|
+
}
|
|
416
421
|
|
|
417
422
|
// src/primitives/icons-data.ts
|
|
418
423
|
var ICONS = {
|
|
@@ -6280,6 +6285,7 @@ function ThreadView({
|
|
|
6280
6285
|
avatarFor,
|
|
6281
6286
|
layout,
|
|
6282
6287
|
timeFormat,
|
|
6288
|
+
density,
|
|
6283
6289
|
showPresence = false,
|
|
6284
6290
|
linkPreviews = true
|
|
6285
6291
|
}) {
|
|
@@ -6301,6 +6307,7 @@ function ThreadView({
|
|
|
6301
6307
|
...avatarFor ? { avatarFor } : {},
|
|
6302
6308
|
...layout ? { layout } : {},
|
|
6303
6309
|
...timeFormat ? { timeFormat } : {},
|
|
6310
|
+
...density ? { density } : {},
|
|
6304
6311
|
showPresence,
|
|
6305
6312
|
linkPreviews
|
|
6306
6313
|
}
|
|
@@ -6316,6 +6323,7 @@ function ThreadSheet({
|
|
|
6316
6323
|
avatarFor,
|
|
6317
6324
|
layout,
|
|
6318
6325
|
timeFormat,
|
|
6326
|
+
density,
|
|
6319
6327
|
showPresence,
|
|
6320
6328
|
linkPreviews
|
|
6321
6329
|
}) {
|
|
@@ -6366,6 +6374,7 @@ function ThreadSheet({
|
|
|
6366
6374
|
...avatarFor ? { avatarFor } : {},
|
|
6367
6375
|
...layout ? { layout } : {},
|
|
6368
6376
|
...timeFormat ? { timeFormat } : {},
|
|
6377
|
+
...density ? { density } : {},
|
|
6369
6378
|
showPresence,
|
|
6370
6379
|
linkPreviews,
|
|
6371
6380
|
...linkPreviews && isSelf && !msg.deleted_at && (msg.link_previews?.length ?? 0) > 0 ? {
|
|
@@ -6382,6 +6391,7 @@ function ThreadSheet({
|
|
|
6382
6391
|
avatarFor,
|
|
6383
6392
|
layout,
|
|
6384
6393
|
timeFormat,
|
|
6394
|
+
density,
|
|
6385
6395
|
showPresence,
|
|
6386
6396
|
linkPreviews,
|
|
6387
6397
|
chat
|
|
@@ -6406,6 +6416,7 @@ function ThreadSheet({
|
|
|
6406
6416
|
...avatarFor ? { avatarFor } : {},
|
|
6407
6417
|
...layout ? { layout } : {},
|
|
6408
6418
|
...timeFormat ? { timeFormat } : {},
|
|
6419
|
+
...density ? { density } : {},
|
|
6409
6420
|
linkPreviews
|
|
6410
6421
|
}
|
|
6411
6422
|
),
|
|
@@ -7427,8 +7438,10 @@ function ConversationView({
|
|
|
7427
7438
|
conversationId,
|
|
7428
7439
|
rootMessage: threadRoot,
|
|
7429
7440
|
...labelFor ? { labelFor } : {},
|
|
7441
|
+
...avatarFor ? { avatarFor } : {},
|
|
7430
7442
|
layout,
|
|
7431
7443
|
...timeFormat ? { timeFormat } : {},
|
|
7444
|
+
density,
|
|
7432
7445
|
showPresence,
|
|
7433
7446
|
linkPreviews
|
|
7434
7447
|
}
|
|
@@ -8693,6 +8706,30 @@ function format(total) {
|
|
|
8693
8706
|
return `${hours > 0 ? `${hours}:` : ""}${mm}:${String(seconds).padStart(2, "0")}`;
|
|
8694
8707
|
}
|
|
8695
8708
|
|
|
8709
|
+
Object.defineProperty(exports, "BUILT_IN_THEME_IDS", {
|
|
8710
|
+
enumerable: true,
|
|
8711
|
+
get: function () { return theme.BUILT_IN_THEME_IDS; }
|
|
8712
|
+
});
|
|
8713
|
+
Object.defineProperty(exports, "DEFAULT_THEME_ID", {
|
|
8714
|
+
enumerable: true,
|
|
8715
|
+
get: function () { return theme.DEFAULT_THEME_ID; }
|
|
8716
|
+
});
|
|
8717
|
+
Object.defineProperty(exports, "createTheme", {
|
|
8718
|
+
enumerable: true,
|
|
8719
|
+
get: function () { return theme.createTheme; }
|
|
8720
|
+
});
|
|
8721
|
+
Object.defineProperty(exports, "decodeTheme", {
|
|
8722
|
+
enumerable: true,
|
|
8723
|
+
get: function () { return theme.decodeTheme; }
|
|
8724
|
+
});
|
|
8725
|
+
Object.defineProperty(exports, "encodeTheme", {
|
|
8726
|
+
enumerable: true,
|
|
8727
|
+
get: function () { return theme.encodeTheme; }
|
|
8728
|
+
});
|
|
8729
|
+
Object.defineProperty(exports, "tokensFromFlat", {
|
|
8730
|
+
enumerable: true,
|
|
8731
|
+
get: function () { return theme.tokensFromFlat; }
|
|
8732
|
+
});
|
|
8696
8733
|
exports.AttachmentPicker = AttachmentPicker;
|
|
8697
8734
|
exports.AttachmentPreview = AttachmentPreview;
|
|
8698
8735
|
exports.AudioRouteSheet = AudioRouteSheet;
|
|
@@ -8738,6 +8775,7 @@ exports.useAppStateLifecycle = useAppStateLifecycle;
|
|
|
8738
8775
|
exports.useAppStatePresence = useAppStatePresence;
|
|
8739
8776
|
exports.useCallDuration = useCallDuration;
|
|
8740
8777
|
exports.useDisplayName = useDisplayName;
|
|
8778
|
+
exports.usePoolseTheme = usePoolseTheme;
|
|
8741
8779
|
exports.useTheme = useTheme;
|
|
8742
8780
|
//# sourceMappingURL=index.cjs.map
|
|
8743
8781
|
//# sourceMappingURL=index.cjs.map
|