@formicoidea/labre-core 0.38.2 → 0.39.3
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-database/properties/rich-text/cell-renderer.js +14 -9
- package/dist/_pkgs/affine-block-frame/frame-manager.js +10 -9
- package/dist/_pkgs/affine-block-list/list-block.d.ts +8 -1
- package/dist/_pkgs/affine-block-list/list-block.js +27 -17
- package/dist/_pkgs/affine-block-paragraph/paragraph-block.d.ts +8 -1
- package/dist/_pkgs/affine-block-paragraph/paragraph-block.js +30 -15
- package/dist/_pkgs/affine-block-root/edgeless/clipboard/clipboard.js +3 -3
- package/dist/_pkgs/affine-block-root/keyboard/keymap.js +20 -0
- package/dist/_pkgs/affine-block-surface/extensions/export-manager/export-manager.d.ts +6 -4
- package/dist/_pkgs/affine-block-surface/extensions/export-manager/export-manager.js +15 -10
- package/dist/_pkgs/affine-block-surface/utils/priority-queue.js +2 -2
- package/dist/_pkgs/affine-components/toggle-button/toggle-button.d.ts +5 -0
- package/dist/_pkgs/affine-components/toggle-button/toggle-button.js +31 -18
- package/dist/_pkgs/affine-gfx-connector/connector-manager.d.ts +13 -1
- package/dist/_pkgs/affine-gfx-connector/connector-manager.js +9 -5
- package/dist/_pkgs/affine-gfx-connector/connector-watcher.js +48 -17
- package/dist/_pkgs/affine-gfx-connector/view/view.js +4 -0
- package/dist/_pkgs/affine-gfx-mindmap/view/view.js +9 -1
- package/dist/_pkgs/affine-gfx-mindmap/view.js +7 -2
- package/dist/_pkgs/affine-gfx-template/contribute.d.ts +32 -7
- package/dist/_pkgs/affine-gfx-template/contribute.js +66 -22
- package/dist/_pkgs/affine-gfx-template/toolbar/template-panel.d.ts +7 -0
- package/dist/_pkgs/affine-gfx-template/toolbar/template-panel.js +19 -4
- package/dist/_pkgs/affine-model/elements/mindmap/mindmap.js +10 -1
- package/dist/_pkgs/affine-shared/adapters/middlewares/proxy.d.ts +10 -0
- package/dist/_pkgs/affine-shared/adapters/middlewares/proxy.js +19 -12
- package/dist/_pkgs/affine-shared/adapters/utils/fetch.js +4 -0
- package/dist/_pkgs/affine-widget-keyboard-toolbar/widget.js +18 -3
- package/dist/_pkgs/affine-widget-linked-doc/mobile-linked-doc-menu.d.ts +7 -1
- package/dist/_pkgs/affine-widget-linked-doc/mobile-linked-doc-menu.js +8 -2
- package/dist/_pkgs/std/gfx/index.d.ts +1 -1
- package/dist/_pkgs/std/gfx/model/surface/element-model.d.ts +2 -2
- package/dist/_pkgs/std/gfx/model/surface/element-model.js +2 -2
- package/dist/_pkgs/std/gfx/model/surface/surface-model.d.ts +1 -1
- package/dist/_pkgs/std/gfx/model/surface/surface-model.js +1 -1
- package/package.json +1 -1
|
@@ -20,7 +20,7 @@ export { GfxLocalElementModel, prop, } from './model/surface/local-element-model
|
|
|
20
20
|
export { collectPivotOccurrences, isPivotBound, type PivotBoundElement, type PivotOccurrence, resolvePivotBinding, } from './model/surface/pivot.js';
|
|
21
21
|
export { type EdgeDirectionDef, findRoleDef, isTypedEdgeRole, type RoleDef, type RoleDefs, type RoleId, roleIsA, type RoleKind, RoleVocabularyExtension, RoleVocabularyIdentifier, } from './model/surface/role.js';
|
|
22
22
|
export { ELEMENT_TAGS_FIELD, type ElementTags, elementTagValues, hasElementTagValue, readElementTags, setElementTag, tagsPropToY, } from './model/surface/tags.js';
|
|
23
|
-
export { SURFACE_TEXT_UNIQ_IDENTIFIER, SURFACE_YMAP_UNIQ_IDENTIFIER, SurfaceBlockModel, type SurfaceBlockProps, type SurfaceMiddleware, } from './model/surface/surface-model.js';
|
|
23
|
+
export { type ElementUpdatedData, SURFACE_TEXT_UNIQ_IDENTIFIER, SURFACE_YMAP_UNIQ_IDENTIFIER, SurfaceBlockModel, type SurfaceBlockProps, type SurfaceMiddleware, } from './model/surface/surface-model.js';
|
|
24
24
|
export { measureOperation } from './perf.js';
|
|
25
25
|
export { GfxSelectionManager } from './selection.js';
|
|
26
26
|
export { SurfaceMiddlewareBuilder, SurfaceMiddlewareExtension, } from './surface-middleware.js';
|
|
@@ -227,7 +227,7 @@ export declare abstract class GfxPrimitiveElementModel<Props extends BaseElement
|
|
|
227
227
|
* This is a direct write path into the element's Y.Map, on the class that
|
|
228
228
|
* carries the document format, exported by `@labre/std` and therefore
|
|
229
229
|
* callable by a host. `_assignElementProp` learned the same lesson in the
|
|
230
|
-
* unknown-props change (see
|
|
230
|
+
* unknown-props change (see the unknown-props spike (PR #73),
|
|
231
231
|
* whose deny-list is explicitly security rather than hygiene); an unguarded
|
|
232
232
|
* delete re-opens the door from the other side. So:
|
|
233
233
|
*
|
|
@@ -467,7 +467,7 @@ export declare abstract class GfxPrimitiveElementModel<Props extends BaseElement
|
|
|
467
467
|
* An element re-created from props (paste, duplicate, alt-drag clone,
|
|
468
468
|
* template insertion) only reaches the Y.Map through keys that have a
|
|
469
469
|
* declared accessor, so a payload declared per subclass would be silently
|
|
470
|
-
* dropped on copy — the exact loss
|
|
470
|
+
* dropped on copy — the exact loss the unknown-props spike (PR #73)
|
|
471
471
|
* exists to prevent. Declaring it, rather than leaning on that spike's
|
|
472
472
|
* verbatim fallback for undeclared keys, is what makes it a contract: a field
|
|
473
473
|
* nothing declares is a field nothing can test, strip or find.
|
|
@@ -407,7 +407,7 @@ let GfxPrimitiveElementModel = (() => {
|
|
|
407
407
|
* This is a direct write path into the element's Y.Map, on the class that
|
|
408
408
|
* carries the document format, exported by `@labre/std` and therefore
|
|
409
409
|
* callable by a host. `_assignElementProp` learned the same lesson in the
|
|
410
|
-
* unknown-props change (see
|
|
410
|
+
* unknown-props change (see the unknown-props spike (PR #73),
|
|
411
411
|
* whose deny-list is explicitly security rather than hygiene); an unguarded
|
|
412
412
|
* delete re-opens the door from the other side. So:
|
|
413
413
|
*
|
|
@@ -692,7 +692,7 @@ let GfxPrimitiveElementModel = (() => {
|
|
|
692
692
|
* An element re-created from props (paste, duplicate, alt-drag clone,
|
|
693
693
|
* template insertion) only reaches the Y.Map through keys that have a
|
|
694
694
|
* declared accessor, so a payload declared per subclass would be silently
|
|
695
|
-
* dropped on copy — the exact loss
|
|
695
|
+
* dropped on copy — the exact loss the unknown-props spike (PR #73)
|
|
696
696
|
* exists to prevent. Declaring it, rather than leaning on that spike's
|
|
697
697
|
* verbatim fallback for undeclared keys, is what makes it a contract: a field
|
|
698
698
|
* nothing declares is a field nothing can test, strip or find.
|
|
@@ -134,7 +134,7 @@ export declare class SurfaceBlockModel extends BlockModel<SurfaceBlockProps> {
|
|
|
134
134
|
* The value is already Y-converted at this point: both call sites run the
|
|
135
135
|
* whole props object through {@link _propsToY} first, which is key-agnostic.
|
|
136
136
|
*
|
|
137
|
-
* See
|
|
137
|
+
* See the unknown-props spike (PR #73).
|
|
138
138
|
*/
|
|
139
139
|
private _assignElementProp;
|
|
140
140
|
private _createElementFromYMap;
|
|
@@ -294,7 +294,7 @@ export class SurfaceBlockModel extends BlockModel {
|
|
|
294
294
|
* The value is already Y-converted at this point: both call sites run the
|
|
295
295
|
* whole props object through {@link _propsToY} first, which is key-agnostic.
|
|
296
296
|
*
|
|
297
|
-
* See
|
|
297
|
+
* See the unknown-props spike (PR #73).
|
|
298
298
|
*/
|
|
299
299
|
_assignElementProp(element, key, value) {
|
|
300
300
|
if (UNSAFE_ELEMENT_PROP_KEYS.has(key)) {
|