@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.
Files changed (36) hide show
  1. package/dist/_pkgs/affine-block-database/properties/rich-text/cell-renderer.js +14 -9
  2. package/dist/_pkgs/affine-block-frame/frame-manager.js +10 -9
  3. package/dist/_pkgs/affine-block-list/list-block.d.ts +8 -1
  4. package/dist/_pkgs/affine-block-list/list-block.js +27 -17
  5. package/dist/_pkgs/affine-block-paragraph/paragraph-block.d.ts +8 -1
  6. package/dist/_pkgs/affine-block-paragraph/paragraph-block.js +30 -15
  7. package/dist/_pkgs/affine-block-root/edgeless/clipboard/clipboard.js +3 -3
  8. package/dist/_pkgs/affine-block-root/keyboard/keymap.js +20 -0
  9. package/dist/_pkgs/affine-block-surface/extensions/export-manager/export-manager.d.ts +6 -4
  10. package/dist/_pkgs/affine-block-surface/extensions/export-manager/export-manager.js +15 -10
  11. package/dist/_pkgs/affine-block-surface/utils/priority-queue.js +2 -2
  12. package/dist/_pkgs/affine-components/toggle-button/toggle-button.d.ts +5 -0
  13. package/dist/_pkgs/affine-components/toggle-button/toggle-button.js +31 -18
  14. package/dist/_pkgs/affine-gfx-connector/connector-manager.d.ts +13 -1
  15. package/dist/_pkgs/affine-gfx-connector/connector-manager.js +9 -5
  16. package/dist/_pkgs/affine-gfx-connector/connector-watcher.js +48 -17
  17. package/dist/_pkgs/affine-gfx-connector/view/view.js +4 -0
  18. package/dist/_pkgs/affine-gfx-mindmap/view/view.js +9 -1
  19. package/dist/_pkgs/affine-gfx-mindmap/view.js +7 -2
  20. package/dist/_pkgs/affine-gfx-template/contribute.d.ts +32 -7
  21. package/dist/_pkgs/affine-gfx-template/contribute.js +66 -22
  22. package/dist/_pkgs/affine-gfx-template/toolbar/template-panel.d.ts +7 -0
  23. package/dist/_pkgs/affine-gfx-template/toolbar/template-panel.js +19 -4
  24. package/dist/_pkgs/affine-model/elements/mindmap/mindmap.js +10 -1
  25. package/dist/_pkgs/affine-shared/adapters/middlewares/proxy.d.ts +10 -0
  26. package/dist/_pkgs/affine-shared/adapters/middlewares/proxy.js +19 -12
  27. package/dist/_pkgs/affine-shared/adapters/utils/fetch.js +4 -0
  28. package/dist/_pkgs/affine-widget-keyboard-toolbar/widget.js +18 -3
  29. package/dist/_pkgs/affine-widget-linked-doc/mobile-linked-doc-menu.d.ts +7 -1
  30. package/dist/_pkgs/affine-widget-linked-doc/mobile-linked-doc-menu.js +8 -2
  31. package/dist/_pkgs/std/gfx/index.d.ts +1 -1
  32. package/dist/_pkgs/std/gfx/model/surface/element-model.d.ts +2 -2
  33. package/dist/_pkgs/std/gfx/model/surface/element-model.js +2 -2
  34. package/dist/_pkgs/std/gfx/model/surface/surface-model.d.ts +1 -1
  35. package/dist/_pkgs/std/gfx/model/surface/surface-model.js +1 -1
  36. 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 `docs/spikes/us-1-8-unknown-props-preservation.md`,
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 `docs/spikes/us-1-8-unknown-props-preservation.md`
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 `docs/spikes/us-1-8-unknown-props-preservation.md`,
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 `docs/spikes/us-1-8-unknown-props-preservation.md`
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 `docs/spikes/us-1-8-unknown-props-preservation.md`.
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 `docs/spikes/us-1-8-unknown-props-preservation.md`.
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)) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@formicoidea/labre-core",
3
3
  "description": "Labre editor — the full BlockSuite-derived editor as one package.",
4
- "version": "0.38.2",
4
+ "version": "0.39.3",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "author": "lajola",