laif-ds 0.2.78 → 0.2.80

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 (48) hide show
  1. package/dist/CHANGELOG.md +25 -0
  2. package/dist/_virtual/index3.js +5 -5
  3. package/dist/_virtual/index4.js +5 -5
  4. package/dist/_virtual/index5.js +4 -4
  5. package/dist/agent-docs/adoption-report.json +10 -10
  6. package/dist/agent-docs/components/AppEditor.md +4 -4
  7. package/dist/agent-docs/components/AppSelect.md +46 -0
  8. package/dist/agent-docs/manifest.json +5 -3
  9. package/dist/components/editor/editor-ui/content-editable.js +15 -8
  10. package/dist/components/ui/app-editor.js +88 -76
  11. package/dist/components/ui/app-select.js +232 -143
  12. package/dist/components/ui/date-picker.js +184 -153
  13. package/dist/components/ui/markdown-renderer.js +40 -30
  14. package/dist/index.d.ts +3 -1
  15. package/dist/node_modules/comma-separated-tokens/index.js +16 -5
  16. package/dist/node_modules/entities/dist/esm/decode-codepoint.js +39 -0
  17. package/dist/node_modules/entities/dist/esm/decode.js +246 -0
  18. package/dist/node_modules/entities/dist/esm/generated/decode-data-html.js +8 -0
  19. package/dist/node_modules/eventemitter3/index.js +1 -1
  20. package/dist/node_modules/hast-util-from-parse5/lib/index.js +146 -0
  21. package/dist/node_modules/hast-util-parse-selector/lib/index.js +21 -0
  22. package/dist/node_modules/hast-util-raw/lib/index.js +218 -0
  23. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
  24. package/dist/node_modules/hast-util-to-parse5/lib/index.js +119 -0
  25. package/dist/node_modules/hastscript/lib/create-h.js +113 -0
  26. package/dist/node_modules/hastscript/lib/index.js +9 -0
  27. package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +45 -0
  28. package/dist/node_modules/parse5/dist/common/doctype.js +99 -0
  29. package/dist/node_modules/parse5/dist/common/error-codes.js +8 -0
  30. package/dist/node_modules/parse5/dist/common/foreign-content.js +211 -0
  31. package/dist/node_modules/parse5/dist/common/html.js +251 -0
  32. package/dist/node_modules/parse5/dist/common/token.js +15 -0
  33. package/dist/node_modules/parse5/dist/common/unicode.js +74 -0
  34. package/dist/node_modules/parse5/dist/parser/formatting-element-list.js +85 -0
  35. package/dist/node_modules/parse5/dist/parser/index.js +2272 -0
  36. package/dist/node_modules/parse5/dist/parser/open-element-stack.js +241 -0
  37. package/dist/node_modules/parse5/dist/serializer/index.js +3 -0
  38. package/dist/node_modules/parse5/dist/tokenizer/index.js +1941 -0
  39. package/dist/node_modules/parse5/dist/tokenizer/preprocessor.js +89 -0
  40. package/dist/node_modules/parse5/dist/tree-adapters/default.js +163 -0
  41. package/dist/node_modules/recharts/es6/util/Events.js +1 -1
  42. package/dist/node_modules/rehype-raw/lib/index.js +13 -0
  43. package/dist/node_modules/space-separated-tokens/index.js +8 -3
  44. package/dist/node_modules/unified/lib/index.js +1 -1
  45. package/dist/node_modules/vfile-location/lib/index.js +43 -0
  46. package/dist/node_modules/web-namespaces/index.js +12 -0
  47. package/dist/styles.v3.css +1 -1
  48. package/package.json +2 -1
@@ -0,0 +1,89 @@
1
+ "use client";
2
+ import { isSurrogatePair as l, getSurrogatePairCodePoint as f, CODE_POINTS as e, isSurrogate as p, isControlCodePoint as u, isUndefinedCodePoint as d } from "../common/unicode.js";
3
+ import { ERR as h } from "../common/error-codes.js";
4
+ const c = 65536;
5
+ class g {
6
+ constructor(t) {
7
+ this.handler = t, this.html = "", this.pos = -1, this.lastGapPos = -2, this.gapStack = [], this.skipNextNewLine = !1, this.lastChunkWritten = !1, this.endOfChunkHit = !1, this.bufferWaterline = c, this.isEol = !1, this.lineStartPos = 0, this.droppedBufferSize = 0, this.line = 1, this.lastErrOffset = -1;
8
+ }
9
+ /** The column on the current line. If we just saw a gap (eg. a surrogate pair), return the index before. */
10
+ get col() {
11
+ return this.pos - this.lineStartPos + +(this.lastGapPos !== this.pos);
12
+ }
13
+ get offset() {
14
+ return this.droppedBufferSize + this.pos;
15
+ }
16
+ getError(t, s) {
17
+ const { line: i, col: r, offset: a } = this, o = r + s, n = a + s;
18
+ return {
19
+ code: t,
20
+ startLine: i,
21
+ endLine: i,
22
+ startCol: o,
23
+ endCol: o,
24
+ startOffset: n,
25
+ endOffset: n
26
+ };
27
+ }
28
+ _err(t) {
29
+ this.handler.onParseError && this.lastErrOffset !== this.offset && (this.lastErrOffset = this.offset, this.handler.onParseError(this.getError(t, 0)));
30
+ }
31
+ _addGap() {
32
+ this.gapStack.push(this.lastGapPos), this.lastGapPos = this.pos;
33
+ }
34
+ _processSurrogate(t) {
35
+ if (this.pos !== this.html.length - 1) {
36
+ const s = this.html.charCodeAt(this.pos + 1);
37
+ if (l(s))
38
+ return this.pos++, this._addGap(), f(t, s);
39
+ } else if (!this.lastChunkWritten)
40
+ return this.endOfChunkHit = !0, e.EOF;
41
+ return this._err(h.surrogateInInputStream), t;
42
+ }
43
+ willDropParsedChunk() {
44
+ return this.pos > this.bufferWaterline;
45
+ }
46
+ dropParsedChunk() {
47
+ this.willDropParsedChunk() && (this.html = this.html.substring(this.pos), this.lineStartPos -= this.pos, this.droppedBufferSize += this.pos, this.pos = 0, this.lastGapPos = -2, this.gapStack.length = 0);
48
+ }
49
+ write(t, s) {
50
+ this.html.length > 0 ? this.html += t : this.html = t, this.endOfChunkHit = !1, this.lastChunkWritten = s;
51
+ }
52
+ insertHtmlAtCurrentPos(t) {
53
+ this.html = this.html.substring(0, this.pos + 1) + t + this.html.substring(this.pos + 1), this.endOfChunkHit = !1;
54
+ }
55
+ startsWith(t, s) {
56
+ if (this.pos + t.length > this.html.length)
57
+ return this.endOfChunkHit = !this.lastChunkWritten, !1;
58
+ if (s)
59
+ return this.html.startsWith(t, this.pos);
60
+ for (let i = 0; i < t.length; i++)
61
+ if ((this.html.charCodeAt(this.pos + i) | 32) !== t.charCodeAt(i))
62
+ return !1;
63
+ return !0;
64
+ }
65
+ peek(t) {
66
+ const s = this.pos + t;
67
+ if (s >= this.html.length)
68
+ return this.endOfChunkHit = !this.lastChunkWritten, e.EOF;
69
+ const i = this.html.charCodeAt(s);
70
+ return i === e.CARRIAGE_RETURN ? e.LINE_FEED : i;
71
+ }
72
+ advance() {
73
+ if (this.pos++, this.isEol && (this.isEol = !1, this.line++, this.lineStartPos = this.pos), this.pos >= this.html.length)
74
+ return this.endOfChunkHit = !this.lastChunkWritten, e.EOF;
75
+ let t = this.html.charCodeAt(this.pos);
76
+ return t === e.CARRIAGE_RETURN ? (this.isEol = !0, this.skipNextNewLine = !0, e.LINE_FEED) : t === e.LINE_FEED && (this.isEol = !0, this.skipNextNewLine) ? (this.line--, this.skipNextNewLine = !1, this._addGap(), this.advance()) : (this.skipNextNewLine = !1, p(t) && (t = this._processSurrogate(t)), this.handler.onParseError === null || t > 31 && t < 127 || t === e.LINE_FEED || t === e.CARRIAGE_RETURN || t > 159 && t < 64976 || this._checkForProblematicCharacters(t), t);
77
+ }
78
+ _checkForProblematicCharacters(t) {
79
+ u(t) ? this._err(h.controlCharacterInInputStream) : d(t) && this._err(h.noncharacterInInputStream);
80
+ }
81
+ retreat(t) {
82
+ for (this.pos -= t; this.pos < this.lastGapPos; )
83
+ this.lastGapPos = this.gapStack.pop(), this.pos--;
84
+ this.isEol = !1;
85
+ }
86
+ }
87
+ export {
88
+ g as Preprocessor
89
+ };
@@ -0,0 +1,163 @@
1
+ "use client";
2
+ import { DOCUMENT_MODE as a } from "../common/html.js";
3
+ const d = {
4
+ //Node construction
5
+ createDocument() {
6
+ return {
7
+ nodeName: "#document",
8
+ mode: a.NO_QUIRKS,
9
+ childNodes: []
10
+ };
11
+ },
12
+ createDocumentFragment() {
13
+ return {
14
+ nodeName: "#document-fragment",
15
+ childNodes: []
16
+ };
17
+ },
18
+ createElement(e, t, n) {
19
+ return {
20
+ nodeName: e,
21
+ tagName: e,
22
+ attrs: n,
23
+ namespaceURI: t,
24
+ childNodes: [],
25
+ parentNode: null
26
+ };
27
+ },
28
+ createCommentNode(e) {
29
+ return {
30
+ nodeName: "#comment",
31
+ data: e,
32
+ parentNode: null
33
+ };
34
+ },
35
+ createTextNode(e) {
36
+ return {
37
+ nodeName: "#text",
38
+ value: e,
39
+ parentNode: null
40
+ };
41
+ },
42
+ //Tree mutation
43
+ appendChild(e, t) {
44
+ e.childNodes.push(t), t.parentNode = e;
45
+ },
46
+ insertBefore(e, t, n) {
47
+ const o = e.childNodes.indexOf(n);
48
+ e.childNodes.splice(o, 0, t), t.parentNode = e;
49
+ },
50
+ setTemplateContent(e, t) {
51
+ e.content = t;
52
+ },
53
+ getTemplateContent(e) {
54
+ return e.content;
55
+ },
56
+ setDocumentType(e, t, n, o) {
57
+ const r = e.childNodes.find((c) => c.nodeName === "#documentType");
58
+ if (r)
59
+ r.name = t, r.publicId = n, r.systemId = o;
60
+ else {
61
+ const c = {
62
+ nodeName: "#documentType",
63
+ name: t,
64
+ publicId: n,
65
+ systemId: o,
66
+ parentNode: null
67
+ };
68
+ d.appendChild(e, c);
69
+ }
70
+ },
71
+ setDocumentMode(e, t) {
72
+ e.mode = t;
73
+ },
74
+ getDocumentMode(e) {
75
+ return e.mode;
76
+ },
77
+ detachNode(e) {
78
+ if (e.parentNode) {
79
+ const t = e.parentNode.childNodes.indexOf(e);
80
+ e.parentNode.childNodes.splice(t, 1), e.parentNode = null;
81
+ }
82
+ },
83
+ insertText(e, t) {
84
+ if (e.childNodes.length > 0) {
85
+ const n = e.childNodes[e.childNodes.length - 1];
86
+ if (d.isTextNode(n)) {
87
+ n.value += t;
88
+ return;
89
+ }
90
+ }
91
+ d.appendChild(e, d.createTextNode(t));
92
+ },
93
+ insertTextBefore(e, t, n) {
94
+ const o = e.childNodes[e.childNodes.indexOf(n) - 1];
95
+ o && d.isTextNode(o) ? o.value += t : d.insertBefore(e, d.createTextNode(t), n);
96
+ },
97
+ adoptAttributes(e, t) {
98
+ const n = new Set(e.attrs.map((o) => o.name));
99
+ for (let o = 0; o < t.length; o++)
100
+ n.has(t[o].name) || e.attrs.push(t[o]);
101
+ },
102
+ //Tree traversing
103
+ getFirstChild(e) {
104
+ return e.childNodes[0];
105
+ },
106
+ getChildNodes(e) {
107
+ return e.childNodes;
108
+ },
109
+ getParentNode(e) {
110
+ return e.parentNode;
111
+ },
112
+ getAttrList(e) {
113
+ return e.attrs;
114
+ },
115
+ //Node data
116
+ getTagName(e) {
117
+ return e.tagName;
118
+ },
119
+ getNamespaceURI(e) {
120
+ return e.namespaceURI;
121
+ },
122
+ getTextNodeContent(e) {
123
+ return e.value;
124
+ },
125
+ getCommentNodeContent(e) {
126
+ return e.data;
127
+ },
128
+ getDocumentTypeNodeName(e) {
129
+ return e.name;
130
+ },
131
+ getDocumentTypeNodePublicId(e) {
132
+ return e.publicId;
133
+ },
134
+ getDocumentTypeNodeSystemId(e) {
135
+ return e.systemId;
136
+ },
137
+ //Node types
138
+ isTextNode(e) {
139
+ return e.nodeName === "#text";
140
+ },
141
+ isCommentNode(e) {
142
+ return e.nodeName === "#comment";
143
+ },
144
+ isDocumentTypeNode(e) {
145
+ return e.nodeName === "#documentType";
146
+ },
147
+ isElementNode(e) {
148
+ return Object.prototype.hasOwnProperty.call(e, "tagName");
149
+ },
150
+ // Source code location
151
+ setNodeSourceCodeLocation(e, t) {
152
+ e.sourceCodeLocation = t;
153
+ },
154
+ getNodeSourceCodeLocation(e) {
155
+ return e.sourceCodeLocation;
156
+ },
157
+ updateNodeSourceCodeLocation(e, t) {
158
+ e.sourceCodeLocation = { ...e.sourceCodeLocation, ...t };
159
+ }
160
+ };
161
+ export {
162
+ d as defaultTreeAdapter
163
+ };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import e from "../../../../_virtual/index5.js";
2
+ import e from "../../../../_virtual/index3.js";
3
3
  var r = new e(), n = "recharts.syncEvent.tooltip";
4
4
  export {
5
5
  n as TOOLTIP_SYNC_EVENT,
@@ -0,0 +1,13 @@
1
+ "use client";
2
+ import { raw as n } from "../../hast-util-raw/lib/index.js";
3
+ function s(r) {
4
+ return function(t, e) {
5
+ return (
6
+ /** @type {Root} */
7
+ n(t, { ...r, file: e })
8
+ );
9
+ };
10
+ }
11
+ export {
12
+ s as default
13
+ };
@@ -1,7 +1,12 @@
1
1
  "use client";
2
- function n(i) {
3
- return i.join(" ").trim();
2
+ function i(t) {
3
+ const n = String(t || "").trim();
4
+ return n ? n.split(/[ \t\n\r\f]+/g) : [];
5
+ }
6
+ function r(t) {
7
+ return t.join(" ").trim();
4
8
  }
5
9
  export {
6
- n as stringify
10
+ i as parse,
11
+ r as stringify
7
12
  };
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { bail as P } from "../../bail/index.js";
3
- import y from "../../../_virtual/index4.js";
3
+ import y from "../../../_virtual/index5.js";
4
4
  import z from "../../is-plain-obj/index.js";
5
5
  import { CallableInstance as C } from "./callable-instance.js";
6
6
  import { trough as A } from "../../trough/lib/index.js";
@@ -0,0 +1,43 @@
1
+ "use client";
2
+ function m(c) {
3
+ const l = String(c), e = [];
4
+ return { toOffset: s, toPoint: i };
5
+ function i(n) {
6
+ if (typeof n == "number" && n > -1 && n <= l.length) {
7
+ let t = 0;
8
+ for (; ; ) {
9
+ let r = e[t];
10
+ if (r === void 0) {
11
+ const u = f(l, e[t - 1]);
12
+ r = u === -1 ? l.length + 1 : u + 1, e[t] = r;
13
+ }
14
+ if (r > n)
15
+ return {
16
+ line: t + 1,
17
+ column: n - (t > 0 ? e[t - 1] : 0) + 1,
18
+ offset: n
19
+ };
20
+ t++;
21
+ }
22
+ }
23
+ }
24
+ function s(n) {
25
+ if (n && typeof n.line == "number" && typeof n.column == "number" && !Number.isNaN(n.line) && !Number.isNaN(n.column)) {
26
+ for (; e.length < n.line; ) {
27
+ const r = e[e.length - 1], u = f(l, r), o = u === -1 ? l.length + 1 : u + 1;
28
+ if (r === o) break;
29
+ e.push(o);
30
+ }
31
+ const t = (n.line > 1 ? e[n.line - 2] : 0) + n.column - 1;
32
+ if (t < e[n.line - 1]) return t;
33
+ }
34
+ }
35
+ }
36
+ function f(c, l) {
37
+ const e = c.indexOf("\r", l), i = c.indexOf(`
38
+ `, l);
39
+ return i === -1 ? e : e === -1 || e + 1 === i ? i : e < i ? e : i;
40
+ }
41
+ export {
42
+ m as location
43
+ };
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ const w = {
3
+ html: "http://www.w3.org/1999/xhtml",
4
+ mathml: "http://www.w3.org/1998/Math/MathML",
5
+ svg: "http://www.w3.org/2000/svg",
6
+ xlink: "http://www.w3.org/1999/xlink",
7
+ xml: "http://www.w3.org/XML/1998/namespace",
8
+ xmlns: "http://www.w3.org/2000/xmlns/"
9
+ };
10
+ export {
11
+ w as webNamespaces
12
+ };