@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.
@@ -1,7 +1,7 @@
1
- // src/components/document-editor/document-engine.ts
1
+ // src/features/document-editor/document-engine.ts
2
2
  import { Editor } from "@tiptap/core";
3
3
 
4
- // src/errors/errors.ts
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/components/document-editor/document-extensions.ts
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/components/document-editor/document-pagination.ts
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/components/document-editor/document-search.ts
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/components/document-editor/document-extensions.ts
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/components/document-editor/document-utils.ts
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/components/document-editor/document-engine.ts
463
+ // src/features/document-editor/document-engine.ts
464
464
  var scratch = null;
465
465
  function scratchEditor() {
466
466
  if (!scratch || scratch.isDestroyed) {