@writeon/core 0.2.0 → 0.3.0

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/llms.txt CHANGED
@@ -13,11 +13,13 @@ Every link below is plain Markdown. Everything in one file: [llms-full.txt](/llm
13
13
  - [Saving and loading](/guide/saving.md): Store the JSON document, save with debounce, and convert to and from HTML and Markdown.
14
14
  - [Server-side rendering](/guide/ssr.md): Server-side rendering with Next.js and Nuxt: what runs on the server and how the editor hydrates.
15
15
  - [Other frameworks](/guide/frameworks.md): Use Writeon in Svelte, Angular or any other framework: four lifecycle steps, with tested examples.
16
+ - [Web component](/guide/element.md): <writeon-editor>: the editor as a form field for plain HTML, Laravel Blade, Symfony Twig and Django, from npm or a CDN.
16
17
  - [Security](/guide/security.md): Never trust editor output: validate documents on the server and render them as safe HTML.
17
18
  - [Accessibility](/guide/accessibility.md): What WCAG 2.2 AA means for the editor: keyboard use, ARIA patterns, labels and announcements.
18
19
  - [Default kit](/guide/kit.md): The ready-made UI: one CSS file, a toolbar and the advanced UI, with theming, dark mode and phone layout.
19
20
  - [Headless UI](/guide/headless-ui.md): Behaviour and accessibility without markup: controllers with state and prop getters for your own UI.
20
21
  - [Working with AI assistants](/guide/ai.md): Docs for coding assistants: llms.txt, llms-full.txt, Markdown pages and an AGENTS.md block.
22
+ - [Stability](/guide/stability.md): What a Writeon release may change: semver from 1.0, stored documents that always load, deprecations, supported browsers and Node.js.
21
23
 
22
24
  ## Recipes
23
25
 
@@ -30,7 +32,7 @@ Every link below is plain Markdown. Everything in one file: [llms-full.txt](/llm
30
32
  ## API reference
31
33
 
32
34
  - [Packages](/api/index.md): Each package links to its [API reference](/api/reference.md), generated from the same JSDoc your editor shows on hover. Every public subpath (such as `@writeon/core/commands`) has its own page.
33
- - [@writeon/advanced](/api/advanced/reference.md): Advanced editing behaviour: task lists, code blocks, image uploads, tables and mentions. Load it lazily and turn it on with `editor.enable(advanced())`; the node types come from `@mfsv- rte/advanced/schema`.
35
+ - [@writeon/advanced](/api/advanced/reference.md): Advanced editing behaviour: task lists, code blocks, image uploads, tables and mentions. Load it lazily and turn it on with `editor.extend(advanced())`; the node types come from `@writeon/advanced/schema`.
34
36
  - [@writeon/advanced/embed](/api/advanced/embed/reference.md): Custom blocks ("embeds"): a block the editor shows as a placeholder and your front end replaces with its own component, such as a list of pickup branches. Documents store `{ type: 'embed', attrs: { kind, props } }`; the kinds and their props are configured, so the server (`validate()`) drops anything else. Small and eager: add `embed()` to the editor from the start.
35
37
  - [@writeon/advanced/formatting](/api/advanced/formatting/reference.md): Font family, text colour and text alignment. Each is configured with the values your design allows; documents store only their ids, so the server (`validate()`) drops anything else and `toHTML()` writes only safe CSS. Small and eager: add them to the editor from the start, like `advancedSchema()`.
36
38
  - [@writeon/advanced/schema](/api/advanced/schema/reference.md): The node types of the advanced features (task list, code block, image, table, mention) without their behaviour. Small and eager: include `advancedSchema()` in the editor from the start, on the client and on the server.
@@ -39,6 +41,7 @@ Every link below is plain Markdown. Everything in one file: [llms-full.txt](/llm
39
41
  - [@writeon/core/extension](/api/core/extension/reference.md): Building blocks for writing your own extensions: `defineExtension`, `createSchema`, `docFromJSON`, `markInputRule`.
40
42
  - [@writeon/core/extensions](/api/core/extensions/reference.md): The individual extensions behind the `basic()` preset (paragraph, heading, lists, marks, link, history…), for picking them one by one.
41
43
  - [@writeon/core/presets](/api/core/presets/reference.md): The `basic()` preset: everything a typical text field needs, each part configurable or switchable off.
44
+ - [@writeon/element](/api/element/reference.md): `<writeon-editor>`: Writeon as a web component and form field, for plain HTML, server-rendered pages (Laravel Blade, Symfony Twig, Django…) and any framework. Importing this module registers the element.
42
45
  - [@writeon/html](/api/html/reference.md): Convert between `DocJSON` and HTML (`toHTML`, `fromHTML`) and clean up pasted Word and Google Docs content (`officePaste`).
43
46
  - [@writeon/kit](/api/kit/reference.md): The default kit: a ready-made toolbar on top of the headless controllers (`mountToolbar`) styled by `@writeon/kit/style.css`.
44
47
  - [@writeon/kit/advanced](/api/kit/advanced/reference.md): Ready-made UI for the advanced features: image dialog and uploads, table menu, slash commands, mentions and the selection bubble (`mountAdvanced`). Loaded on demand.
@@ -49,6 +52,7 @@ Every link below is plain Markdown. Everything in one file: [llms-full.txt](/llm
49
52
  - [@writeon/react](/api/react/reference.md): React bindings: `useEditor`, `useEditorState`, `<EditorContent>` and hooks for every headless UI controller.
50
53
  - [@writeon/server](/api/server/reference.md): Never trust editor output: `validate` checks a document against your schema and limits, `toSafeHTML` renders it to safe HTML.
51
54
  - [@writeon/ui](/api/ui/reference.md): Headless UI controllers: behaviour and accessibility as state and prop getters for toolbars, menus, links, tooltips, the image dialog, the bubble menu and suggestions. Renders nothing.
55
+ - [@writeon/ui/locales/en](/api/ui/locales/en/reference.md): English messages for the UI controllers and the kit: the default. The same object as `en` from `@writeon/ui`; this entry exists so locales can be loaded by code, e.g. `import(\`@writeon/ui/locales/${lang}\`)`.
52
56
  - [@writeon/ui/locales/ru](/api/ui/locales/ru/reference.md): Russian messages for the UI controllers and the kit.
53
57
  - [@writeon/ui/locales/uz](/api/ui/locales/uz/reference.md): Uzbek (Latin) messages for the UI controllers and the kit.
54
58
  - [@writeon/vue](/api/vue/reference.md): Vue bindings: `useEditor`, `useEditorState`, `<EditorContent>` and composables for every headless UI controller.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@writeon/core",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Framework-agnostic, headless, accessible rich text editor core built on ProseMirror",
5
5
  "license": "MIT",
6
6
  "author": "Ma'ruf Sheraliyev (https://github.com/mfs1011)",