@endge/ui-vue 0.27.0 → 0.28.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.
@@ -1,4 +1,4 @@
1
- import { EndgeFederationContext, EndgePlugin, EndgeModule } from '@endge/core';
1
+ import { EndgeContextStateTransform, EndgeFederationContext, EndgePlugin, EndgeModule } from '@endge/core';
2
2
  import { Ref } from 'vue';
3
3
  export declare class EndgeVue_Module extends EndgeModule {
4
4
  private _started;
@@ -14,10 +14,15 @@ export declare class EndgeVue_Module extends EndgeModule {
14
14
  private _activateWorkspaceAdapter;
15
15
  start(): void;
16
16
  reset(): void;
17
+ /** Связывает Vue ref с dynamic state текущего Endge context scope. */
18
+ useContextState<T>(key: string, defaultFactory: () => T, transform?: EndgeContextStateTransform<T>): Ref<T>;
19
+ makeRaphRef<T>(path: string): Ref<T>;
20
+ makeVocabRef<T>(vocab: string): Ref<T>;
17
21
  private _refreshStyles;
18
22
  }
19
- export declare const EndgeVuePlugin: EndgePlugin;
20
- export declare class EndgeVue {
21
- static makeRaphRef<T>(path: string): Ref<T>;
22
- static makeVocabRef<T>(vocab: string): Ref<T>;
23
+ declare module '@endge/core' {
24
+ interface EndgeExtensions {
25
+ readonly vue: EndgeVue_Module;
26
+ }
23
27
  }
28
+ export declare const EndgeVuePlugin: EndgePlugin;
@@ -0,0 +1,7 @@
1
+ import { EndgeContextStateTransform } from '@endge/core';
2
+ import { Ref } from 'vue';
3
+ /**
4
+ * Связывает Vue ref с dynamic state текущего Endge context scope.
5
+ * Глубокие изменения записываются автоматически; смена context/user перечитывает значение.
6
+ */
7
+ export declare function createContextStateRef<T>(key: string, defaultFactory: () => T, transform?: EndgeContextStateTransform<T>): Ref<T>;
@@ -1,4 +1,4 @@
1
- import { r as V, c as g, g as z, t as E, a as T, b as F, d as S, G as L, S as D, i as A, A as N, F as X, E as M, e as $, C as Y, T as U, h as v, H as G, f as W, B as O, j as R, k as w, l as q, R as K, D as Z, m as J, n as Q, o as ee, p as H, q as y, s as re, u as I, v as te, w as oe, x as P, y as _, z as ie, I as se, V as ne } from "./main-1-cwmyEj.js";
1
+ import { r as V, c as g, g as z, t as E, a as T, b as F, d as S, G as L, S as D, i as A, A as N, F as X, E as M, e as $, C as Y, T as U, h as v, H as G, f as W, B as O, j as R, k as w, l as q, R as K, D as Z, m as J, n as Q, o as ee, p as H, q as y, s as re, u as I, v as te, w as oe, x as P, y as _, z as ie, I as se, V as ne } from "./main-DR8CApBj.js";
2
2
  import { H as k, D as le, g as ae, v as de, F as ce, C as ge } from "./viewport.helpers-CoCAvmZs-f555rwPU.js";
3
3
  import { g as x } from "./events-BvSmBueA-Doh7RyHn.js";
4
4
  /*!
@@ -1,8 +1,8 @@
1
- import { r as f, h as c, H as S, c as l, q as O, f as E, N as L, O as p, P as H, Q as T, U as W, W as m, X as A, Y as u, V as B, p as P, Z as V, _ as D, $ as N, a0 as $, o as b, t as K, a1 as U, l as X, a2 as Y, R as G, a3 as _ } from "./main-1-cwmyEj.js";
1
+ import { r as f, h as c, H as S, c as l, q as O, f as E, N as L, O as p, P as H, Q as T, U as W, W as m, X as A, Y as u, V as B, p as P, Z as V, _ as D, $ as N, a0 as $, o as b, t as K, a1 as U, l as X, a2 as Y, R as G, a3 as _ } from "./main-DR8CApBj.js";
2
2
  import { v as Z, g as C } from "./events-BvSmBueA-Doh7RyHn.js";
3
- import { i as z, a as j, b as q, c as Q, d as J, e as ee, f as te, g as ie, h as se } from "./edit.utils-Dnnbd0xG-BtxZKEkZ.js";
3
+ import { i as z, a as j, b as q, c as Q, d as J, e as ee, f as te, g as ie, h as se } from "./edit.utils-Dnnbd0xG-D96FdtjP.js";
4
4
  import { H as oe } from "./viewport.helpers-CoCAvmZs-f555rwPU.js";
5
- import { L as ne, a as re, g as le, t as ae } from "./throttle-Cpk1LoGk-n3ihhfA9.js";
5
+ import { L as ne, a as re, g as le, t as ae } from "./throttle-Cpk1LoGk-DuFblIKT.js";
6
6
  /*!
7
7
  * Built by Revolist OU ❤️
8
8
  */
@@ -1,5 +1,5 @@
1
- import { t as f, r as h, c as n, h as v, a4 as g, H as m, f as y, l as w, a5 as b, q as C, a3 as c } from "./main-1-cwmyEj.js";
2
- import { d as E, c as D, j as S } from "./edit.utils-Dnnbd0xG-BtxZKEkZ.js";
1
+ import { t as f, r as h, c as n, h as v, a4 as g, H as m, f as y, l as w, a5 as b, q as C, a3 as c } from "./main-DR8CApBj.js";
2
+ import { d as E, c as D, j as S } from "./edit.utils-Dnnbd0xG-D96FdtjP.js";
3
3
  /*!
4
4
  * Built by Revolist OU ❤️
5
5
  */
@@ -1,5 +1,5 @@
1
- import { a7 as W, a8 as B, a9 as U, h as a, aa as V, ab as E, ac as z, ad as F, ae as N, af as X, ag as K, ah as Y, r as x, c as v, N as Z, q, ai as J, aj as T, H, f as R, o as L, ak as D, al as Q, am as m, an as ee, ao as I, a0 as te, ap as re, aq as P, ar as M } from "./main-1-cwmyEj.js";
2
- import { L as ie, a as oe, g as k, t as le } from "./throttle-Cpk1LoGk-n3ihhfA9.js";
1
+ import { a7 as W, a8 as B, a9 as U, h as a, aa as V, ab as E, ac as z, ad as F, ae as N, af as X, ag as K, ah as Y, r as x, c as v, N as Z, q, ai as J, aj as T, H, f as R, o as L, ak as D, al as Q, am as m, an as ee, ao as I, a0 as te, ap as re, aq as P, ar as M } from "./main-DR8CApBj.js";
2
+ import { L as ie, a as oe, g as k, t as le } from "./throttle-Cpk1LoGk-DuFblIKT.js";
3
3
  import { H as se, C as ne, F as ae } from "./viewport.helpers-CoCAvmZs-f555rwPU.js";
4
4
  /*!
5
5
  * Built by Revolist OU ❤️
@@ -1,4 +1,4 @@
1
- import { r as F, c as m, l as I, h as s, J as w, K as C, L as k, M as D, H as E, f as O } from "./main-1-cwmyEj.js";
1
+ import { r as F, c as m, l as I, h as s, J as w, K as C, L as k, M as D, H as E, f as O } from "./main-DR8CApBj.js";
2
2
  /*!
3
3
  * Built by Revolist OU ❤️
4
4
  */
@@ -21,6 +21,12 @@ export interface SFCVueRenderContext {
21
21
  context: Readonly<EndgeRuntimeContextSnapshot>;
22
22
  locals: Record<string, unknown>;
23
23
  iteration: SFCVueRenderIteration | null;
24
+ /** Provenance текущей строки для read-only `$data.metaOf(row.field)`. */
25
+ dataScope: {
26
+ kind: 'table-row';
27
+ boundaryId: string;
28
+ rowKey: unknown;
29
+ } | null;
24
30
  renderVersion: number;
25
31
  host: ComponentSFCRuntimeHost | null;
26
32
  runtimeState: SFCVueRuntimeStateController | null;
@@ -1,5 +1,5 @@
1
1
  import { g as h } from "./viewport.helpers-CoCAvmZs-f555rwPU.js";
2
- import { as as d, l as m } from "./main-1-cwmyEj.js";
2
+ import { as as d, l as m } from "./main-DR8CApBj.js";
3
3
  /*!
4
4
  * Built by Revolist OU ❤️
5
5
  */