@estiva-app/ui 0.86.0 → 0.86.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/editor.d.ts +1 -1
- package/dist/editor.d.ts.map +1 -1
- package/dist/editor.js +9 -0
- package/dist/editor.js.map +2 -2
- package/package.json +1 -1
- package/registry.json +34 -2
- package/src/editor.ts +1 -0
- package/src/registry/registry.test.ts +3 -3
package/package.json
CHANGED
package/registry.json
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
"kind": "package",
|
|
5
5
|
"repo": "estiva-ui",
|
|
6
6
|
"package": "@estiva-app/ui",
|
|
7
|
-
"packageVersion": "0.86.
|
|
8
|
-
"exports":
|
|
7
|
+
"packageVersion": "0.86.1",
|
|
8
|
+
"exports": 209,
|
|
9
9
|
"typeExports": 211,
|
|
10
10
|
"files": null
|
|
11
11
|
},
|
|
@@ -4188,6 +4188,38 @@
|
|
|
4188
4188
|
"border-border-tooltip-key bg-bg-tooltip-key text-text-tooltip-key signal:bg-bg-tooltip-key ship:bg-bg-tooltip-key"
|
|
4189
4189
|
]
|
|
4190
4190
|
},
|
|
4191
|
+
{
|
|
4192
|
+
"name": "keepCommentBoxWarm",
|
|
4193
|
+
"repo": "estiva-ui",
|
|
4194
|
+
"kind": "helper",
|
|
4195
|
+
"importPath": "@estiva-app/ui/editor",
|
|
4196
|
+
"sourceFile": "src/CommentBox.tsx",
|
|
4197
|
+
"purpose": "Keeps an editor built ahead for the next empty box given these `extensions` and `referenceView`, so it opens at once.",
|
|
4198
|
+
"purposeFrom": "comment",
|
|
4199
|
+
"props": [
|
|
4200
|
+
{
|
|
4201
|
+
"name": "extensions",
|
|
4202
|
+
"takes": "readonly AnyExtension[]",
|
|
4203
|
+
"required": false,
|
|
4204
|
+
"note": null
|
|
4205
|
+
},
|
|
4206
|
+
{
|
|
4207
|
+
"name": "referenceView",
|
|
4208
|
+
"takes": "ComponentType<ReferenceViewProps>",
|
|
4209
|
+
"required": false,
|
|
4210
|
+
"note": null
|
|
4211
|
+
}
|
|
4212
|
+
],
|
|
4213
|
+
"variants": [],
|
|
4214
|
+
"ownsBehaviours": [],
|
|
4215
|
+
"status": "stable",
|
|
4216
|
+
"migrationStage": null,
|
|
4217
|
+
"docsId": "primitives-commentbox--docs",
|
|
4218
|
+
"storyId": "primitives-commentbox--empty",
|
|
4219
|
+
"docPage": null,
|
|
4220
|
+
"app": null,
|
|
4221
|
+
"looks": []
|
|
4222
|
+
},
|
|
4191
4223
|
{
|
|
4192
4224
|
"name": "keepSelection",
|
|
4193
4225
|
"repo": "estiva-ui",
|
package/src/editor.ts
CHANGED
|
@@ -48,20 +48,20 @@ describe('the registry builds', () => {
|
|
|
48
48
|
expect(registry.entries.map((one) => one.name).sort()).toEqual(values.map((one) => one.name).sort())
|
|
49
49
|
})
|
|
50
50
|
|
|
51
|
-
it('counts
|
|
51
|
+
it('counts 209 names over 97 files: 139 components, 67 helpers and 3 hooks (keepCommentBoxWarm, a box built ahead, exported as 0.84.0 promised (PEEKM-1), on 21 October;linkedFrom and linkStateFrom, one card for a file in every app (5ebf2756), on 21 October; ComposeBox, ComposeKeys and COMPOSE_EDITOR_CLASSES gone into CommentBox’s own frame (one box), on 21 October; LinkPlaces with linkPlaceAt and staysChip, a link in a document drawn where it sits (WBD-4), on 20 October; DocumentEditor, one document editor for every app, and PersonReference, `@` in a document (WBD-3), on 20 October; toggleTableHeaderRow, a table’s header row on and off (LEAF-12), on 19 October;EntryShell, the screen while nobody is signed in, moved from Peek (AUT-3), on 17 October; CommentBox with commentBoxRows, and ReactionRow with AddReactionButton and whoReacted, the shared comment box and reaction row (COMM-2), on 17 October; the link widgets — LinkChip, LinkRow, LinkCard, CardUnder, PartCard, LinkPreview and their parts, with useCanHover, chosenOf, loadingShapeOf and unavailableMemory — from the Widgets 2 prototype, on 16 October; InlineText, a title or the line under it edited where it stands (SUM-4), on 16 October; ComposeBox with ComposeKeys and its classes, CommentHighlights with its five helpers, and keepSelection and releaseSelection, from the Leaf prototype (LEAF-4), on 16 October;NavTree, NavTreeSection, the composer triggers and UnreadDot joined on 2 October; BlockHandle and EditorBlockHandle (RIC-18) on 2 October, moveBlock and blockDropCursor, the drop in the gutter, on 5 October, MembersPill and MembersDialog, moved from Peek (SHI-31), on 6 October, ShowMore on 7 October, AppProvider on 8 October, and KindIcon, thingKindOf and PastedImages with its two helpers, moved from Peek, on 8 October; CodeBlockColours, the coloured code block of the editor, on 9 October; Checklist, Callout, isChecklistTick and calloutLook (RIC-19) on 13 October; EditorTableControls and its four actions (RIC-21) on 13 October; ReferenceCards, useReferenceCards and its three helpers, the card a chip in a document asks for, on 14 October; LinkChips and its two helpers, a URL in a document read as its chip, on 14 October; ReferenceMenu, ReferenceMenuView and three helpers, the menu of a chip while writing, on 14 October; PastedMarkdown, markdown pasted as the blocks it spells (LEAF-10), on 15 October; turnIntoRows, turnListInto and turnQuoteInto, the block menu’s Turn into for a list and a quote (LEAF-11), on 15 October)', () => {
|
|
52
52
|
// The reconciliation GATES.md §24 explains. If this changes, that changes.
|
|
53
53
|
// The `EDITOR_EXTENSIONS` count as components by their names; they are
|
|
54
54
|
// editor extensions, documented on SelectionToolbar's, BlockNodes' and
|
|
55
55
|
// ComposerTriggers' pages.
|
|
56
56
|
const kinds = registry.entries.reduce<Record<string, number>>((all, one) => ({ ...all, [one.kind]: (all[one.kind] ?? 0) + 1 }), {})
|
|
57
|
-
expect(kinds).toEqual({ component: 139, helper:
|
|
57
|
+
expect(kinds).toEqual({ component: 139, helper: 67, hook: 3 })
|
|
58
58
|
expect(new Set(registry.entries.map((one) => one.sourceFile)).size).toBe(97)
|
|
59
59
|
})
|
|
60
60
|
|
|
61
61
|
it('gives every entry a purpose, from its own page or from the comment above it', () => {
|
|
62
62
|
expect(registry.entries.filter((one) => one.purpose.trim() === '')).toEqual([])
|
|
63
63
|
expect(registry.entries.filter((one) => one.purposeFrom === 'page').length).toBe(90)
|
|
64
|
-
expect(registry.entries.filter((one) => one.purposeFrom === 'comment').length).toBe(
|
|
64
|
+
expect(registry.entries.filter((one) => one.purposeFrom === 'comment').length).toBe(119)
|
|
65
65
|
})
|
|
66
66
|
|
|
67
67
|
it('takes a name with a page of its own from the page, and a name without one from the code', () => {
|