@limetech/lime-elements 37.21.0 → 37.23.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.
Files changed (46) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/cjs/lime-elements.cjs.js +1 -1
  3. package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +3 -3
  4. package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js.map +1 -1
  5. package/dist/cjs/limel-text-editor.cjs.entry.js +7 -1
  6. package/dist/cjs/limel-text-editor.cjs.entry.js.map +1 -1
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/collection/collection-manifest.json +1 -1
  9. package/dist/collection/components/text-editor/prosemirror-adapter/menu/full-menu.js.map +1 -0
  10. package/dist/collection/components/text-editor/prosemirror-adapter/menu/menu-filter.js.map +1 -0
  11. package/dist/collection/components/text-editor/prosemirror-adapter/menu/types.js.map +1 -0
  12. package/dist/collection/components/text-editor/{prosemirror-adapter.css → prosemirror-adapter/prosemirror-adapter.css} +4 -1
  13. package/dist/collection/components/text-editor/{prosemirror-adapter.js → prosemirror-adapter/prosemirror-adapter.js} +14 -16
  14. package/dist/collection/components/text-editor/prosemirror-adapter/prosemirror-adapter.js.map +1 -0
  15. package/dist/collection/components/text-editor/text-editor.css +8 -0
  16. package/dist/collection/components/text-editor/text-editor.js +24 -9
  17. package/dist/collection/components/text-editor/text-editor.js.map +1 -1
  18. package/dist/esm/lime-elements.js +1 -1
  19. package/dist/esm/limel-prosemirror-adapter.entry.js +3 -3
  20. package/dist/esm/limel-prosemirror-adapter.entry.js.map +1 -1
  21. package/dist/esm/limel-text-editor.entry.js +7 -1
  22. package/dist/esm/limel-text-editor.entry.js.map +1 -1
  23. package/dist/esm/loader.js +1 -1
  24. package/dist/lime-elements/lime-elements.esm.js +1 -1
  25. package/dist/lime-elements/{p-0f45a6cc.entry.js → p-5b2e8739.entry.js} +2 -2
  26. package/dist/lime-elements/p-5b2e8739.entry.js.map +1 -0
  27. package/dist/lime-elements/p-caf959fe.entry.js +2 -0
  28. package/dist/lime-elements/p-caf959fe.entry.js.map +1 -0
  29. package/dist/types/components/text-editor/prosemirror-adapter/prosemirror-adapter.d.ts +26 -0
  30. package/dist/types/components/text-editor/text-editor.d.ts +14 -12
  31. package/dist/types/components.d.ts +54 -42
  32. package/package.json +1 -1
  33. package/dist/collection/components/text-editor/menu/full-menu.js.map +0 -1
  34. package/dist/collection/components/text-editor/menu/menu-filter.js.map +0 -1
  35. package/dist/collection/components/text-editor/menu/types.js.map +0 -1
  36. package/dist/collection/components/text-editor/prosemirror-adapter.js.map +0 -1
  37. package/dist/lime-elements/p-0f45a6cc.entry.js.map +0 -1
  38. package/dist/lime-elements/p-210c09a6.entry.js +0 -2
  39. package/dist/lime-elements/p-210c09a6.entry.js.map +0 -1
  40. package/dist/types/components/text-editor/prosemirror-adapter.d.ts +0 -32
  41. /package/dist/collection/components/text-editor/{menu → prosemirror-adapter/menu}/full-menu.js +0 -0
  42. /package/dist/collection/components/text-editor/{menu → prosemirror-adapter/menu}/menu-filter.js +0 -0
  43. /package/dist/collection/components/text-editor/{menu → prosemirror-adapter/menu}/types.js +0 -0
  44. /package/dist/types/components/text-editor/{menu → prosemirror-adapter/menu}/full-menu.d.ts +0 -0
  45. /package/dist/types/components/text-editor/{menu → prosemirror-adapter/menu}/menu-filter.d.ts +0 -0
  46. /package/dist/types/components/text-editor/{menu → prosemirror-adapter/menu}/types.d.ts +0 -0
@@ -1,2 +0,0 @@
1
- import{r as e,c as i,h as t}from"./p-443111b3.js";const s="";const n=class{constructor(t){e(this,t);this.change=i(this,"change",7);this.handleChange=()=>e=>{e.stopPropagation();this.change.emit(e.detail)};this.disabled=undefined;this.readonly=undefined;this.helperText=undefined;this.placeholder=undefined;this.label=undefined;this.invalid=undefined;this.value=undefined}render(){return t("limel-prosemirror-adapter",{onChange:this.handleChange,value:this.value})}};n.style=s;export{n as limel_text_editor};
2
- //# sourceMappingURL=p-210c09a6.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["textEditorCss","TextEditor","this","handleChange","event","stopPropagation","change","emit","detail","render","h","onChange","value"],"sources":["./src/components/text-editor/text-editor.scss?tag=limel-text-editor&encapsulation=shadow","./src/components/text-editor/text-editor.tsx"],"sourcesContent":[null,"import { Component, Event, EventEmitter, Prop, h } from '@stencil/core';\nimport { FormComponent } from '../form/form.types';\n/**\n * A rich text editor that allows the user to input and format text\n * The `limel-text-editor` can be used as a form field\n *\n * @exampleComponent limel-example-text-editor-basic\n * @beta\n * @private\n */\n@Component({\n tag: 'limel-text-editor',\n shadow: true,\n styleUrl: 'text-editor.scss',\n})\nexport class TextEditor implements FormComponent<{ html: string }> {\n /**\n * Set to `true` to disable the field.\n * Use `disabled` to indicate that the field can normally be interacted\n * with, but is currently disabled. This tells the user that if certain\n * requirements are met, the field may become enabled again.\n */\n @Prop({ reflect: true })\n public disabled?: boolean;\n\n /**\n * Set to `true` to make the component read-only.\n * Use `readonly` when the field is only there to present the data it holds,\n * and will not become possible for the current user to edit.\n * :::note\n * Consider that it might be better to use `limel-markdown`\n * instead of `limel-text-editor` when the goal is visualizing data.\n * :::\n */\n @Prop({ reflect: true })\n public readonly?: boolean;\n\n /**\n * Optional helper text to display below the input field when it has focus\n */\n @Prop({ reflect: true })\n public helperText?: string;\n\n /**\n * The placeholder text shown inside the input field,\n * when the field is empty.\n */\n @Prop({ reflect: true })\n public placeholder?: string;\n\n /**\n * The label of the editor\n */\n @Prop({ reflect: true })\n public label?: string;\n\n /**\n * Set to `true` to indicate that the current value of the editor is\n * invalid.\n */\n @Prop({ reflect: true })\n public invalid?: boolean;\n\n /**\n * Description of the text inside the editor\n */\n @Prop({ reflect: true })\n public value: { html: string };\n\n /**\n * Dispatched when a change is made to the editor\n */\n @Event()\n public change: EventEmitter<{ html: string }>;\n\n public render() {\n return (\n <limel-prosemirror-adapter\n onChange={this.handleChange}\n value={this.value}\n />\n );\n }\n\n private handleChange = () => (event: CustomEvent<{ html: string }>) => {\n event.stopPropagation();\n this.change.emit(event.detail);\n };\n}\n"],"mappings":"kDAAA,MAAMA,EAAgB,G,MCeTC,EAAU,M,wDAqEXC,KAAAC,aAAe,IAAOC,IAC1BA,EAAMC,kBACNH,KAAKI,OAAOC,KAAKH,EAAMI,OAAO,E,sKAX3BC,SACH,OACIC,EAAA,6BACIC,SAAUT,KAAKC,aACfS,MAAOV,KAAKU,O"}
@@ -1,32 +0,0 @@
1
- /**
2
- * The ProseMirror adapter offers a rich text editing experience with markdown support,
3
- * in the sense that you can easily type markdown syntax and see the rendered
4
- * result as rich text in real-time. For instance, you can type `# Hello, world!`
5
- * and see it directly turning to a heading 1 (an `<h1>` HTML element).
6
- *
7
- * Naturally, you can use standard keyboard hotkeys such as <kbd>Ctrl</kbd> + <kbd>B</kbd>
8
- * to toggle bold text, <kbd>Ctrl</kbd> + <kbd>I</kbd> to toggle italic text, and so on.
9
- *
10
- * @exampleComponent limel-example-prosemirror-adapter-basic
11
- * @beta
12
- * @private
13
- */
14
- export declare class ProsemirrorAdapter {
15
- /**
16
- * The value of the editor
17
- */
18
- value: {
19
- html: string;
20
- };
21
- private host;
22
- private view;
23
- /**
24
- * Dispatched when a change is made to the editor
25
- */
26
- private change;
27
- componentWillLoad(): void;
28
- render(): any;
29
- componentDidLoad(): void;
30
- private getHTML;
31
- }
32
- //# sourceMappingURL=prosemirror-adapter.d.ts.map