@tooark/wysiwyg 1.9.4 → 1.10.1

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 (57) hide show
  1. package/README.md +2 -1
  2. package/README.pt-BR.md +2 -1
  3. package/dist/components/ark-wysiwyg-editor.cjs +830 -0
  4. package/dist/components/ark-wysiwyg-editor.cjs.map +1 -0
  5. package/dist/components/ark-wysiwyg-editor.js +828 -0
  6. package/dist/components/ark-wysiwyg-editor.js.map +1 -0
  7. package/dist/components/ark-wysiwyg-viewer.cjs +125 -0
  8. package/dist/components/ark-wysiwyg-viewer.cjs.map +1 -0
  9. package/dist/components/ark-wysiwyg-viewer.js +123 -0
  10. package/dist/components/ark-wysiwyg-viewer.js.map +1 -0
  11. package/dist/components/html-element-base.cjs +11 -0
  12. package/dist/components/html-element-base.cjs.map +1 -0
  13. package/dist/components/html-element-base.js +9 -0
  14. package/dist/components/html-element-base.js.map +1 -0
  15. package/dist/components/test-hooks.cjs +19 -0
  16. package/dist/components/test-hooks.cjs.map +1 -0
  17. package/dist/components/test-hooks.js +17 -0
  18. package/dist/components/test-hooks.js.map +1 -0
  19. package/dist/components/upgrade-properties.cjs +31 -0
  20. package/dist/components/upgrade-properties.cjs.map +1 -0
  21. package/dist/components/upgrade-properties.js +29 -0
  22. package/dist/components/upgrade-properties.js.map +1 -0
  23. package/dist/engine/index.cjs +278 -0
  24. package/dist/engine/index.cjs.map +1 -0
  25. package/dist/engine/index.js +269 -0
  26. package/dist/engine/index.js.map +1 -0
  27. package/dist/i18n.cjs +139 -0
  28. package/dist/i18n.cjs.map +1 -0
  29. package/dist/i18n.js +137 -0
  30. package/dist/i18n.js.map +1 -0
  31. package/dist/icons.cjs +34 -0
  32. package/dist/icons.cjs.map +1 -0
  33. package/dist/icons.js +32 -0
  34. package/dist/icons.js.map +1 -0
  35. package/dist/index.cjs +31 -1856
  36. package/dist/index.cjs.map +1 -1
  37. package/dist/index.d.cts +1 -1
  38. package/dist/index.d.ts +1 -1
  39. package/dist/index.js +8 -1837
  40. package/dist/index.js.map +1 -1
  41. package/dist/register.cjs +23 -0
  42. package/dist/register.cjs.map +1 -0
  43. package/dist/register.js +21 -0
  44. package/dist/register.js.map +1 -0
  45. package/dist/security.cjs +117 -0
  46. package/dist/security.cjs.map +1 -0
  47. package/dist/security.js +112 -0
  48. package/dist/security.js.map +1 -0
  49. package/dist/styles.cjs +288 -0
  50. package/dist/styles.cjs.map +1 -0
  51. package/dist/styles.js +284 -0
  52. package/dist/styles.js.map +1 -0
  53. package/dist/types/index.cjs +29 -0
  54. package/dist/types/index.cjs.map +1 -0
  55. package/dist/types/index.js +26 -0
  56. package/dist/types/index.js.map +1 -0
  57. package/package.json +3 -3
package/README.md CHANGED
@@ -70,6 +70,7 @@ Pick the toolbar groups per instance with `toolbar` and, to enable images and vi
70
70
  - Properties: `content` (Tiptap JSON, sanitized; setting it does not emit `ark-wysiwyg-change` and stays out of the undo history), `uploadFile`, `colors`, `highlights` (an array, or the attribute's JSON string, which is what a framework assigns), `resolvedTheme`, `editor` (the Tiptap instance); `insertFile(file)`.
71
71
  - Events: `ark-wysiwyg-change` (`detail` = JSON), `ark-wysiwyg-upload-error` (`detail: { reason, file, error? }`, reasons `no-uploader`, `unsupported-type`, `too-large`, `invalid-src`, `failed`).
72
72
  - Hooks: the root carries `data-ark="wysiwyg-editor"`, the toolbar `wysiwyg-editor-toolbar` and the editable content `wysiwyg-editor-content`; with `testid`, `data-testid` is the testid and `<testid>-toolbar`/`<testid>-content`.
73
+ - Layout: the host is `display: block` (the package's own stylesheet sets it, for the viewer too), so a `width` on it sizes the editor.
73
74
 
74
75
  ### `ark-wysiwyg-viewer`
75
76
 
@@ -132,7 +133,7 @@ Installed automatically unless marked as peer; peer dependencies are yours to in
132
133
  | [`@tiptap/extension-text-style`](https://www.npmjs.com/package/@tiptap/extension-text-style) | ^3.34.0 | Text style mark with color |
133
134
  | [`@tiptap/pm`](https://www.npmjs.com/package/@tiptap/pm) | ^3.34.0 | ProseMirror packages used by Tiptap |
134
135
  | [`@tiptap/starter-kit`](https://www.npmjs.com/package/@tiptap/starter-kit) | ^3.34.0 | Base nodes and marks (paragraph, heading, lists, bold, link, underline…) |
135
- | [`@tooark/tokens`](https://www.npmjs.com/package/@tooark/tokens) | ^1.9.4 | Design tokens (colors, sizes, motion) and primitive types |
136
+ | [`@tooark/tokens`](https://www.npmjs.com/package/@tooark/tokens) | ^1.10.1 | Design tokens (colors, sizes, motion) and primitive types |
136
137
  | [`tslib`](https://www.npmjs.com/package/tslib) | ^2.9.1 | TypeScript runtime helpers |
137
138
 
138
139
  ---
package/README.pt-BR.md CHANGED
@@ -70,6 +70,7 @@ Escolha os grupos da toolbar por instância com `toolbar` e, para ligar imagens
70
70
  - Propriedades: `content` (JSON do Tiptap, sanitizado; atribuir não emite `ark-wysiwyg-change` e fica fora do histórico), `uploadFile`, `colors`, `highlights` (um array, ou a string JSON do atributo, que é o que um framework atribui), `resolvedTheme`, `editor` (a instância do Tiptap); `insertFile(file)`.
71
71
  - Eventos: `ark-wysiwyg-change` (`detail` = JSON), `ark-wysiwyg-upload-error` (`detail: { reason, file, error? }`, motivos `no-uploader`, `unsupported-type`, `too-large`, `invalid-src`, `failed`).
72
72
  - Hooks: a raiz leva `data-ark="wysiwyg-editor"`, a toolbar `wysiwyg-editor-toolbar` e o conteúdo editável `wysiwyg-editor-content`; com `testid`, o `data-testid` é o testid e `<testid>-toolbar`/`<testid>-content`.
73
+ - Layout: o host é `display: block` (a folha de estilo do próprio pacote define, também para o viewer), então um `width` nele dimensiona o editor.
73
74
 
74
75
  ### `ark-wysiwyg-viewer`
75
76
 
@@ -132,7 +133,7 @@ Instaladas automaticamente, salvo as marcadas como peer, que ficam por sua conta
132
133
  | [`@tiptap/extension-text-style`](https://www.npmjs.com/package/@tiptap/extension-text-style) | ^3.34.0 | Marca de estilo de texto com cor |
133
134
  | [`@tiptap/pm`](https://www.npmjs.com/package/@tiptap/pm) | ^3.34.0 | Pacotes ProseMirror usados pelo Tiptap |
134
135
  | [`@tiptap/starter-kit`](https://www.npmjs.com/package/@tiptap/starter-kit) | ^3.34.0 | Nós e marcas base (parágrafo, título, listas, negrito, link, sublinhado…) |
135
- | [`@tooark/tokens`](https://www.npmjs.com/package/@tooark/tokens) | ^1.9.4 | Design tokens (cores, tamanhos, motion) e tipos primitivos |
136
+ | [`@tooark/tokens`](https://www.npmjs.com/package/@tooark/tokens) | ^1.10.1 | Design tokens (cores, tamanhos, motion) e tipos primitivos |
136
137
  | [`tslib`](https://www.npmjs.com/package/tslib) | ^2.9.1 | Helpers de runtime do TypeScript |
137
138
 
138
139
  ---