arethesis 0.1.3 → 0.1.5
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/CHANGELOG.md +14 -0
- package/dist/{arethesis-D0-ZaXOM.js → arethesis-jPH9QdQE.js} +271 -259
- package/dist/arethesis-jPH9QdQE.js.map +1 -0
- package/dist/arethesis.js +1 -1
- package/dist/components/component.d.ts +1 -0
- package/dist/components/component.d.ts.map +1 -1
- package/dist/components.js +1 -1
- package/dist/core/arethesis.d.ts +1 -1
- package/dist/realtime/collab/collab-session.d.ts +2 -0
- package/dist/realtime/collab/collab-session.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/dist/arethesis-D0-ZaXOM.js.map +0 -1
package/dist/arethesis.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, A as t, C as n, D as r, E as i, G as a, H as o, I as s, J as c, K as ee, L as te, M as ne, N as l, O as u, P as d, Q as f, R as p, S as m, T as h, U as g, V as _, W as v, X as y, Y as b, Z as x, _ as S, a as C, at as w, b as T, c as E, ct as D, d as O, dt as k, et as A, f as j, ft as M, g as N, gt as P, h as F, ht as I, i as re, it as L, j as R, k as z, l as B, lt as V, m as H, mt as U, n as W, nt as G, o as K, ot as q, p as J, pt as Y, q as X, r as ie, rt as ae, s as oe, st as se, t as ce, tt as Z, u as le, ut as ue, v as Q, w as de, x as fe, y as pe, z as me } from "./arethesis-
|
|
1
|
+
import { $ as e, A as t, C as n, D as r, E as i, G as a, H as o, I as s, J as c, K as ee, L as te, M as ne, N as l, O as u, P as d, Q as f, R as p, S as m, T as h, U as g, V as _, W as v, X as y, Y as b, Z as x, _ as S, a as C, at as w, b as T, c as E, ct as D, d as O, dt as k, et as A, f as j, ft as M, g as N, gt as P, h as F, ht as I, i as re, it as L, j as R, k as z, l as B, lt as V, m as H, mt as U, n as W, nt as G, o as K, ot as q, p as J, pt as Y, q as X, r as ie, rt as ae, s as oe, st as se, t as ce, tt as Z, u as le, ut as ue, v as Q, w as de, x as fe, y as pe, z as me } from "./arethesis-jPH9QdQE.js";
|
|
2
2
|
// src/realtime/ot/server.ts
|
|
3
3
|
var $ = class {
|
|
4
4
|
document;
|
|
@@ -9,6 +9,7 @@ export declare abstract class Component extends HTMLElement {
|
|
|
9
9
|
/** Current state; mirrored to the `data-state` attribute for CSS. */
|
|
10
10
|
protected state: ComponentState;
|
|
11
11
|
protected error: Error | null;
|
|
12
|
+
/** The template for the main state: `defineComponent`'s `templateId`, or `'main'`. */
|
|
12
13
|
protected mainTemplateId: string;
|
|
13
14
|
protected loadingTemplateId: string;
|
|
14
15
|
protected errorTemplateId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/components/component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,SAAS,EAAE,YAAY,EAAqB,MAAM,eAAe,CAAC;AAC1G,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC1F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAuBrD,8BAAsB,SAAU,SAAQ,WAAW;;IACjD,uDAAuD;IACvD,MAAM,CAAC,UAAU,CAAC,EAAE,UAAU,CAAC;IAE/B,qEAAqE;IACrE,SAAS,CAAC,KAAK,EAAE,cAAc,CAAU;IACzC,SAAS,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAQ;IACrC,SAAS,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/components/component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO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AyD;IACnD,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IA6N9B,8CAA8C;IAC9C,SAAS,CAAC,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS;IAMtD;;;OAGG;cACa,SAAS,CAAC,CAAC,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC;IA4BxE,4EAA4E;cAC5D,SAAS,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAStD,6EAA6E;IACvE,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAK5B,uEAAuE;IACvE,SAAS,CAAC,kBAAkB,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM;IAiBlD,kEAAkE;IAClE,SAAS,CAAC,WAAW,IAAI,IAAI;IAC7B,kCAAkC;IAClC,SAAS,CAAC,cAAc,IAAI,IAAI;IAChC,2EAA2E;IAC3E,SAAS,CAAC,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,IAAI;IAC1C,0DAA0D;IAC1D,SAAS,CAAC,QAAQ,IAAI,IAAI;IAC1B,qDAAqD;IACrD,SAAS,CAAC,YAAY,CAAC,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,GAAG,IAAI;IACnE,sCAAsC;IACtC,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IAC7C,sCAAsC;IACtC,SAAS,CAAC,OAAO,IAAI,IAAI;CAC1B;AAED,YAAY,EAAE,SAAS,EAAE,CAAC"}
|
package/dist/components.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as e, F as t, S as n, i as r, k as i, st as a, w as o } from "./arethesis-
|
|
1
|
+
import { B as e, F as t, S as n, i as r, k as i, st as a, w as o } from "./arethesis-jPH9QdQE.js";
|
|
2
2
|
// src/kit/data-table.ts
|
|
3
3
|
var s = "\n<template id=\"main\">\n <div class=\"ar-table\">\n <div class=\"ar-table__scroll\" tabindex=\"-1\">\n <table role=\"grid\" aria-rowcount=\"-1\">\n <caption class=\"ar-visually-hidden\"></caption>\n <thead><tr></tr></thead>\n <tbody data-items></tbody>\n </table>\n </div>\n <div class=\"ar-table__status\" role=\"status\" aria-live=\"polite\"></div>\n </div>\n</template>\n<template id=\"empty\"><tr class=\"ar-table__empty\"><td colspan=\"999\"></td></tr></template>\n<template id=\"loading\"><tr class=\"ar-table__loading\" aria-hidden=\"true\"><td colspan=\"999\"><div class=\"ar-skeleton\"></div><div class=\"ar-skeleton\"></div><div class=\"ar-skeleton\"></div></td></tr></template>\n<template id=\"error\"><tr class=\"ar-table__error\"><td colspan=\"999\"><span data-error-message></span> <button type=\"button\" class=\"ar-button\" data-retry>Retry</button></td></tr></template>\n", c = class extends n {
|
|
4
4
|
#e = null;
|
package/dist/core/arethesis.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export interface ArethesisEvents extends Record<string, unknown> {
|
|
|
24
24
|
}
|
|
25
25
|
export declare class Arethesis extends Emitter<ArethesisEvents> {
|
|
26
26
|
private static instance;
|
|
27
|
-
readonly version = "0.1.
|
|
27
|
+
readonly version = "0.1.5";
|
|
28
28
|
/** Normalized object cache. */
|
|
29
29
|
readonly store: ObjectStore;
|
|
30
30
|
/** Paginated list views. */
|
|
@@ -44,6 +44,8 @@ export declare class CollabSession extends Emitter<CollabEvents> {
|
|
|
44
44
|
private opCounter;
|
|
45
45
|
private presenceTimer;
|
|
46
46
|
private _status;
|
|
47
|
+
/** The textarea's own readOnly, restored once the document has loaded. */
|
|
48
|
+
private wasReadOnly;
|
|
47
49
|
clientId: string | null;
|
|
48
50
|
constructor(ws: WebSocketManager, docId: string, target: HTMLTextAreaElement | HTMLInputElement | EditorAdapter, options?: CollabOptions);
|
|
49
51
|
get status(): CollabStatus;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collab-session.d.ts","sourceRoot":"","sources":["../../../src/realtime/collab/collab-session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
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Data-driven Light DOM Web Components: a normalized store, config-driven HTTP, live updates, collaborative editing and accessible UI mixins — with zero runtime dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/arethesis.js",
|