@panneau/editor 5.0.0-alpha.7 → 5.0.0-alpha.9

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,5 +1,5 @@
1
1
  import type { Editor } from '@tiptap/core';
2
- import type { NewTabLinks } from './settings';
2
+ import type { NewTabLinks } from './settings.js';
3
3
  /** Whether a URL points to another site: `https://…` or `//…`, as CKEditor decides it. */
4
4
  export declare function isExternalUrl(url: string): boolean;
5
5
  /** The `target` and `rel` of a link, keeping the relations that aren't about the new tab. */
@@ -1,8 +1,8 @@
1
1
  import type { AnyExtension } from '@tiptap/core';
2
2
  import { type FieldEntryProps, type FieldProps } from '@panneau/fields';
3
3
  import type { RichTextStyle } from '@panneau/protocol';
4
- import type { RichTextButton } from './buttons';
5
- import { type NewTabLinks } from './settings';
4
+ import type { RichTextButton } from './buttons.js';
5
+ import { type NewTabLinks } from './settings.js';
6
6
  export interface RichTextFieldProps extends FieldProps<string> {
7
7
  placeholder?: string;
8
8
  /**
package/dist/Toolbar.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { Editor } from '@tiptap/core';
2
2
  import type { RichTextStyle } from '@panneau/protocol';
3
- import { type RichTextButton } from './buttons';
4
- import type { NewTabLinks } from './settings';
3
+ import { type RichTextButton } from './buttons.js';
4
+ import type { NewTabLinks } from './settings.js';
5
5
  export interface ToolbarProps {
6
6
  editor: Editor;
7
7
  /** The items, in order: built-in names, names of `buttons`, and `|` between groups. */
@@ -1,6 +1,6 @@
1
1
  import type { AnyExtension } from '@tiptap/core';
2
- import { HtmlAttributes } from './attributes';
3
- import { HtmlBlock, HtmlInline, HtmlMark, type HtmlNodeOptions } from './raw';
2
+ import { HtmlAttributes } from './attributes.js';
3
+ import { HtmlBlock, HtmlInline, HtmlMark, type HtmlNodeOptions } from './raw.js';
4
4
  export interface RichTextExtensionsOptions {
5
5
  /** TipTap extensions of the project. One with the name of a built-in extension replaces it. */
6
6
  extensions?: readonly AnyExtension[];
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export { RichTextField, RichTextFieldEntry, type RichTextFieldProps } from './RichTextField';
2
- export { type RichTextButton, builtInButtons } from './buttons';
3
- export { type RichTextExtensionsOptions, createRichTextExtensions } from './extensions/index';
4
- export type { HtmlNodeOptions } from './extensions/raw';
5
- export { normalizeRichText } from './html';
6
- export { type EditorPlugin, type EditorPluginOptions, createEditorPlugin, editorPlugin, } from './plugin';
7
- export { DEFAULT_HEADINGS, DEFAULT_TOOLBAR, type NewTabLinks, type RichTextOptions, type RichTextSettings, type RichTextStyle, getRichTextOptions, } from './settings';
1
+ export { RichTextField, RichTextFieldEntry, type RichTextFieldProps } from './RichTextField.js';
2
+ export { type RichTextButton, builtInButtons } from './buttons.js';
3
+ export { type RichTextExtensionsOptions, createRichTextExtensions } from './extensions/index.js';
4
+ export type { HtmlNodeOptions } from './extensions/raw.js';
5
+ export { normalizeRichText } from './html.js';
6
+ export { type EditorPlugin, type EditorPluginOptions, createEditorPlugin, editorPlugin, } from './plugin.js';
7
+ export { DEFAULT_HEADINGS, DEFAULT_TOOLBAR, type NewTabLinks, type RichTextOptions, type RichTextSettings, type RichTextStyle, getRichTextOptions, } from './settings.js';
8
8
  //# sourceMappingURL=index.d.ts.map
package/dist/plugin.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { AnyExtension } from '@tiptap/core';
2
2
  import type { FieldEntry } from '@panneau/fields';
3
- import type { RichTextButton } from './buttons';
3
+ import type { RichTextButton } from './buttons.js';
4
4
  export interface EditorPluginOptions {
5
5
  /**
6
6
  * TipTap extensions of the project, in every rich text field: custom nodes, such as an inline
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/editor",
3
- "version": "5.0.0-alpha.7",
3
+ "version": "5.0.0-alpha.9",
4
4
  "description": "The rich text field of Panneau, on TipTap 3: HTML storage, a toolbar and block styles set from the definition, and extensions from plugins.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -24,9 +24,9 @@
24
24
  "dist"
25
25
  ],
26
26
  "scripts": {
27
- "build": "vite build && tsc -p tsconfig.build.json",
27
+ "build": "vite build && node ../../scripts/declarations.js",
28
28
  "typecheck": "tsc --noEmit",
29
- "api": "tsc -p tsconfig.build.json && node ../../scripts/api-report.js"
29
+ "api": "node ../../scripts/declarations.js && node ../../scripts/api-report.js"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public"
@@ -41,10 +41,10 @@
41
41
  "react-intl": "^12.0.0"
42
42
  },
43
43
  "dependencies": {
44
- "@panneau/fields": "5.0.0-alpha.7",
45
- "@panneau/intl": "5.0.0-alpha.7",
46
- "@panneau/protocol": "5.0.0-alpha.7",
47
- "@panneau/ui": "5.0.0-alpha.7",
44
+ "@panneau/fields": "5.0.0-alpha.9",
45
+ "@panneau/intl": "5.0.0-alpha.9",
46
+ "@panneau/protocol": "5.0.0-alpha.9",
47
+ "@panneau/ui": "5.0.0-alpha.9",
48
48
  "@tiptap/extension-blockquote": "^3.32.1",
49
49
  "@tiptap/extension-bold": "^3.32.1",
50
50
  "@tiptap/extension-code": "^3.32.1",