roosterjs-content-model-types 9.35.0 → 9.36.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.
@@ -33,6 +33,10 @@ export interface EditorEnvironment {
33
33
  * Whether editor is running on Android
34
34
  */
35
35
  readonly isAndroid?: boolean;
36
+ /**
37
+ * Whether editor is running on iOS
38
+ */
39
+ readonly isIOS?: boolean;
36
40
  /**
37
41
  * Whether editor is running on Safari browser
38
42
  */
@@ -1 +1 @@
1
- {"version":3,"file":"EditorEnvironment.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/parameter/EditorEnvironment.ts"],"names":[],"mappings":"","sourcesContent":["import type { DomToModelOption } from '../context/DomToModelOption';\nimport type { DomToModelSettings } from '../context/DomToModelSettings';\nimport type { ModelToDomOption } from '../context/ModelToDomOption';\nimport type { ModelToDomSettings } from '../context/ModelToDomSettings';\n\n/**\n * Default DOM and Content Model conversion settings for an editor\n */\nexport interface ContentModelSettings<OptionType, ConfigType> {\n /**\n * Built in options used by editor\n */\n builtIn: OptionType;\n\n /**\n * Customize options passed in from Editor Options, used for overwrite default option.\n * This will also be used by copy/paste\n */\n customized: OptionType;\n\n /**\n * Configuration calculated from default and customized options.\n * This is a cached object so that we don't need to cache it every time when we use Content Model\n */\n calculated: ConfigType;\n}\n\n/**\n * Current running environment\n */\nexport interface EditorEnvironment {\n /**\n * Whether editor is running on Mac\n */\n readonly isMac?: boolean;\n\n /**\n * Whether editor is running on Android\n */\n readonly isAndroid?: boolean;\n\n /**\n * Whether editor is running on Safari browser\n */\n readonly isSafari?: boolean;\n\n /**\n * Whether current browser is on mobile or a tablet\n */\n readonly isMobileOrTablet?: boolean;\n\n /**\n * Settings used by DOM to Content Model conversion\n */\n readonly domToModelSettings: ContentModelSettings<DomToModelOption, DomToModelSettings>;\n\n /**\n * Settings used by Content Model to DOM conversion\n */\n readonly modelToDomSettings: ContentModelSettings<ModelToDomOption, ModelToDomSettings>;\n}\n"]}
1
+ {"version":3,"file":"EditorEnvironment.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/parameter/EditorEnvironment.ts"],"names":[],"mappings":"","sourcesContent":["import type { DomToModelOption } from '../context/DomToModelOption';\nimport type { DomToModelSettings } from '../context/DomToModelSettings';\nimport type { ModelToDomOption } from '../context/ModelToDomOption';\nimport type { ModelToDomSettings } from '../context/ModelToDomSettings';\n\n/**\n * Default DOM and Content Model conversion settings for an editor\n */\nexport interface ContentModelSettings<OptionType, ConfigType> {\n /**\n * Built in options used by editor\n */\n builtIn: OptionType;\n\n /**\n * Customize options passed in from Editor Options, used for overwrite default option.\n * This will also be used by copy/paste\n */\n customized: OptionType;\n\n /**\n * Configuration calculated from default and customized options.\n * This is a cached object so that we don't need to cache it every time when we use Content Model\n */\n calculated: ConfigType;\n}\n\n/**\n * Current running environment\n */\nexport interface EditorEnvironment {\n /**\n * Whether editor is running on Mac\n */\n readonly isMac?: boolean;\n\n /**\n * Whether editor is running on Android\n */\n readonly isAndroid?: boolean;\n\n /**\n * Whether editor is running on iOS\n */\n readonly isIOS?: boolean;\n\n /**\n * Whether editor is running on Safari browser\n */\n readonly isSafari?: boolean;\n\n /**\n * Whether current browser is on mobile or a tablet\n */\n readonly isMobileOrTablet?: boolean;\n\n /**\n * Settings used by DOM to Content Model conversion\n */\n readonly domToModelSettings: ContentModelSettings<DomToModelOption, DomToModelSettings>;\n\n /**\n * Settings used by Content Model to DOM conversion\n */\n readonly modelToDomSettings: ContentModelSettings<ModelToDomOption, ModelToDomSettings>;\n}\n"]}
@@ -33,6 +33,10 @@ export interface EditorEnvironment {
33
33
  * Whether editor is running on Android
34
34
  */
35
35
  readonly isAndroid?: boolean;
36
+ /**
37
+ * Whether editor is running on iOS
38
+ */
39
+ readonly isIOS?: boolean;
36
40
  /**
37
41
  * Whether editor is running on Safari browser
38
42
  */
@@ -1 +1 @@
1
- {"version":3,"file":"EditorEnvironment.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/parameter/EditorEnvironment.ts"],"names":[],"mappings":"","sourcesContent":["import type { DomToModelOption } from '../context/DomToModelOption';\nimport type { DomToModelSettings } from '../context/DomToModelSettings';\nimport type { ModelToDomOption } from '../context/ModelToDomOption';\nimport type { ModelToDomSettings } from '../context/ModelToDomSettings';\n\n/**\n * Default DOM and Content Model conversion settings for an editor\n */\nexport interface ContentModelSettings<OptionType, ConfigType> {\n /**\n * Built in options used by editor\n */\n builtIn: OptionType;\n\n /**\n * Customize options passed in from Editor Options, used for overwrite default option.\n * This will also be used by copy/paste\n */\n customized: OptionType;\n\n /**\n * Configuration calculated from default and customized options.\n * This is a cached object so that we don't need to cache it every time when we use Content Model\n */\n calculated: ConfigType;\n}\n\n/**\n * Current running environment\n */\nexport interface EditorEnvironment {\n /**\n * Whether editor is running on Mac\n */\n readonly isMac?: boolean;\n\n /**\n * Whether editor is running on Android\n */\n readonly isAndroid?: boolean;\n\n /**\n * Whether editor is running on Safari browser\n */\n readonly isSafari?: boolean;\n\n /**\n * Whether current browser is on mobile or a tablet\n */\n readonly isMobileOrTablet?: boolean;\n\n /**\n * Settings used by DOM to Content Model conversion\n */\n readonly domToModelSettings: ContentModelSettings<DomToModelOption, DomToModelSettings>;\n\n /**\n * Settings used by Content Model to DOM conversion\n */\n readonly modelToDomSettings: ContentModelSettings<ModelToDomOption, ModelToDomSettings>;\n}\n"]}
1
+ {"version":3,"file":"EditorEnvironment.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/parameter/EditorEnvironment.ts"],"names":[],"mappings":"","sourcesContent":["import type { DomToModelOption } from '../context/DomToModelOption';\nimport type { DomToModelSettings } from '../context/DomToModelSettings';\nimport type { ModelToDomOption } from '../context/ModelToDomOption';\nimport type { ModelToDomSettings } from '../context/ModelToDomSettings';\n\n/**\n * Default DOM and Content Model conversion settings for an editor\n */\nexport interface ContentModelSettings<OptionType, ConfigType> {\n /**\n * Built in options used by editor\n */\n builtIn: OptionType;\n\n /**\n * Customize options passed in from Editor Options, used for overwrite default option.\n * This will also be used by copy/paste\n */\n customized: OptionType;\n\n /**\n * Configuration calculated from default and customized options.\n * This is a cached object so that we don't need to cache it every time when we use Content Model\n */\n calculated: ConfigType;\n}\n\n/**\n * Current running environment\n */\nexport interface EditorEnvironment {\n /**\n * Whether editor is running on Mac\n */\n readonly isMac?: boolean;\n\n /**\n * Whether editor is running on Android\n */\n readonly isAndroid?: boolean;\n\n /**\n * Whether editor is running on iOS\n */\n readonly isIOS?: boolean;\n\n /**\n * Whether editor is running on Safari browser\n */\n readonly isSafari?: boolean;\n\n /**\n * Whether current browser is on mobile or a tablet\n */\n readonly isMobileOrTablet?: boolean;\n\n /**\n * Settings used by DOM to Content Model conversion\n */\n readonly domToModelSettings: ContentModelSettings<DomToModelOption, DomToModelSettings>;\n\n /**\n * Settings used by Content Model to DOM conversion\n */\n readonly modelToDomSettings: ContentModelSettings<ModelToDomOption, ModelToDomSettings>;\n}\n"]}
@@ -33,6 +33,10 @@ export interface EditorEnvironment {
33
33
  * Whether editor is running on Android
34
34
  */
35
35
  readonly isAndroid?: boolean;
36
+ /**
37
+ * Whether editor is running on iOS
38
+ */
39
+ readonly isIOS?: boolean;
36
40
  /**
37
41
  * Whether editor is running on Safari browser
38
42
  */
@@ -1 +1 @@
1
- {"version":3,"file":"EditorEnvironment.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/parameter/EditorEnvironment.ts"],"names":[],"mappings":"","sourcesContent":["import type { DomToModelOption } from '../context/DomToModelOption';\nimport type { DomToModelSettings } from '../context/DomToModelSettings';\nimport type { ModelToDomOption } from '../context/ModelToDomOption';\nimport type { ModelToDomSettings } from '../context/ModelToDomSettings';\n\n/**\n * Default DOM and Content Model conversion settings for an editor\n */\nexport interface ContentModelSettings<OptionType, ConfigType> {\n /**\n * Built in options used by editor\n */\n builtIn: OptionType;\n\n /**\n * Customize options passed in from Editor Options, used for overwrite default option.\n * This will also be used by copy/paste\n */\n customized: OptionType;\n\n /**\n * Configuration calculated from default and customized options.\n * This is a cached object so that we don't need to cache it every time when we use Content Model\n */\n calculated: ConfigType;\n}\n\n/**\n * Current running environment\n */\nexport interface EditorEnvironment {\n /**\n * Whether editor is running on Mac\n */\n readonly isMac?: boolean;\n\n /**\n * Whether editor is running on Android\n */\n readonly isAndroid?: boolean;\n\n /**\n * Whether editor is running on Safari browser\n */\n readonly isSafari?: boolean;\n\n /**\n * Whether current browser is on mobile or a tablet\n */\n readonly isMobileOrTablet?: boolean;\n\n /**\n * Settings used by DOM to Content Model conversion\n */\n readonly domToModelSettings: ContentModelSettings<DomToModelOption, DomToModelSettings>;\n\n /**\n * Settings used by Content Model to DOM conversion\n */\n readonly modelToDomSettings: ContentModelSettings<ModelToDomOption, ModelToDomSettings>;\n}\n"]}
1
+ {"version":3,"file":"EditorEnvironment.js","sourceRoot":"","sources":["../../../../packages/roosterjs-content-model-types/lib/parameter/EditorEnvironment.ts"],"names":[],"mappings":"","sourcesContent":["import type { DomToModelOption } from '../context/DomToModelOption';\nimport type { DomToModelSettings } from '../context/DomToModelSettings';\nimport type { ModelToDomOption } from '../context/ModelToDomOption';\nimport type { ModelToDomSettings } from '../context/ModelToDomSettings';\n\n/**\n * Default DOM and Content Model conversion settings for an editor\n */\nexport interface ContentModelSettings<OptionType, ConfigType> {\n /**\n * Built in options used by editor\n */\n builtIn: OptionType;\n\n /**\n * Customize options passed in from Editor Options, used for overwrite default option.\n * This will also be used by copy/paste\n */\n customized: OptionType;\n\n /**\n * Configuration calculated from default and customized options.\n * This is a cached object so that we don't need to cache it every time when we use Content Model\n */\n calculated: ConfigType;\n}\n\n/**\n * Current running environment\n */\nexport interface EditorEnvironment {\n /**\n * Whether editor is running on Mac\n */\n readonly isMac?: boolean;\n\n /**\n * Whether editor is running on Android\n */\n readonly isAndroid?: boolean;\n\n /**\n * Whether editor is running on iOS\n */\n readonly isIOS?: boolean;\n\n /**\n * Whether editor is running on Safari browser\n */\n readonly isSafari?: boolean;\n\n /**\n * Whether current browser is on mobile or a tablet\n */\n readonly isMobileOrTablet?: boolean;\n\n /**\n * Settings used by DOM to Content Model conversion\n */\n readonly domToModelSettings: ContentModelSettings<DomToModelOption, DomToModelSettings>;\n\n /**\n * Settings used by Content Model to DOM conversion\n */\n readonly modelToDomSettings: ContentModelSettings<ModelToDomOption, ModelToDomSettings>;\n}\n"]}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "roosterjs-content-model-types",
3
3
  "description": "Types for roosterjs",
4
4
  "dependencies": {},
5
- "version": "9.35.0",
5
+ "version": "9.36.0",
6
6
  "main": "./lib/index.js",
7
7
  "typings": "./lib/index.d.ts",
8
8
  "module": "./lib-mjs/index.js",