roosterjs-content-model-plugins 0.23.0 → 0.24.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 (154) hide show
  1. package/lib/edit/ContentModelEditPlugin.d.ts +2 -2
  2. package/lib/edit/ContentModelEditPlugin.js +1 -2
  3. package/lib/edit/ContentModelEditPlugin.js.map +1 -1
  4. package/lib/edit/deleteSteps/deleteList.d.ts +5 -0
  5. package/lib/edit/deleteSteps/deleteList.js +24 -0
  6. package/lib/edit/deleteSteps/deleteList.js.map +1 -0
  7. package/lib/edit/handleKeyboardEventCommon.d.ts +2 -3
  8. package/lib/edit/handleKeyboardEventCommon.js +1 -1
  9. package/lib/edit/handleKeyboardEventCommon.js.map +1 -1
  10. package/lib/edit/keyboardDelete.d.ts +2 -2
  11. package/lib/edit/keyboardDelete.js +8 -1
  12. package/lib/edit/keyboardDelete.js.map +1 -1
  13. package/lib/edit/keyboardInput.d.ts +2 -2
  14. package/lib/edit/keyboardInput.js.map +1 -1
  15. package/lib/paste/ContentModelPastePlugin.d.ts +2 -2
  16. package/lib/paste/ContentModelPastePlugin.js +16 -25
  17. package/lib/paste/ContentModelPastePlugin.js.map +1 -1
  18. package/lib/paste/Excel/processPastedContentFromExcel.d.ts +2 -3
  19. package/lib/paste/Excel/processPastedContentFromExcel.js.map +1 -1
  20. package/lib/paste/PowerPoint/processPastedContentFromPowerPoint.d.ts +1 -1
  21. package/lib/paste/PowerPoint/processPastedContentFromPowerPoint.js.map +1 -1
  22. package/lib/paste/WacComponents/processPastedContentWacComponents.d.ts +2 -2
  23. package/lib/paste/WacComponents/processPastedContentWacComponents.js +59 -61
  24. package/lib/paste/WacComponents/processPastedContentWacComponents.js.map +1 -1
  25. package/lib/paste/WordDesktop/getStyleMetadata.d.ts +2 -2
  26. package/lib/paste/WordDesktop/getStyleMetadata.js.map +1 -1
  27. package/lib/paste/WordDesktop/processPastedContentFromWordDesktop.d.ts +2 -2
  28. package/lib/paste/WordDesktop/processPastedContentFromWordDesktop.js +2 -0
  29. package/lib/paste/WordDesktop/processPastedContentFromWordDesktop.js.map +1 -1
  30. package/lib/paste/WordDesktop/processWordLists.js +2 -0
  31. package/lib/paste/WordDesktop/processWordLists.js.map +1 -1
  32. package/lib/paste/WordDesktop/removeNegativeTextIndentParser.d.ts +5 -0
  33. package/lib/paste/WordDesktop/removeNegativeTextIndentParser.js +14 -0
  34. package/lib/paste/WordDesktop/removeNegativeTextIndentParser.js.map +1 -0
  35. package/lib/paste/pasteSourceValidations/constants.d.ts +5 -5
  36. package/lib/paste/pasteSourceValidations/constants.js +5 -6
  37. package/lib/paste/pasteSourceValidations/constants.js.map +1 -1
  38. package/lib/paste/pasteSourceValidations/getPasteSource.d.ts +1 -2
  39. package/lib/paste/pasteSourceValidations/getPasteSource.js.map +1 -1
  40. package/lib/paste/pasteSourceValidations/isExcelDesktopDocument.js +2 -1
  41. package/lib/paste/pasteSourceValidations/isExcelDesktopDocument.js.map +1 -1
  42. package/lib/paste/pasteSourceValidations/isExcelOnlineDocument.js +3 -2
  43. package/lib/paste/pasteSourceValidations/isExcelOnlineDocument.js.map +1 -1
  44. package/lib/paste/pasteSourceValidations/isGoogleSheetDocument.js +2 -1
  45. package/lib/paste/pasteSourceValidations/isGoogleSheetDocument.js.map +1 -1
  46. package/lib/paste/pasteSourceValidations/isPowerPointDesktopDocument.js +2 -1
  47. package/lib/paste/pasteSourceValidations/isPowerPointDesktopDocument.js.map +1 -1
  48. package/lib/paste/pasteSourceValidations/isWordDesktopDocument.js +2 -1
  49. package/lib/paste/pasteSourceValidations/isWordDesktopDocument.js.map +1 -1
  50. package/lib/paste/utils/addParser.d.ts +2 -2
  51. package/lib/paste/utils/addParser.js.map +1 -1
  52. package/lib-amd/edit/ContentModelEditPlugin.d.ts +2 -2
  53. package/lib-amd/edit/ContentModelEditPlugin.js +1 -2
  54. package/lib-amd/edit/ContentModelEditPlugin.js.map +1 -1
  55. package/lib-amd/edit/deleteSteps/deleteList.d.ts +5 -0
  56. package/lib-amd/edit/deleteSteps/deleteList.js +25 -0
  57. package/lib-amd/edit/deleteSteps/deleteList.js.map +1 -0
  58. package/lib-amd/edit/handleKeyboardEventCommon.d.ts +2 -3
  59. package/lib-amd/edit/handleKeyboardEventCommon.js +1 -1
  60. package/lib-amd/edit/handleKeyboardEventCommon.js.map +1 -1
  61. package/lib-amd/edit/keyboardDelete.d.ts +2 -2
  62. package/lib-amd/edit/keyboardDelete.js +8 -2
  63. package/lib-amd/edit/keyboardDelete.js.map +1 -1
  64. package/lib-amd/edit/keyboardInput.d.ts +2 -2
  65. package/lib-amd/edit/keyboardInput.js.map +1 -1
  66. package/lib-amd/paste/ContentModelPastePlugin.d.ts +2 -2
  67. package/lib-amd/paste/ContentModelPastePlugin.js +16 -26
  68. package/lib-amd/paste/ContentModelPastePlugin.js.map +1 -1
  69. package/lib-amd/paste/Excel/processPastedContentFromExcel.d.ts +2 -3
  70. package/lib-amd/paste/Excel/processPastedContentFromExcel.js.map +1 -1
  71. package/lib-amd/paste/PowerPoint/processPastedContentFromPowerPoint.d.ts +1 -1
  72. package/lib-amd/paste/PowerPoint/processPastedContentFromPowerPoint.js.map +1 -1
  73. package/lib-amd/paste/WacComponents/processPastedContentWacComponents.d.ts +2 -2
  74. package/lib-amd/paste/WacComponents/processPastedContentWacComponents.js +58 -62
  75. package/lib-amd/paste/WacComponents/processPastedContentWacComponents.js.map +1 -1
  76. package/lib-amd/paste/WordDesktop/getStyleMetadata.d.ts +2 -2
  77. package/lib-amd/paste/WordDesktop/getStyleMetadata.js.map +1 -1
  78. package/lib-amd/paste/WordDesktop/processPastedContentFromWordDesktop.d.ts +2 -2
  79. package/lib-amd/paste/WordDesktop/processPastedContentFromWordDesktop.js +2 -1
  80. package/lib-amd/paste/WordDesktop/processPastedContentFromWordDesktop.js.map +1 -1
  81. package/lib-amd/paste/WordDesktop/processWordLists.js +2 -1
  82. package/lib-amd/paste/WordDesktop/processWordLists.js.map +1 -1
  83. package/lib-amd/paste/WordDesktop/removeNegativeTextIndentParser.d.ts +5 -0
  84. package/lib-amd/paste/WordDesktop/removeNegativeTextIndentParser.js +16 -0
  85. package/lib-amd/paste/WordDesktop/removeNegativeTextIndentParser.js.map +1 -0
  86. package/lib-amd/paste/pasteSourceValidations/constants.d.ts +5 -5
  87. package/lib-amd/paste/pasteSourceValidations/constants.js +5 -6
  88. package/lib-amd/paste/pasteSourceValidations/constants.js.map +1 -1
  89. package/lib-amd/paste/pasteSourceValidations/getPasteSource.d.ts +1 -2
  90. package/lib-amd/paste/pasteSourceValidations/getPasteSource.js.map +1 -1
  91. package/lib-amd/paste/pasteSourceValidations/isExcelDesktopDocument.js +2 -2
  92. package/lib-amd/paste/pasteSourceValidations/isExcelDesktopDocument.js.map +1 -1
  93. package/lib-amd/paste/pasteSourceValidations/isExcelOnlineDocument.js +3 -3
  94. package/lib-amd/paste/pasteSourceValidations/isExcelOnlineDocument.js.map +1 -1
  95. package/lib-amd/paste/pasteSourceValidations/isGoogleSheetDocument.js +2 -2
  96. package/lib-amd/paste/pasteSourceValidations/isGoogleSheetDocument.js.map +1 -1
  97. package/lib-amd/paste/pasteSourceValidations/isPowerPointDesktopDocument.js +2 -2
  98. package/lib-amd/paste/pasteSourceValidations/isPowerPointDesktopDocument.js.map +1 -1
  99. package/lib-amd/paste/pasteSourceValidations/isWordDesktopDocument.js +2 -2
  100. package/lib-amd/paste/pasteSourceValidations/isWordDesktopDocument.js.map +1 -1
  101. package/lib-amd/paste/utils/addParser.d.ts +2 -2
  102. package/lib-amd/paste/utils/addParser.js.map +1 -1
  103. package/lib-mjs/edit/ContentModelEditPlugin.d.ts +2 -2
  104. package/lib-mjs/edit/ContentModelEditPlugin.js +1 -2
  105. package/lib-mjs/edit/ContentModelEditPlugin.js.map +1 -1
  106. package/lib-mjs/edit/deleteSteps/deleteList.d.ts +5 -0
  107. package/lib-mjs/edit/deleteSteps/deleteList.js +20 -0
  108. package/lib-mjs/edit/deleteSteps/deleteList.js.map +1 -0
  109. package/lib-mjs/edit/handleKeyboardEventCommon.d.ts +2 -3
  110. package/lib-mjs/edit/handleKeyboardEventCommon.js +1 -1
  111. package/lib-mjs/edit/handleKeyboardEventCommon.js.map +1 -1
  112. package/lib-mjs/edit/keyboardDelete.d.ts +2 -2
  113. package/lib-mjs/edit/keyboardDelete.js +8 -1
  114. package/lib-mjs/edit/keyboardDelete.js.map +1 -1
  115. package/lib-mjs/edit/keyboardInput.d.ts +2 -2
  116. package/lib-mjs/edit/keyboardInput.js.map +1 -1
  117. package/lib-mjs/paste/ContentModelPastePlugin.d.ts +2 -2
  118. package/lib-mjs/paste/ContentModelPastePlugin.js +16 -25
  119. package/lib-mjs/paste/ContentModelPastePlugin.js.map +1 -1
  120. package/lib-mjs/paste/Excel/processPastedContentFromExcel.d.ts +2 -3
  121. package/lib-mjs/paste/Excel/processPastedContentFromExcel.js.map +1 -1
  122. package/lib-mjs/paste/PowerPoint/processPastedContentFromPowerPoint.d.ts +1 -1
  123. package/lib-mjs/paste/PowerPoint/processPastedContentFromPowerPoint.js.map +1 -1
  124. package/lib-mjs/paste/WacComponents/processPastedContentWacComponents.d.ts +2 -2
  125. package/lib-mjs/paste/WacComponents/processPastedContentWacComponents.js +59 -61
  126. package/lib-mjs/paste/WacComponents/processPastedContentWacComponents.js.map +1 -1
  127. package/lib-mjs/paste/WordDesktop/getStyleMetadata.d.ts +2 -2
  128. package/lib-mjs/paste/WordDesktop/getStyleMetadata.js.map +1 -1
  129. package/lib-mjs/paste/WordDesktop/processPastedContentFromWordDesktop.d.ts +2 -2
  130. package/lib-mjs/paste/WordDesktop/processPastedContentFromWordDesktop.js +2 -0
  131. package/lib-mjs/paste/WordDesktop/processPastedContentFromWordDesktop.js.map +1 -1
  132. package/lib-mjs/paste/WordDesktop/processWordLists.js +2 -0
  133. package/lib-mjs/paste/WordDesktop/processWordLists.js.map +1 -1
  134. package/lib-mjs/paste/WordDesktop/removeNegativeTextIndentParser.d.ts +5 -0
  135. package/lib-mjs/paste/WordDesktop/removeNegativeTextIndentParser.js +10 -0
  136. package/lib-mjs/paste/WordDesktop/removeNegativeTextIndentParser.js.map +1 -0
  137. package/lib-mjs/paste/pasteSourceValidations/constants.d.ts +5 -5
  138. package/lib-mjs/paste/pasteSourceValidations/constants.js +5 -6
  139. package/lib-mjs/paste/pasteSourceValidations/constants.js.map +1 -1
  140. package/lib-mjs/paste/pasteSourceValidations/getPasteSource.d.ts +1 -2
  141. package/lib-mjs/paste/pasteSourceValidations/getPasteSource.js.map +1 -1
  142. package/lib-mjs/paste/pasteSourceValidations/isExcelDesktopDocument.js +2 -1
  143. package/lib-mjs/paste/pasteSourceValidations/isExcelDesktopDocument.js.map +1 -1
  144. package/lib-mjs/paste/pasteSourceValidations/isExcelOnlineDocument.js +3 -2
  145. package/lib-mjs/paste/pasteSourceValidations/isExcelOnlineDocument.js.map +1 -1
  146. package/lib-mjs/paste/pasteSourceValidations/isGoogleSheetDocument.js +2 -1
  147. package/lib-mjs/paste/pasteSourceValidations/isGoogleSheetDocument.js.map +1 -1
  148. package/lib-mjs/paste/pasteSourceValidations/isPowerPointDesktopDocument.js +2 -1
  149. package/lib-mjs/paste/pasteSourceValidations/isPowerPointDesktopDocument.js.map +1 -1
  150. package/lib-mjs/paste/pasteSourceValidations/isWordDesktopDocument.js +2 -1
  151. package/lib-mjs/paste/pasteSourceValidations/isWordDesktopDocument.js.map +1 -1
  152. package/lib-mjs/paste/utils/addParser.d.ts +2 -2
  153. package/lib-mjs/paste/utils/addParser.js.map +1 -1
  154. package/package.json +5 -5
@@ -1 +1 @@
1
- {"version":3,"file":"isGoogleSheetDocument.js","sourceRoot":"","sources":["../../../../../packages-content-model/roosterjs-content-model-plugins/lib/paste/pasteSourceValidations/isGoogleSheetDocument.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,MAAM,CAAC,IAAM,qBAAqB,GAAsB,UAAA,KAAK;IACjD,IAAA,QAAQ,GAAK,KAAK,SAAV,CAAW;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,aAAa,0DAA2C,CAAC;AAC/E,CAAC,CAAC","sourcesContent":["import { PastePropertyNames } from './constants';\nimport type { GetSourceFunction } from './getPasteSource';\n\n/**\n * @internal\n * Checks whether the fragment provided contain elements from Google sheets\n * @param props Properties related to the PasteEvent\n * @returns\n */\nexport const isGoogleSheetDocument: GetSourceFunction = props => {\n const { fragment } = props;\n return !!fragment.querySelector(PastePropertyNames.GOOGLE_SHEET_NODE_NAME);\n};\n"]}
1
+ {"version":3,"file":"isGoogleSheetDocument.js","sourceRoot":"","sources":["../../../../../packages-content-model/roosterjs-content-model-plugins/lib/paste/pasteSourceValidations/isGoogleSheetDocument.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGjD;;;;;GAKG;AACH,MAAM,CAAC,IAAM,qBAAqB,GAAsB,UAAA,KAAK;IACjD,IAAA,QAAQ,GAAK,KAAK,SAAV,CAAW;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,CAAC;AAC/E,CAAC,CAAC","sourcesContent":["import { PastePropertyNames } from './constants';\nimport type { GetSourceFunction } from './getPasteSource';\n\n/**\n * @internal\n * Checks whether the fragment provided contain elements from Google sheets\n * @param props Properties related to the PasteEvent\n * @returns\n */\nexport const isGoogleSheetDocument: GetSourceFunction = props => {\n const { fragment } = props;\n return !!fragment.querySelector(PastePropertyNames.GOOGLE_SHEET_NODE_NAME);\n};\n"]}
@@ -1,3 +1,4 @@
1
+ import { PastePropertyNames } from './constants';
1
2
  var POWERPOINT_ATTRIBUTE_VALUE = 'PowerPoint.Slide';
2
3
  /**
3
4
  * @internal
@@ -6,6 +7,6 @@ var POWERPOINT_ATTRIBUTE_VALUE = 'PowerPoint.Slide';
6
7
  * @returns
7
8
  */
8
9
  export var isPowerPointDesktopDocument = function (props) {
9
- return props.htmlAttributes["ProgId" /* PROG_ID_NAME */] == POWERPOINT_ATTRIBUTE_VALUE;
10
+ return props.htmlAttributes[PastePropertyNames.PROG_ID_NAME] == POWERPOINT_ATTRIBUTE_VALUE;
10
11
  };
11
12
  //# sourceMappingURL=isPowerPointDesktopDocument.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"isPowerPointDesktopDocument.js","sourceRoot":"","sources":["../../../../../packages-content-model/roosterjs-content-model-plugins/lib/paste/pasteSourceValidations/isPowerPointDesktopDocument.ts"],"names":[],"mappings":"AAGA,IAAM,0BAA0B,GAAG,kBAAkB,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,CAAC,IAAM,2BAA2B,GAAsB,UAAA,KAAK;IAC/D,OAAO,KAAK,CAAC,cAAc,6BAAiC,IAAI,0BAA0B,CAAC;AAC/F,CAAC,CAAC","sourcesContent":["import { PastePropertyNames } from './constants';\nimport type { GetSourceFunction } from './getPasteSource';\n\nconst POWERPOINT_ATTRIBUTE_VALUE = 'PowerPoint.Slide';\n\n/**\n * @internal\n * Checks whether the Array provided contains strings that identify Power Point Desktop documents\n * @param props Properties related to the PasteEvent\n * @returns\n */\nexport const isPowerPointDesktopDocument: GetSourceFunction = props => {\n return props.htmlAttributes[PastePropertyNames.PROG_ID_NAME] == POWERPOINT_ATTRIBUTE_VALUE;\n};\n"]}
1
+ {"version":3,"file":"isPowerPointDesktopDocument.js","sourceRoot":"","sources":["../../../../../packages-content-model/roosterjs-content-model-plugins/lib/paste/pasteSourceValidations/isPowerPointDesktopDocument.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGjD,IAAM,0BAA0B,GAAG,kBAAkB,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,CAAC,IAAM,2BAA2B,GAAsB,UAAA,KAAK;IAC/D,OAAO,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC,YAAY,CAAC,IAAI,0BAA0B,CAAC;AAC/F,CAAC,CAAC","sourcesContent":["import { PastePropertyNames } from './constants';\nimport type { GetSourceFunction } from './getPasteSource';\n\nconst POWERPOINT_ATTRIBUTE_VALUE = 'PowerPoint.Slide';\n\n/**\n * @internal\n * Checks whether the Array provided contains strings that identify Power Point Desktop documents\n * @param props Properties related to the PasteEvent\n * @returns\n */\nexport const isPowerPointDesktopDocument: GetSourceFunction = props => {\n return props.htmlAttributes[PastePropertyNames.PROG_ID_NAME] == POWERPOINT_ATTRIBUTE_VALUE;\n};\n"]}
@@ -1,3 +1,4 @@
1
+ import { PastePropertyNames } from './constants';
1
2
  var WORD_ATTRIBUTE_NAME = 'xmlns:w';
2
3
  var WORD_ATTRIBUTE_VALUE = 'urn:schemas-microsoft-com:office:word';
3
4
  var WORD_PROG_ID = 'Word.Document';
@@ -10,6 +11,6 @@ var WORD_PROG_ID = 'Word.Document';
10
11
  export var isWordDesktopDocument = function (props) {
11
12
  var htmlAttributes = props.htmlAttributes;
12
13
  return (htmlAttributes[WORD_ATTRIBUTE_NAME] == WORD_ATTRIBUTE_VALUE ||
13
- htmlAttributes["ProgId" /* PROG_ID_NAME */] == WORD_PROG_ID);
14
+ htmlAttributes[PastePropertyNames.PROG_ID_NAME] == WORD_PROG_ID);
14
15
  };
15
16
  //# sourceMappingURL=isWordDesktopDocument.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"isWordDesktopDocument.js","sourceRoot":"","sources":["../../../../../packages-content-model/roosterjs-content-model-plugins/lib/paste/pasteSourceValidations/isWordDesktopDocument.ts"],"names":[],"mappings":"AAGA,IAAM,mBAAmB,GAAG,SAAS,CAAC;AACtC,IAAM,oBAAoB,GAAG,uCAAuC,CAAC;AACrE,IAAM,YAAY,GAAG,eAAe,CAAC;AAErC;;;;;GAKG;AACH,MAAM,CAAC,IAAM,qBAAqB,GAAsB,UAAA,KAAK;IACjD,IAAA,cAAc,GAAK,KAAK,eAAV,CAAW;IACjC,OAAO,CACH,cAAc,CAAC,mBAAmB,CAAC,IAAI,oBAAoB;QAC3D,cAAc,6BAAiC,IAAI,YAAY,CAClE,CAAC;AACN,CAAC,CAAC","sourcesContent":["import { PastePropertyNames } from './constants';\nimport type { GetSourceFunction } from './getPasteSource';\n\nconst WORD_ATTRIBUTE_NAME = 'xmlns:w';\nconst WORD_ATTRIBUTE_VALUE = 'urn:schemas-microsoft-com:office:word';\nconst WORD_PROG_ID = 'Word.Document';\n\n/**\n * @internal\n * Checks whether the Array provided contains strings that identify Word Desktop documents\n * @param props Properties related to the PasteEvent\n * @returns\n */\nexport const isWordDesktopDocument: GetSourceFunction = props => {\n const { htmlAttributes } = props;\n return (\n htmlAttributes[WORD_ATTRIBUTE_NAME] == WORD_ATTRIBUTE_VALUE ||\n htmlAttributes[PastePropertyNames.PROG_ID_NAME] == WORD_PROG_ID\n );\n};\n"]}
1
+ {"version":3,"file":"isWordDesktopDocument.js","sourceRoot":"","sources":["../../../../../packages-content-model/roosterjs-content-model-plugins/lib/paste/pasteSourceValidations/isWordDesktopDocument.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGjD,IAAM,mBAAmB,GAAG,SAAS,CAAC;AACtC,IAAM,oBAAoB,GAAG,uCAAuC,CAAC;AACrE,IAAM,YAAY,GAAG,eAAe,CAAC;AAErC;;;;;GAKG;AACH,MAAM,CAAC,IAAM,qBAAqB,GAAsB,UAAA,KAAK;IACjD,IAAA,cAAc,GAAK,KAAK,eAAV,CAAW;IACjC,OAAO,CACH,cAAc,CAAC,mBAAmB,CAAC,IAAI,oBAAoB;QAC3D,cAAc,CAAC,kBAAkB,CAAC,YAAY,CAAC,IAAI,YAAY,CAClE,CAAC;AACN,CAAC,CAAC","sourcesContent":["import { PastePropertyNames } from './constants';\nimport type { GetSourceFunction } from './getPasteSource';\n\nconst WORD_ATTRIBUTE_NAME = 'xmlns:w';\nconst WORD_ATTRIBUTE_VALUE = 'urn:schemas-microsoft-com:office:word';\nconst WORD_PROG_ID = 'Word.Document';\n\n/**\n * @internal\n * Checks whether the Array provided contains strings that identify Word Desktop documents\n * @param props Properties related to the PasteEvent\n * @returns\n */\nexport const isWordDesktopDocument: GetSourceFunction = props => {\n const { htmlAttributes } = props;\n return (\n htmlAttributes[WORD_ATTRIBUTE_NAME] == WORD_ATTRIBUTE_VALUE ||\n htmlAttributes[PastePropertyNames.PROG_ID_NAME] == WORD_PROG_ID\n );\n};\n"]}
@@ -1,5 +1,5 @@
1
- import type { ContentModelFormatMap, DomToModelOption, FormatParser, FormatParsersPerCategory } from 'roosterjs-content-model-types';
1
+ import type { ContentModelFormatMap, DomToModelOption, FormatParser, ElementFormatParserPerCategory } from 'roosterjs-content-model-types';
2
2
  /**
3
3
  * @internal
4
4
  */
5
- export default function addParser<TKey extends keyof FormatParsersPerCategory>(domToModelOption: DomToModelOption, entry: TKey, additionalFormatParsers: FormatParser<ContentModelFormatMap[TKey]>): void;
5
+ export default function addParser<TKey extends keyof ElementFormatParserPerCategory>(domToModelOption: DomToModelOption, entry: TKey, additionalFormatParsers: FormatParser<ContentModelFormatMap[TKey]>): void;
@@ -1 +1 @@
1
- {"version":3,"file":"addParser.js","sourceRoot":"","sources":["../../../../../packages-content-model/roosterjs-content-model-plugins/lib/paste/utils/addParser.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAC7B,gBAAkC,EAClC,KAAW,EACX,uBAAkE;;IAElE,IAAI,CAAC,gBAAgB,CAAC,uBAAuB,EAAE;QAC3C,gBAAgB,CAAC,uBAAuB,GAAG,EAAE,CAAC;KACjD;IACD,IAAI,CAAC,gBAAgB,CAAC,uBAAuB,CAAC,KAAK,CAAC,EAAE;QAClD,gBAAgB,CAAC,uBAAuB,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;KACxD;IAED,MAAA,gBAAgB,CAAC,uBAAuB,CAAC,KAAK,CAAC,0CAAE,IAAI,CAAC,uBAAuB,CAAC,CAAC;AACnF,CAAC","sourcesContent":["import type {\n ContentModelFormatMap,\n DomToModelOption,\n FormatParser,\n FormatParsersPerCategory,\n} from 'roosterjs-content-model-types';\n\n/**\n * @internal\n */\nexport default function addParser<TKey extends keyof FormatParsersPerCategory>(\n domToModelOption: DomToModelOption,\n entry: TKey,\n additionalFormatParsers: FormatParser<ContentModelFormatMap[TKey]>\n) {\n if (!domToModelOption.additionalFormatParsers) {\n domToModelOption.additionalFormatParsers = {};\n }\n if (!domToModelOption.additionalFormatParsers[entry]) {\n domToModelOption.additionalFormatParsers[entry] = [];\n }\n\n domToModelOption.additionalFormatParsers[entry]?.push(additionalFormatParsers);\n}\n"]}
1
+ {"version":3,"file":"addParser.js","sourceRoot":"","sources":["../../../../../packages-content-model/roosterjs-content-model-plugins/lib/paste/utils/addParser.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAC7B,gBAAkC,EAClC,KAAW,EACX,uBAAkE;;IAElE,IAAI,CAAC,gBAAgB,CAAC,uBAAuB,EAAE;QAC3C,gBAAgB,CAAC,uBAAuB,GAAG,EAAE,CAAC;KACjD;IACD,IAAI,CAAC,gBAAgB,CAAC,uBAAuB,CAAC,KAAK,CAAC,EAAE;QAClD,gBAAgB,CAAC,uBAAuB,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;KACxD;IAED,MAAA,gBAAgB,CAAC,uBAAuB,CAAC,KAAK,CAAC,0CAAE,IAAI,CAAC,uBAAuB,CAAC,CAAC;AACnF,CAAC","sourcesContent":["import type {\n ContentModelFormatMap,\n DomToModelOption,\n FormatParser,\n ElementFormatParserPerCategory,\n} from 'roosterjs-content-model-types';\n\n/**\n * @internal\n */\nexport default function addParser<TKey extends keyof ElementFormatParserPerCategory>(\n domToModelOption: DomToModelOption,\n entry: TKey,\n additionalFormatParsers: FormatParser<ContentModelFormatMap[TKey]>\n) {\n if (!domToModelOption.additionalFormatParsers) {\n domToModelOption.additionalFormatParsers = {};\n }\n if (!domToModelOption.additionalFormatParsers[entry]) {\n domToModelOption.additionalFormatParsers[entry] = [];\n }\n\n domToModelOption.additionalFormatParsers[entry]?.push(additionalFormatParsers);\n}\n"]}
package/package.json CHANGED
@@ -5,12 +5,12 @@
5
5
  "tslib": "^2.3.1",
6
6
  "roosterjs-editor-types": "^8.59.0",
7
7
  "roosterjs-editor-dom": "^8.59.0",
8
- "roosterjs-content-model-core": "^0.23.0",
9
- "roosterjs-content-model-editor": "^0.23.0",
10
- "roosterjs-content-model-dom": "^0.23.0",
11
- "roosterjs-content-model-types": "^0.23.0"
8
+ "roosterjs-content-model-core": "^0.24.0",
9
+ "roosterjs-content-model-editor": "^0.24.0",
10
+ "roosterjs-content-model-dom": "^0.24.0",
11
+ "roosterjs-content-model-types": "^0.24.0"
12
12
  },
13
- "version": "0.23.0",
13
+ "version": "0.24.0",
14
14
  "main": "./lib/index.js",
15
15
  "typings": "./lib/index.d.ts",
16
16
  "module": "./lib-mjs/index.js",