@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
@@ -25670,7 +25670,9 @@ const createMarkdownSerializerFunction = (config) => {
25670
25670
  .join('') +
25671
25671
  '>';
25672
25672
  const tagClose = `</${config.tagName}>`;
25673
- state.write(`${tagOpen}${tagClose}`);
25673
+ state.write(tagOpen);
25674
+ state.renderContent(node);
25675
+ state.write(tagClose);
25674
25676
  };
25675
25677
  };
25676
25678
  const buildMarkdownSerializer = (plugins) => {
@@ -26099,30 +26101,26 @@ const createActionBarInteractionPlugin = (menuCommandFactory) => {
26099
26101
  };
26100
26102
 
26101
26103
  const createNodeSpec = (config) => {
26102
- const attributes = config.attributes.reduce((acc, attr) => {
26103
- acc[attr] = {};
26104
- return acc;
26105
- }, {});
26104
+ const attributeSpecs = {};
26105
+ config.attributes.forEach((attribute) => (attributeSpecs[attribute] = {}));
26106
+ const tag = `${config.tagName}[${config.attributes.map((attr) => attr).join('][')}]`;
26106
26107
  return {
26107
26108
  group: 'inline',
26109
+ content: '(text* | inline*)',
26108
26110
  inline: true,
26109
- atom: false,
26111
+ atom: true,
26110
26112
  selectable: true,
26111
- attrs: attributes,
26112
- toDOM: (node) => [
26113
- config.tagName,
26114
- config.attributes.reduce((acc, attr) => {
26115
- acc[attr] = node.attrs[attr];
26116
- return acc;
26117
- }, {}),
26118
- ],
26113
+ attrs: attributeSpecs,
26114
+ toDOM: (node) => [config.tagName, node.attrs],
26119
26115
  parseDOM: [
26120
26116
  {
26121
- tag: `${config.tagName}[${config.attributes.map((attr) => attr).join('][')}]`,
26122
- getAttrs: (dom) => config.attributes.reduce((acc, attr) => {
26123
- acc[attr] = dom.getAttribute(attr);
26124
- return acc;
26125
- }, {}),
26117
+ tag: tag,
26118
+ getAttrs: (dom) => {
26119
+ const attributes = {};
26120
+ config.attributes.forEach((attribute) => (attributes[attribute] =
26121
+ dom.getAttribute(attribute)));
26122
+ return attributes;
26123
+ },
26126
26124
  },
26127
26125
  ],
26128
26126
  };