@june-ai/june-ui 0.2.7 → 0.2.8
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 +44 -2
- package/README.md +633 -400
- package/dist/{chunk-VFZI3SEL.js → chunk-27XM6EVX.js} +8 -8
- package/dist/chunk-3NVO336D.cjs +4314 -0
- package/dist/chunk-G6YPSE6J.cjs +520 -0
- package/dist/chunk-H26BMR5S.js +4314 -0
- package/dist/{document-engine-RKD5SLXR.js → document-engine-BUTK73DW.js} +1 -1
- package/dist/document-engine-GXZH2LNW.cjs +12 -0
- package/dist/entry-core.cjs +148 -0
- package/dist/entry-core.d.cts +1005 -0
- package/dist/entry-core.d.ts +1005 -0
- package/dist/entry-core.js +149 -0
- package/dist/index.cjs +171 -4244
- package/dist/index.d.cts +81 -525
- package/dist/index.d.ts +81 -525
- package/dist/index.js +156 -3604
- package/dist/june.css +94 -0
- package/docs/architecture.md +95 -0
- package/docs/component-registration.md +115 -0
- package/docs/custom-features.md +68 -0
- package/docs/streaming.md +76 -0
- package/docs/theming.md +65 -0
- package/docs/troubleshooting.md +59 -0
- package/package.json +19 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
// src/
|
|
1
|
+
// src/features/document-editor/document-engine.ts
|
|
2
2
|
import { Editor } from "@tiptap/core";
|
|
3
3
|
|
|
4
|
-
// src/
|
|
4
|
+
// src/utils/errors.ts
|
|
5
5
|
var JuneError = class _JuneError extends Error {
|
|
6
6
|
constructor(code, message, options = {}) {
|
|
7
7
|
super(message);
|
|
@@ -23,7 +23,7 @@ function toJuneError(error, fallbackCode, message) {
|
|
|
23
23
|
return new JuneError(fallbackCode, text, { cause: error });
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
// src/
|
|
26
|
+
// src/features/document-editor/document-extensions.ts
|
|
27
27
|
import { Node, mergeAttributes } from "@tiptap/core";
|
|
28
28
|
import Highlight from "@tiptap/extension-highlight";
|
|
29
29
|
import Image from "@tiptap/extension-image";
|
|
@@ -35,7 +35,7 @@ import { Color, FontFamily, FontSize, TextStyle } from "@tiptap/extension-text-s
|
|
|
35
35
|
import { Markdown } from "@tiptap/markdown";
|
|
36
36
|
import StarterKit from "@tiptap/starter-kit";
|
|
37
37
|
|
|
38
|
-
// src/
|
|
38
|
+
// src/features/document-editor/document-pagination.ts
|
|
39
39
|
import { Extension } from "@tiptap/core";
|
|
40
40
|
import { Plugin, PluginKey } from "@tiptap/pm/state";
|
|
41
41
|
import { Decoration, DecorationSet } from "@tiptap/pm/view";
|
|
@@ -207,7 +207,7 @@ function getPageCount(editor) {
|
|
|
207
207
|
return editor && paginationKey.getState(editor.state)?.pages || 1;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
-
// src/
|
|
210
|
+
// src/features/document-editor/document-search.ts
|
|
211
211
|
import { Extension as Extension2 } from "@tiptap/core";
|
|
212
212
|
import { Plugin as Plugin2, PluginKey as PluginKey2 } from "@tiptap/pm/state";
|
|
213
213
|
import { Decoration as Decoration2, DecorationSet as DecorationSet2 } from "@tiptap/pm/view";
|
|
@@ -320,7 +320,7 @@ function replaceAll(editor, replacement) {
|
|
|
320
320
|
return matches.length;
|
|
321
321
|
}
|
|
322
322
|
|
|
323
|
-
// src/
|
|
323
|
+
// src/features/document-editor/document-extensions.ts
|
|
324
324
|
var PageBreak = Node.create({
|
|
325
325
|
name: "pageBreak",
|
|
326
326
|
group: "block",
|
|
@@ -379,7 +379,7 @@ function createDocumentExtensions() {
|
|
|
379
379
|
];
|
|
380
380
|
}
|
|
381
381
|
|
|
382
|
-
// src/
|
|
382
|
+
// src/features/document-editor/document-utils.ts
|
|
383
383
|
var emptyDoc = () => ({ type: "doc", content: [{ type: "paragraph" }] });
|
|
384
384
|
function isDocJSON(value) {
|
|
385
385
|
if (!value || typeof value !== "object") return false;
|
|
@@ -460,7 +460,7 @@ function sanitizeHref(input) {
|
|
|
460
460
|
return `https://${value}`;
|
|
461
461
|
}
|
|
462
462
|
|
|
463
|
-
// src/
|
|
463
|
+
// src/features/document-editor/document-engine.ts
|
|
464
464
|
var scratch = null;
|
|
465
465
|
function scratchEditor() {
|
|
466
466
|
if (!scratch || scratch.isDestroyed) {
|