@ankhorage/zora 25.8.14 → 25.8.15

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 (46) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +1 -1
  3. package/dist/features/button/utils/resolveButtonThemeRecipe.d.ts +1 -1
  4. package/dist/features/registry/ZORA_BASE_COMPONENT_REGISTRY.d.ts +4 -0
  5. package/dist/features/registry/ZORA_BASE_COMPONENT_REGISTRY.d.ts.map +1 -0
  6. package/dist/features/registry/ZORA_BASE_COMPONENT_REGISTRY.js +187 -0
  7. package/dist/features/registry/ZORA_BASE_COMPONENT_REGISTRY.js.map +1 -0
  8. package/dist/features/registry/ZORA_COMPONENT_REGISTRY.d.ts +1 -0
  9. package/dist/features/registry/ZORA_COMPONENT_REGISTRY.d.ts.map +1 -1
  10. package/dist/features/registry/ZORA_COMPONENT_REGISTRY.js +4 -185
  11. package/dist/features/registry/ZORA_COMPONENT_REGISTRY.js.map +1 -1
  12. package/dist/features/registry/createZoraComponentRegistry.d.ts +4 -0
  13. package/dist/features/registry/createZoraComponentRegistry.d.ts.map +1 -0
  14. package/dist/features/registry/createZoraComponentRegistry.js +6 -0
  15. package/dist/features/registry/createZoraComponentRegistry.js.map +1 -0
  16. package/dist/features/registry/public.d.ts +2 -0
  17. package/dist/features/registry/public.d.ts.map +1 -1
  18. package/dist/features/registry/public.js +2 -0
  19. package/dist/features/registry/public.js.map +1 -1
  20. package/dist/features/registry/readerFreeRegistry.d.ts +3 -0
  21. package/dist/features/registry/readerFreeRegistry.d.ts.map +1 -0
  22. package/dist/features/registry/readerFreeRegistry.js +3 -0
  23. package/dist/features/registry/readerFreeRegistry.js.map +1 -0
  24. package/dist/index.d.ts +1 -126
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js +1 -77
  27. package/dist/index.js.map +1 -1
  28. package/dist/readerFree.d.ts +129 -0
  29. package/dist/readerFree.d.ts.map +1 -0
  30. package/dist/readerFree.js +79 -0
  31. package/dist/readerFree.js.map +1 -0
  32. package/package.json +16 -1
  33. package/src/features/layout/public.test.ts +2 -1
  34. package/src/features/progress/adapters/inbound/ProgressRing.test.ts +6 -4
  35. package/src/features/reader/adapters/inbound/Reader.test.ts +1 -1
  36. package/src/features/reader/utils/resolveReaderProgress.test.ts +1 -1
  37. package/src/features/registry/ZORA_BASE_COMPONENT_REGISTRY.ts +236 -0
  38. package/src/features/registry/ZORA_COMPONENT_REGISTRY.ts +4 -233
  39. package/src/features/registry/createZoraComponentRegistry.ts +9 -0
  40. package/src/features/registry/public.ts +2 -0
  41. package/src/features/registry/readerFreeRegistry.ts +2 -0
  42. package/src/features/registry/registry.test.ts +36 -5
  43. package/src/features/uploader/public.test.ts +3 -2
  44. package/src/index.ts +1 -533
  45. package/src/interactionPolicy.test.ts +1 -1
  46. package/src/readerFree.ts +538 -0
@@ -0,0 +1,538 @@
1
+ export {
2
+ Accordion,
3
+ AccordionItem,
4
+ type AccordionItemProps,
5
+ type AccordionMode,
6
+ type AccordionMultipleProps,
7
+ type AccordionProps,
8
+ type AccordionSingleProps,
9
+ } from './features/accordion/public';
10
+ export {
11
+ ActivityIndicator,
12
+ type ActivityIndicatorProps,
13
+ } from './features/activity-indicator/public';
14
+ export type { AppBarMode, AppBarOverflowMenu, AppBarProps } from './features/app-bar/public';
15
+ export { AppBar } from './features/app-bar/public';
16
+ export { AppHeader, type AppHeaderProps } from './features/app-header/public';
17
+ export type {
18
+ AuthFormBaseProps,
19
+ AuthIdentifierKind,
20
+ AuthScreenMode,
21
+ AuthScreenProps,
22
+ ForgotPasswordFormProps,
23
+ ForgotPasswordFormValues,
24
+ OAuthProviderButtonProps,
25
+ OAuthProviderIconSpec,
26
+ OAuthProviderItem,
27
+ OAuthProviderListLayout,
28
+ OAuthProviderListProps,
29
+ OtpFormProps,
30
+ OtpFormValues,
31
+ SignInFormProps,
32
+ SignInFormValues,
33
+ SignUpFormField,
34
+ SignUpFormProps,
35
+ SignUpFormValues,
36
+ } from './features/auth/public';
37
+ export {
38
+ AuthScreen,
39
+ DEFAULT_OAUTH_PROVIDER_ICONS,
40
+ ForgotPasswordForm,
41
+ OAuthProviderButton,
42
+ OAuthProviderList,
43
+ OtpForm,
44
+ resolveOAuthProviderIcon,
45
+ resolveOAuthProviderLabel,
46
+ SignInForm,
47
+ SignUpForm,
48
+ } from './features/auth/public';
49
+ export type { AvatarProps, AvatarShape, AvatarSize } from './features/avatar/public';
50
+ export type { AvatarGroupItem, AvatarGroupProps } from './features/avatar/public';
51
+ export { Avatar, resolveAvatarInitials } from './features/avatar/public';
52
+ export { AvatarGroup } from './features/avatar/public';
53
+ export type { BadgeProps } from './features/badge/public';
54
+ export { Badge } from './features/badge/public';
55
+ export type { BottomSheetProps } from './features/bottom-sheet/public';
56
+ export { BottomSheet } from './features/bottom-sheet/public';
57
+ export {
58
+ type BreadcrumbItem,
59
+ type BreadcrumbPressEvent,
60
+ Breadcrumbs,
61
+ type BreadcrumbsProps,
62
+ } from './features/breadcrumbs/public';
63
+ export type { ButtonProps } from './features/button/public';
64
+ export type {
65
+ ButtonGroupAlign,
66
+ ButtonGroupOrientation,
67
+ ButtonGroupProps,
68
+ } from './features/button/public';
69
+ export type { IconButtonProps } from './features/button/public';
70
+ export { Button } from './features/button/public';
71
+ export { ButtonGroup } from './features/button/public';
72
+ export { IconButton } from './features/button/public';
73
+ export type { CardProps } from './features/card/public';
74
+ export type { MediaCardImageProps, MediaCardProps } from './features/card/public';
75
+ export type { MetricCardProps } from './features/card/public';
76
+ export type {
77
+ PostAction,
78
+ PostAuthor,
79
+ PostAuthorAvatar,
80
+ PostCardMedia,
81
+ PostCardProps,
82
+ } from './features/card/public';
83
+ export type { ProductCardProps } from './features/card/public';
84
+ export { Card } from './features/card/public';
85
+ export { MediaCard } from './features/card/public';
86
+ export { MetricCard } from './features/card/public';
87
+ export { PostCard } from './features/card/public';
88
+ export { ProductCard } from './features/card/public';
89
+ export type {
90
+ ChatListAvatar,
91
+ ChatListItemProps,
92
+ MessageBubbleAuthor,
93
+ MessageBubbleAvatar,
94
+ MessageBubbleDirection,
95
+ MessageBubbleProps,
96
+ MessageBubbleStatus,
97
+ } from './features/chat/public';
98
+ export { ChatListItem, MessageBubble } from './features/chat/public';
99
+ export type {
100
+ ChessBoardColorOverrides,
101
+ ChessBoardColorScheme,
102
+ ChessBoardOrientation,
103
+ ChessBoardProps,
104
+ ChessMoveAttempt,
105
+ ChessMoveResult,
106
+ ChessPieceCode,
107
+ ChessPieceRenderContext,
108
+ ChessPieceRenderer,
109
+ ChessPieceState,
110
+ ChessPromotionPiece,
111
+ ChessSquareId,
112
+ OpeningBookColorOverrides,
113
+ OpeningBookColorScheme,
114
+ OpeningBookMove,
115
+ OpeningBookProps,
116
+ } from './features/chess/public';
117
+ export type { ChessColorThemeShape } from './features/chess/public';
118
+ export { ChessBoard, chessBoardMeta, OpeningBook, openingBookMeta } from './features/chess/public';
119
+ export {
120
+ chessSquares,
121
+ createBoardSquares,
122
+ createChessBoardColorScheme,
123
+ createOpeningBookColorScheme,
124
+ getLegalTargets,
125
+ getSquareFile,
126
+ getSquareRank,
127
+ isLightSquare,
128
+ readChessPieces,
129
+ tryMove,
130
+ } from './features/chess/public';
131
+ export type { ChipProps } from './features/chip/public';
132
+ export type { ChipGroupItem, ChipGroupProps } from './features/chip/public';
133
+ export { Chip } from './features/chip/public';
134
+ export { ChipGroup } from './features/chip/public';
135
+ export type {
136
+ CollectionEditorProps,
137
+ CollectionEditorRenderItemProps,
138
+ } from './features/collection-editor/public';
139
+ export { CollectionEditor } from './features/collection-editor/public';
140
+ export type {
141
+ ContentRailControlPressEvent,
142
+ ContentRailDirection,
143
+ ContentRailItemSize,
144
+ ContentRailMotion,
145
+ ContentRailProps,
146
+ ContentRailSpacing,
147
+ ContentRailVisibleRangeChangeEvent,
148
+ } from './features/content-rail/public';
149
+ export { ContentRail } from './features/content-rail/public';
150
+ export type {
151
+ DataTableCellContext,
152
+ DataTableColumn,
153
+ DataTableColumnAlign,
154
+ DataTableDensity,
155
+ DataTableProps,
156
+ DataTableRowAction,
157
+ DataTableSortDirection,
158
+ DataTableSortState,
159
+ } from './features/data-table/public';
160
+ export { DataTable } from './features/data-table/public';
161
+ export {
162
+ DatePicker,
163
+ type DatePickerProps,
164
+ type DatePickerValue,
165
+ } from './features/date-picker/public';
166
+ export { Dialog, type DialogProps } from './features/dialog/public';
167
+ export {
168
+ EmptyState,
169
+ type EmptyStateAction,
170
+ type EmptyStateProps,
171
+ } from './features/empty-state/public';
172
+ export type {
173
+ ExplorerActivateEvent,
174
+ ExplorerItem,
175
+ ExplorerItemKind,
176
+ ExplorerProps,
177
+ ExplorerSelectionChangeEvent,
178
+ ExplorerSelectionMode,
179
+ } from './features/explorer/public';
180
+ export {
181
+ Explorer,
182
+ FileExplorer,
183
+ MediaExplorer,
184
+ resolveExplorerSelection,
185
+ } from './features/explorer/public';
186
+ export {
187
+ Checkbox,
188
+ CheckboxGroup,
189
+ type CheckboxGroupOption,
190
+ type CheckboxGroupProps,
191
+ type CheckboxProps,
192
+ } from './features/form/checkbox/public';
193
+ export type {
194
+ FieldProps,
195
+ FormActionsProps,
196
+ FormErrorProps,
197
+ FormErrors,
198
+ FormFieldConfig,
199
+ FormFieldInputType,
200
+ FormProps,
201
+ FormValidationErrors,
202
+ FormValidationResult,
203
+ FormValues,
204
+ UseFormControllerOptions,
205
+ UseFormControllerResult,
206
+ ValidationRule,
207
+ } from './features/form/public';
208
+ export {
209
+ Field,
210
+ Form,
211
+ FormActions,
212
+ FormError,
213
+ hasRequiredRule,
214
+ useFormController,
215
+ validateField,
216
+ validateFields,
217
+ validateValue,
218
+ } from './features/form/public';
219
+ export {
220
+ Radio,
221
+ RadioGroup,
222
+ type RadioGroupOption,
223
+ type RadioGroupProps,
224
+ type RadioProps,
225
+ } from './features/form/radio/public';
226
+ export { SearchInput, type SearchInputProps } from './features/form/search-input/public';
227
+ export { Select, type SelectOption, type SelectProps } from './features/form/select/public';
228
+ export { Switch, type SwitchProps } from './features/form/switch/public';
229
+ export {
230
+ TextInput,
231
+ type TextInputProps,
232
+ type TextInputTrailingAction,
233
+ } from './features/form/text-input/public';
234
+ export type {
235
+ GameEntityEasing,
236
+ GameEntityMotionProps,
237
+ GameEntityProps,
238
+ GameFieldProps,
239
+ GameInputZoneProps,
240
+ GameKeyboardBinding,
241
+ GameMeasurementProbeProps,
242
+ GameOverlayPlacement,
243
+ GameOverlayProps,
244
+ GamePointerEvents,
245
+ GameProps,
246
+ } from './features/game/public';
247
+ export {
248
+ Game,
249
+ GameEntity,
250
+ GameField,
251
+ GameInputZone,
252
+ GameMeasurementProbe,
253
+ GameOverlay,
254
+ } from './features/game/public';
255
+ export type {
256
+ GradientColor,
257
+ GradientColors,
258
+ GradientLocations,
259
+ GradientPoint,
260
+ GradientProps,
261
+ GradientRenderer,
262
+ GradientRendererProps,
263
+ GradientRendererProviderProps,
264
+ } from './features/gradient/public';
265
+ export { Gradient, GradientRendererProvider } from './features/gradient/public';
266
+ export {
267
+ createGridInteractionsController,
268
+ type GridInteractionIntent,
269
+ type GridInteractionItem,
270
+ type GridInteractionPointer,
271
+ GridInteractions,
272
+ type GridInteractionsController,
273
+ type GridInteractionsControllerProps,
274
+ type GridInteractionSnap,
275
+ type GridInteractionsProps,
276
+ } from './features/grid-interactions/public';
277
+ export type {
278
+ GridGuide,
279
+ GridLineOverlayProps,
280
+ GridRulerMark,
281
+ GridRulerProps,
282
+ GridRulerTickSource,
283
+ } from './features/grid-rulers/public';
284
+ export { GridLineOverlay, GridRuler, resolveGridRulerMarks } from './features/grid-rulers/public';
285
+ export type { GridViewProps, TileGridItem, TileGridProps } from './features/grid-view/public';
286
+ export { GridView, layoutTileGrid, TileGrid } from './features/grid-view/public';
287
+ export {
288
+ Hero,
289
+ type HeroAction,
290
+ type HeroAlign,
291
+ type HeroLayout,
292
+ type HeroProps,
293
+ type HeroTone,
294
+ } from './features/hero/public';
295
+ export type { IconProps } from './features/icon/public';
296
+ export { Icon } from './features/icon/public';
297
+ export type { ImageFit, ImageProps, SurfaceImageSource } from './features/image/public';
298
+ export { Image } from './features/image/public';
299
+ export {
300
+ KeyboardAvoidingView,
301
+ type KeyboardAvoidingViewBehavior,
302
+ type KeyboardAvoidingViewProps,
303
+ } from './features/keyboard-avoiding-view/public';
304
+ export type {
305
+ AppShellProps,
306
+ DividerProps,
307
+ GridProps,
308
+ ScreenProps,
309
+ ScrollViewProps,
310
+ ViewProps,
311
+ } from './features/layout/public';
312
+ export { AppShell, Divider, Grid, Screen, ScrollView, View } from './features/layout/public';
313
+ export type {
314
+ ManifestListProps,
315
+ ManifestListSection,
316
+ ManifestSectionListProps,
317
+ } from './features/list/public';
318
+ export type {
319
+ ListChildrenProps,
320
+ ListItemProps,
321
+ ListItemsProps,
322
+ ListItemVariant,
323
+ ListProps,
324
+ ListSectionProps,
325
+ } from './features/list/public';
326
+ export { FlatList, SectionList } from './features/list/public';
327
+ export { List, ListItem, ListSection } from './features/list/public';
328
+ export type { MatrixGridProps } from './features/matrix-grid/public';
329
+ export { MatrixGrid } from './features/matrix-grid/public';
330
+ export { MissingElement, type MissingElementProps } from './features/missing-element/public';
331
+ export { Pagination, type PaginationProps } from './features/pagination/public';
332
+ export type { PaletteItemProps } from './features/palette-item/public';
333
+ export { PaletteItem } from './features/palette-item/public';
334
+ export {
335
+ PopoverMenu,
336
+ type PopoverMenuAction,
337
+ type PopoverMenuActionIntent,
338
+ type PopoverMenuProps,
339
+ } from './features/popover-menu/public';
340
+ export {
341
+ Progress,
342
+ type ProgressProps,
343
+ ProgressRing,
344
+ type ProgressRingProps,
345
+ } from './features/progress/public';
346
+ export { Rating, type RatingProps } from './features/rating/public';
347
+ export type {
348
+ ZoraBindableComponentType,
349
+ ZoraComponentBlueprint,
350
+ ZoraComponentCategory,
351
+ ZoraComponentEventMeta,
352
+ ZoraComponentEventPayloadFieldMeta,
353
+ ZoraComponentEventPayloadFieldType,
354
+ ZoraComponentEventPayloadKind,
355
+ ZoraComponentI18nMeta,
356
+ ZoraComponentManifestPolicy,
357
+ ZoraComponentMeta,
358
+ ZoraComponentMetaRegistry,
359
+ ZoraComponentPropArrayItemSchema,
360
+ ZoraComponentPropAuthoring,
361
+ ZoraComponentPropSchema,
362
+ ZoraComponentPropType,
363
+ ZoraComponentPropValue,
364
+ ZoraComponentSlotMeta,
365
+ ZoraThemeRecipeBooleanFieldMeta,
366
+ ZoraThemeRecipeChoiceFieldMeta,
367
+ ZoraThemeRecipeFieldMeta,
368
+ ZoraThemeRecipeKind,
369
+ ZoraThemeRecipeMeta,
370
+ ZoraThemeRecipeMetaRegistry,
371
+ ZoraThemeRecipeTokenFieldMeta,
372
+ ZoraThemeTokenFamily,
373
+ } from './features/registry';
374
+ export {
375
+ ZORA_BINDABLE_COMPONENT_META,
376
+ ZORA_COMPONENT_META,
377
+ ZORA_THEME_RECIPE_META,
378
+ ZORA_THEME_TOKEN_FAMILIES,
379
+ } from './features/registry';
380
+ export {
381
+ createZoraComponentRegistry,
382
+ ZORA_BASE_COMPONENT_REGISTRY,
383
+ } from './features/registry/readerFreeRegistry';
384
+ export type {
385
+ BarcodeScannerViewProps,
386
+ BarcodeScanResult,
387
+ CameraPermissionStatus,
388
+ CameraPermissionViewProps,
389
+ ScanOverlayProps,
390
+ } from './features/scanner/public';
391
+ export { BarcodeScannerView, CameraPermissionView, ScanOverlay } from './features/scanner/public';
392
+ export {
393
+ ScreenSection,
394
+ type ScreenSectionProps,
395
+ SectionHeader,
396
+ type SectionHeaderProps,
397
+ } from './features/section/public';
398
+ export type {
399
+ SelectableItemProps,
400
+ SelectableItemState,
401
+ SelectionIntent,
402
+ SelectionMode,
403
+ SelectionProviderProps,
404
+ SelectionTrigger,
405
+ UseSelectionResult,
406
+ } from './features/selection/public';
407
+ export { SelectableItem, SelectionProvider, useSelection } from './features/selection/public';
408
+ export {
409
+ Skeleton,
410
+ SkeletonCard,
411
+ type SkeletonCardProps,
412
+ type SkeletonDimension,
413
+ SkeletonList,
414
+ type SkeletonListProps,
415
+ type SkeletonListVariant,
416
+ type SkeletonProps,
417
+ type SkeletonRadius,
418
+ SkeletonText,
419
+ type SkeletonTextProps,
420
+ } from './features/skeleton/public';
421
+ export type {
422
+ SpatialGridItem,
423
+ SpatialGridItemState,
424
+ SpatialGridProps,
425
+ } from './features/spatial-grid/public';
426
+ export { SpatialGrid } from './features/spatial-grid/public';
427
+ export type { SurfaceProps, SurfaceVariant } from './features/surface/public';
428
+ export { Surface } from './features/surface/public';
429
+ export type {
430
+ CardBackProps,
431
+ CardHandProps,
432
+ CreatePokerTrainingTableStateOptions,
433
+ CreateTabletopGameSeatsInput,
434
+ PlayingCardProps,
435
+ PlayingCardSuit,
436
+ PlayingCardValue,
437
+ PokerTrainingPlayer,
438
+ PokerTrainingTableProps,
439
+ PokerTrainingTableSize,
440
+ PokerTrainingTableState,
441
+ PokerTrainingTaskTableData,
442
+ TabletopCardSize,
443
+ TabletopColorOverrides,
444
+ TabletopColorScheme,
445
+ TabletopGameParticipantState,
446
+ TabletopGameSeatDefinition,
447
+ TabletopGameSeatPresentation,
448
+ TabletopSeatCount,
449
+ TabletopSeatState,
450
+ TabletopShape,
451
+ TabletopTableProps,
452
+ } from './features/tabletop/public';
453
+ export {
454
+ CardBack,
455
+ CardHand,
456
+ createPokerTrainingTableState,
457
+ createTabletopColorScheme,
458
+ createTabletopGameSeats,
459
+ PlayingCard,
460
+ PokerTrainingTable,
461
+ pokerTrainingTableMeta,
462
+ TabletopTable,
463
+ tabletopTableMeta,
464
+ } from './features/tabletop/public';
465
+ export {
466
+ Tab,
467
+ TabList,
468
+ type TabListProps,
469
+ TabPanel,
470
+ type TabPanelProps,
471
+ type TabProps,
472
+ Tabs,
473
+ type TabsProps,
474
+ } from './features/tabs/public';
475
+ export type {
476
+ ZoraColor,
477
+ ZoraEmphasis,
478
+ ZoraPaletteColor,
479
+ ZoraStatusColor,
480
+ } from './features/theme/colorModel';
481
+ export {
482
+ ZORA_COLORS,
483
+ ZORA_EMPHASES,
484
+ ZORA_PALETTE_COLORS,
485
+ ZORA_STATUS_COLORS,
486
+ } from './features/theme/colorModel';
487
+ export * from './features/theme/public';
488
+ export * from './features/theme/runtime';
489
+ export type { TimeGridInterval, TimeGridLane, TimeGridProps } from './features/time-grid/public';
490
+ export { resolveTimeGridVisibleIntervals, TimeGrid } from './features/time-grid/public';
491
+ export {
492
+ TimePicker,
493
+ type TimePickerProps,
494
+ type TimePickerValue,
495
+ } from './features/time-picker/public';
496
+ export type { TimelineItem, TimelineProps } from './features/timeline/public';
497
+ export { Timeline } from './features/timeline/public';
498
+ export type {
499
+ ToastController,
500
+ ToastOptions,
501
+ ToastProps,
502
+ ToastProviderProps,
503
+ ToastStatus,
504
+ } from './features/toast/public';
505
+ export { Toast, ToastProvider, useToast } from './features/toast/public';
506
+ export { Toolbar, type ToolbarProps } from './features/toolbar/public';
507
+ export type { TreeItemNode, TreeItemRenderProps, TreeViewProps } from './features/tree-view/public';
508
+ export { TreeItem, TreeView } from './features/tree-view/public';
509
+ export type {
510
+ HeadingAlign,
511
+ HeadingColor,
512
+ HeadingEmphasis,
513
+ HeadingLevel,
514
+ HeadingProps,
515
+ HeadingSize,
516
+ HeadingWeight,
517
+ } from './features/typography/public';
518
+ export type {
519
+ TextAlign,
520
+ TextColor,
521
+ TextEmphasis,
522
+ TextProps,
523
+ TextVariant,
524
+ TextWeight,
525
+ } from './features/typography/public';
526
+ export { Heading } from './features/typography/public';
527
+ export { Text } from './features/typography/public';
528
+ export type {
529
+ UploadAsset,
530
+ UploadAssetBase,
531
+ UploaderExplorerItem,
532
+ UploaderProps,
533
+ UploadProgressContext,
534
+ UploadType,
535
+ ValidateUploadAssetInput,
536
+ } from './features/uploader/public';
537
+ export { Uploader, validateUploadAsset } from './features/uploader/public';
538
+ export type { ZoraComponentRegistry } from './types/registry';