@limetech/lime-elements 37.65.4 → 37.65.6

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 (41) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/lime-elements.cjs.js +1 -1
  3. package/dist/cjs/limel-icon_2.cjs.entry.js +14 -2
  4. package/dist/cjs/limel-icon_2.cjs.entry.js.map +1 -1
  5. package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +17 -19
  6. package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js.map +1 -1
  7. package/dist/cjs/limel-snackbar.cjs.entry.js +2 -1
  8. package/dist/cjs/limel-snackbar.cjs.entry.js.map +1 -1
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/collection/components/portal/portal.js +14 -22
  11. package/dist/collection/components/portal/portal.js.map +1 -1
  12. package/dist/collection/components/snackbar/snackbar.css +75 -0
  13. package/dist/collection/components/snackbar/snackbar.js +1 -0
  14. package/dist/collection/components/snackbar/snackbar.js.map +1 -1
  15. package/dist/collection/components/text-editor/utils/markdown-converter.js +3 -1
  16. package/dist/collection/components/text-editor/utils/markdown-converter.js.map +1 -1
  17. package/dist/collection/components/text-editor/utils/plugin-factory.js +14 -18
  18. package/dist/collection/components/text-editor/utils/plugin-factory.js.map +1 -1
  19. package/dist/esm/lime-elements.js +1 -1
  20. package/dist/esm/limel-icon_2.entry.js +14 -2
  21. package/dist/esm/limel-icon_2.entry.js.map +1 -1
  22. package/dist/esm/limel-prosemirror-adapter.entry.js +17 -19
  23. package/dist/esm/limel-prosemirror-adapter.entry.js.map +1 -1
  24. package/dist/esm/limel-snackbar.entry.js +2 -1
  25. package/dist/esm/limel-snackbar.entry.js.map +1 -1
  26. package/dist/esm/loader.js +1 -1
  27. package/dist/lime-elements/lime-elements.esm.js +1 -1
  28. package/dist/lime-elements/lime-elements.esm.js.map +1 -1
  29. package/dist/lime-elements/p-0f484317.entry.js +2 -0
  30. package/dist/lime-elements/p-0f484317.entry.js.map +1 -0
  31. package/dist/lime-elements/{p-fea2cbd9.entry.js → p-975f1ee3.entry.js} +2 -2
  32. package/dist/lime-elements/p-975f1ee3.entry.js.map +1 -0
  33. package/dist/lime-elements/{p-f6929c67.entry.js → p-d687c11f.entry.js} +2 -2
  34. package/dist/lime-elements/p-d687c11f.entry.js.map +1 -0
  35. package/dist/types/components/portal/portal.d.ts +1 -11
  36. package/dist/types/components.d.ts +0 -8
  37. package/package.json +1 -1
  38. package/dist/lime-elements/p-d968c565.entry.js +0 -2
  39. package/dist/lime-elements/p-d968c565.entry.js.map +0 -1
  40. package/dist/lime-elements/p-f6929c67.entry.js.map +0 -1
  41. package/dist/lime-elements/p-fea2cbd9.entry.js.map +0 -1
@@ -25674,7 +25674,9 @@ const createMarkdownSerializerFunction = (config) => {
25674
25674
  .join('') +
25675
25675
  '>';
25676
25676
  const tagClose = `</${config.tagName}>`;
25677
- state.write(`${tagOpen}${tagClose}`);
25677
+ state.write(tagOpen);
25678
+ state.renderContent(node);
25679
+ state.write(tagClose);
25678
25680
  };
25679
25681
  };
25680
25682
  const buildMarkdownSerializer = (plugins) => {
@@ -26103,30 +26105,26 @@ const createActionBarInteractionPlugin = (menuCommandFactory) => {
26103
26105
  };
26104
26106
 
26105
26107
  const createNodeSpec = (config) => {
26106
- const attributes = config.attributes.reduce((acc, attr) => {
26107
- acc[attr] = {};
26108
- return acc;
26109
- }, {});
26108
+ const attributeSpecs = {};
26109
+ config.attributes.forEach((attribute) => (attributeSpecs[attribute] = {}));
26110
+ const tag = `${config.tagName}[${config.attributes.map((attr) => attr).join('][')}]`;
26110
26111
  return {
26111
26112
  group: 'inline',
26113
+ content: '(text* | inline*)',
26112
26114
  inline: true,
26113
- atom: false,
26115
+ atom: true,
26114
26116
  selectable: true,
26115
- attrs: attributes,
26116
- toDOM: (node) => [
26117
- config.tagName,
26118
- config.attributes.reduce((acc, attr) => {
26119
- acc[attr] = node.attrs[attr];
26120
- return acc;
26121
- }, {}),
26122
- ],
26117
+ attrs: attributeSpecs,
26118
+ toDOM: (node) => [config.tagName, node.attrs],
26123
26119
  parseDOM: [
26124
26120
  {
26125
- tag: `${config.tagName}[${config.attributes.map((attr) => attr).join('][')}]`,
26126
- getAttrs: (dom) => config.attributes.reduce((acc, attr) => {
26127
- acc[attr] = dom.getAttribute(attr);
26128
- return acc;
26129
- }, {}),
26121
+ tag: tag,
26122
+ getAttrs: (dom) => {
26123
+ const attributes = {};
26124
+ config.attributes.forEach((attribute) => (attributes[attribute] =
26125
+ dom.getAttribute(attribute)));
26126
+ return attributes;
26127
+ },
26130
26128
  },
26131
26129
  ],
26132
26130
  };