@kinloom/ui 0.0.0-stage → 0.1.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 (231) hide show
  1. package/dist/KinloomApp.d.ts +22 -0
  2. package/dist/KinloomApp.d.ts.map +1 -0
  3. package/dist/KinloomApp.js +88 -0
  4. package/dist/KinloomApp.js.map +1 -0
  5. package/dist/adapters/httpWikiDataSource.d.ts +151 -0
  6. package/dist/adapters/httpWikiDataSource.d.ts.map +1 -0
  7. package/dist/adapters/httpWikiDataSource.js +361 -0
  8. package/dist/adapters/httpWikiDataSource.js.map +1 -0
  9. package/dist/adapters/staticDemoDataSource.d.ts +22 -0
  10. package/dist/adapters/staticDemoDataSource.d.ts.map +1 -0
  11. package/dist/adapters/staticDemoDataSource.js +81 -0
  12. package/dist/adapters/staticDemoDataSource.js.map +1 -0
  13. package/dist/components/AppErrorBoundary.d.ts +20 -0
  14. package/dist/components/AppErrorBoundary.d.ts.map +1 -0
  15. package/dist/components/AppErrorBoundary.js +61 -0
  16. package/dist/components/AppErrorBoundary.js.map +1 -0
  17. package/dist/components/ArchivalMarkdown.d.ts +25 -0
  18. package/dist/components/ArchivalMarkdown.d.ts.map +1 -0
  19. package/dist/components/ArchivalMarkdown.js +159 -0
  20. package/dist/components/ArchivalMarkdown.js.map +1 -0
  21. package/dist/components/Atoms.d.ts +35 -0
  22. package/dist/components/Atoms.d.ts.map +1 -0
  23. package/dist/components/Atoms.js +265 -0
  24. package/dist/components/Atoms.js.map +1 -0
  25. package/dist/components/BlankScreenWatchdog.d.ts +3 -0
  26. package/dist/components/BlankScreenWatchdog.d.ts.map +1 -0
  27. package/dist/components/BlankScreenWatchdog.js +46 -0
  28. package/dist/components/BlankScreenWatchdog.js.map +1 -0
  29. package/dist/components/ExplorerTopBar.d.ts +3 -0
  30. package/dist/components/ExplorerTopBar.d.ts.map +1 -0
  31. package/dist/components/ExplorerTopBar.js +76 -0
  32. package/dist/components/ExplorerTopBar.js.map +1 -0
  33. package/dist/components/GlobalSearchModal.d.ts +3 -0
  34. package/dist/components/GlobalSearchModal.d.ts.map +1 -0
  35. package/dist/components/GlobalSearchModal.js +146 -0
  36. package/dist/components/GlobalSearchModal.js.map +1 -0
  37. package/dist/components/KinloomFooter.d.ts +6 -0
  38. package/dist/components/KinloomFooter.d.ts.map +1 -0
  39. package/dist/components/KinloomFooter.js +10 -0
  40. package/dist/components/KinloomFooter.js.map +1 -0
  41. package/dist/components/LocalSurveyMap.d.ts +11 -0
  42. package/dist/components/LocalSurveyMap.d.ts.map +1 -0
  43. package/dist/components/LocalSurveyMap.js +115 -0
  44. package/dist/components/LocalSurveyMap.js.map +1 -0
  45. package/dist/components/MediaPlayer.d.ts +15 -0
  46. package/dist/components/MediaPlayer.d.ts.map +1 -0
  47. package/dist/components/MediaPlayer.js +85 -0
  48. package/dist/components/MediaPlayer.js.map +1 -0
  49. package/dist/components/MilestoneStoryCard.d.ts +13 -0
  50. package/dist/components/MilestoneStoryCard.d.ts.map +1 -0
  51. package/dist/components/MilestoneStoryCard.js +21 -0
  52. package/dist/components/MilestoneStoryCard.js.map +1 -0
  53. package/dist/components/ScrollMemory.d.ts +3 -0
  54. package/dist/components/ScrollMemory.d.ts.map +1 -0
  55. package/dist/components/ScrollMemory.js +25 -0
  56. package/dist/components/ScrollMemory.js.map +1 -0
  57. package/dist/components/SourceInspectorDrawer.d.ts +3 -0
  58. package/dist/components/SourceInspectorDrawer.d.ts.map +1 -0
  59. package/dist/components/SourceInspectorDrawer.js +77 -0
  60. package/dist/components/SourceInspectorDrawer.js.map +1 -0
  61. package/dist/components/SourceReaderDrawer.d.ts +3 -0
  62. package/dist/components/SourceReaderDrawer.d.ts.map +1 -0
  63. package/dist/components/SourceReaderDrawer.js +221 -0
  64. package/dist/components/SourceReaderDrawer.js.map +1 -0
  65. package/dist/components/wiki/AuthStatusBanner.d.ts +8 -0
  66. package/dist/components/wiki/AuthStatusBanner.d.ts.map +1 -0
  67. package/dist/components/wiki/AuthStatusBanner.js +22 -0
  68. package/dist/components/wiki/AuthStatusBanner.js.map +1 -0
  69. package/dist/components/wiki/ConflictMergeDialog.d.ts +17 -0
  70. package/dist/components/wiki/ConflictMergeDialog.d.ts.map +1 -0
  71. package/dist/components/wiki/ConflictMergeDialog.js +10 -0
  72. package/dist/components/wiki/ConflictMergeDialog.js.map +1 -0
  73. package/dist/components/wiki/CreateEntityModal.d.ts +12 -0
  74. package/dist/components/wiki/CreateEntityModal.d.ts.map +1 -0
  75. package/dist/components/wiki/CreateEntityModal.js +201 -0
  76. package/dist/components/wiki/CreateEntityModal.js.map +1 -0
  77. package/dist/components/wiki/EntityEditDrawer.d.ts +16 -0
  78. package/dist/components/wiki/EntityEditDrawer.d.ts.map +1 -0
  79. package/dist/components/wiki/EntityEditDrawer.js +284 -0
  80. package/dist/components/wiki/EntityEditDrawer.js.map +1 -0
  81. package/dist/components/wiki/MediaUploaderModal.d.ts +11 -0
  82. package/dist/components/wiki/MediaUploaderModal.d.ts.map +1 -0
  83. package/dist/components/wiki/MediaUploaderModal.js +107 -0
  84. package/dist/components/wiki/MediaUploaderModal.js.map +1 -0
  85. package/dist/components/wiki/PrivateArchiveGate.d.ts +7 -0
  86. package/dist/components/wiki/PrivateArchiveGate.d.ts.map +1 -0
  87. package/dist/components/wiki/PrivateArchiveGate.js +45 -0
  88. package/dist/components/wiki/PrivateArchiveGate.js.map +1 -0
  89. package/dist/components/wiki/RevisionDiffView.d.ts +16 -0
  90. package/dist/components/wiki/RevisionDiffView.d.ts.map +1 -0
  91. package/dist/components/wiki/RevisionDiffView.js +42 -0
  92. package/dist/components/wiki/RevisionDiffView.js.map +1 -0
  93. package/dist/components/wiki/RevisionHistoryPanel.d.ts +10 -0
  94. package/dist/components/wiki/RevisionHistoryPanel.d.ts.map +1 -0
  95. package/dist/components/wiki/RevisionHistoryPanel.js +76 -0
  96. package/dist/components/wiki/RevisionHistoryPanel.js.map +1 -0
  97. package/dist/components/wiki/SignInModal.d.ts +8 -0
  98. package/dist/components/wiki/SignInModal.d.ts.map +1 -0
  99. package/dist/components/wiki/SignInModal.js +45 -0
  100. package/dist/components/wiki/SignInModal.js.map +1 -0
  101. package/dist/components/wiki/TalkPanel.d.ts +10 -0
  102. package/dist/components/wiki/TalkPanel.d.ts.map +1 -0
  103. package/dist/components/wiki/TalkPanel.js +87 -0
  104. package/dist/components/wiki/TalkPanel.js.map +1 -0
  105. package/dist/components/wiki/WikiActionBar.d.ts +18 -0
  106. package/dist/components/wiki/WikiActionBar.d.ts.map +1 -0
  107. package/dist/components/wiki/WikiActionBar.js +29 -0
  108. package/dist/components/wiki/WikiActionBar.js.map +1 -0
  109. package/dist/components/wiki/WikiBadges.d.ts +29 -0
  110. package/dist/components/wiki/WikiBadges.d.ts.map +1 -0
  111. package/dist/components/wiki/WikiBadges.js +34 -0
  112. package/dist/components/wiki/WikiBadges.js.map +1 -0
  113. package/dist/context/ArchiveDataContext.d.ts +68 -0
  114. package/dist/context/ArchiveDataContext.d.ts.map +1 -0
  115. package/dist/context/ArchiveDataContext.js +363 -0
  116. package/dist/context/ArchiveDataContext.js.map +1 -0
  117. package/dist/context/ArchiveProvider.d.ts +8 -0
  118. package/dist/context/ArchiveProvider.d.ts.map +1 -0
  119. package/dist/context/ArchiveProvider.js +7 -0
  120. package/dist/context/ArchiveProvider.js.map +1 -0
  121. package/dist/context/ArchiveUiContext.d.ts +27 -0
  122. package/dist/context/ArchiveUiContext.d.ts.map +1 -0
  123. package/dist/context/ArchiveUiContext.js +104 -0
  124. package/dist/context/ArchiveUiContext.js.map +1 -0
  125. package/dist/index.d.ts +74 -0
  126. package/dist/index.d.ts.map +1 -0
  127. package/dist/index.js +61 -0
  128. package/dist/index.js.map +1 -0
  129. package/dist/lib/clientTelemetry.d.ts +21 -0
  130. package/dist/lib/clientTelemetry.d.ts.map +1 -0
  131. package/dist/lib/clientTelemetry.js +268 -0
  132. package/dist/lib/clientTelemetry.js.map +1 -0
  133. package/dist/lib/ohmStyle.d.ts +13 -0
  134. package/dist/lib/ohmStyle.d.ts.map +1 -0
  135. package/dist/lib/ohmStyle.js +158 -0
  136. package/dist/lib/ohmStyle.js.map +1 -0
  137. package/dist/lib/scrollMemory.d.ts +2 -0
  138. package/dist/lib/scrollMemory.d.ts.map +1 -0
  139. package/dist/lib/scrollMemory.js +7 -0
  140. package/dist/lib/scrollMemory.js.map +1 -0
  141. package/dist/lib/searchNavigation.d.ts +5 -0
  142. package/dist/lib/searchNavigation.d.ts.map +1 -0
  143. package/dist/lib/searchNavigation.js +16 -0
  144. package/dist/lib/searchNavigation.js.map +1 -0
  145. package/dist/lib/sourceReaderNav.d.ts +6 -0
  146. package/dist/lib/sourceReaderNav.d.ts.map +1 -0
  147. package/dist/lib/sourceReaderNav.js +17 -0
  148. package/dist/lib/sourceReaderNav.js.map +1 -0
  149. package/dist/lib/timelineScroll.d.ts +20 -0
  150. package/dist/lib/timelineScroll.d.ts.map +1 -0
  151. package/dist/lib/timelineScroll.js +60 -0
  152. package/dist/lib/timelineScroll.js.map +1 -0
  153. package/dist/lib/treeGestures.d.ts +55 -0
  154. package/dist/lib/treeGestures.d.ts.map +1 -0
  155. package/dist/lib/treeGestures.js +96 -0
  156. package/dist/lib/treeGestures.js.map +1 -0
  157. package/dist/lib/treeNodeDisplay.d.ts +8 -0
  158. package/dist/lib/treeNodeDisplay.d.ts.map +1 -0
  159. package/dist/lib/treeNodeDisplay.js +66 -0
  160. package/dist/lib/treeNodeDisplay.js.map +1 -0
  161. package/dist/machines/authSessionMachine.d.ts +665 -0
  162. package/dist/machines/authSessionMachine.d.ts.map +1 -0
  163. package/dist/machines/authSessionMachine.js +620 -0
  164. package/dist/machines/authSessionMachine.js.map +1 -0
  165. package/dist/machines/entityEditorMachine.d.ts +334 -0
  166. package/dist/machines/entityEditorMachine.d.ts.map +1 -0
  167. package/dist/machines/entityEditorMachine.js +534 -0
  168. package/dist/machines/entityEditorMachine.js.map +1 -0
  169. package/dist/machines/index.d.ts +7 -0
  170. package/dist/machines/index.d.ts.map +1 -0
  171. package/dist/machines/index.js +4 -0
  172. package/dist/machines/index.js.map +1 -0
  173. package/dist/machines/mediaUploadMachine.d.ts +161 -0
  174. package/dist/machines/mediaUploadMachine.d.ts.map +1 -0
  175. package/dist/machines/mediaUploadMachine.js +473 -0
  176. package/dist/machines/mediaUploadMachine.js.map +1 -0
  177. package/dist/pages/AdminPage.d.ts +26 -0
  178. package/dist/pages/AdminPage.d.ts.map +1 -0
  179. package/dist/pages/AdminPage.js +165 -0
  180. package/dist/pages/AdminPage.js.map +1 -0
  181. package/dist/pages/EvidencePage.d.ts +3 -0
  182. package/dist/pages/EvidencePage.d.ts.map +1 -0
  183. package/dist/pages/EvidencePage.js +304 -0
  184. package/dist/pages/EvidencePage.js.map +1 -0
  185. package/dist/pages/IndexPage.d.ts +3 -0
  186. package/dist/pages/IndexPage.d.ts.map +1 -0
  187. package/dist/pages/IndexPage.js +173 -0
  188. package/dist/pages/IndexPage.js.map +1 -0
  189. package/dist/pages/KinshipPage.d.ts +3 -0
  190. package/dist/pages/KinshipPage.d.ts.map +1 -0
  191. package/dist/pages/KinshipPage.js +101 -0
  192. package/dist/pages/KinshipPage.js.map +1 -0
  193. package/dist/pages/MapPage.d.ts +4 -0
  194. package/dist/pages/MapPage.d.ts.map +1 -0
  195. package/dist/pages/MapPage.js +885 -0
  196. package/dist/pages/MapPage.js.map +1 -0
  197. package/dist/pages/PersonPage.d.ts +3 -0
  198. package/dist/pages/PersonPage.d.ts.map +1 -0
  199. package/dist/pages/PersonPage.js +524 -0
  200. package/dist/pages/PersonPage.js.map +1 -0
  201. package/dist/pages/PlacePage.d.ts +3 -0
  202. package/dist/pages/PlacePage.d.ts.map +1 -0
  203. package/dist/pages/PlacePage.js +227 -0
  204. package/dist/pages/PlacePage.js.map +1 -0
  205. package/dist/pages/PlacesIndexPage.d.ts +3 -0
  206. package/dist/pages/PlacesIndexPage.d.ts.map +1 -0
  207. package/dist/pages/PlacesIndexPage.js +76 -0
  208. package/dist/pages/PlacesIndexPage.js.map +1 -0
  209. package/dist/pages/RecentChangesPage.d.ts +7 -0
  210. package/dist/pages/RecentChangesPage.d.ts.map +1 -0
  211. package/dist/pages/RecentChangesPage.js +154 -0
  212. package/dist/pages/RecentChangesPage.js.map +1 -0
  213. package/dist/pages/TimePage.d.ts +3 -0
  214. package/dist/pages/TimePage.d.ts.map +1 -0
  215. package/dist/pages/TimePage.js +148 -0
  216. package/dist/pages/TimePage.js.map +1 -0
  217. package/dist/pages/TreePage.d.ts +3 -0
  218. package/dist/pages/TreePage.d.ts.map +1 -0
  219. package/dist/pages/TreePage.js +698 -0
  220. package/dist/pages/TreePage.js.map +1 -0
  221. package/dist/plugins/PluginContext.d.ts +28 -0
  222. package/dist/plugins/PluginContext.d.ts.map +1 -0
  223. package/dist/plugins/PluginContext.js +65 -0
  224. package/dist/plugins/PluginContext.js.map +1 -0
  225. package/dist/plugins/types.d.ts +40 -0
  226. package/dist/plugins/types.d.ts.map +1 -0
  227. package/dist/plugins/types.js +2 -0
  228. package/dist/plugins/types.js.map +1 -0
  229. package/dist/styles/archival.css +6127 -0
  230. package/package.json +44 -4
  231. package/README.md +0 -3
@@ -0,0 +1,665 @@
1
+ import type { ArchiveCapabilities, ArchiveDataSource, ArchiveSessionState, AuthMemberRole } from '@kinloom/core';
2
+ import type { SnapshotFrom } from 'xstate';
3
+ export interface AuthSessionContext {
4
+ pendingInviteToken: string | null;
5
+ inviteLabel: string | null;
6
+ email: string | null;
7
+ displayName: string | null;
8
+ role: AuthMemberRole | null;
9
+ autoEnrolledViaInvite: boolean;
10
+ authError: string | null;
11
+ dataSource?: ArchiveDataSource;
12
+ }
13
+ export type AuthSessionEvent = {
14
+ type: 'OPEN_INVITE';
15
+ token: string;
16
+ label: string;
17
+ revoked: boolean;
18
+ } | {
19
+ type: 'SIGN_IN_GOOGLE';
20
+ } | {
21
+ type: 'REQUEST_MAGIC_LINK';
22
+ email: string;
23
+ } | {
24
+ type: 'OPEN_MAGIC_LINK';
25
+ token: string;
26
+ } | {
27
+ type: 'RESEND_MAGIC_LINK';
28
+ email: string;
29
+ } | {
30
+ type: 'CANCEL_MAGIC_LINK';
31
+ } | {
32
+ type: 'INVITE_REVOKED_SERVER';
33
+ } | {
34
+ type: 'LEAVE_INVITE';
35
+ } | {
36
+ type: 'DISMISS_INVITE';
37
+ } | {
38
+ type: 'SESSION_EXPIRED';
39
+ } | {
40
+ type: 'SIGN_OUT';
41
+ } | {
42
+ type: 'REFRESH_SESSION';
43
+ };
44
+ export type HydrateOutcome = {
45
+ kind: 'authenticated';
46
+ email: string;
47
+ displayName: string;
48
+ role: AuthMemberRole;
49
+ } | {
50
+ kind: 'invite_valid';
51
+ token: string;
52
+ label: string;
53
+ } | {
54
+ kind: 'invite_revoked';
55
+ } | {
56
+ kind: 'anonymous';
57
+ };
58
+ export type VerifyOutcome = {
59
+ kind: 'verified';
60
+ isMember: boolean;
61
+ role: AuthMemberRole;
62
+ email: string;
63
+ displayName: string;
64
+ } | {
65
+ kind: 'invite_revoked';
66
+ } | {
67
+ kind: 'invalid';
68
+ message: string;
69
+ };
70
+ export interface AuthSessionInput {
71
+ initialInviteToken?: string | null;
72
+ dataSource?: ArchiveDataSource;
73
+ }
74
+ export declare const authSessionMachine: import("xstate").StateMachine<AuthSessionContext, {
75
+ type: 'OPEN_INVITE';
76
+ token: string;
77
+ label: string;
78
+ revoked: boolean;
79
+ } | {
80
+ type: 'SIGN_IN_GOOGLE';
81
+ } | {
82
+ type: 'REQUEST_MAGIC_LINK';
83
+ email: string;
84
+ } | {
85
+ type: 'OPEN_MAGIC_LINK';
86
+ token: string;
87
+ } | {
88
+ type: 'RESEND_MAGIC_LINK';
89
+ email: string;
90
+ } | {
91
+ type: 'CANCEL_MAGIC_LINK';
92
+ } | {
93
+ type: 'INVITE_REVOKED_SERVER';
94
+ } | {
95
+ type: 'LEAVE_INVITE';
96
+ } | {
97
+ type: 'DISMISS_INVITE';
98
+ } | {
99
+ type: 'SESSION_EXPIRED';
100
+ } | {
101
+ type: 'SIGN_OUT';
102
+ } | {
103
+ type: 'REFRESH_SESSION';
104
+ }, {
105
+ [x: string]: import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<void, {
106
+ email: string;
107
+ inviteToken: string | null;
108
+ dataSource?: ArchiveDataSource;
109
+ }, import("xstate").EventObject> | import("xstate").PromiseActorLogic<HydrateOutcome, {
110
+ inviteToken: string | null;
111
+ dataSource?: ArchiveDataSource;
112
+ }, import("xstate").EventObject> | import("xstate").PromiseActorLogic<VerifyOutcome, {
113
+ inviteToken: string | null;
114
+ }, import("xstate").EventObject> | import("xstate").PromiseActorLogic<VerifyOutcome, {
115
+ token: string;
116
+ inviteToken: string | null;
117
+ }, import("xstate").EventObject>> | undefined;
118
+ }, {
119
+ src: "hydrateSession";
120
+ logic: import("xstate").PromiseActorLogic<HydrateOutcome, {
121
+ inviteToken: string | null;
122
+ dataSource?: ArchiveDataSource;
123
+ }, import("xstate").EventObject>;
124
+ id: string | undefined;
125
+ } | {
126
+ src: "requestMagicLink";
127
+ logic: import("xstate").PromiseActorLogic<void, {
128
+ email: string;
129
+ inviteToken: string | null;
130
+ dataSource?: ArchiveDataSource;
131
+ }, import("xstate").EventObject>;
132
+ id: string | undefined;
133
+ } | {
134
+ src: "signInWithGoogle";
135
+ logic: import("xstate").PromiseActorLogic<VerifyOutcome, {
136
+ inviteToken: string | null;
137
+ }, import("xstate").EventObject>;
138
+ id: string | undefined;
139
+ } | {
140
+ src: "verifyMagicLink";
141
+ logic: import("xstate").PromiseActorLogic<VerifyOutcome, {
142
+ token: string;
143
+ inviteToken: string | null;
144
+ }, import("xstate").EventObject>;
145
+ id: string | undefined;
146
+ }, {
147
+ type: "clearToAnonymous";
148
+ params: import("xstate").NonReducibleUnknown;
149
+ } | {
150
+ type: "markInviteRevoked";
151
+ params: import("xstate").NonReducibleUnknown;
152
+ }, {
153
+ type: "hasValidPendingInvite";
154
+ params: unknown;
155
+ } | {
156
+ type: "isAdminAuthSuccess";
157
+ params: unknown;
158
+ } | {
159
+ type: "isAdminHydration";
160
+ params: unknown;
161
+ } | {
162
+ type: "isEditorHydration";
163
+ params: unknown;
164
+ } | {
165
+ type: "isInviteAutoEnrollSuccess";
166
+ params: unknown;
167
+ } | {
168
+ type: "isMemberEditorAuthSuccess";
169
+ params: unknown;
170
+ } | {
171
+ type: "isRevokedInviteHydration";
172
+ params: unknown;
173
+ } | {
174
+ type: "isValidInviteHydration";
175
+ params: unknown;
176
+ } | {
177
+ type: "isVerifyInviteRevoked";
178
+ params: unknown;
179
+ }, never, "anonymous" | "awaitingMagicLinkClick" | "hydrating" | "inviteRevoked" | "readOnlyInvite" | "requestingMagicLink" | "sessionExpired" | "signingInGoogle" | "verifyingMagicLink" | {
180
+ authenticated: "admin" | "editor";
181
+ }, string, AuthSessionInput, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
182
+ id: "authSession";
183
+ states: {
184
+ readonly hydrating: {};
185
+ readonly anonymous: {};
186
+ readonly readOnlyInvite: {};
187
+ readonly signingInGoogle: {};
188
+ readonly requestingMagicLink: {};
189
+ readonly awaitingMagicLinkClick: {};
190
+ readonly verifyingMagicLink: {};
191
+ readonly authenticated: {
192
+ states: {
193
+ readonly editor: {};
194
+ readonly admin: {};
195
+ };
196
+ };
197
+ readonly sessionExpired: {};
198
+ readonly inviteRevoked: {};
199
+ };
200
+ }, import("xstate").MetaObject>;
201
+ export declare const AuthSessionActorContext: {
202
+ useSelector: <T>(selector: (snapshot: import("xstate").MachineSnapshot<AuthSessionContext, {
203
+ type: 'OPEN_INVITE';
204
+ token: string;
205
+ label: string;
206
+ revoked: boolean;
207
+ } | {
208
+ type: 'SIGN_IN_GOOGLE';
209
+ } | {
210
+ type: 'REQUEST_MAGIC_LINK';
211
+ email: string;
212
+ } | {
213
+ type: 'OPEN_MAGIC_LINK';
214
+ token: string;
215
+ } | {
216
+ type: 'RESEND_MAGIC_LINK';
217
+ email: string;
218
+ } | {
219
+ type: 'CANCEL_MAGIC_LINK';
220
+ } | {
221
+ type: 'INVITE_REVOKED_SERVER';
222
+ } | {
223
+ type: 'LEAVE_INVITE';
224
+ } | {
225
+ type: 'DISMISS_INVITE';
226
+ } | {
227
+ type: 'SESSION_EXPIRED';
228
+ } | {
229
+ type: 'SIGN_OUT';
230
+ } | {
231
+ type: 'REFRESH_SESSION';
232
+ }, {
233
+ [x: string]: import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<void, {
234
+ email: string;
235
+ inviteToken: string | null;
236
+ dataSource?: ArchiveDataSource;
237
+ }, import("xstate").EventObject> | import("xstate").PromiseActorLogic<HydrateOutcome, {
238
+ inviteToken: string | null;
239
+ dataSource?: ArchiveDataSource;
240
+ }, import("xstate").EventObject> | import("xstate").PromiseActorLogic<VerifyOutcome, {
241
+ inviteToken: string | null;
242
+ }, import("xstate").EventObject> | import("xstate").PromiseActorLogic<VerifyOutcome, {
243
+ token: string;
244
+ inviteToken: string | null;
245
+ }, import("xstate").EventObject>> | undefined;
246
+ }, "anonymous" | "awaitingMagicLinkClick" | "hydrating" | "inviteRevoked" | "readOnlyInvite" | "requestingMagicLink" | "sessionExpired" | "signingInGoogle" | "verifyingMagicLink" | {
247
+ authenticated: "admin" | "editor";
248
+ }, string, import("xstate").NonReducibleUnknown, import("xstate").MetaObject, {
249
+ id: "authSession";
250
+ states: {
251
+ readonly hydrating: {};
252
+ readonly anonymous: {};
253
+ readonly readOnlyInvite: {};
254
+ readonly signingInGoogle: {};
255
+ readonly requestingMagicLink: {};
256
+ readonly awaitingMagicLinkClick: {};
257
+ readonly verifyingMagicLink: {};
258
+ readonly authenticated: {
259
+ states: {
260
+ readonly editor: {};
261
+ readonly admin: {};
262
+ };
263
+ };
264
+ readonly sessionExpired: {};
265
+ readonly inviteRevoked: {};
266
+ };
267
+ }>) => T, compare?: ((a: T, b: T) => boolean) | undefined) => T;
268
+ useActorRef: () => import("xstate").Actor<import("xstate").StateMachine<AuthSessionContext, {
269
+ type: 'OPEN_INVITE';
270
+ token: string;
271
+ label: string;
272
+ revoked: boolean;
273
+ } | {
274
+ type: 'SIGN_IN_GOOGLE';
275
+ } | {
276
+ type: 'REQUEST_MAGIC_LINK';
277
+ email: string;
278
+ } | {
279
+ type: 'OPEN_MAGIC_LINK';
280
+ token: string;
281
+ } | {
282
+ type: 'RESEND_MAGIC_LINK';
283
+ email: string;
284
+ } | {
285
+ type: 'CANCEL_MAGIC_LINK';
286
+ } | {
287
+ type: 'INVITE_REVOKED_SERVER';
288
+ } | {
289
+ type: 'LEAVE_INVITE';
290
+ } | {
291
+ type: 'DISMISS_INVITE';
292
+ } | {
293
+ type: 'SESSION_EXPIRED';
294
+ } | {
295
+ type: 'SIGN_OUT';
296
+ } | {
297
+ type: 'REFRESH_SESSION';
298
+ }, {
299
+ [x: string]: import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<void, {
300
+ email: string;
301
+ inviteToken: string | null;
302
+ dataSource?: ArchiveDataSource;
303
+ }, import("xstate").EventObject> | import("xstate").PromiseActorLogic<HydrateOutcome, {
304
+ inviteToken: string | null;
305
+ dataSource?: ArchiveDataSource;
306
+ }, import("xstate").EventObject> | import("xstate").PromiseActorLogic<VerifyOutcome, {
307
+ inviteToken: string | null;
308
+ }, import("xstate").EventObject> | import("xstate").PromiseActorLogic<VerifyOutcome, {
309
+ token: string;
310
+ inviteToken: string | null;
311
+ }, import("xstate").EventObject>> | undefined;
312
+ }, {
313
+ src: "hydrateSession";
314
+ logic: import("xstate").PromiseActorLogic<HydrateOutcome, {
315
+ inviteToken: string | null;
316
+ dataSource?: ArchiveDataSource;
317
+ }, import("xstate").EventObject>;
318
+ id: string | undefined;
319
+ } | {
320
+ src: "requestMagicLink";
321
+ logic: import("xstate").PromiseActorLogic<void, {
322
+ email: string;
323
+ inviteToken: string | null;
324
+ dataSource?: ArchiveDataSource;
325
+ }, import("xstate").EventObject>;
326
+ id: string | undefined;
327
+ } | {
328
+ src: "signInWithGoogle";
329
+ logic: import("xstate").PromiseActorLogic<VerifyOutcome, {
330
+ inviteToken: string | null;
331
+ }, import("xstate").EventObject>;
332
+ id: string | undefined;
333
+ } | {
334
+ src: "verifyMagicLink";
335
+ logic: import("xstate").PromiseActorLogic<VerifyOutcome, {
336
+ token: string;
337
+ inviteToken: string | null;
338
+ }, import("xstate").EventObject>;
339
+ id: string | undefined;
340
+ }, {
341
+ type: "clearToAnonymous";
342
+ params: import("xstate").NonReducibleUnknown;
343
+ } | {
344
+ type: "markInviteRevoked";
345
+ params: import("xstate").NonReducibleUnknown;
346
+ }, {
347
+ type: "hasValidPendingInvite";
348
+ params: unknown;
349
+ } | {
350
+ type: "isAdminAuthSuccess";
351
+ params: unknown;
352
+ } | {
353
+ type: "isAdminHydration";
354
+ params: unknown;
355
+ } | {
356
+ type: "isEditorHydration";
357
+ params: unknown;
358
+ } | {
359
+ type: "isInviteAutoEnrollSuccess";
360
+ params: unknown;
361
+ } | {
362
+ type: "isMemberEditorAuthSuccess";
363
+ params: unknown;
364
+ } | {
365
+ type: "isRevokedInviteHydration";
366
+ params: unknown;
367
+ } | {
368
+ type: "isValidInviteHydration";
369
+ params: unknown;
370
+ } | {
371
+ type: "isVerifyInviteRevoked";
372
+ params: unknown;
373
+ }, never, "anonymous" | "awaitingMagicLinkClick" | "hydrating" | "inviteRevoked" | "readOnlyInvite" | "requestingMagicLink" | "sessionExpired" | "signingInGoogle" | "verifyingMagicLink" | {
374
+ authenticated: "admin" | "editor";
375
+ }, string, AuthSessionInput, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
376
+ id: "authSession";
377
+ states: {
378
+ readonly hydrating: {};
379
+ readonly anonymous: {};
380
+ readonly readOnlyInvite: {};
381
+ readonly signingInGoogle: {};
382
+ readonly requestingMagicLink: {};
383
+ readonly awaitingMagicLinkClick: {};
384
+ readonly verifyingMagicLink: {};
385
+ readonly authenticated: {
386
+ states: {
387
+ readonly editor: {};
388
+ readonly admin: {};
389
+ };
390
+ };
391
+ readonly sessionExpired: {};
392
+ readonly inviteRevoked: {};
393
+ };
394
+ }, import("xstate").MetaObject>>;
395
+ Provider: (props: {
396
+ children: React.ReactNode;
397
+ options?: import("xstate").ActorOptions<import("xstate").StateMachine<AuthSessionContext, {
398
+ type: 'OPEN_INVITE';
399
+ token: string;
400
+ label: string;
401
+ revoked: boolean;
402
+ } | {
403
+ type: 'SIGN_IN_GOOGLE';
404
+ } | {
405
+ type: 'REQUEST_MAGIC_LINK';
406
+ email: string;
407
+ } | {
408
+ type: 'OPEN_MAGIC_LINK';
409
+ token: string;
410
+ } | {
411
+ type: 'RESEND_MAGIC_LINK';
412
+ email: string;
413
+ } | {
414
+ type: 'CANCEL_MAGIC_LINK';
415
+ } | {
416
+ type: 'INVITE_REVOKED_SERVER';
417
+ } | {
418
+ type: 'LEAVE_INVITE';
419
+ } | {
420
+ type: 'DISMISS_INVITE';
421
+ } | {
422
+ type: 'SESSION_EXPIRED';
423
+ } | {
424
+ type: 'SIGN_OUT';
425
+ } | {
426
+ type: 'REFRESH_SESSION';
427
+ }, {
428
+ [x: string]: import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<void, {
429
+ email: string;
430
+ inviteToken: string | null;
431
+ dataSource?: ArchiveDataSource;
432
+ }, import("xstate").EventObject> | import("xstate").PromiseActorLogic<HydrateOutcome, {
433
+ inviteToken: string | null;
434
+ dataSource?: ArchiveDataSource;
435
+ }, import("xstate").EventObject> | import("xstate").PromiseActorLogic<VerifyOutcome, {
436
+ inviteToken: string | null;
437
+ }, import("xstate").EventObject> | import("xstate").PromiseActorLogic<VerifyOutcome, {
438
+ token: string;
439
+ inviteToken: string | null;
440
+ }, import("xstate").EventObject>> | undefined;
441
+ }, {
442
+ src: "hydrateSession";
443
+ logic: import("xstate").PromiseActorLogic<HydrateOutcome, {
444
+ inviteToken: string | null;
445
+ dataSource?: ArchiveDataSource;
446
+ }, import("xstate").EventObject>;
447
+ id: string | undefined;
448
+ } | {
449
+ src: "requestMagicLink";
450
+ logic: import("xstate").PromiseActorLogic<void, {
451
+ email: string;
452
+ inviteToken: string | null;
453
+ dataSource?: ArchiveDataSource;
454
+ }, import("xstate").EventObject>;
455
+ id: string | undefined;
456
+ } | {
457
+ src: "signInWithGoogle";
458
+ logic: import("xstate").PromiseActorLogic<VerifyOutcome, {
459
+ inviteToken: string | null;
460
+ }, import("xstate").EventObject>;
461
+ id: string | undefined;
462
+ } | {
463
+ src: "verifyMagicLink";
464
+ logic: import("xstate").PromiseActorLogic<VerifyOutcome, {
465
+ token: string;
466
+ inviteToken: string | null;
467
+ }, import("xstate").EventObject>;
468
+ id: string | undefined;
469
+ }, {
470
+ type: "clearToAnonymous";
471
+ params: import("xstate").NonReducibleUnknown;
472
+ } | {
473
+ type: "markInviteRevoked";
474
+ params: import("xstate").NonReducibleUnknown;
475
+ }, {
476
+ type: "hasValidPendingInvite";
477
+ params: unknown;
478
+ } | {
479
+ type: "isAdminAuthSuccess";
480
+ params: unknown;
481
+ } | {
482
+ type: "isAdminHydration";
483
+ params: unknown;
484
+ } | {
485
+ type: "isEditorHydration";
486
+ params: unknown;
487
+ } | {
488
+ type: "isInviteAutoEnrollSuccess";
489
+ params: unknown;
490
+ } | {
491
+ type: "isMemberEditorAuthSuccess";
492
+ params: unknown;
493
+ } | {
494
+ type: "isRevokedInviteHydration";
495
+ params: unknown;
496
+ } | {
497
+ type: "isValidInviteHydration";
498
+ params: unknown;
499
+ } | {
500
+ type: "isVerifyInviteRevoked";
501
+ params: unknown;
502
+ }, never, "anonymous" | "awaitingMagicLinkClick" | "hydrating" | "inviteRevoked" | "readOnlyInvite" | "requestingMagicLink" | "sessionExpired" | "signingInGoogle" | "verifyingMagicLink" | {
503
+ authenticated: "admin" | "editor";
504
+ }, string, AuthSessionInput, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
505
+ id: "authSession";
506
+ states: {
507
+ readonly hydrating: {};
508
+ readonly anonymous: {};
509
+ readonly readOnlyInvite: {};
510
+ readonly signingInGoogle: {};
511
+ readonly requestingMagicLink: {};
512
+ readonly awaitingMagicLinkClick: {};
513
+ readonly verifyingMagicLink: {};
514
+ readonly authenticated: {
515
+ states: {
516
+ readonly editor: {};
517
+ readonly admin: {};
518
+ };
519
+ };
520
+ readonly sessionExpired: {};
521
+ readonly inviteRevoked: {};
522
+ };
523
+ }, import("xstate").MetaObject>> | undefined;
524
+ machine?: never;
525
+ logic?: import("xstate").StateMachine<AuthSessionContext, {
526
+ type: 'OPEN_INVITE';
527
+ token: string;
528
+ label: string;
529
+ revoked: boolean;
530
+ } | {
531
+ type: 'SIGN_IN_GOOGLE';
532
+ } | {
533
+ type: 'REQUEST_MAGIC_LINK';
534
+ email: string;
535
+ } | {
536
+ type: 'OPEN_MAGIC_LINK';
537
+ token: string;
538
+ } | {
539
+ type: 'RESEND_MAGIC_LINK';
540
+ email: string;
541
+ } | {
542
+ type: 'CANCEL_MAGIC_LINK';
543
+ } | {
544
+ type: 'INVITE_REVOKED_SERVER';
545
+ } | {
546
+ type: 'LEAVE_INVITE';
547
+ } | {
548
+ type: 'DISMISS_INVITE';
549
+ } | {
550
+ type: 'SESSION_EXPIRED';
551
+ } | {
552
+ type: 'SIGN_OUT';
553
+ } | {
554
+ type: 'REFRESH_SESSION';
555
+ }, {
556
+ [x: string]: import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<void, {
557
+ email: string;
558
+ inviteToken: string | null;
559
+ dataSource?: ArchiveDataSource;
560
+ }, import("xstate").EventObject> | import("xstate").PromiseActorLogic<HydrateOutcome, {
561
+ inviteToken: string | null;
562
+ dataSource?: ArchiveDataSource;
563
+ }, import("xstate").EventObject> | import("xstate").PromiseActorLogic<VerifyOutcome, {
564
+ inviteToken: string | null;
565
+ }, import("xstate").EventObject> | import("xstate").PromiseActorLogic<VerifyOutcome, {
566
+ token: string;
567
+ inviteToken: string | null;
568
+ }, import("xstate").EventObject>> | undefined;
569
+ }, {
570
+ src: "hydrateSession";
571
+ logic: import("xstate").PromiseActorLogic<HydrateOutcome, {
572
+ inviteToken: string | null;
573
+ dataSource?: ArchiveDataSource;
574
+ }, import("xstate").EventObject>;
575
+ id: string | undefined;
576
+ } | {
577
+ src: "requestMagicLink";
578
+ logic: import("xstate").PromiseActorLogic<void, {
579
+ email: string;
580
+ inviteToken: string | null;
581
+ dataSource?: ArchiveDataSource;
582
+ }, import("xstate").EventObject>;
583
+ id: string | undefined;
584
+ } | {
585
+ src: "signInWithGoogle";
586
+ logic: import("xstate").PromiseActorLogic<VerifyOutcome, {
587
+ inviteToken: string | null;
588
+ }, import("xstate").EventObject>;
589
+ id: string | undefined;
590
+ } | {
591
+ src: "verifyMagicLink";
592
+ logic: import("xstate").PromiseActorLogic<VerifyOutcome, {
593
+ token: string;
594
+ inviteToken: string | null;
595
+ }, import("xstate").EventObject>;
596
+ id: string | undefined;
597
+ }, {
598
+ type: "clearToAnonymous";
599
+ params: import("xstate").NonReducibleUnknown;
600
+ } | {
601
+ type: "markInviteRevoked";
602
+ params: import("xstate").NonReducibleUnknown;
603
+ }, {
604
+ type: "hasValidPendingInvite";
605
+ params: unknown;
606
+ } | {
607
+ type: "isAdminAuthSuccess";
608
+ params: unknown;
609
+ } | {
610
+ type: "isAdminHydration";
611
+ params: unknown;
612
+ } | {
613
+ type: "isEditorHydration";
614
+ params: unknown;
615
+ } | {
616
+ type: "isInviteAutoEnrollSuccess";
617
+ params: unknown;
618
+ } | {
619
+ type: "isMemberEditorAuthSuccess";
620
+ params: unknown;
621
+ } | {
622
+ type: "isRevokedInviteHydration";
623
+ params: unknown;
624
+ } | {
625
+ type: "isValidInviteHydration";
626
+ params: unknown;
627
+ } | {
628
+ type: "isVerifyInviteRevoked";
629
+ params: unknown;
630
+ }, never, "anonymous" | "awaitingMagicLinkClick" | "hydrating" | "inviteRevoked" | "readOnlyInvite" | "requestingMagicLink" | "sessionExpired" | "signingInGoogle" | "verifyingMagicLink" | {
631
+ authenticated: "admin" | "editor";
632
+ }, string, AuthSessionInput, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
633
+ id: "authSession";
634
+ states: {
635
+ readonly hydrating: {};
636
+ readonly anonymous: {};
637
+ readonly readOnlyInvite: {};
638
+ readonly signingInGoogle: {};
639
+ readonly requestingMagicLink: {};
640
+ readonly awaitingMagicLinkClick: {};
641
+ readonly verifyingMagicLink: {};
642
+ readonly authenticated: {
643
+ states: {
644
+ readonly editor: {};
645
+ readonly admin: {};
646
+ };
647
+ };
648
+ readonly sessionExpired: {};
649
+ readonly inviteRevoked: {};
650
+ };
651
+ }, import("xstate").MetaObject> | undefined;
652
+ }) => React.ReactElement<any, any>;
653
+ };
654
+ export type AuthSessionSnapshot = SnapshotFrom<typeof authSessionMachine>;
655
+ /**
656
+ * Derive ArchiveSessionState and ArchiveCapabilities from an authSessionMachine snapshot.
657
+ */
658
+ export declare function deriveSessionFromAuthSnapshot(snapshot: AuthSessionSnapshot, options?: {
659
+ allowTalk?: boolean;
660
+ hasRevisionHistory?: boolean;
661
+ }): {
662
+ session: ArchiveSessionState;
663
+ capabilities: ArchiveCapabilities;
664
+ };
665
+ //# sourceMappingURL=authSessionMachine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authSessionMachine.d.ts","sourceRoot":"","sources":["../../src/machines/authSessionMachine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACf,MAAM,eAAe,CAAC;AAQvB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAG3C,MAAM,WAAW,kBAAkB;IACjC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,cAAc,GAAG,IAAI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