@formicoidea/labre-core 0.47.0 → 0.47.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/_pkgs/affine-block-attachment/configs/slash-menu.js +2 -2
- package/dist/_pkgs/affine-block-attachment/translations.js +2 -2
- package/dist/_pkgs/affine-block-embed/embed-html-block/configs/toolbar.js +1 -1
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/configs/toolbar.d.ts +1 -1
- package/dist/_pkgs/affine-block-embed/embed-iframe-block/configs/toolbar.js +1 -1
- package/dist/_pkgs/affine-block-embed/translations.d.ts +1 -1
- package/dist/_pkgs/affine-block-embed/translations.js +2 -2
- package/dist/_pkgs/affine-block-embed-doc/embed-linked-doc-block/configs/slash-menu.js +6 -6
- package/dist/_pkgs/affine-block-embed-doc/embed-linked-doc-block/configs/toolbar.js +1 -1
- package/dist/_pkgs/affine-block-embed-doc/embed-synced-doc-block/configs/toolbar.js +3 -3
- package/dist/_pkgs/affine-block-embed-doc/translations.d.ts +1 -1
- package/dist/_pkgs/affine-block-embed-doc/translations.js +8 -8
- package/dist/_pkgs/affine-block-frame/frame-toolbar.js +2 -2
- package/dist/_pkgs/affine-block-frame/translations.js +1 -1
- package/dist/_pkgs/affine-block-note/translations.js +8 -8
- package/dist/_pkgs/affine-block-root/commands/copy-link-commands.js +2 -2
- package/dist/_pkgs/affine-block-root/configs/toolbar.d.ts +1 -1
- package/dist/_pkgs/affine-block-root/configs/toolbar.js +1 -1
- package/dist/_pkgs/affine-block-root/edgeless/configs/toolbar/misc.d.ts +1 -1
- package/dist/_pkgs/affine-block-root/edgeless/configs/toolbar/more.d.ts +1 -1
- package/dist/_pkgs/affine-block-root/edgeless/configs/toolbar/more.js +1 -1
- package/dist/_pkgs/affine-block-root/translations.d.ts +1 -1
- package/dist/_pkgs/affine-block-root/translations.js +2 -2
- package/dist/_pkgs/affine-block-surface/extensions/canvas-grid/commands.js +1 -1
- package/dist/_pkgs/affine-block-surface/extensions/interchange-import.js +1 -1
- package/dist/_pkgs/affine-block-surface/extensions/selection-pane/commands.js +1 -1
- package/dist/_pkgs/affine-block-surface/renderer/element-highlight-overlay.d.ts +8 -2
- package/dist/_pkgs/affine-block-surface/renderer/element-highlight-overlay.js +11 -13
- package/dist/_pkgs/affine-block-surface-ref/translations.js +8 -8
- package/dist/_pkgs/affine-components/translations.js +6 -6
- package/dist/_pkgs/affine-fragment-doc-title/translations.js +1 -1
- package/dist/_pkgs/affine-gfx-group/toolbar/config.d.ts +2 -2
- package/dist/_pkgs/affine-gfx-group/toolbar/config.js +2 -2
- package/dist/_pkgs/affine-gfx-group/translations.js +1 -1
- package/dist/_pkgs/affine-gfx-note/translations.js +2 -2
- package/dist/_pkgs/affine-shared/services/linked-doc-creation-service.d.ts +1 -1
- package/dist/_pkgs/affine-shared/services/translation-service/chrome.d.ts +3 -3
- package/dist/_pkgs/affine-shared/services/translation-service/chrome.js +17 -17
- package/dist/_pkgs/affine-widget-edgeless-auto-connect/translations.js +2 -2
- package/dist/_pkgs/affine-widget-edgeless-selected-rect/translations.js +1 -1
- package/dist/_pkgs/affine-widget-linked-doc/translations.js +3 -3
- package/dist/_pkgs/affine-widget-slash-menu/translations.js +1 -1
- package/dist/translations.js +1 -1
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ export const attachmentSlashMenuConfig = {
|
|
|
9
9
|
{
|
|
10
10
|
name: 'Attachment',
|
|
11
11
|
nameWording: ATTACHMENT_SLASH_NAME,
|
|
12
|
-
description: 'Attach a file to
|
|
12
|
+
description: 'Attach a file to the page.',
|
|
13
13
|
descriptionWording: ATTACHMENT_SLASH_DESCRIPTION,
|
|
14
14
|
icon: FileIcon(),
|
|
15
15
|
tooltip: {
|
|
@@ -35,7 +35,7 @@ export const attachmentSlashMenuConfig = {
|
|
|
35
35
|
{
|
|
36
36
|
name: 'PDF',
|
|
37
37
|
nameWording: ATTACHMENT_SLASH_PDF_NAME,
|
|
38
|
-
description: 'Upload a PDF to
|
|
38
|
+
description: 'Upload a PDF to the page.',
|
|
39
39
|
descriptionWording: ATTACHMENT_SLASH_PDF_DESCRIPTION,
|
|
40
40
|
icon: ExportToPdfIcon(),
|
|
41
41
|
tooltip: {
|
|
@@ -9,7 +9,7 @@ import { ATTACHMENT_LABEL, } from '../affine-shared/services/index.js';
|
|
|
9
9
|
export const ATTACHMENT_SLASH_NAME = ATTACHMENT_LABEL;
|
|
10
10
|
export const ATTACHMENT_SLASH_DESCRIPTION = [
|
|
11
11
|
'com.labre.attachment.slash.description',
|
|
12
|
-
'Attach a file to
|
|
12
|
+
'Attach a file to the page.',
|
|
13
13
|
];
|
|
14
14
|
/** The slash-menu "PDF" item, same pattern as {@link ATTACHMENT_SLASH_NAME}. */
|
|
15
15
|
export const ATTACHMENT_SLASH_PDF_NAME = [
|
|
@@ -18,7 +18,7 @@ export const ATTACHMENT_SLASH_PDF_NAME = [
|
|
|
18
18
|
];
|
|
19
19
|
export const ATTACHMENT_SLASH_PDF_DESCRIPTION = [
|
|
20
20
|
'com.labre.attachment.slash.pdf.description',
|
|
21
|
-
'Upload a PDF to
|
|
21
|
+
'Upload a PDF to the page.',
|
|
22
22
|
];
|
|
23
23
|
/** The toolbar's "Replace attachment" tooltip (`configs/toolbar.ts`). */
|
|
24
24
|
export const ATTACHMENT_TOOLBAR_REPLACE = [
|
|
@@ -15,7 +15,7 @@ const trackBaseProps = {
|
|
|
15
15
|
const openDocAction = {
|
|
16
16
|
id: 'a.open-doc',
|
|
17
17
|
icon: ExpandFullIcon(),
|
|
18
|
-
tooltip: 'Open this
|
|
18
|
+
tooltip: 'Open this page',
|
|
19
19
|
tooltipWording: TOOLBAR_OPEN_THIS_DOC,
|
|
20
20
|
run(ctx) {
|
|
21
21
|
const block = ctx.getCurrentBlockByType(EmbedHtmlBlockComponent);
|
|
@@ -18,7 +18,7 @@ export declare const builtinToolbarConfig: {
|
|
|
18
18
|
content(ctx: ToolbarContext): import("lit-html").TemplateResult<1> | null;
|
|
19
19
|
}, ToolbarAction, {
|
|
20
20
|
readonly id: "e.convert-to-linked-doc";
|
|
21
|
-
readonly tooltip: "Create Linked
|
|
21
|
+
readonly tooltip: "Create Linked Page";
|
|
22
22
|
readonly tooltipWording: import("../../../affine-shared/services/index.js").ChromeWording;
|
|
23
23
|
readonly icon: import("lit-html").TemplateResult<1>;
|
|
24
24
|
readonly run: (ctx: ToolbarContext) => void;
|
|
@@ -153,7 +153,7 @@ export const builtinToolbarConfig = {
|
|
|
153
153
|
captionAction('d.caption'),
|
|
154
154
|
{
|
|
155
155
|
id: 'e.convert-to-linked-doc',
|
|
156
|
-
tooltip: 'Create Linked
|
|
156
|
+
tooltip: 'Create Linked Page',
|
|
157
157
|
tooltipWording: EMBED_IFRAME_TOOLBAR_CREATE_LINKED_DOC,
|
|
158
158
|
icon: LinkedPageIcon(),
|
|
159
159
|
run(ctx) {
|
|
@@ -38,7 +38,7 @@ export declare const EMBED_IFRAME_TOOLBAR_ORIGINAL: ChromeWording;
|
|
|
38
38
|
/**
|
|
39
39
|
* An alias (L7 dedupe): the same Title Case word as
|
|
40
40
|
* {@link TOOLBAR_CREATE_LINKED_DOC_TITLE}, distinct from the sentence-case
|
|
41
|
-
* `TOOLBAR_CREATE_LINKED_DOC` chrome wording ("Create linked
|
|
41
|
+
* `TOOLBAR_CREATE_LINKED_DOC` chrome wording ("Create linked page").
|
|
42
42
|
*/
|
|
43
43
|
export declare const EMBED_IFRAME_TOOLBAR_CREATE_LINKED_DOC: ChromeWording;
|
|
44
44
|
/** The "no link" notification's message (`embed-iframe-block.ts`). */
|
|
@@ -13,7 +13,7 @@ export const EMBED_CANCEL = ACTION_CANCEL;
|
|
|
13
13
|
/* ── "Create a linked doc" prompt (`common/render-linked-doc.ts`) ────────── */
|
|
14
14
|
export const EMBED_PROMPT_TITLE_MESSAGE = [
|
|
15
15
|
'com.labre.embed.prompt.title-message',
|
|
16
|
-
'Enter a title for the new
|
|
16
|
+
'Enter a title for the new page.',
|
|
17
17
|
];
|
|
18
18
|
export const EMBED_DOC_CREATED_UNDO_MESSAGE = [
|
|
19
19
|
'com.labre.embed.toast.undo-message',
|
|
@@ -103,7 +103,7 @@ export const EMBED_IFRAME_TOOLBAR_ORIGINAL = [
|
|
|
103
103
|
/**
|
|
104
104
|
* An alias (L7 dedupe): the same Title Case word as
|
|
105
105
|
* {@link TOOLBAR_CREATE_LINKED_DOC_TITLE}, distinct from the sentence-case
|
|
106
|
-
* `TOOLBAR_CREATE_LINKED_DOC` chrome wording ("Create linked
|
|
106
|
+
* `TOOLBAR_CREATE_LINKED_DOC` chrome wording ("Create linked page").
|
|
107
107
|
*/
|
|
108
108
|
export const EMBED_IFRAME_TOOLBAR_CREATE_LINKED_DOC = TOOLBAR_CREATE_LINKED_DOC_TITLE;
|
|
109
109
|
/** The "no link" notification's message (`embed-iframe-block.ts`). */
|
|
@@ -10,14 +10,14 @@ import { LinkDocTooltip, NewDocTooltip } from './tooltips.js';
|
|
|
10
10
|
const linkedDocSlashMenuConfig = {
|
|
11
11
|
items: [
|
|
12
12
|
{
|
|
13
|
-
name: 'New
|
|
13
|
+
name: 'New Page',
|
|
14
14
|
nameWording: EMBED_DOC_SLASH_NEW_DOC_NAME,
|
|
15
|
-
description: 'Start a new
|
|
15
|
+
description: 'Start a new page.',
|
|
16
16
|
descriptionWording: EMBED_DOC_SLASH_NEW_DOC_DESCRIPTION,
|
|
17
17
|
icon: PlusIcon(),
|
|
18
18
|
tooltip: {
|
|
19
19
|
figure: NewDocTooltip,
|
|
20
|
-
caption: 'New
|
|
20
|
+
caption: 'New Page',
|
|
21
21
|
captionWording: EMBED_DOC_SLASH_NEW_DOC_NAME,
|
|
22
22
|
},
|
|
23
23
|
group: '3_Page@0',
|
|
@@ -33,14 +33,14 @@ const linkedDocSlashMenuConfig = {
|
|
|
33
33
|
},
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
|
-
name: 'Linked
|
|
36
|
+
name: 'Linked Page',
|
|
37
37
|
nameWording: EMBED_DOC_SLASH_LINKED_DOC_NAME,
|
|
38
|
-
description: 'Link to another
|
|
38
|
+
description: 'Link to another page.',
|
|
39
39
|
descriptionWording: EMBED_DOC_SLASH_LINKED_DOC_DESCRIPTION,
|
|
40
40
|
icon: LinkedPageIcon(),
|
|
41
41
|
tooltip: {
|
|
42
42
|
figure: LinkDocTooltip,
|
|
43
|
-
caption: 'Link
|
|
43
|
+
caption: 'Link Page',
|
|
44
44
|
captionWording: EMBED_DOC_SLASH_LINKED_DOC_CAPTION,
|
|
45
45
|
},
|
|
46
46
|
searchAlias: ['dual link'],
|
|
@@ -32,7 +32,7 @@ const openDocActions = [
|
|
|
32
32
|
{
|
|
33
33
|
mode: 'open-in-active-view',
|
|
34
34
|
id: 'a.open-in-active-view',
|
|
35
|
-
label: 'Open this
|
|
35
|
+
label: 'Open this page',
|
|
36
36
|
labelWording: TOOLBAR_OPEN_THIS_DOC,
|
|
37
37
|
icon: ExpandFullIcon(),
|
|
38
38
|
},
|
|
@@ -228,9 +228,9 @@ const builtinSurfaceToolbarConfig = {
|
|
|
228
228
|
conversionsActionGroup,
|
|
229
229
|
{
|
|
230
230
|
id: 'b.insert-to-page',
|
|
231
|
-
label: 'Insert to
|
|
231
|
+
label: 'Insert to page',
|
|
232
232
|
labelWording: EMBED_DOC_INSERT_TO_PAGE,
|
|
233
|
-
tooltip: 'Insert to
|
|
233
|
+
tooltip: 'Insert to page',
|
|
234
234
|
tooltipWording: EMBED_DOC_INSERT_TO_PAGE,
|
|
235
235
|
icon: InsertIntoPageIcon(),
|
|
236
236
|
run: ctx => {
|
|
@@ -6,7 +6,7 @@ export declare const EMBED_DOC_SLASH_LINKED_DOC_NAME: ChromeWording;
|
|
|
6
6
|
export declare const EMBED_DOC_SLASH_LINKED_DOC_CAPTION: ChromeWording;
|
|
7
7
|
export declare const EMBED_DOC_SLASH_LINKED_DOC_DESCRIPTION: ChromeWording;
|
|
8
8
|
/**
|
|
9
|
-
* The "Open
|
|
9
|
+
* The "Open page" dropdown button — its own `aria-label`/`tooltip` AND the
|
|
10
10
|
* dropdown's single entry label, in both `embed-linked-doc-block/configs/toolbar.ts`
|
|
11
11
|
* and `embed-synced-doc-block/configs/toolbar.ts`.
|
|
12
12
|
*/
|
|
@@ -5,30 +5,30 @@ import { NEW_DOC_LABEL, } from '../affine-shared/services/index.js';
|
|
|
5
5
|
export const EMBED_DOC_SLASH_NEW_DOC_NAME = NEW_DOC_LABEL;
|
|
6
6
|
export const EMBED_DOC_SLASH_NEW_DOC_DESCRIPTION = [
|
|
7
7
|
'com.labre.embed-doc.slash.new-doc.description',
|
|
8
|
-
'Start a new
|
|
8
|
+
'Start a new page.',
|
|
9
9
|
];
|
|
10
10
|
export const EMBED_DOC_SLASH_LINKED_DOC_NAME = [
|
|
11
11
|
'com.labre.embed-doc.slash.linked-doc.name',
|
|
12
|
-
'Linked
|
|
12
|
+
'Linked Page',
|
|
13
13
|
];
|
|
14
14
|
/** The tooltip's own word — distinct from the item's name above. */
|
|
15
15
|
export const EMBED_DOC_SLASH_LINKED_DOC_CAPTION = [
|
|
16
16
|
'com.labre.embed-doc.slash.linked-doc.caption',
|
|
17
|
-
'Link
|
|
17
|
+
'Link Page',
|
|
18
18
|
];
|
|
19
19
|
export const EMBED_DOC_SLASH_LINKED_DOC_DESCRIPTION = [
|
|
20
20
|
'com.labre.embed-doc.slash.linked-doc.description',
|
|
21
|
-
'Link to another
|
|
21
|
+
'Link to another page.',
|
|
22
22
|
];
|
|
23
23
|
/* ── Toolbar chrome shared by the linked-doc and synced-doc toolbars ───── */
|
|
24
24
|
/**
|
|
25
|
-
* The "Open
|
|
25
|
+
* The "Open page" dropdown button — its own `aria-label`/`tooltip` AND the
|
|
26
26
|
* dropdown's single entry label, in both `embed-linked-doc-block/configs/toolbar.ts`
|
|
27
27
|
* and `embed-synced-doc-block/configs/toolbar.ts`.
|
|
28
28
|
*/
|
|
29
29
|
export const EMBED_DOC_OPEN_DOC = [
|
|
30
30
|
'com.labre.embed-doc.toolbar.open-doc',
|
|
31
|
-
'Open
|
|
31
|
+
'Open page',
|
|
32
32
|
];
|
|
33
33
|
/** The card's "last updated" date label (`components/embed-synced-doc-card.ts`, `embed-linked-doc-block.ts`). */
|
|
34
34
|
export const EMBED_DOC_UPDATED_LABEL = [
|
|
@@ -37,7 +37,7 @@ export const EMBED_DOC_UPDATED_LABEL = [
|
|
|
37
37
|
];
|
|
38
38
|
export const EMBED_DOC_INSERT_TO_PAGE = [
|
|
39
39
|
'com.labre.embed-doc.toolbar.insert-to-page',
|
|
40
|
-
'Insert to
|
|
40
|
+
'Insert to page',
|
|
41
41
|
];
|
|
42
42
|
export const EMBED_DOC_DUPLICATE_AS_NOTE = [
|
|
43
43
|
'com.labre.embed-doc.toolbar.duplicate-as-note',
|
|
@@ -54,7 +54,7 @@ export const EMBED_DOC_DUPLICATE_AS_NOTE_TOOLTIP = [
|
|
|
54
54
|
*/
|
|
55
55
|
export const EMBED_DOC_CARD_EMPTY_CONTENT = [
|
|
56
56
|
'com.labre.embed-doc.card.empty-content',
|
|
57
|
-
'This is a linked
|
|
57
|
+
'This is a linked page, you can add content here.',
|
|
58
58
|
];
|
|
59
59
|
/**
|
|
60
60
|
* This package's contribution to the translation-key manifest, listed in
|
|
@@ -22,9 +22,9 @@ const builtinSurfaceToolbarConfig = {
|
|
|
22
22
|
actions: [
|
|
23
23
|
{
|
|
24
24
|
id: 'a.insert-into-page',
|
|
25
|
-
label: 'Insert into
|
|
25
|
+
label: 'Insert into Page',
|
|
26
26
|
labelWording: FRAME_TOOLBAR_INSERT_INTO_PAGE,
|
|
27
|
-
tooltip: 'Insert into
|
|
27
|
+
tooltip: 'Insert into Page',
|
|
28
28
|
tooltipWording: FRAME_TOOLBAR_INSERT_INTO_PAGE,
|
|
29
29
|
icon: InsertIntoPageIcon(),
|
|
30
30
|
when: ctx => ctx.getSurfaceModelsByType(FrameBlockModel).length === 1,
|
|
@@ -45,7 +45,7 @@ export const FRAME_TOOLBAR_INSERT_INTO_PAGE = TOOLBAR_INSERT_INTO_PAGE;
|
|
|
45
45
|
*/
|
|
46
46
|
export const FRAME_TOAST_INSERTED_MESSAGE = [
|
|
47
47
|
'com.labre.frame.toast.inserted-message',
|
|
48
|
-
'Frame has been inserted into
|
|
48
|
+
'Frame has been inserted into page',
|
|
49
49
|
];
|
|
50
50
|
export const FRAME_TOOLBAR_UNGROUP = TOOLBAR_UNGROUP;
|
|
51
51
|
export const FRAME_TOOLBAR_BACKGROUND = [
|
|
@@ -161,23 +161,23 @@ export const NOTE_DISPLAY_MODE_PAGE = DISPLAY_MODE_PAGE;
|
|
|
161
161
|
*/
|
|
162
162
|
export const NOTE_TOAST_DISPLAYED_IN_PAGE_MODE = [
|
|
163
163
|
'com.labre.note.toast.displayed-in-page-mode',
|
|
164
|
-
'Note displayed in
|
|
164
|
+
'Note displayed in Page Mode',
|
|
165
165
|
];
|
|
166
166
|
export const NOTE_TOAST_REMOVED_FROM_PAGE_BODY = [
|
|
167
167
|
'com.labre.note.toast.removed-from-page.body',
|
|
168
|
-
'Content removed from your
|
|
168
|
+
'Content removed from your page. Find it in the TOC for quick navigation.',
|
|
169
169
|
];
|
|
170
170
|
export const NOTE_TOAST_ADDED_TO_PAGE_BODY = [
|
|
171
171
|
'com.labre.note.toast.added-to-page.body',
|
|
172
|
-
'Content added to your
|
|
172
|
+
'Content added to your page. Find it in the TOC for quick navigation.',
|
|
173
173
|
];
|
|
174
174
|
export const NOTE_TOAST_REMOVED_FROM_PAGE_BODY_NO_TOC = [
|
|
175
175
|
'com.labre.note.toast.removed-from-page.body-no-toc',
|
|
176
|
-
'Content removed from your
|
|
176
|
+
'Content removed from your page.',
|
|
177
177
|
];
|
|
178
178
|
export const NOTE_TOAST_ADDED_TO_PAGE_BODY_NO_TOC = [
|
|
179
179
|
'com.labre.note.toast.added-to-page.body-no-toc',
|
|
180
|
-
'Content added to your
|
|
180
|
+
'Content added to your page.',
|
|
181
181
|
];
|
|
182
182
|
export const NOTE_TOAST_VIEW_IN_TOC = [
|
|
183
183
|
'com.labre.note.toast.view-in-toc',
|
|
@@ -185,15 +185,15 @@ export const NOTE_TOAST_VIEW_IN_TOC = [
|
|
|
185
185
|
];
|
|
186
186
|
export const NOTE_TOOLBAR_DISPLAY_IN_PAGE = [
|
|
187
187
|
'com.labre.note.toolbar.display-in-page',
|
|
188
|
-
'Display in
|
|
188
|
+
'Display in Page',
|
|
189
189
|
];
|
|
190
190
|
export const NOTE_TOOLBAR_DISPLAYED_IN_PAGE = [
|
|
191
191
|
'com.labre.note.toolbar.displayed-in-page',
|
|
192
|
-
'Displayed in
|
|
192
|
+
'Displayed in Page',
|
|
193
193
|
];
|
|
194
194
|
export const NOTE_TOOLBAR_REMOVE_FROM_PAGE_TOOLTIP = [
|
|
195
195
|
'com.labre.note.toolbar.remove-from-page-tooltip',
|
|
196
|
-
'This note is part of
|
|
196
|
+
'This note is part of Page Mode. Click to remove it from the page.',
|
|
197
197
|
];
|
|
198
198
|
export const NOTE_TOOLBAR_SLICER = [
|
|
199
199
|
'com.labre.note.toolbar.slicer',
|
|
@@ -91,9 +91,9 @@ const copyDocLink = {
|
|
|
91
91
|
// carry a default chord, and the shortcut namespace would file it as a
|
|
92
92
|
// keymap row for a translator.
|
|
93
93
|
labelKey: 'com.labre.command.doc.copy-link',
|
|
94
|
-
labelFallback: 'Copy
|
|
94
|
+
labelFallback: 'Copy page link',
|
|
95
95
|
descriptionKey: 'com.labre.command.doc.copy-link.description',
|
|
96
|
-
descriptionFallback: 'Copy a link to this
|
|
96
|
+
descriptionFallback: 'Copy a link to this page, anchored on the selection, so it can be ' +
|
|
97
97
|
'pasted into a text as a reference.',
|
|
98
98
|
keywords: ['link', 'url', 'share', 'reference'],
|
|
99
99
|
surfaces: ['palette', 'agent'],
|
|
@@ -30,7 +30,7 @@ export declare const builtinToolbarConfig: {
|
|
|
30
30
|
readonly run: ({ host }: import("../../affine-shared/services/index.js").ToolbarContext) => void;
|
|
31
31
|
}, {
|
|
32
32
|
readonly id: "f.convert-to-linked-doc";
|
|
33
|
-
readonly tooltip: "Create Linked
|
|
33
|
+
readonly tooltip: "Create Linked Page";
|
|
34
34
|
readonly tooltipWording: import("../../affine-shared/services/index.js").ChromeWording;
|
|
35
35
|
readonly icon: import("lit-html").TemplateResult<1>;
|
|
36
36
|
readonly when: ({ chain, std }: import("../../affine-shared/services/index.js").ToolbarContext) => boolean;
|
|
@@ -168,7 +168,7 @@ const turnIntoDatabase = {
|
|
|
168
168
|
};
|
|
169
169
|
const turnIntoLinkedDoc = {
|
|
170
170
|
id: 'f.convert-to-linked-doc',
|
|
171
|
-
tooltip: 'Create Linked
|
|
171
|
+
tooltip: 'Create Linked Page',
|
|
172
172
|
tooltipWording: ROOT_TOOLBAR_CREATE_LINKED_DOC,
|
|
173
173
|
icon: LinkedPageIcon(),
|
|
174
174
|
when({ chain, std }) {
|
|
@@ -118,7 +118,7 @@ export declare const builtinMiscToolbarConfig: {
|
|
|
118
118
|
id: "d.conversions";
|
|
119
119
|
actions: [{
|
|
120
120
|
readonly id: "a.turn-into-linked-doc";
|
|
121
|
-
readonly label: "Turn into linked
|
|
121
|
+
readonly label: "Turn into linked page";
|
|
122
122
|
readonly labelWording: import("../../../../affine-shared/services/index.js").ChromeWording;
|
|
123
123
|
readonly icon: import("lit-html").TemplateResult<1>;
|
|
124
124
|
readonly when: (ctx: ToolbarContext) => boolean;
|
|
@@ -64,7 +64,7 @@ export declare const moreActions: [{
|
|
|
64
64
|
readonly id: "d.conversions";
|
|
65
65
|
readonly actions: [{
|
|
66
66
|
readonly id: "a.turn-into-linked-doc";
|
|
67
|
-
readonly label: "Turn into linked
|
|
67
|
+
readonly label: "Turn into linked page";
|
|
68
68
|
readonly labelWording: import("../../../../affine-shared/services/index.js").ChromeWording;
|
|
69
69
|
readonly icon: import("lit-html").TemplateResult<1>;
|
|
70
70
|
readonly when: (ctx: ToolbarContext) => boolean;
|
|
@@ -15,7 +15,7 @@ export declare const ROOT_TOOLBAR_CREATE_TABLE: ChromeWording;
|
|
|
15
15
|
* An alias (L7 dedupe): the same Title Case word as
|
|
16
16
|
* {@link TOOLBAR_CREATE_LINKED_DOC_TITLE}, distinct from the shared
|
|
17
17
|
* sentence-case `TOOLBAR_CREATE_LINKED_DOC` chrome wording
|
|
18
|
-
* (`com.labre.toolbar.create-linked-doc`, "Create linked
|
|
18
|
+
* (`com.labre.toolbar.create-linked-doc`, "Create linked page").
|
|
19
19
|
*/
|
|
20
20
|
export declare const ROOT_TOOLBAR_CREATE_LINKED_DOC: ChromeWording;
|
|
21
21
|
export declare const ROOT_ALIGNMENT_MENU_ARIA: ChromeWording;
|
|
@@ -19,7 +19,7 @@ export const ROOT_TOOLBAR_CREATE_TABLE = [
|
|
|
19
19
|
* An alias (L7 dedupe): the same Title Case word as
|
|
20
20
|
* {@link TOOLBAR_CREATE_LINKED_DOC_TITLE}, distinct from the shared
|
|
21
21
|
* sentence-case `TOOLBAR_CREATE_LINKED_DOC` chrome wording
|
|
22
|
-
* (`com.labre.toolbar.create-linked-doc`, "Create linked
|
|
22
|
+
* (`com.labre.toolbar.create-linked-doc`, "Create linked page").
|
|
23
23
|
*/
|
|
24
24
|
export const ROOT_TOOLBAR_CREATE_LINKED_DOC = TOOLBAR_CREATE_LINKED_DOC_TITLE;
|
|
25
25
|
/* ── The edgeless alignment menu (`edgeless/configs/toolbar/alignment.ts`) ── */
|
|
@@ -105,7 +105,7 @@ export const ROOT_TOOLBAR_SEND_BACKWARD = [
|
|
|
105
105
|
export const ROOT_TOOLBAR_RELOAD = TOOLBAR_RELOAD;
|
|
106
106
|
export const ROOT_TOOLBAR_TURN_INTO_LINKED_DOC = [
|
|
107
107
|
'com.labre.root.toolbar.turn-into-linked-doc',
|
|
108
|
-
'Turn into linked
|
|
108
|
+
'Turn into linked page',
|
|
109
109
|
];
|
|
110
110
|
export const ROOT_TOOLBAR_EDIT_LINK = [
|
|
111
111
|
'com.labre.root.toolbar.edit-link',
|
|
@@ -58,7 +58,7 @@ const saveGridForEveryone = {
|
|
|
58
58
|
labelKey: 'com.labre.command.canvas.grid.save-for-everyone',
|
|
59
59
|
labelFallback: 'Save the grid for everyone',
|
|
60
60
|
descriptionKey: 'com.labre.command.canvas.grid.save-for-everyone.description',
|
|
61
|
-
descriptionFallback: 'Make the grid as you see it now the setting of this
|
|
61
|
+
descriptionFallback: 'Make the grid as you see it now the setting of this page, for everyone who opens it.',
|
|
62
62
|
category: 'display',
|
|
63
63
|
keywords: ['grid', 'dots', 'background', 'document'],
|
|
64
64
|
surfaces: ['palette', 'agent', 'view-menu'],
|
|
@@ -292,7 +292,7 @@ const IMPORT_DEFAULT_NAME_FALLBACK = 'Imported diagram';
|
|
|
292
292
|
* because nothing is wrong with the FILE.
|
|
293
293
|
*/
|
|
294
294
|
const IMPORT_READONLY_KEY = 'com.labre.interchange.import.readonly';
|
|
295
|
-
const IMPORT_READONLY_FALLBACK = 'This
|
|
295
|
+
const IMPORT_READONLY_FALLBACK = 'This page became read-only while the file was being read, so nothing was imported.';
|
|
296
296
|
const IMPORT_REMARKS_KEY = 'com.labre.interchange.import.remarks';
|
|
297
297
|
const IMPORT_REMARKS_FALLBACK = 'What the import could not keep as it was';
|
|
298
298
|
const IMPORT_CONSOLE_KEY = 'com.labre.interchange.import.console';
|
|
@@ -293,7 +293,7 @@ const hideForEveryone = {
|
|
|
293
293
|
labelKey: 'com.labre.command.canvas.visibility.hide-for-everyone',
|
|
294
294
|
labelFallback: 'Hide for everyone',
|
|
295
295
|
descriptionKey: 'com.labre.command.canvas.visibility.hide-for-everyone.description',
|
|
296
|
-
descriptionFallback: 'Hide the selected elements for everyone who opens this
|
|
296
|
+
descriptionFallback: 'Hide the selected elements for everyone who opens this page. They stay in the page and in the selection pane.',
|
|
297
297
|
surfaces: ['palette', 'agent'],
|
|
298
298
|
scope: 'edgeless',
|
|
299
299
|
defaultKeys: { mac: [], other: [] },
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import type { GfxController } from '../../std/gfx/index.js';
|
|
2
2
|
import { Overlay } from './overlay.js';
|
|
3
3
|
/**
|
|
4
|
-
* Draws the transient emphasis
|
|
5
|
-
*
|
|
4
|
+
* Draws the transient emphasis around the elements held by `gfx.highlight`
|
|
5
|
+
* (`ElementHighlightManager`).
|
|
6
|
+
*
|
|
7
|
+
* The emphasis is the canvas's existing vocabulary, a square border on the
|
|
8
|
+
* element's bounds like the selection frame (`edgeless-selected-rect`), not a
|
|
9
|
+
* second, detached ring: the product owner asked for the border alone after
|
|
10
|
+
* the P1 recette, so a selection-pane hover reads as « this one » and not as a
|
|
11
|
+
* new kind of mark.
|
|
6
12
|
*
|
|
7
13
|
* The overlay is a pure renderer: it owns no state, reads nothing from the
|
|
8
14
|
* store and mutates nothing, which makes it safe on a read-only editor.
|
|
@@ -2,15 +2,17 @@ import { getChromeAccentColor } from '../../affine-shared/services/index.js';
|
|
|
2
2
|
import { DisposableGroup } from '../../global/disposable/index.js';
|
|
3
3
|
import { effect } from '@preact/signals-core';
|
|
4
4
|
import { Overlay } from './overlay.js';
|
|
5
|
-
/**
|
|
5
|
+
/** Border thickness, in screen pixels: the selection frame's. */
|
|
6
6
|
const HIGHLIGHT_STROKE_WIDTH = 2;
|
|
7
|
-
/** Gap between the element bounds and the ring, in screen pixels. */
|
|
8
|
-
const HIGHLIGHT_GAP = 4;
|
|
9
|
-
/** Ring corner radius, in screen pixels. */
|
|
10
|
-
const HIGHLIGHT_RADIUS = 4;
|
|
11
7
|
/**
|
|
12
|
-
* Draws the transient emphasis
|
|
13
|
-
*
|
|
8
|
+
* Draws the transient emphasis around the elements held by `gfx.highlight`
|
|
9
|
+
* (`ElementHighlightManager`).
|
|
10
|
+
*
|
|
11
|
+
* The emphasis is the canvas's existing vocabulary, a square border on the
|
|
12
|
+
* element's bounds like the selection frame (`edgeless-selected-rect`), not a
|
|
13
|
+
* second, detached ring: the product owner asked for the border alone after
|
|
14
|
+
* the P1 recette, so a selection-pane hover reads as « this one » and not as a
|
|
15
|
+
* new kind of mark.
|
|
14
16
|
*
|
|
15
17
|
* The overlay is a pure renderer: it owns no state, reads nothing from the
|
|
16
18
|
* store and mutates nothing, which makes it safe on a read-only editor.
|
|
@@ -37,8 +39,6 @@ export class ElementHighlightOverlay extends Overlay {
|
|
|
37
39
|
if (elements.length === 0)
|
|
38
40
|
return;
|
|
39
41
|
const { zoom } = this.gfx.viewport;
|
|
40
|
-
const gap = HIGHLIGHT_GAP / zoom;
|
|
41
|
-
const radius = HIGHLIGHT_RADIUS / zoom;
|
|
42
42
|
ctx.save();
|
|
43
43
|
ctx.strokeStyle = this._strokeColor;
|
|
44
44
|
ctx.lineWidth = HIGHLIGHT_STROKE_WIDTH / zoom;
|
|
@@ -46,14 +46,12 @@ export class ElementHighlightOverlay extends Overlay {
|
|
|
46
46
|
const [x, y, w, h] = element.deserializedXYWH;
|
|
47
47
|
ctx.save();
|
|
48
48
|
// Rotate around the element center so rotated elements keep a tight
|
|
49
|
-
//
|
|
49
|
+
// border; connectors and other non-rotatable elements use their bound box.
|
|
50
50
|
ctx.translate(x + w / 2, y + h / 2);
|
|
51
51
|
if (element.rotate) {
|
|
52
52
|
ctx.rotate((element.rotate * Math.PI) / 180);
|
|
53
53
|
}
|
|
54
|
-
ctx.
|
|
55
|
-
ctx.roundRect(-w / 2 - gap, -h / 2 - gap, w + gap * 2, h + gap * 2, radius);
|
|
56
|
-
ctx.stroke();
|
|
54
|
+
ctx.strokeRect(-w / 2, -h / 2, w, h);
|
|
57
55
|
ctx.restore();
|
|
58
56
|
}
|
|
59
57
|
ctx.restore();
|
|
@@ -94,35 +94,35 @@ export const SURFACE_REF_PLACEHOLDER_NOT_AVAILABLE = [
|
|
|
94
94
|
*/
|
|
95
95
|
export const SURFACE_REF_PLACEHOLDER_DELETED_FRAME = [
|
|
96
96
|
'com.labre.surface-ref.placeholder.deleted.frame',
|
|
97
|
-
'The frame is deleted or not in this
|
|
97
|
+
'The frame is deleted or not in this page.',
|
|
98
98
|
];
|
|
99
99
|
export const SURFACE_REF_PLACEHOLDER_DELETED_GROUP = [
|
|
100
100
|
'com.labre.surface-ref.placeholder.deleted.group',
|
|
101
|
-
'The group is deleted or not in this
|
|
101
|
+
'The group is deleted or not in this page.',
|
|
102
102
|
];
|
|
103
103
|
export const SURFACE_REF_PLACEHOLDER_DELETED_MINDMAP = [
|
|
104
104
|
'com.labre.surface-ref.placeholder.deleted.mindmap',
|
|
105
|
-
'The mind map is deleted or not in this
|
|
105
|
+
'The mind map is deleted or not in this page.',
|
|
106
106
|
];
|
|
107
107
|
export const SURFACE_REF_PLACEHOLDER_DELETED_EDGELESS = [
|
|
108
108
|
'com.labre.surface-ref.placeholder.deleted.edgeless',
|
|
109
|
-
'The canvas content is deleted or not in this
|
|
109
|
+
'The canvas content is deleted or not in this page.',
|
|
110
110
|
];
|
|
111
111
|
export const SURFACE_REF_PLACEHOLDER_CANNOT_DISPLAY_FRAME = [
|
|
112
112
|
'com.labre.surface-ref.placeholder.cannot-display.frame',
|
|
113
|
-
'The frame is inserted but cannot display in canvas mode. Switch to
|
|
113
|
+
'The frame is inserted but cannot display in canvas mode. Switch to page mode to view the block.',
|
|
114
114
|
];
|
|
115
115
|
export const SURFACE_REF_PLACEHOLDER_CANNOT_DISPLAY_GROUP = [
|
|
116
116
|
'com.labre.surface-ref.placeholder.cannot-display.group',
|
|
117
|
-
'The group is inserted but cannot display in canvas mode. Switch to
|
|
117
|
+
'The group is inserted but cannot display in canvas mode. Switch to page mode to view the block.',
|
|
118
118
|
];
|
|
119
119
|
export const SURFACE_REF_PLACEHOLDER_CANNOT_DISPLAY_MINDMAP = [
|
|
120
120
|
'com.labre.surface-ref.placeholder.cannot-display.mindmap',
|
|
121
|
-
'The mind map is inserted but cannot display in canvas mode. Switch to
|
|
121
|
+
'The mind map is inserted but cannot display in canvas mode. Switch to page mode to view the block.',
|
|
122
122
|
];
|
|
123
123
|
export const SURFACE_REF_PLACEHOLDER_CANNOT_DISPLAY_EDGELESS = [
|
|
124
124
|
'com.labre.surface-ref.placeholder.cannot-display.edgeless',
|
|
125
|
-
'The canvas content is inserted but cannot display in canvas mode. Switch to
|
|
125
|
+
'The canvas content is inserted but cannot display in canvas mode. Switch to page mode to view the block.',
|
|
126
126
|
];
|
|
127
127
|
/**
|
|
128
128
|
* Per-kind table joining the two placeholder sentences above to the
|
|
@@ -117,7 +117,7 @@ export const EMBED_CARD_TITLE_ALIAS_PLACEHOLDER = [
|
|
|
117
117
|
];
|
|
118
118
|
export const EMBED_CARD_DESCRIPTION_ALIAS_PLACEHOLDER = [
|
|
119
119
|
'com.labre.embed.card.description-alias-placeholder',
|
|
120
|
-
'Add description alias (empty to inherit
|
|
120
|
+
'Add description alias (empty to inherit page content)',
|
|
121
121
|
];
|
|
122
122
|
export const EMBED_CARD_TITLE_PLACEHOLDER = [
|
|
123
123
|
'com.labre.embed.card.title-placeholder',
|
|
@@ -292,7 +292,7 @@ export const EMOJI_GROUP_WORDINGS = {
|
|
|
292
292
|
/* ── Linked doc title chip ───────────────────────────────────────────── */
|
|
293
293
|
export const DOC_TITLE_ARIA = [
|
|
294
294
|
'com.labre.linked-doc.title-aria',
|
|
295
|
-
'
|
|
295
|
+
'Page title',
|
|
296
296
|
];
|
|
297
297
|
/* ── Linked-doc notifications ─────────────────────────────────────────── */
|
|
298
298
|
export const NOTIFY_SWITCHED_TO_CARD_TITLE = [
|
|
@@ -309,7 +309,7 @@ export const NOTIFY_SWITCHED_TO_EMBED_TITLE = [
|
|
|
309
309
|
];
|
|
310
310
|
export const NOTIFY_SWITCHED_TO_EMBED_MESSAGE = [
|
|
311
311
|
'com.labre.notify.linked-doc.switched-to-embed.message',
|
|
312
|
-
'Custom alias removed. The linked
|
|
312
|
+
'Custom alias removed. The linked page now displays the original title and description.',
|
|
313
313
|
];
|
|
314
314
|
export const NOTIFY_CLEARED_ALIASES_TITLE = [
|
|
315
315
|
'com.labre.notify.linked-doc.cleared-aliases.title',
|
|
@@ -317,17 +317,17 @@ export const NOTIFY_CLEARED_ALIASES_TITLE = [
|
|
|
317
317
|
];
|
|
318
318
|
export const NOTIFY_CLEARED_ALIASES_MESSAGE = [
|
|
319
319
|
'com.labre.notify.linked-doc.cleared-aliases.message',
|
|
320
|
-
'Card view has been restored to original
|
|
320
|
+
'Card view has been restored to original page title and description. All custom aliases have been removed.',
|
|
321
321
|
];
|
|
322
322
|
/* ── Open-doc dropdown ────────────────────────────────────────────────── */
|
|
323
323
|
export const OPEN_LABEL = ['com.labre.open-doc.open', 'Open'];
|
|
324
324
|
export const OPEN_DOC_MENU_ARIA = [
|
|
325
325
|
'com.labre.open-doc.menu-aria',
|
|
326
|
-
'Open
|
|
326
|
+
'Open page menu',
|
|
327
327
|
];
|
|
328
328
|
export const OPEN_DOC_WITH_ARIA = [
|
|
329
329
|
'com.labre.open-doc.with-aria',
|
|
330
|
-
'Open
|
|
330
|
+
'Open page with',
|
|
331
331
|
];
|
|
332
332
|
/* ── Resource popover (attachment / image not-found or retrieve error) ─ */
|
|
333
333
|
/**
|
|
@@ -58,7 +58,7 @@ export const TITLE_BAND_CLEAR = [
|
|
|
58
58
|
*/
|
|
59
59
|
export const TITLE_BAND_NOT_SHOWN = [
|
|
60
60
|
'com.labre.title-band.not-shown',
|
|
61
|
-
'Not shown in this
|
|
61
|
+
'Not shown in this page',
|
|
62
62
|
];
|
|
63
63
|
/** Every wording this package declares, in the order it renders them. */
|
|
64
64
|
export const DOC_TITLE_WORDINGS = [
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const groupToolbarConfig: {
|
|
2
2
|
readonly actions: [{
|
|
3
3
|
readonly id: "a.insert-into-page";
|
|
4
|
-
readonly label: "Insert into
|
|
4
|
+
readonly label: "Insert into Page";
|
|
5
5
|
readonly labelWording: import("../../affine-shared/services/index.js").ChromeWording;
|
|
6
|
-
readonly tooltip: "Insert into
|
|
6
|
+
readonly tooltip: "Insert into Page";
|
|
7
7
|
readonly tooltipWording: import("../../affine-shared/services/index.js").ChromeWording;
|
|
8
8
|
readonly icon: import("lit-html").TemplateResult<1>;
|
|
9
9
|
readonly when: (ctx: import("../../affine-shared/services/index.js").ToolbarContext) => boolean;
|
|
@@ -13,9 +13,9 @@ export const groupToolbarConfig = {
|
|
|
13
13
|
actions: [
|
|
14
14
|
{
|
|
15
15
|
id: 'a.insert-into-page',
|
|
16
|
-
label: 'Insert into
|
|
16
|
+
label: 'Insert into Page',
|
|
17
17
|
labelWording: GROUP_TOOLBAR_INSERT_INTO_PAGE,
|
|
18
|
-
tooltip: 'Insert into
|
|
18
|
+
tooltip: 'Insert into Page',
|
|
19
19
|
tooltipWording: GROUP_TOOLBAR_INSERT_INTO_PAGE,
|
|
20
20
|
icon: InsertIntoPageIcon(),
|
|
21
21
|
when: ctx => ctx.getSurfaceModelsByType(GroupElementModel).length === 1,
|
|
@@ -20,7 +20,7 @@ export const GROUP_WORDINGS = [GROUP_SEED_NAME];
|
|
|
20
20
|
export const GROUP_TOOLBAR_INSERT_INTO_PAGE = TOOLBAR_INSERT_INTO_PAGE;
|
|
21
21
|
export const GROUP_TOAST_INSERTED = [
|
|
22
22
|
'com.labre.group.toast.inserted',
|
|
23
|
-
'Group has been inserted into
|
|
23
|
+
'Group has been inserted into page',
|
|
24
24
|
];
|
|
25
25
|
export const GROUP_TOOLBAR_RENAME = TOOLBAR_RENAME;
|
|
26
26
|
export const GROUP_TOOLBAR_UNGROUP = TOOLBAR_UNGROUP;
|
|
@@ -19,7 +19,7 @@ export const GFX_NOTE_SHADOW_FLOATION = [
|
|
|
19
19
|
/* ── `./components/note-display-mode-panel.ts` ────────────────────────────
|
|
20
20
|
* A different wording from `blocks/note`'s own display-mode dropdown (which
|
|
21
21
|
* says "Both" / "Edgeless" / "Page"): this panel's labels read "In Both" /
|
|
22
|
-
* "In
|
|
22
|
+
* "In Page Only" / "In Canvas Only", so they get their own keys.
|
|
23
23
|
*/
|
|
24
24
|
export const GFX_NOTE_DISPLAY_MODE_BOTH = [
|
|
25
25
|
'com.labre.gfx-note.display-mode.in-both',
|
|
@@ -27,7 +27,7 @@ export const GFX_NOTE_DISPLAY_MODE_BOTH = [
|
|
|
27
27
|
];
|
|
28
28
|
export const GFX_NOTE_DISPLAY_MODE_PAGE_ONLY = [
|
|
29
29
|
'com.labre.gfx-note.display-mode.in-page-only',
|
|
30
|
-
'In
|
|
30
|
+
'In Page Only',
|
|
31
31
|
];
|
|
32
32
|
export const GFX_NOTE_DISPLAY_MODE_EDGELESS_ONLY = [
|
|
33
33
|
'com.labre.gfx-note.display-mode.in-edgeless-only',
|
|
@@ -2,7 +2,7 @@ import type { EditorHost } from '../../std/index.js';
|
|
|
2
2
|
import { type ExtensionType, type Store } from '../../store/index.js';
|
|
3
3
|
/**
|
|
4
4
|
* Creates the new doc that the linked-doc features populate (the edgeless
|
|
5
|
-
* "Create linked
|
|
5
|
+
* "Create linked page" / "Turn into linked page" actions). By default this is a
|
|
6
6
|
* fresh in-workspace doc; a host app can override it to ALSO persist or register
|
|
7
7
|
* the doc (assign a stored id, create a metadata row, attach sync) before the
|
|
8
8
|
* editor writes blocks into the returned store.
|
|
@@ -457,8 +457,8 @@ export declare const ACTION_CANCEL: ChromeWording;
|
|
|
457
457
|
export declare const COLOR_LABEL: ChromeWording;
|
|
458
458
|
export declare const FILL_COLOR_LABEL: ChromeWording;
|
|
459
459
|
/**
|
|
460
|
-
* "Create Linked
|
|
461
|
-
* {@link TOOLBAR_CREATE_LINKED_DOC} above ("Create linked
|
|
460
|
+
* "Create Linked Page" - Title Case, unlike the sentence-case
|
|
461
|
+
* {@link TOOLBAR_CREATE_LINKED_DOC} above ("Create linked page"): a different
|
|
462
462
|
* literal, so it keeps its own key. Said identically by the root block's
|
|
463
463
|
* edgeless "More" sub-menu AND the generic iframe embed's own toolbar. Was
|
|
464
464
|
* `ROOT_TOOLBAR_CREATE_LINKED_DOC` (`blocks/root`).
|
|
@@ -516,7 +516,7 @@ export declare const TOOLBAR_UNGROUP: ChromeWording;
|
|
|
516
516
|
*/
|
|
517
517
|
export declare const MINDMAP_NAME: ChromeWording;
|
|
518
518
|
/**
|
|
519
|
-
* "New
|
|
519
|
+
* "New Page" — the "@" menu's own popover group, said identically by the
|
|
520
520
|
* linked-doc embed's slash-menu item. Was `LINKED_DOC_NEW_DOC`
|
|
521
521
|
* (`widgets/linked-doc`).
|
|
522
522
|
*/
|
|
@@ -38,15 +38,15 @@ export const TOAST_COPIED_TO_CLIPBOARD = [
|
|
|
38
38
|
];
|
|
39
39
|
export const TOAST_LINKED_DOC_CREATED = [
|
|
40
40
|
'com.labre.toast.linked-doc-created',
|
|
41
|
-
'Linked
|
|
41
|
+
'Linked page created',
|
|
42
42
|
];
|
|
43
43
|
export const TOAST_NOTE_REMOVED_FROM_PAGE = [
|
|
44
44
|
'com.labre.toast.note-removed-from-page-mode',
|
|
45
|
-
'Note removed from
|
|
45
|
+
'Note removed from Page Mode',
|
|
46
46
|
];
|
|
47
47
|
export const TOAST_FRAME_INSERTED_INTO_PAGE = [
|
|
48
48
|
'com.labre.toast.frame-inserted-into-page',
|
|
49
|
-
'Frame inserted into
|
|
49
|
+
'Frame inserted into Page.',
|
|
50
50
|
];
|
|
51
51
|
export const TOAST_NO_LINK_FOUND = [
|
|
52
52
|
'com.labre.toast.no-link-found',
|
|
@@ -90,7 +90,7 @@ export const TOOLBAR_MORE = ['com.labre.toolbar.more', 'More'];
|
|
|
90
90
|
export const TOOLBAR_LINK = ['com.labre.toolbar.link', 'Link'];
|
|
91
91
|
export const TOOLBAR_CREATE_LINKED_DOC = [
|
|
92
92
|
'com.labre.toolbar.create-linked-doc',
|
|
93
|
-
'Create linked
|
|
93
|
+
'Create linked page',
|
|
94
94
|
];
|
|
95
95
|
export const TOOLBAR_DRAW_CONNECTOR = [
|
|
96
96
|
'com.labre.toolbar.draw-connector',
|
|
@@ -147,19 +147,19 @@ export const TOOLBAR_EMBED_VIEW = [
|
|
|
147
147
|
*/
|
|
148
148
|
export const LINKED_DOC_DELETED = [
|
|
149
149
|
'com.labre.embed.linked-doc.deleted',
|
|
150
|
-
'This linked
|
|
150
|
+
'This linked page is deleted.',
|
|
151
151
|
];
|
|
152
152
|
export const LINKED_DOC_FAILED = [
|
|
153
153
|
'com.labre.embed.linked-doc.failed',
|
|
154
|
-
'This linked
|
|
154
|
+
'This linked page failed to load.',
|
|
155
155
|
];
|
|
156
156
|
export const LINKED_DOC_EMPTY_PREVIEW = [
|
|
157
157
|
'com.labre.embed.linked-doc.empty-preview',
|
|
158
|
-
'Preview of the
|
|
158
|
+
'Preview of the page will be displayed here.',
|
|
159
159
|
];
|
|
160
160
|
export const SYNCED_DOC_EMPTY_PREVIEW = [
|
|
161
161
|
'com.labre.embed.synced-doc.empty-preview',
|
|
162
|
-
'Preview of the
|
|
162
|
+
'Preview of the page will be displayed here.',
|
|
163
163
|
];
|
|
164
164
|
/* ── The board toolbars every framework shares ────────────────────────── */
|
|
165
165
|
/**
|
|
@@ -615,7 +615,7 @@ export const CHROME_UNTITLED = DOC_UNTITLED;
|
|
|
615
615
|
/** The doc-display-meta service's own fallback for a doc that no longer exists. */
|
|
616
616
|
export const CHROME_DELETED_DOC = [
|
|
617
617
|
'com.labre.doc.deleted',
|
|
618
|
-
'Deleted
|
|
618
|
+
'Deleted page',
|
|
619
619
|
];
|
|
620
620
|
/* ── Palette swatch names (default theme) ──────────────────────────────
|
|
621
621
|
*
|
|
@@ -908,7 +908,7 @@ export const TOOLBAR_PLAYBACK_SETTINGS = [
|
|
|
908
908
|
];
|
|
909
909
|
export const TOOLBAR_OPEN_THIS_DOC = [
|
|
910
910
|
'com.labre.toolbar.open-this-doc',
|
|
911
|
-
'Open this
|
|
911
|
+
'Open this page',
|
|
912
912
|
];
|
|
913
913
|
/**
|
|
914
914
|
* The card-style switcher's four wordings — the bookmark's, the linked-doc
|
|
@@ -993,7 +993,7 @@ export const DISPLAY_MODE_EDGELESS = [
|
|
|
993
993
|
];
|
|
994
994
|
export const DISPLAY_MODE_PAGE = [
|
|
995
995
|
'com.labre.note.display-mode.page',
|
|
996
|
-
'
|
|
996
|
+
'Page',
|
|
997
997
|
];
|
|
998
998
|
export const DISPLAY_MODE_SHOW_IN = [
|
|
999
999
|
'com.labre.note.display-mode.show-in',
|
|
@@ -1024,15 +1024,15 @@ export const FILL_COLOR_LABEL = [
|
|
|
1024
1024
|
'Fill color',
|
|
1025
1025
|
];
|
|
1026
1026
|
/**
|
|
1027
|
-
* "Create Linked
|
|
1028
|
-
* {@link TOOLBAR_CREATE_LINKED_DOC} above ("Create linked
|
|
1027
|
+
* "Create Linked Page" - Title Case, unlike the sentence-case
|
|
1028
|
+
* {@link TOOLBAR_CREATE_LINKED_DOC} above ("Create linked page"): a different
|
|
1029
1029
|
* literal, so it keeps its own key. Said identically by the root block's
|
|
1030
1030
|
* edgeless "More" sub-menu AND the generic iframe embed's own toolbar. Was
|
|
1031
1031
|
* `ROOT_TOOLBAR_CREATE_LINKED_DOC` (`blocks/root`).
|
|
1032
1032
|
*/
|
|
1033
1033
|
export const TOOLBAR_CREATE_LINKED_DOC_TITLE = [
|
|
1034
1034
|
'com.labre.root.toolbar.create-linked-doc',
|
|
1035
|
-
'Create Linked
|
|
1035
|
+
'Create Linked Page',
|
|
1036
1036
|
];
|
|
1037
1037
|
/**
|
|
1038
1038
|
* "Turn into" — the block toolbar's conversions dropdown, said identically by
|
|
@@ -1090,7 +1090,7 @@ export const IMAGE_LABEL = ['com.labre.image.label', 'Image'];
|
|
|
1090
1090
|
*/
|
|
1091
1091
|
export const TOOLBAR_INSERT_INTO_PAGE = [
|
|
1092
1092
|
'com.labre.frame.toolbar.insert-into-page',
|
|
1093
|
-
'Insert into
|
|
1093
|
+
'Insert into Page',
|
|
1094
1094
|
];
|
|
1095
1095
|
/**
|
|
1096
1096
|
* "Ungroup" — a group's own surface-toolbar action, said identically by a
|
|
@@ -1110,13 +1110,13 @@ export const MINDMAP_NAME = [
|
|
|
1110
1110
|
'Mind Map',
|
|
1111
1111
|
];
|
|
1112
1112
|
/**
|
|
1113
|
-
* "New
|
|
1113
|
+
* "New Page" — the "@" menu's own popover group, said identically by the
|
|
1114
1114
|
* linked-doc embed's slash-menu item. Was `LINKED_DOC_NEW_DOC`
|
|
1115
1115
|
* (`widgets/linked-doc`).
|
|
1116
1116
|
*/
|
|
1117
1117
|
export const NEW_DOC_LABEL = [
|
|
1118
1118
|
'com.labre.linked-doc.group.new-doc',
|
|
1119
|
-
'New
|
|
1119
|
+
'New Page',
|
|
1120
1120
|
];
|
|
1121
1121
|
/**
|
|
1122
1122
|
* The artefact catalogue sidepanel's "Other" group header (used inline at its
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/** The note-index badge's two tooltips, in page vs. edgeless-only mode. */
|
|
2
2
|
export const AUTO_CONNECT_HIDDEN_ON_PAGE = [
|
|
3
3
|
'com.labre.auto-connect.hidden-on-page',
|
|
4
|
-
'Hidden on
|
|
4
|
+
'Hidden on page',
|
|
5
5
|
];
|
|
6
6
|
export const AUTO_CONNECT_PAGE_MODE_INDEX = [
|
|
7
7
|
'com.labre.auto-connect.page-mode-index',
|
|
8
|
-
'
|
|
8
|
+
'Page mode index',
|
|
9
9
|
];
|
|
10
10
|
/** Every wording this package declares, in the order it renders them. */
|
|
11
11
|
export const AUTO_CONNECT_WORDINGS = [
|
|
@@ -16,7 +16,7 @@ export const AUTO_COMPLETE_ADD_SAME_OBJECT = [
|
|
|
16
16
|
/** The floating "open link" button drawn over a linked element. */
|
|
17
17
|
export const EDGELESS_LINK_OPEN_DOC = [
|
|
18
18
|
'com.labre.edgeless-element-link.open-doc',
|
|
19
|
-
'Open linked
|
|
19
|
+
'Open linked page',
|
|
20
20
|
];
|
|
21
21
|
export const EDGELESS_LINK_OPEN_LINK = [
|
|
22
22
|
'com.labre.edgeless-element-link.open-link',
|
|
@@ -12,7 +12,7 @@ export const LINKED_DOC_FORMAT_HTML = FORMAT_HTML;
|
|
|
12
12
|
/* ── Popover groups (config.ts) ─────────────────────────────────────────── */
|
|
13
13
|
export const LINKED_DOC_LINK_TO_DOC = [
|
|
14
14
|
'com.labre.linked-doc.group.link-to-doc',
|
|
15
|
-
'Link to
|
|
15
|
+
'Link to Page',
|
|
16
16
|
];
|
|
17
17
|
export const LINKED_DOC_NEW_DOC = NEW_DOC_LABEL;
|
|
18
18
|
/**
|
|
@@ -28,7 +28,7 @@ export const LINKED_DOC_IMPORT = [
|
|
|
28
28
|
/** The "Create doc" item's own wording, interpolated with the truncated name. */
|
|
29
29
|
export const LINKED_DOC_CREATE_DOC = [
|
|
30
30
|
'com.labre.linked-doc.create-doc',
|
|
31
|
-
'Create "{{name}}"
|
|
31
|
+
'Create "{{name}}" page',
|
|
32
32
|
];
|
|
33
33
|
/**
|
|
34
34
|
* The import-success toast — `{{count}}` interpolated, the English fallback
|
|
@@ -37,7 +37,7 @@ export const LINKED_DOC_CREATE_DOC = [
|
|
|
37
37
|
*/
|
|
38
38
|
export const LINKED_DOC_IMPORT_SUCCESS_TOAST = [
|
|
39
39
|
'com.labre.linked-doc.import-success',
|
|
40
|
-
'Successfully imported {{count}}
|
|
40
|
+
'Successfully imported {{count}} Page(s).',
|
|
41
41
|
];
|
|
42
42
|
/**
|
|
43
43
|
* The overflow item's own fallback label ("N more docs" is a different
|
|
@@ -133,7 +133,7 @@ export const SLASH_MENU_GROUP_CONTENT_MEDIA = [
|
|
|
133
133
|
];
|
|
134
134
|
export const SLASH_MENU_GROUP_PAGE = [
|
|
135
135
|
'com.labre.slash-menu.group.page',
|
|
136
|
-
'
|
|
136
|
+
'Page',
|
|
137
137
|
];
|
|
138
138
|
export const SLASH_MENU_GROUP_EDGELESS_ELEMENT = [
|
|
139
139
|
'com.labre.slash-menu.group.edgeless-element',
|
package/dist/translations.js
CHANGED
|
@@ -231,7 +231,7 @@ const CHROME_KEYS = [
|
|
|
231
231
|
// person who picked it.
|
|
232
232
|
[
|
|
233
233
|
'com.labre.interchange.import.readonly',
|
|
234
|
-
'This
|
|
234
|
+
'This page became read-only while the file was being read, so nothing was imported.',
|
|
235
235
|
],
|
|
236
236
|
[
|
|
237
237
|
'com.labre.interchange.import.remarks',
|