@agifyai/ui 0.0.0-stage → 0.91.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 (148) hide show
  1. package/dist/ActionMenu.d.ts +82 -0
  2. package/dist/AddressField.d.ts +22 -0
  3. package/dist/Alert.d.ts +10 -0
  4. package/dist/AppLayouts.d.ts +30 -0
  5. package/dist/AuthScreen.d.ts +76 -0
  6. package/dist/AvatarStack.d.ts +6 -0
  7. package/dist/Badge.d.ts +25 -0
  8. package/dist/Board.d.ts +47 -0
  9. package/dist/Bubble.d.ts +79 -0
  10. package/dist/Button.d.ts +87 -0
  11. package/dist/Calendar.d.ts +42 -0
  12. package/dist/CharCounter.d.ts +10 -0
  13. package/dist/Chat.d.ts +58 -0
  14. package/dist/Checkbox.d.ts +9 -0
  15. package/dist/ChoiceList.d.ts +39 -0
  16. package/dist/ColorPicker.d.ts +17 -0
  17. package/dist/ComingSoon.d.ts +17 -0
  18. package/dist/CommandMenu.d.ts +37 -0
  19. package/dist/CompanyLogo.d.ts +29 -0
  20. package/dist/CompareLayout.d.ts +24 -0
  21. package/dist/Confetti.d.ts +22 -0
  22. package/dist/ConfirmDialog.d.ts +21 -0
  23. package/dist/CountryFlag.d.ts +31 -0
  24. package/dist/DataTable.d.ts +80 -0
  25. package/dist/DateMenu.d.ts +18 -0
  26. package/dist/DatePicker.d.ts +19 -0
  27. package/dist/Dialog.d.ts +33 -0
  28. package/dist/DisclosureRow.d.ts +24 -0
  29. package/dist/DocumentThumbnail.d.ts +20 -0
  30. package/dist/EditablePills.d.ts +18 -0
  31. package/dist/Editor.d.ts +177 -0
  32. package/dist/EditorBlocks.d.ts +76 -0
  33. package/dist/EmptyState.d.ts +21 -0
  34. package/dist/Feed.d.ts +125 -0
  35. package/dist/Field.d.ts +14 -0
  36. package/dist/FilePicker.d.ts +36 -0
  37. package/dist/FileRow.d.ts +34 -0
  38. package/dist/FileTypeBadge.d.ts +14 -0
  39. package/dist/Filter.d.ts +44 -0
  40. package/dist/FloatingStatusPill.d.ts +37 -0
  41. package/dist/FloatingToolbar.d.ts +19 -0
  42. package/dist/FoldableSection.d.ts +33 -0
  43. package/dist/GalleryGrid.d.ts +51 -0
  44. package/dist/Heatmap.d.ts +32 -0
  45. package/dist/HoverLift.d.ts +60 -0
  46. package/dist/IconButton-B12fAhrz.js +1001 -0
  47. package/dist/IconButton-B12fAhrz.js.map +1 -0
  48. package/dist/IconButton.d.ts +12 -0
  49. package/dist/Inbox.d.ts +78 -0
  50. package/dist/InlineText.d.ts +14 -0
  51. package/dist/Insights.d.ts +30 -0
  52. package/dist/Issue.d.ts +114 -0
  53. package/dist/IssueCreate.d.ts +20 -0
  54. package/dist/IssueDetail.d.ts +207 -0
  55. package/dist/IssueList.d.ts +90 -0
  56. package/dist/IssueListRow.d.ts +1 -0
  57. package/dist/Layer.d.ts +8 -0
  58. package/dist/Layout.d.ts +160 -0
  59. package/dist/LineInput.d.ts +20 -0
  60. package/dist/LinksField.d.ts +19 -0
  61. package/dist/ListSelection.d.ts +97 -0
  62. package/dist/MediaTile.d.ts +28 -0
  63. package/dist/Members.d.ts +30 -0
  64. package/dist/NoteCard.d.ts +21 -0
  65. package/dist/Outbox.d.ts +332 -0
  66. package/dist/PageIntro.d.ts +12 -0
  67. package/dist/PageSearch.d.ts +12 -0
  68. package/dist/PageTree.d.ts +24 -0
  69. package/dist/PanelParts.d.ts +46 -0
  70. package/dist/Panes.d.ts +108 -0
  71. package/dist/Peek.d.ts +63 -0
  72. package/dist/PinnedDocuments.d.ts +28 -0
  73. package/dist/Popover.d.ts +61 -0
  74. package/dist/ProgressBar.d.ts +16 -0
  75. package/dist/ProgressChart.d.ts +63 -0
  76. package/dist/ProjectDetails.d.ts +1 -0
  77. package/dist/ProjectHeader.d.ts +1 -0
  78. package/dist/ProjectShell.d.ts +4 -0
  79. package/dist/ProjectSidebar.d.ts +1 -0
  80. package/dist/ProjectTabBar.d.ts +1 -0
  81. package/dist/ProjectUpdate.d.ts +25 -0
  82. package/dist/ProjectView.d.ts +380 -0
  83. package/dist/PropertyLine.d.ts +159 -0
  84. package/dist/PropertyProgress.d.ts +30 -0
  85. package/dist/RadioList.d.ts +27 -0
  86. package/dist/Rail.d.ts +18 -0
  87. package/dist/RampField.d.ts +24 -0
  88. package/dist/RecordList.d.ts +49 -0
  89. package/dist/RowsCard.d.ts +90 -0
  90. package/dist/SearchView.d.ts +19 -0
  91. package/dist/Select.d.ts +107 -0
  92. package/dist/SelectionBar.d.ts +18 -0
  93. package/dist/Settings.d.ts +84 -0
  94. package/dist/SettingsRows.d.ts +106 -0
  95. package/dist/SignInPage.d.ts +23 -0
  96. package/dist/Skeleton.d.ts +20 -0
  97. package/dist/SortableList.d.ts +25 -0
  98. package/dist/Spinner.d.ts +14 -0
  99. package/dist/SsoButton.d.ts +18 -0
  100. package/dist/Switch.d.ts +8 -0
  101. package/dist/Tabs.d.ts +25 -0
  102. package/dist/TagInput.d.ts +22 -0
  103. package/dist/TemplateCard.d.ts +25 -0
  104. package/dist/Textarea.d.ts +10 -0
  105. package/dist/ThemeProvider.d.ts +44 -0
  106. package/dist/Toast.d.ts +19 -0
  107. package/dist/Toaster.d.ts +15 -0
  108. package/dist/Tooltip.d.ts +17 -0
  109. package/dist/Tree.d.ts +27 -0
  110. package/dist/UnsubscribePage.d.ts +52 -0
  111. package/dist/UrlField.d.ts +23 -0
  112. package/dist/ValuePills.d.ts +16 -0
  113. package/dist/Viewport.d.ts +4 -0
  114. package/dist/assets/InterVariable.woff2 +0 -0
  115. package/dist/assets/stylex.css +8602 -0
  116. package/dist/clerkAppearance.d.ts +12 -0
  117. package/dist/cx.d.ts +5 -0
  118. package/dist/editorDom.d.ts +33 -0
  119. package/dist/editorKeys.d.ts +31 -0
  120. package/dist/editorModel.d.ts +78 -0
  121. package/dist/editorStyles.d.ts +501 -0
  122. package/dist/formParts.d.ts +49 -0
  123. package/dist/index.d.ts +219 -0
  124. package/dist/index.js +18652 -0
  125. package/dist/index.js.map +1 -0
  126. package/dist/inert.d.ts +5 -0
  127. package/dist/markdown.d.ts +18 -0
  128. package/dist/markers.stylex.d.ts +28 -0
  129. package/dist/progressForecast.d.ts +34 -0
  130. package/dist/propertyLine.stylex.d.ts +9 -0
  131. package/dist/rejeu.d.ts +8 -0
  132. package/dist/rejeu.js +64 -0
  133. package/dist/rejeu.js.map +1 -0
  134. package/dist/themes.stylex.d.ts +966 -0
  135. package/dist/tokens.css +532 -0
  136. package/dist/tokens.stylex.d.ts +426 -0
  137. package/dist/usePreferredTheme.d.ts +7 -0
  138. package/dist/useTabArrowKeys.d.ts +6 -0
  139. package/package.json +48 -3
  140. package/project-assets/InterVariable.woff2 +0 -0
  141. package/project-assets/clerk-lien-magique.png +0 -0
  142. package/project-assets/document.css +13 -0
  143. package/project-assets/icons.svg +154 -0
  144. package/project-assets/mayeul.png +0 -0
  145. package/project-assets/signature-mayeul.png +0 -0
  146. package/project-assets/workspace.png +0 -0
  147. package/styles.d.ts +5 -0
  148. package/README.md +0 -3
@@ -0,0 +1,12 @@
1
+ export interface ClerkAppearanceValue {
2
+ variables: Record<string, string>;
3
+ elements: Record<string, Record<string, unknown>>;
4
+ }
5
+ export declare const clerkAppearance: ClerkAppearanceValue;
6
+ /**
7
+ * Props Clerk prêtes à l'emploi pour `SignIn` et `SignUp` : `<SignIn {...clerkProps} />`.
8
+ * L'application n'écrit ni n'importe aucune apparence.
9
+ */
10
+ export declare const clerkProps: {
11
+ readonly appearance: ClerkAppearanceValue;
12
+ };
package/dist/cx.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Joint des classes conditionnelles. Ne décide d'aucun style :
3
+ * les valeurs viennent des jetons du paquet, jamais d'une chaîne libre.
4
+ */
5
+ export declare function cx(...parts: Array<string | false | null | undefined>): string;
@@ -0,0 +1,33 @@
1
+ import { type EditorBlock } from "./editorModel.js";
2
+ /**
3
+ * DOM helpers of `DocumentEditor`: caret, ranges, clean HTML, clipboard HTML.
4
+ * Every editable element of the editor (text block, table cell, caption)
5
+ * carries `data-editor-key`; its block carries `data-block-id`.
6
+ */
7
+ /** Marker of the spans the editor adds only to paint a decoration (see `decorations`). */
8
+ export declare const DECORATION_ATTRIBUTE = "data-editor-decoration";
9
+ /** Text located before the caret in `el` (empty when the caret is elsewhere). */
10
+ export declare function textBefore(el: HTMLElement): string;
11
+ /** Range between two positions counted in characters of the text. */
12
+ export declare function rangeBetween(el: HTMLElement, start: number, end: number): Range;
13
+ export declare function placeCaret(el: HTMLElement, at: "start" | "end" | number): void;
14
+ /** Offsets (in characters) of the selection inside `el`, or null when it is not inside. */
15
+ export declare function selectionOffsets(el: HTMLElement): {
16
+ start: number;
17
+ end: number;
18
+ } | null;
19
+ /** HTML of an editable element without the spans added to paint decorations. */
20
+ export declare function cleanHtml(el: HTMLElement): string;
21
+ export declare function unwrapDecorations(el: HTMLElement): void;
22
+ /** Key of the editable element that holds a node, if any. */
23
+ export declare function editorKeyOf(node: Node | null): string | null;
24
+ /** HTML of the part of `el` that lies inside `range` (the whole of `el` when it is wholly inside). */
25
+ export declare function htmlWithin(el: HTMLElement, range: Range): string;
26
+ /** HTML of `el` before the start of `range` (empty when the range starts before `el`). */
27
+ export declare function htmlBefore(el: HTMLElement, range: Range): string;
28
+ /** HTML of `el` after the end of `range` (empty when the range ends after `el`). */
29
+ export declare function htmlAfter(el: HTMLElement, range: Range): string;
30
+ /** Number of characters of the text of an HTML fragment, as the caret counts them. */
31
+ export declare function htmlTextLength(html: string): number;
32
+ /** Converts clipboard HTML (web page, word processor, another editor) to blocks. Scripts and styles are dropped, the structure is kept. */
33
+ export declare function htmlToBlocks(html: string): EditorBlock[];
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Keyboard combos and block history of `DocumentEditor`. No React, no DOM
3
+ * beyond the event shape: the history is tested in Node
4
+ * (scripts/test-editor-model.mjs).
5
+ */
6
+ export interface KeyEventLike {
7
+ key: string;
8
+ code: string;
9
+ metaKey: boolean;
10
+ ctrlKey: boolean;
11
+ altKey: boolean;
12
+ shiftKey: boolean;
13
+ }
14
+ /**
15
+ * Whether the event matches the combo. A combo is modifiers then a key, joined
16
+ * by `-`: `Mod-Alt-ArrowUp`, `Shift-Tab`, `Mod-k`. `Mod` is ⌘ on macOS and Ctrl
17
+ * elsewhere; `Meta`, `Ctrl`, `Alt` and `Shift` are literal. Modifiers must
18
+ * match exactly: `Alt-ArrowUp` does not match ⌘⌥↑. Letters ignore case and the
19
+ * character an Alt key combination produces.
20
+ */
21
+ export declare function matchCombo(event: KeyEventLike, combo: string, mac?: boolean): boolean;
22
+ /** Past and future states, newest last. Pure: no timers, no DOM. */
23
+ export interface History<T> {
24
+ push(state: T): void;
25
+ undo(current: T): T | undefined;
26
+ redo(current: T): T | undefined;
27
+ clear(): void;
28
+ readonly canUndo: boolean;
29
+ readonly canRedo: boolean;
30
+ }
31
+ export declare function createHistory<T>(limit?: number): History<T>;
@@ -0,0 +1,78 @@
1
+ /**
2
+ * Block model of `DocumentEditor` and the pure operations on it (nesting,
3
+ * moves, numbering). No DOM, no React: everything here runs in Node, which is
4
+ * how scripts/test-editor-model.mjs verifies it.
5
+ *
6
+ * Nesting is flat: a block has an optional `depth` and its children are the
7
+ * blocks that follow it with a greater depth, up to the next block whose depth
8
+ * is lower or equal (the same shape as an indented outline).
9
+ */
10
+ export type EditorBuiltinBlockType = "paragraph" | "heading1" | "heading2" | "heading3" | "bullet" | "number" | "todo" | "quote" | "code" | "divider" | "table" | "image";
11
+ /** A built-in type, or any string chosen by the app for a custom block (see `blockTypes`). */
12
+ export type EditorBlockType = EditorBuiltinBlockType | (string & {});
13
+ export type EditorTableAlign = "left" | "center" | "right" | null;
14
+ export interface EditorBlock {
15
+ id: string;
16
+ type: EditorBlockType;
17
+ /** Contenu du bloc : texte avec gras, italique, `code`, liens et mentions. Vide pour un tableau, une image, un séparateur. */
18
+ html: string;
19
+ /** Case cochée d'une tâche. */
20
+ checked?: boolean;
21
+ /** Niveau d'imbrication, 0 par défaut. */
22
+ depth?: number;
23
+ /** Bloc `code` : langage de la clôture (```ts). */
24
+ language?: string;
25
+ /** Bloc `table` : une ligne par entrée, une cellule par colonne, chaque cellule est du HTML en ligne. */
26
+ rows?: string[][];
27
+ /** Bloc `table` : la première ligne est un en-tête (vrai par défaut). */
28
+ header?: boolean;
29
+ /** Bloc `table` : alignement de chaque colonne. */
30
+ align?: EditorTableAlign[];
31
+ /** Bloc `image` : adresse, texte alternatif, légende. */
32
+ src?: string;
33
+ alt?: string;
34
+ caption?: string;
35
+ /** Les blocs imbriqués sous celui-ci sont masqués (ils restent dans les données). */
36
+ collapsed?: boolean;
37
+ /** Données libres d'un bloc personnalisé. */
38
+ data?: Record<string, unknown>;
39
+ }
40
+ /** New block identifier, unique within the page. */
41
+ export declare const uid: () => string;
42
+ export declare const depthOf: (block: EditorBlock | undefined) => number;
43
+ /** Index just after the last descendant of the block at `index`. */
44
+ export declare function subtreeEnd(blocks: EditorBlock[], index: number): number;
45
+ /** A block can sit at most one level below the block before it; the first block is at level 0. */
46
+ export declare function clampDepths(blocks: EditorBlock[]): EditorBlock[];
47
+ /** Whether `indentBlock` would change anything. */
48
+ export declare function canIndent(blocks: EditorBlock[], id: string): boolean;
49
+ /** One level deeper for the block and its children. Returns `null` when impossible. */
50
+ export declare function indentBlock(blocks: EditorBlock[], id: string): EditorBlock[] | null;
51
+ /**
52
+ * One level shallower for the block and its children. The blocks that were its
53
+ * siblings below it become its children, as in a word processor.
54
+ */
55
+ export declare function outdentBlock(blocks: EditorBlock[], id: string): EditorBlock[] | null;
56
+ /**
57
+ * Moves the block with its children above or below its sibling (same level,
58
+ * same parent). Same rule as ContentOS: no sibling in that direction, no move.
59
+ */
60
+ export declare function moveBlock(blocks: EditorBlock[], id: string, direction: -1 | 1): EditorBlock[] | null;
61
+ /**
62
+ * Ordinal of each `number` block. The count restarts at each level: a block
63
+ * that is not a `number` at the same level, or any block at a shallower level,
64
+ * ends the run. Other blocks get 0.
65
+ */
66
+ export declare function numbering(blocks: EditorBlock[]): number[];
67
+ /** Identifiers of the blocks hidden because an ancestor is collapsed. */
68
+ export declare function hiddenIds(blocks: EditorBlock[]): Set<string>;
69
+ /** Blocks without editable text: separator, image, table. */
70
+ export declare const isTextBlock: (block: EditorBlock) => boolean;
71
+ export declare const isListType: (type: EditorBlockType) => boolean;
72
+ /** Decodes the HTML entities that the editor and the Markdown converter produce. */
73
+ export declare function decodeEntities(text: string): string;
74
+ export declare const encodeText: (text: string) => string;
75
+ /** Plain text of an HTML fragment (`<br>` becomes a newline). */
76
+ export declare function htmlToPlainText(html: string): string;
77
+ /** Whether the HTML has no visible text. */
78
+ export declare const isEmptyHtml: (html: string) => boolean;