@oxy.so/services 9.0.0 → 9.2.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.
Files changed (79) hide show
  1. package/lib/commonjs/index.js +4 -3
  2. package/lib/commonjs/index.js.map +1 -1
  3. package/lib/commonjs/ui/client.js +174 -0
  4. package/lib/commonjs/ui/client.js.map +1 -1
  5. package/lib/commonjs/ui/components/FollowTargetButton.js +11 -101
  6. package/lib/commonjs/ui/components/FollowTargetButton.js.map +1 -1
  7. package/lib/commonjs/ui/components/OxyProvider.js +2 -2
  8. package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
  9. package/lib/commonjs/ui/components/followRules.js +105 -0
  10. package/lib/commonjs/ui/components/followRules.js.map +1 -0
  11. package/lib/commonjs/ui/context/OxyContext.js +4 -0
  12. package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
  13. package/lib/commonjs/ui/hooks/accountQueryPersistence.js +110 -80
  14. package/lib/commonjs/ui/hooks/accountQueryPersistence.js.map +1 -1
  15. package/lib/commonjs/ui/hooks/persistedQueryCache.js +101 -0
  16. package/lib/commonjs/ui/hooks/persistedQueryCache.js.map +1 -0
  17. package/lib/commonjs/ui/hooks/queryClient.js +43 -80
  18. package/lib/commonjs/ui/hooks/queryClient.js.map +1 -1
  19. package/lib/module/index.js +3 -2
  20. package/lib/module/index.js.map +1 -1
  21. package/lib/module/ui/client.js +17 -4
  22. package/lib/module/ui/client.js.map +1 -1
  23. package/lib/module/ui/components/FollowTargetButton.js +1 -89
  24. package/lib/module/ui/components/FollowTargetButton.js.map +1 -1
  25. package/lib/module/ui/components/OxyProvider.js +2 -2
  26. package/lib/module/ui/components/OxyProvider.js.map +1 -1
  27. package/lib/module/ui/components/followRules.js +99 -0
  28. package/lib/module/ui/components/followRules.js.map +1 -0
  29. package/lib/module/ui/context/OxyContext.js +4 -0
  30. package/lib/module/ui/context/OxyContext.js.map +1 -1
  31. package/lib/module/ui/hooks/accountQueryPersistence.js +109 -80
  32. package/lib/module/ui/hooks/accountQueryPersistence.js.map +1 -1
  33. package/lib/module/ui/hooks/persistedQueryCache.js +94 -0
  34. package/lib/module/ui/hooks/persistedQueryCache.js.map +1 -0
  35. package/lib/module/ui/hooks/queryClient.js +44 -81
  36. package/lib/module/ui/hooks/queryClient.js.map +1 -1
  37. package/lib/typescript/commonjs/index.d.ts +4 -2
  38. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  39. package/lib/typescript/commonjs/ui/client.d.ts +19 -4
  40. package/lib/typescript/commonjs/ui/client.d.ts.map +1 -1
  41. package/lib/typescript/commonjs/ui/components/FollowTargetButton.d.ts +2 -62
  42. package/lib/typescript/commonjs/ui/components/FollowTargetButton.d.ts.map +1 -1
  43. package/lib/typescript/commonjs/ui/components/followRules.d.ts +71 -0
  44. package/lib/typescript/commonjs/ui/components/followRules.d.ts.map +1 -0
  45. package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
  46. package/lib/typescript/commonjs/ui/hooks/accountQueryPersistence.d.ts +31 -13
  47. package/lib/typescript/commonjs/ui/hooks/accountQueryPersistence.d.ts.map +1 -1
  48. package/lib/typescript/commonjs/ui/hooks/persistedQueryCache.d.ts +44 -0
  49. package/lib/typescript/commonjs/ui/hooks/persistedQueryCache.d.ts.map +1 -0
  50. package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts +15 -20
  51. package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts.map +1 -1
  52. package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts +1 -1
  53. package/lib/typescript/module/index.d.ts +4 -2
  54. package/lib/typescript/module/index.d.ts.map +1 -1
  55. package/lib/typescript/module/ui/client.d.ts +19 -4
  56. package/lib/typescript/module/ui/client.d.ts.map +1 -1
  57. package/lib/typescript/module/ui/components/FollowTargetButton.d.ts +2 -62
  58. package/lib/typescript/module/ui/components/FollowTargetButton.d.ts.map +1 -1
  59. package/lib/typescript/module/ui/components/followRules.d.ts +71 -0
  60. package/lib/typescript/module/ui/components/followRules.d.ts.map +1 -0
  61. package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
  62. package/lib/typescript/module/ui/hooks/accountQueryPersistence.d.ts +31 -13
  63. package/lib/typescript/module/ui/hooks/accountQueryPersistence.d.ts.map +1 -1
  64. package/lib/typescript/module/ui/hooks/persistedQueryCache.d.ts +44 -0
  65. package/lib/typescript/module/ui/hooks/persistedQueryCache.d.ts.map +1 -0
  66. package/lib/typescript/module/ui/hooks/queryClient.d.ts +15 -20
  67. package/lib/typescript/module/ui/hooks/queryClient.d.ts.map +1 -1
  68. package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts +1 -1
  69. package/package.json +1 -1
  70. package/src/index.ts +3 -3
  71. package/src/ui/client.ts +55 -4
  72. package/src/ui/components/FollowTargetButton.tsx +8 -112
  73. package/src/ui/components/OxyProvider.tsx +2 -2
  74. package/src/ui/components/__tests__/followTargetButton.test.ts +1 -1
  75. package/src/ui/components/followRules.ts +121 -0
  76. package/src/ui/context/OxyContext.tsx +4 -0
  77. package/src/ui/hooks/accountQueryPersistence.ts +138 -91
  78. package/src/ui/hooks/persistedQueryCache.ts +126 -0
  79. package/src/ui/hooks/queryClient.ts +55 -98
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAYH,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAIjD,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAKlF,OAAO,EACL,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,aAAa,EACb,UAAU,EACV,eAAe,EACf,kBAAkB,EAClB,g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AAE,KAAK,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAC1F,OAAO,EAAE,mBAAmB,EAAE,KAAK,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAMzG,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,sCAAsC,CAAC"}
@@ -1,8 +1,13 @@
1
1
  /**
2
- * Client-only UI exports (tree-shakeable)
2
+ * Client-only UI exports — the lean entry.
3
3
  *
4
- * Import from this module for client-side bundles where tree-shaking is important.
5
- * These are direct exports without runtime detection overhead.
4
+ * Import from this module in an app's startup path. The root barrel also
5
+ * re-exports the sign-in panels (`OxySignInPanel`, `OxyLinkCommonsPanel` and
6
+ * its QR code, `OxyConsentScreen`, …) for apps that embed them, and Metro does
7
+ * not tree-shake, so importing ANY symbol from `@oxy.so/services` ships all of
8
+ * them — even though the account dialog that normally shows them is loaded on
9
+ * demand. Nothing exported here reaches those panels; the packaging test
10
+ * `clientEntryIsolation` pins it.
6
11
  *
7
12
  * @example
8
13
  * import { OxyProvider, useOxy, LogoIcon } from '@oxy.so/services/ui/client';
@@ -14,6 +19,8 @@ export type { OxyAuthPromptProps } from './components/OxyAuthPrompt';
14
19
  export { LogoIcon } from './components/logo/LogoIcon';
15
20
  export { LogoText } from './components/logo/LogoText';
16
21
  export { default as FollowButton } from './components/FollowButton';
22
+ export { default as ProfileButton } from './components/ProfileButton';
23
+ export type { ProfileButtonProps } from './components/ProfileButton';
17
24
  export { default as PeableButton } from './components/PeableButton';
18
25
  export type { PeableButtonProps } from './components/PeableButton';
19
26
  /** @deprecated Use `PeableButton` instead. */
@@ -25,9 +32,17 @@ export { useAuth } from './hooks/useAuth';
25
32
  export type { AuthState, AuthActions, SignInOutcome, UseAuthReturn } from './hooks/useAuth';
26
33
  export { createDeferredProductAnalytics } from './analytics/productAnalytics';
27
34
  export type { OxyProductEvent, ProductAnalytics } from './analytics/productAnalytics';
28
- export { useFollow } from './hooks/useFollow';
35
+ export { useFollow, useFollowerCounts, useSeedFollowStatuses } from './hooks/useFollow';
36
+ export { useFollowTarget } from './hooks/useFollowTarget';
37
+ export type { UseFollowTargetResult } from './hooks/useFollowTarget';
38
+ export { useUserProfile, useUserProfiles, useCurrentUser, useUserById, useUserByUsername, } from './hooks/queries/useAccountQueries';
29
39
  export { useStorage } from './hooks/useStorage';
30
40
  export type { UseStorageOptions, UseStorageResult } from './hooks/useStorage';
41
+ export { buildFollowMenuItems, resolveFollowPrimaryAction, FOLLOW_ACTION_LEAVES_ACTIVE, } from './components/followRules';
42
+ export type { FollowDuration, FollowMenuItem } from './components/followRules';
43
+ export { queryKeys, invalidateAccountQueries, invalidateUserQueries, invalidateSessionQueries, invalidateDeviceQueries, invalidatePrivacyQueries, invalidateSecurityQueries, invalidateStorageQueries, invalidatePaymentsQueries, invalidateConnectedAppsQueries, invalidateAuthMethodsQueries, } from './hooks/queries/queryKeys';
44
+ export { upsertCachedUser, upsertCachedUsers, CLEARABLE_USER_FIELDS, clearedFieldsFromProfileUpdate, clearedFieldsFromAccountUpdate, } from './hooks/queries/userCache';
45
+ export type { CacheableUser, ClearableUserField, UpsertCachedUserOptions, } from './hooks/queries/userCache';
31
46
  export { useAuthStore } from './stores/authStore';
32
47
  export { handleAuthError, isInvalidSessionError, isTimeoutOrNetworkError, extractErrorMessage, } from './utils/errorHandlers';
33
48
  export type { HandleAuthErrorOptions } from './utils/errorHandlers';
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/ui/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACtE,YAAY,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OA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yBAAyB,CAAC;AAC1D,YAAY,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EACH,cAAc,EACd,eAAe,EACf,cAAc,EACd,WAAW,EACX,iBAAiB,GACpB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAM9E,OAAO,EACH,oBAAoB,EACpB,0BAA0B,EAC1B,2BAA2B,GAC9B,MAAM,0BAA0B,CAAC;AAClC,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG/E,OAAO,EACH,SAAS,EACT,wBAAwB,EACxB,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,yBAAyB,EACzB,wBAAwB,EACxB,yBAAyB,EACzB,8BAA8B,EAC9B,4BAA4B,GAC/B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACH,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,8BAA8B,EAC9B,8BAA8B,GACjC,MAAM,2BAA2B,CAAC;AACnC,YAAY,EACR,aAAa,EACb,kBAAkB,EAClB,uBAAuB,GAC1B,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGlD,OAAO,EACH,eAAe,EACf,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,GACtB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -30,8 +30,9 @@
30
30
  * `/v2/follows`. When it is, that component is deleted and this one takes the
31
31
  * name — not aliased, not deprecated in place.
32
32
  */
33
- import type { FollowApplicationMode, FollowStatus } from '@oxy.so/contracts';
33
+ import type { FollowStatus } from '@oxy.so/contracts';
34
34
  import type { StyleProp, ViewStyle } from 'react-native';
35
+ import { type FollowDuration } from './followRules';
35
36
  /**
36
37
  * The small vocabulary of verbs the ecosystem actually uses. An application
37
38
  * whose verb is not here passes `labels` instead — the escape hatch exists so
@@ -48,67 +49,6 @@ export interface FollowLabels {
48
49
  /** Following globally, but switched off in this application. */
49
50
  disabled: string;
50
51
  }
51
- /** A timed-follow choice offered in the menu. */
52
- export interface FollowDuration {
53
- label: string;
54
- seconds: number;
55
- }
56
- /**
57
- * Whether an action leaves the target ACTIVE in this application.
58
- *
59
- * One table, read by both the primary button and the menu, because the same
60
- * action reached from two controls once reported differently — and a rule
61
- * living in two switch statements is a rule that drifts. `Record` rather than
62
- * a function with a default, so a new action is a compile error instead of a
63
- * silent `false`.
64
- */
65
- export declare const FOLLOW_ACTION_LEAVES_ACTIVE: Record<'follow' | 'follow-timed' | 'enable-here' | 'disable-here' | 'unfollow', boolean>;
66
- /** One line in the disclosure menu. */
67
- export interface FollowMenuItem {
68
- key: string;
69
- label: string;
70
- /** What the component should call. Named so the table below stays pure. */
71
- action: {
72
- type: 'follow-timed';
73
- seconds: number;
74
- durationLabel: string;
75
- } | {
76
- type: 'enable-here';
77
- } | {
78
- type: 'disable-here';
79
- } | {
80
- type: 'unfollow';
81
- };
82
- }
83
- /**
84
- * Which choices exist, given the state.
85
- *
86
- * Pure and exported because this is the product decision, not a rendering
87
- * detail: a timed follow is only offered before following, turning it off here
88
- * is only offered while following, and NEITHER is offered before the server has
89
- * answered — every one of them addresses a relationship that does not exist
90
- * yet, so offering them mid-write would mean sending a guessed id.
91
- */
92
- /**
93
- * What the main button should do for the current state.
94
- *
95
- * Exported because the product rule is not obvious from the label alone: a
96
- * follow switched off here still reads as "following" globally, so the primary
97
- * press must re-enable here — not unfollow everywhere.
98
- */
99
- export declare function resolveFollowPrimaryAction(input: {
100
- isFollowing: boolean;
101
- applicationMode: FollowApplicationMode;
102
- }): 'follow' | 'unfollow' | 'enable-here';
103
- export declare function buildFollowMenuItems(input: {
104
- following: boolean;
105
- applicationMode: FollowApplicationMode;
106
- hasRelationship: boolean;
107
- isPending: boolean;
108
- durations: FollowDuration[] | false;
109
- idleVerb: string;
110
- applicationName: string;
111
- }): FollowMenuItem[];
112
52
  export interface FollowTargetButtonProps {
113
53
  /** The registered target's id. Registration is separate — see the SDK. */
114
54
  targetId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"FollowTargetButton.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/FollowTargetButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAGH,OAAO,KAAK,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAmBzD;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,WAAW,GAAG,MAAM,GAAG,OAAO,CAAC;AAEnE,MAAM,WAAW,YAAY;IAC3B,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,kDAAkD;IAClD,MAAM,EAAE,MAAM,CAAC;IACf,mDAAmD;IACnD,OAAO,EAAE,MAAM,CAAC;IAChB,gEAAgE;IAChE,QAAQ,EAAE,MAAM,CAAC;CAClB;AAcD,iDAAiD;AACjD,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAeD;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAC9C,QAAQ,GAAG,cAAc,GAAG,aAAa,GAAG,cAAc,GAAG,UAAU,EACvE,OAAO,CAUR,CAAC;AAEF,uCAAuC;AACvC,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,2EAA2E;IAC3E,MAAM,EACF;QAAE,IAAI,EAAE,cAAc,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,aAAa,EAA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MAAM,CAAC;IACzB;;;OAGG;IACH,aAAa,CAAC,EAAE,YAAY,CAAC;IAC7B;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1C;AAED,eAAO,MAAM,kBAAkB,+DAkL7B,CAAC"}
@@ -0,0 +1,71 @@
1
+ /**
2
+ * The follow button's product rules, without the button.
3
+ *
4
+ * Pure: no React, no Bloom. `FollowTargetButton` renders them, and an
5
+ * application drawing its own affordance (a chip grid, a compact row) imports
6
+ * them from here — through `@oxy.so/services/ui/client` — without paying for the
7
+ * button's dropdown menu.
8
+ */
9
+ import type { FollowApplicationMode } from '@oxy.so/contracts';
10
+ /** A timed-follow choice offered in the menu. */
11
+ export interface FollowDuration {
12
+ label: string;
13
+ seconds: number;
14
+ }
15
+ /**
16
+ * Whether an action leaves the target ACTIVE in this application.
17
+ *
18
+ * One table, read by both the primary button and the menu, because the same
19
+ * action reached from two controls once reported differently — and a rule
20
+ * living in two switch statements is a rule that drifts. `Record` rather than
21
+ * a function with a default, so a new action is a compile error instead of a
22
+ * silent `false`.
23
+ */
24
+ export declare const FOLLOW_ACTION_LEAVES_ACTIVE: Record<'follow' | 'follow-timed' | 'enable-here' | 'disable-here' | 'unfollow', boolean>;
25
+ /** One line in the disclosure menu. */
26
+ export interface FollowMenuItem {
27
+ key: string;
28
+ label: string;
29
+ /** What the component should call. Named so the table below stays pure. */
30
+ action: {
31
+ type: 'follow-timed';
32
+ seconds: number;
33
+ durationLabel: string;
34
+ } | {
35
+ type: 'enable-here';
36
+ } | {
37
+ type: 'disable-here';
38
+ } | {
39
+ type: 'unfollow';
40
+ };
41
+ }
42
+ /**
43
+ * Which choices exist, given the state.
44
+ *
45
+ * Pure and exported because this is the product decision, not a rendering
46
+ * detail: a timed follow is only offered before following, turning it off here
47
+ * is only offered while following, and NEITHER is offered before the server has
48
+ * answered — every one of them addresses a relationship that does not exist
49
+ * yet, so offering them mid-write would mean sending a guessed id.
50
+ */
51
+ /**
52
+ * What the main button should do for the current state.
53
+ *
54
+ * Exported because the product rule is not obvious from the label alone: a
55
+ * follow switched off here still reads as "following" globally, so the primary
56
+ * press must re-enable here — not unfollow everywhere.
57
+ */
58
+ export declare function resolveFollowPrimaryAction(input: {
59
+ isFollowing: boolean;
60
+ applicationMode: FollowApplicationMode;
61
+ }): 'follow' | 'unfollow' | 'enable-here';
62
+ export declare function buildFollowMenuItems(input: {
63
+ following: boolean;
64
+ applicationMode: FollowApplicationMode;
65
+ hasRelationship: boolean;
66
+ isPending: boolean;
67
+ durations: FollowDuration[] | false;
68
+ idleVerb: string;
69
+ applicationName: string;
70
+ }): FollowMenuItem[];
71
+ //# sourceMappingURL=followRules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"followRules.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/followRules.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE/D,iDAAiD;AACjD,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAC9C,QAAQ,GAAG,cAAc,GAAG,aAAa,GAAG,cAAc,GAAG,UAAU,EACvE,OAAO,CAUR,CAAC;AAEF,uCAAuC;AACvC,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,2EAA2E;IAC3E,MAAM,EACF;QAAE,IAAI,EAAE,cAAc,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,MAAM,CAAA;KAAE,GAChE;QAAE,IAAI,EAAE,aAAa,CAAA;KAAE,GACvB;QAAE,IAAI,EAAE,cAAc,CAAA;KAAE,GACxB;QAAE,IAAI,EAAE,UAAU,C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AO,eAMzB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,QAAO,eAAe,GAAG,IAAqC,CAAC;AAE1F,kFAAkF;AAClF,eAAO,MAAM,iBAAiB,QAAO,0BAMpC,CAAC"}
1
+ {"version":3,"file":"OxyContext.d.ts","sourceRoot":"","sources":["../../../../../src/ui/context/OxyContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgF/B,OAAO,KAAK,EACV,eAAe,EACf,uBAAuB,EAExB,MAAM,mBAAmB,CAAC;AAU3B,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAMhG,KAAK,0BAA0B,GAAG,IAAI,CACpC,eAAe,EACb,QAAQ,GACR,QAAQ,GACR,WAAW,GACX,iBAAiB,GACjB,aAAa,GACb,iBAAiB,GACjB,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,kBAAkB,GAClB,mBAAmB,CACtB,CAAC;AAIF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAqxChE,CAAC;AAMF,qBAAa,uBAAwB,SAAQ,KAAK;IAChD,QAAQ,CAAC,IAAI,0BAA0B;;CAMxC;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,MAAM,QAAO,eAMzB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,QAAO,eAAe,GAAG,IAAqC,CAAC;AAE1F,kFAAkF;AAClF,eAAO,MAAM,iBAAiB,QAAO,0BAMpC,CAAC"}
@@ -8,24 +8,32 @@
8
8
  *
9
9
  * - Storage is keyed by the account (`oxy_account_queries:<accountId>`), so a
10
10
  * restore can only ever hydrate the account that is signed in.
11
- * - The buster is the build (`getOxyBuildId`), so no cache written by an older
12
- * bundle, in an older shape, is ever served.
13
- * - On a subject change the declared roots, memory-only ones included, and the
14
- * account's paused mutations are dropped
15
- * from memory synchronously, before anyone is woken, and the new account's
16
- * blob is restored. `isReady()` is false until that restore settles, and
11
+ * - Queries written by another build are dropped on restore; queued (paused)
12
+ * mutations are kept (`persistedQueryCache.ts`).
13
+ * - On a subject change the account's queries, memory-only ones included, and
14
+ * its paused mutations are dropped from memory synchronously, before anyone
15
+ * is woken. The leaving account's latest state is written first, a sign-out
16
+ * then deletes it, and only then is the next account's blob read.
17
+ * - `isReady()` is false until the signed-in account's blob is restored, and
17
18
  * `RequireOxyAuth` waits on it, so another account's rows never render.
18
- * - On sign-out the signed-out account's blob is deleted.
19
+ *
20
+ * Every storage operation runs through one queue, in order, and a restore
21
+ * checks that its account is still the active one in the same tick it hydrates.
19
22
  */
20
- import { type Mutation, type QueryClient, type QueryKey } from '@tanstack/react-query';
23
+ import { type Mutation, type Query, type QueryClient, type QueryKey } from '@tanstack/react-query';
21
24
  import type { StorageInterface } from '../utils/storageHelpers';
22
25
  /** An app's declaration of which data is private to the signed-in account. */
23
26
  export interface AccountQueriesConfig {
24
27
  /**
25
28
  * Query-key roots (`queryKey[0]`) whose data belongs to the signed-in account
26
- * and survives a restart.
29
+ * and survives a restart. `'all'`: every query the app runs, for an app whose
30
+ * every read may depend on who is signed in, so no root can be forgotten.
31
+ *
32
+ * The roots `accounts`, `sessions` and `devices` are reserved for the SDK's
33
+ * device-level data: an app must not use them. `users` and `privacy` are the
34
+ * SDK's too, and with `'all'` they are dropped on a switch like the app's.
27
35
  */
28
- roots: readonly string[];
36
+ roots: readonly string[] | 'all';
29
37
  /**
30
38
  * Roots that belong to the account too, but must not be written to disk
31
39
  * (signed URLs, AI output, search results): dropped on a switch, never persisted.
@@ -37,18 +45,28 @@ export interface AccountQueriesConfig {
37
45
  */
38
46
  mutationKeys?: readonly QueryKey[];
39
47
  }
48
+ /** Which queries and mutations an `AccountQueriesConfig` makes the account's. */
49
+ export interface AccountQueryOwnership {
50
+ /** Dropped from memory on a subject change. */
51
+ ownsQuery: (query: Query) => boolean;
52
+ /** Written to the account's blob. */
53
+ persistsQuery: (query: Query) => boolean;
54
+ ownsMutation: (mutation: Mutation) => boolean;
55
+ }
56
+ export declare function accountQueryOwnership(config: AccountQueriesConfig): AccountQueryOwnership;
40
57
  export declare const ACCOUNT_QUERY_CACHE_KEY = "oxy_account_queries";
41
58
  export interface AccountQueryPersistence {
42
59
  /** Storage became available (it initializes asynchronously). */
43
60
  setStorage(storage: StorageInterface): void;
44
61
  /** The signed-in account changed. `null` is a sign-out. Synchronous in-memory reset. */
45
62
  activate(accountId: string | null): void;
63
+ /** The owning provider mounted: restore and persist the active account. */
64
+ attach(): void;
65
+ /** The owning provider unmounted: stop touching the client and storage. */
66
+ detach(): void;
46
67
  /** True once the active account's cache is restored (always true signed out). */
47
68
  isReady(): boolean;
48
69
  subscribe(listener: () => void): () => void;
49
- /** Whether a mutation is account-scoped (so the SDK's own persister skips it). */
50
- ownsMutation(mutation: Mutation): boolean;
51
- dispose(): void;
52
70
  }
53
71
  export declare function createAccountQueryPersistence(queryClient: QueryClient, config: AccountQueriesConfig): AccountQueryPersistence;
54
72
  //# sourceMappingURL=accountQueryPersistence.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"accountQueryPersistence.d.ts","sourceRoot":"","sources":["../../../../../src/ui/hooks/accountQueryPersistence.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAW,KAAK,QAAQ,EAAc,KAAK,WAAW,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5G,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,8EAA8E;AAC9E,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB;;;OAGG;IACH,eAAe,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC;;;OAGG;IACH,YAAY,CAAC,EAAE,SAAS,QAAQ,EAAE,CAAC;CACpC;AAED,eAAO,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AE,CAAC,KAAK,EAAE,KAAK,KAAK,OAAO,CAAC;IACzC,YAAY,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,OAAO,CAAC;CAC/C;AAKD,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,oBAAoB,GAAG,qBAAqB,CA0BzF;AAED,eAAO,MAAM,uBAAuB,wBAAwB,CAAC;AAI7D,MAAM,WAAW,uBAAuB;IACtC,gEAAgE;IAChE,UAAU,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC5C,wFAAwF;IACxF,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IACzC,2EAA2E;IAC3E,MAAM,IAAI,IAAI,CAAC;IACf,2EAA2E;IAC3E,MAAM,IAAI,IAAI,CAAC;IACf,iFAAiF;IACjF,OAAO,IAAI,OAAO,CAAC;IACnB,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC;CAC7C;AAMD,wBAAgB,6BAA6B,CAC3C,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,oBAAoB,GAC3B,uBAAuB,CA2HzB"}
@@ -0,0 +1,44 @@
1
+ /**
2
+ * The storage format and restore rules shared by the SDK's two query caches:
3
+ * the account-agnostic one (`attachQueryPersistence`) and the per-account one
4
+ * (`createAccountQueryPersistence`).
5
+ *
6
+ * A blob is `{ buster, timestamp, clientState }`, TanStack's persisted-client
7
+ * shape. Restoring it treats its two halves differently:
8
+ *
9
+ * - Queries are served before any refetch, so a query written by another
10
+ * build, in whatever shape that build used, is dropped (`getOxyBuildId`).
11
+ * - Paused mutations are the user's queued actions (a star, a send made
12
+ * offline). A deploy must not lose them, so they are restored whatever build
13
+ * wrote them; the current build's `setMutationDefaults` replays them.
14
+ */
15
+ import { type Mutation, type Query, type QueryClient } from '@tanstack/react-query';
16
+ /** The SDK's own account-agnostic query roots, persisted by `attachQueryPersistence`. */
17
+ export declare const PERSISTED_QUERY_PREFIXES: ReadonlyArray<string>;
18
+ /**
19
+ * SDK queries whose data (or key) carries a signed, expiring URL. Never
20
+ * written to disk: a restored one would serve an expired URL.
21
+ */
22
+ export declare const SDK_MEMORY_ONLY_ROOTS: ReadonlyArray<string>;
23
+ export interface PersistFilters {
24
+ shouldDehydrateQuery: (query: Query) => boolean;
25
+ shouldDehydrateMutation: (mutation: Mutation) => boolean;
26
+ }
27
+ export declare function rootOf(query: Query): string | null;
28
+ /** Serialize what the filters select, stamped with this build. */
29
+ export declare function snapshot(queryClient: QueryClient, filters: PersistFilters): string;
30
+ /**
31
+ * Hydrate a stored blob into the client, synchronously, so a caller can check
32
+ * it is still wanted immediately before. Returns false when there was nothing
33
+ * usable (absent, unreadable or expired), in which case the caller removes it.
34
+ */
35
+ export declare function hydrateSnapshot(queryClient: QueryClient, raw: string | null, maxAge: number): boolean;
36
+ /**
37
+ * Write the filtered cache on every change, at most once per `throttleMs`.
38
+ * `write` receives the serialized snapshot; `flush()` writes now.
39
+ */
40
+ export declare function subscribeSnapshots(queryClient: QueryClient, filters: PersistFilters, throttleMs: number, write: (serialized: string) => void): {
41
+ flush: () => void;
42
+ unsubscribe: () => void;
43
+ };
44
+ //# sourceMappingURL=persistedQueryCache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"persistedQueryCache.d.ts","sourceRoot":"","sources":["../../../../../src/ui/hooks/persistedQueryCache.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAIL,KAAK,QAAQ,EACb,KAAK,KAAK,EACV,KAAK,WAAW,EACjB,MAAM,uBAAuB,CAAC;AAG/B,yFAAyF;AACzF,eAAO,MAAM,wBAAwB,EAAE,aAAa,CAAC,MAAM,CAM1D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,aAAa,CAAC,MAAM,CAKvD,CAAC;AAEF,MAAM,WAAW,cAAc;IAC7B,oBAAoB,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,OAAO,CAAC;IAChD,uBAAuB,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,OAAO,CAAC;CAC1D;AAQD,wBAAgB,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,IAAI,CAGlD;AAED,kEAAkE;AAClE,wBAAgB,QAAQ,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,cAAc,GAAG,MAAM,CAOlF;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,WAAW,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAiBrG;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,cAAc,EACvB,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,GAClC;IAAE,KAAK,EAAE,MAAM,IAAI,CAAC;IAAC,WAAW,EAAE,MAAM,IAAI,CAAA;CAAE,CAqBhD"}
@@ -5,27 +5,25 @@
5
5
  * - TanStack Query with `networkMode: 'offlineFirst'` for queries and mutations
6
6
  * so cached data is served immediately and mutations are queued (paused) while
7
7
  * the browser/device reports offline.
8
- * - `persistQueryClient(...)` from `@tanstack/react-query-persist-client` so that
9
- * query results AND paused mutations survive a cold restart (kill-and-relaunch).
8
+ * - `attachQueryPersistence(...)` so that query results AND paused mutations
9
+ * survive a cold restart (kill-and-relaunch); see `persistedQueryCache.ts`.
10
10
  * - `onlineManager` resume hook so paused mutations replay the moment the
11
11
  * network is reported back, even if the host app swapped in a custom
12
12
  * onlineManager implementation.
13
13
  *
14
- * Storage layer:
15
- * - React Native -> AsyncStorage via `createAsyncStoragePersister`.
16
- * - Web -> localStorage via `createSyncStoragePersister` (wrapped in the
17
- * async persister API for a single call site).
18
- * - Both adapters are content-shape compatible with our `StorageInterface`.
14
+ * Storage layer: the platform `StorageInterface` (AsyncStorage on native,
15
+ * localStorage on web).
19
16
  *
20
17
  * Whitelist policy:
21
18
  * - Persist every account/user/session/privacy query and every queued mutation.
22
19
  * - DO NOT persist large list queries (e.g. activity feeds) — they go stale
23
20
  * fast and would balloon storage. Add new keys to `PERSISTED_QUERY_PREFIXES`
24
- * when introducing reads that should survive restart.
21
+ * (`persistedQueryCache.ts`) when introducing reads that should survive restart.
25
22
  */
26
- import { QueryClient, type QueryKey } from '@tanstack/react-query';
27
- import { type PersistedClient } from '@tanstack/react-query-persist-client';
23
+ import { QueryClient } from '@tanstack/react-query';
24
+ import type { PersistedClient } from '@tanstack/react-query-persist-client';
28
25
  import type { StorageInterface } from '../utils/storageHelpers';
26
+ import { type AccountQueriesConfig } from './accountQueryPersistence';
29
27
  /** Retry only failures that another attempt can plausibly change. */
30
28
  export declare function shouldRetryQuery(failureCount: number, error: unknown): boolean;
31
29
  /**
@@ -47,21 +45,18 @@ export interface AttachPersistenceResult {
47
45
  unsubscribe: () => void;
48
46
  }
49
47
  /**
50
- * Wire `persistQueryClient` to the supplied storage adapter.
48
+ * Restore, then keep writing, the account-agnostic cache.
51
49
  *
52
- * Returns once the in-flight restore promise is available so callers can
53
- * `await result.restored` before rendering UI that depends on cached data.
50
+ * Queries written by another build are dropped; queued mutations are kept
51
+ * (`persistedQueryCache.ts`). Whatever the app declared account-scoped
52
+ * (`accountQueries`) is left to `createAccountQueryPersistence`, even under
53
+ * one of the SDK's prefixes, so private rows never land in the shared blob and
54
+ * a paused mutation cannot replay twice or under another account.
54
55
  *
55
56
  * Safe to no-op if `storage` is null/undefined (e.g. server-side render
56
57
  * with no host storage).
57
58
  */
58
- export declare const attachQueryPersistence: (queryClient: QueryClient, storage: StorageInterface | null | undefined,
59
- /**
60
- * Mutation keys the app declared account-scoped (`accountQueries`). Those are
61
- * persisted per account by `createAccountQueryPersistence`, never here, so a
62
- * paused mutation cannot replay twice or under another account.
63
- */
64
- accountMutationKeys?: readonly QueryKey[]) => AttachPersistenceResult;
59
+ export declare const attachQueryPersistence: (queryClient: QueryClient, storage: StorageInterface | null | undefined, accountQueries?: AccountQueriesConfig) => AttachPersistenceResult;
65
60
  /**
66
61
  * Remove the persisted query+mutation cache (used on full sign-out / data reset).
67
62
  * Safe to call even if persistence was never attached.
@@ -1 +1 @@
1
- {"version":3,"file":"queryClient.d.ts","sourceRoot":"","sources":["../../../../../src/ui/hooks/queryClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAE,WAAW,EAAqD,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtH,OAAO,EAEL,KAAK,eAAe,EACrB,MAAM,sCAAsC,CAAC;AAG9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAehE,qEAAqE;AACrE,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAK9E;AAwDD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,QAAO,WA6CpC,CAAC;AAEF,MAAM,WAAW,uBAAuB;IACtC,wEAAwE;IACxE,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACxB,8DAA8D;IAC9D,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,GACjC,aAAa,WAAW,EACxB,SAAS,gBAAgB,GAAG,IAAI,GAAG,SAAS;AAC5C;;;;GAIG;AACH,sBAAqB,SAAS,QAAQ,EAAO,KAC5C,uBAwCF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAU,SAAS,gBAAgB,KAAG,OAAO,CAAC,IAAI,CAQ7E,CAAC;AAEF;;GAEG;AACH,YAAY,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"queryClient.d.ts","sourceRoot":"","sources":["../../../../../src/ui/hooks/queryClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,WAAW,EAA4C,MAAM,uBAAuB,CAAC;AAC9F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAE5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAyB,KAAK,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAe7F,qEAAqE;AACrE,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAK9E;AAeD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,QAAO,WA6CpC,CAAC;AAEF,MAAM,WAAW,uBAAuB;IACtC,wEAAwE;IACxE,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACxB,8DAA8D;IAC9D,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sBAAsB,GACjC,aAAa,WAAW,EACxB,SAAS,gBAAgB,GAAG,IAAI,GAAG,SAAS,EAC5C,iBAAiB,oBAAoB,KACpC,uBA8CF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAU,SAAS,gBAAgB,KAAG,OAAO,CAAC,IAAI,CAQ7E,CAAC;AAEF;;GAEG;AACH,YAAY,EAAE,eAAe,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
1
  /** Glyphs are decorative: hidden from assistive technology (see `decorativeIconSet`). */
2
- declare const MaterialCommunityIcons: import("@expo/vector-icons/build/createIconSet").Icon<"function" | "sort" | "at" | "label" | "link" | "ellipse" | "image" | "switch" | "text" | "alert" | "alert-circle" | "alert-circle-outline" | "apps" | "archive" | "arrow-down" | "arrow-up" | "briefcase-outline" | "bug" | "calendar" | "calendar-outline" | "camera" | "camera-outline" | "card" | "card-outline" | "cart-outline" | "chevron-down" | "chevron-up" | "close" | "close-circle" | "cloud-outline" | "cloud-upload" | "cloud-upload-outline" | "cog" | "cog-outline" | "cube-outline" | "download" | "download-outline" | "earth" | "ellipse-outline" | "eye" | "eye-off-outline" | "filter-outline" | "flash" | "folder" | "folder-open-outline" | "folder-outline" | "gift" | "gift-outline" | "grid" | "heart" | "heart-outline" | "help-circle" | "help-circle-outline" | "image-outline" | "information" | "information-outline" | "key" | "leaf" | "library" | "pencil-outline" | "play" | "pulse" | "radio" | "receipt-outline" | "resize" | "rocket" | "scale" | "school-outline" | "server" | "share-outline" | "shield" | "star" | "sync" | "trophy" | "trophy-outline" | "volume-off" | "wallet" | "wallet-outline" | "watch" | "wifi" | "solid" | "opacity" | "wrap" | "account" | "account-circle" | "account-cog-outline" | "account-eye-outline" | "account-group" | "account-multiple" | "account-multiple-outline" | "account-outline" | "account-plus" | "account-search" | "account-switch" | "android" | "archive-arrow-down" | "arrow-left" | "bell" | "bell-outline" | "bio" | "bullhorn" | "cake-variant" | "cake-variant-outline" | "cancel" | "cellphone" | "cellphone-basic" | "cellphone-message" | "cellphone-screenshot" | "chart-line" | "check-all" | "check-circle" | "chip" | "circle-outline" | "clock" | "clock-outline" | "code-tags" | "contain" | "content-copy" | "controller" | "cookie" | "credit-card" | "database-outline" | "delete" | "delete-outline" | "devices" | "dots-horizontal" | "email" | "email-outline" | "file" | "file-document" | "file-document-edit-outline" | "file-document-outline" | "file-excel-outline" | "file-outline" | "file-pdf-box" | "folder-image" | "folder-zip-outline" | "ghost" | "history" | "image-multiple-outline" | "link-variant" | "loading" | "lock-outline" | "logout" | "magnify" | "map-marker" | "map-marker-multiple" | "map-marker-outline" | "message" | "message-outline" | "minus-circle" | "motion" | "music-note-outline" | "network" | "null" | "numeric" | "open-in-app" | "openid" | "palette" | "palette-outline" | "pan" | "phone" | "phone-outline" | "plus" | "plus-circle" | "post" | "presentation" | "react" | "read" | "security" | "shield-account-outline" | "shield-check" | "shield-search" | "signature" | "sort-alphabetical-variant" | "sort-numeric-variant" | "store" | "tag" | "tag-outline" | "text-box-outline" | "theme-light-dark" | "transfer" | "translate" | "trash-can-outline" | "tray-arrow-down" | "update" | "video-outline" | "web" | "wifi-off" | "wrench" | "xml", "OxyServicesMaterialCommunityIcons">;
2
+ declare const MaterialCommunityIcons: import("@expo/vector-icons/build/createIconSet").Icon<"function" | "devices" | "sort" | "at" | "label" | "link" | "ellipse" | "image" | "switch" | "text" | "alert" | "alert-circle" | "alert-circle-outline" | "apps" | "archive" | "arrow-down" | "arrow-up" | "briefcase-outline" | "bug" | "calendar" | "calendar-outline" | "camera" | "camera-outline" | "card" | "card-outline" | "cart-outline" | "chevron-down" | "chevron-up" | "close" | "close-circle" | "cloud-outline" | "cloud-upload" | "cloud-upload-outline" | "cog" | "cog-outline" | "cube-outline" | "download" | "download-outline" | "earth" | "ellipse-outline" | "eye" | "eye-off-outline" | "filter-outline" | "flash" | "folder" | "folder-open-outline" | "folder-outline" | "gift" | "gift-outline" | "grid" | "heart" | "heart-outline" | "help-circle" | "help-circle-outline" | "image-outline" | "information" | "information-outline" | "key" | "leaf" | "library" | "pencil-outline" | "play" | "pulse" | "radio" | "receipt-outline" | "resize" | "rocket" | "scale" | "school-outline" | "server" | "share-outline" | "shield" | "star" | "sync" | "trophy" | "trophy-outline" | "volume-off" | "wallet" | "wallet-outline" | "watch" | "wifi" | "solid" | "opacity" | "wrap" | "account" | "account-circle" | "account-cog-outline" | "account-eye-outline" | "account-group" | "account-multiple" | "account-multiple-outline" | "account-outline" | "account-plus" | "account-search" | "account-switch" | "android" | "archive-arrow-down" | "arrow-left" | "bell" | "bell-outline" | "bio" | "bullhorn" | "cake-variant" | "cake-variant-outline" | "cancel" | "cellphone" | "cellphone-basic" | "cellphone-message" | "cellphone-screenshot" | "chart-line" | "check-all" | "check-circle" | "chip" | "circle-outline" | "clock" | "clock-outline" | "code-tags" | "contain" | "content-copy" | "controller" | "cookie" | "credit-card" | "database-outline" | "delete" | "delete-outline" | "dots-horizontal" | "email" | "email-outline" | "file" | "file-document" | "file-document-edit-outline" | "file-document-outline" | "file-excel-outline" | "file-outline" | "file-pdf-box" | "folder-image" | "folder-zip-outline" | "ghost" | "history" | "image-multiple-outline" | "link-variant" | "loading" | "lock-outline" | "logout" | "magnify" | "map-marker" | "map-marker-multiple" | "map-marker-outline" | "message" | "message-outline" | "minus-circle" | "motion" | "music-note-outline" | "network" | "null" | "numeric" | "open-in-app" | "openid" | "palette" | "palette-outline" | "pan" | "phone" | "phone-outline" | "plus" | "plus-circle" | "post" | "presentation" | "react" | "read" | "security" | "shield-account-outline" | "shield-check" | "shield-search" | "signature" | "sort-alphabetical-variant" | "sort-numeric-variant" | "store" | "tag" | "tag-outline" | "text-box-outline" | "theme-light-dark" | "transfer" | "translate" | "trash-can-outline" | "tray-arrow-down" | "update" | "video-outline" | "web" | "wifi-off" | "wrench" | "xml", "OxyServicesMaterialCommunityIcons">;
3
3
  export default MaterialCommunityIcons;
4
4
  //# sourceMappingURL=MaterialCommunityIcons.d.ts.map
@@ -78,8 +78,10 @@ export type { RequireOxyAuthProps, RequireOxyAuthPrompt } from './ui/components/
78
78
  export type { AccountQueriesConfig } from './ui/hooks/accountQueryPersistence.js';
79
79
  export { default as FollowButton } from './ui/components/FollowButton.js';
80
80
  export type { FollowButtonProps, SingleFollowButtonProps, MultiFollowButtonProps } from './ui/components/FollowButton.js';
81
- export { FollowTargetButton, buildFollowMenuItems, resolveFollowPrimaryAction, FOLLOW_ACTION_LEAVES_ACTIVE, } from './ui/components/FollowTargetButton.js';
82
- export type { FollowTargetButtonProps, FollowVerb, FollowLabels, FollowDuration, } from './ui/components/FollowTargetButton.js';
81
+ export { FollowTargetButton } from './ui/components/FollowTargetButton.js';
82
+ export { buildFollowMenuItems, resolveFollowPrimaryAction, FOLLOW_ACTION_LEAVES_ACTIVE, } from './ui/components/followRules.js';
83
+ export type { FollowDuration, FollowMenuItem } from './ui/components/followRules.js';
84
+ export type { FollowTargetButtonProps, FollowVerb, FollowLabels, } from './ui/components/FollowTargetButton.js';
83
85
  export { useFollowTarget } from './ui/hooks/useFollowTarget.js';
84
86
  export type { UseFollowTargetResult } from './ui/hooks/useFollowTarget.js';
85
87
  export { useFollowTargetStore, UNKNOWN_FOLLOW_STATUS, isFollowedGlobally, withApplicationMode, isCompleteFollowStatus, followRecordToStatus, followRecordsToStatusMap, } from './ui/stores/followTargetStore.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAYH,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gCAA6B,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAAyB,CAAC;AAIjD,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,4BAAyB,CAAC;AAKlF,OAAO,EACL,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,uBAAc,CAAC;AACtB,YAAY,EACV,aAAa,EACb,UAAU,EACV,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,GACf,MAAM,uBAAc,CAAC;AACtB,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,4BAAyB,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAoB,CAAC;AAC7C,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,uBAAoB,CAAC;AAC/F,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAiC,CAAC;AACjF,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oCAAiC,CAAC;AAIzF,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAA8B,CAAC;AAKzE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAAuB,CAAC;AACrD,OAAO,EACH,aAAa,EACb,SAAS,IAAI,cAAc,EAC3B,QAAQ,EACR,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,c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AC;AACrF,OAAO,EAAE,qBAAqB,EAAE,MAAM,iDAA8C,CAAC;AACrF,YAAY,EAAE,0BAA0B,EAAE,MAAM,iDAA8C,CAAC;AAC/F,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,cAAc,EACd,YAAY,GACb,MAAM,yCAAsC,CAAC;AAC9C,YAAY,EAAE,wBAAwB,EAAE,MAAM,yCAAsC,CAAC;AAUrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAAyC,CAAC;AAClF,YAAY,EAAE,4BAA4B,EAAE,MAAM,4CAAyC,CAAC;AAC5F,YAAY,EAAE,sBAAsB,EAAE,MAAM,sCAAmC,CAAC;AAQhF,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAA8B,CAAC;AACjE,YAAY,EAAE,uBAAuB,EAAE,MAAM,iCAA8B,CAAC;AAU5E,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,uCAAoC,CAAC;AACvF,YAAY,EAAE,SAAS,EAAE,MAAM,2BAAwB,CAAC;AAKxD,OAAO,EAAE,gBAAgB,EAAE,KAAK,oBAAoB,EAAE,MAAM,gCAA6B,CAAC;AAC1F,OAAO,EAAE,mBAAmB,EAAE,KAAK,wBAAwB,EAAE,MAAM,wCAAqC,CAAC;AAMzG,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,yCAAsC,CAAC"}
@@ -1,8 +1,13 @@
1
1
  /**
2
- * Client-only UI exports (tree-shakeable)
2
+ * Client-only UI exports — the lean entry.
3
3
  *
4
- * Import from this module for client-side bundles where tree-shaking is important.
5
- * These are direct exports without runtime detection overhead.
4
+ * Import from this module in an app's startup path. The root barrel also
5
+ * re-exports the sign-in panels (`OxySignInPanel`, `OxyLinkCommonsPanel` and
6
+ * its QR code, `OxyConsentScreen`, …) for apps that embed them, and Metro does
7
+ * not tree-shake, so importing ANY symbol from `@oxy.so/services` ships all of
8
+ * them — even though the account dialog that normally shows them is loaded on
9
+ * demand. Nothing exported here reaches those panels; the packaging test
10
+ * `clientEntryIsolation` pins it.
6
11
  *
7
12
  * @example
8
13
  * import { OxyProvider, useOxy, LogoIcon } from '@oxy.so/services/ui/client';
@@ -14,6 +19,8 @@ export type { OxyAuthPromptProps } from './components/OxyAuthPrompt.js';
14
19
  export { LogoIcon } from './components/logo/LogoIcon.js';
15
20
  export { LogoText } from './components/logo/LogoText.js';
16
21
  export { default as FollowButton } from './components/FollowButton.js';
22
+ export { default as ProfileButton } from './components/ProfileButton.js';
23
+ export type { ProfileButtonProps } from './components/ProfileButton.js';
17
24
  export { default as PeableButton } from './components/PeableButton.js';
18
25
  export type { PeableButtonProps } from './components/PeableButton.js';
19
26
  /** @deprecated Use `PeableButton` instead. */
@@ -25,9 +32,17 @@ export { useAuth } from './hooks/useAuth.js';
25
32
  export type { AuthState, AuthActions, SignInOutcome, UseAuthReturn } from './hooks/useAuth.js';
26
33
  export { createDeferredProductAnalytics } from './analytics/productAnalytics.js';
27
34
  export type { OxyProductEvent, ProductAnalytics } from './analytics/productAnalytics.js';
28
- export { useFollow } from './hooks/useFollow.js';
35
+ export { useFollow, useFollowerCounts, useSeedFollowStatuses } from './hooks/useFollow.js';
36
+ export { useFollowTarget } from './hooks/useFollowTarget.js';
37
+ export type { UseFollowTargetResult } from './hooks/useFollowTarget.js';
38
+ export { useUserProfile, useUserProfiles, useCurrentUser, useUserById, useUserByUsername, } from './hooks/queries/useAccountQueries.js';
29
39
  export { useStorage } from './hooks/useStorage.js';
30
40
  export type { UseStorageOptions, UseStorageResult } from './hooks/useStorage.js';
41
+ export { buildFollowMenuItems, resolveFollowPrimaryAction, FOLLOW_ACTION_LEAVES_ACTIVE, } from './components/followRules.js';
42
+ export type { FollowDuration, FollowMenuItem } from './components/followRules.js';
43
+ export { queryKeys, invalidateAccountQueries, invalidateUserQueries, invalidateSessionQueries, invalidateDeviceQueries, invalidatePrivacyQueries, invalidateSecurityQueries, invalidateStorageQueries, invalidatePaymentsQueries, invalidateConnectedAppsQueries, invalidateAuthMethodsQueries, } from './hooks/queries/queryKeys.js';
44
+ export { upsertCachedUser, upsertCachedUsers, CLEARABLE_USER_FIELDS, clearedFieldsFromProfileUpdate, clearedFieldsFromAccountUpdate, } from './hooks/queries/userCache.js';
45
+ export type { CacheableUser, ClearableUserField, UpsertCachedUserOptions, } from './hooks/queries/userCache.js';
31
46
  export { useAuthStore } from './stores/authStore.js';
32
47
  export { handleAuthError, isInvalidSessionError, isTimeoutOrNetworkError, extractErrorMessage, } from './utils/errorHandlers.js';
33
48
  export type { HandleAuthErrorOptions } from './utils/errorHandlers.js';
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/ui/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,6BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,iCAA8B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,+BAA4B,CAAC;AACtE,YAAY,EAAE,kBAAkB,EAAE,MAAM,+BAA4B,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA4B,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA4B,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,8BAA2B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,8BAA2B,CAAC;AACpE,YAAY,EAAE,iBAAiB,EAAE,MAAM,8BAA2B,CAAC;AACnE,8CAA8C;AAC9C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,8BAA2B,CAAC;AACpE,mDAAmD;AACnD,YAAY,EAAE,iBAAiB,EAAE,MAAM,8BAA2B,CAAC;AAGnE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,yBAAsB,CAAC;AAGvF,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