@skyux/text-editor 9.8.0 → 9.10.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.
package/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export { SkyTextEditorFont } from './lib/modules/text-editor/types/font-state';
3
3
  export { SkyTextEditorMenuType } from './lib/modules/text-editor/types/menu-type';
4
4
  export { SkyTextEditorStyleState } from './lib/modules/text-editor/types/style-state';
5
5
  export { SkyTextEditorMergeField } from './lib/modules/text-editor/types/text-editor-merge-field';
6
+ export { SkyTextEditorLinkWindowOptionsType } from './lib/modules/text-editor/types/link-window-options-type';
6
7
  export { SkyTextEditorToolbarActionType } from './lib/modules/text-editor/types/toolbar-action-type';
7
8
  export { SkyTextEditorModule } from './lib/modules/text-editor/text-editor.module';
8
9
  export { SkyRichTextDisplayComponent as λ1 } from './lib/modules/rich-text-display/rich-text-display.component';
@@ -0,0 +1,2 @@
1
+ import { SkyTextEditorLinkWindowOptionsType } from '../types/link-window-options-type';
2
+ export declare const LINK_WINDOW_OPTIONS_DEFAULTS: SkyTextEditorLinkWindowOptionsType[];
@@ -2,6 +2,7 @@ import { AfterViewInit, ElementRef, OnDestroy, TemplateRef } from '@angular/core
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import { Subject } from 'rxjs';
4
4
  import { SkyTextEditorFont } from './types/font-state';
5
+ import { SkyTextEditorLinkWindowOptionsType } from './types/link-window-options-type';
5
6
  import { SkyTextEditorMenuType } from './types/menu-type';
6
7
  import { SkyTextEditorStyleState } from './types/style-state';
7
8
  import { SkyTextEditorMergeField } from './types/text-editor-merge-field';
@@ -63,11 +64,17 @@ export declare class SkyTextEditorComponent implements AfterViewInit, OnDestroy,
63
64
  set placeholder(value: string | undefined);
64
65
  get placeholder(): string;
65
66
  /**
66
- * The actions to include in the toolbar and determines their order.
67
+ * The actions to include in the toolbar in the specified order.
67
68
  * @default [ 'font-family', 'font-size', 'font-style', 'color', 'list', 'link ]
68
69
  */
69
70
  set toolbarActions(value: SkyTextEditorToolbarActionType[] | undefined);
70
71
  get toolbarActions(): SkyTextEditorToolbarActionType[];
72
+ /**
73
+ * The target window options for adding a hyperlink.
74
+ * @default [ 'new', 'existing' ]
75
+ */
76
+ set linkWindowOptions(value: SkyTextEditorLinkWindowOptionsType[] | undefined);
77
+ get linkWindowOptions(): SkyTextEditorLinkWindowOptionsType[];
71
78
  iframeRef: ElementRef | undefined;
72
79
  /**
73
80
  * The internal value of the control.
@@ -98,5 +105,5 @@ export declare class SkyTextEditorComponent implements AfterViewInit, OnDestroy,
98
105
  */
99
106
  setDisabledState(isDisabled: boolean): void;
100
107
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyTextEditorComponent, never>;
101
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyTextEditorComponent, "sky-text-editor", never, { "autofocus": { "alias": "autofocus"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "fontList": { "alias": "fontList"; "required": false; }; "fontSizeList": { "alias": "fontSizeList"; "required": false; }; "id": { "alias": "id"; "required": false; }; "initialStyleState": { "alias": "initialStyleState"; "required": false; }; "menus": { "alias": "menus"; "required": false; }; "mergeFields": { "alias": "mergeFields"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "toolbarActions": { "alias": "toolbarActions"; "required": false; }; }, {}, never, never, true, never>;
108
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkyTextEditorComponent, "sky-text-editor", never, { "autofocus": { "alias": "autofocus"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "fontList": { "alias": "fontList"; "required": false; }; "fontSizeList": { "alias": "fontSizeList"; "required": false; }; "id": { "alias": "id"; "required": false; }; "initialStyleState": { "alias": "initialStyleState"; "required": false; }; "menus": { "alias": "menus"; "required": false; }; "mergeFields": { "alias": "mergeFields"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "toolbarActions": { "alias": "toolbarActions"; "required": false; }; "linkWindowOptions": { "alias": "linkWindowOptions"; "required": false; }; }, {}, never, never, true, never>;
102
109
  }
@@ -3,6 +3,7 @@ import { SkyColorpickerMessage, SkyColorpickerOutput } from '@skyux/colorpicker'
3
3
  import { SkyDropdownMessage } from '@skyux/popovers';
4
4
  import { Subject } from 'rxjs';
5
5
  import { SkyTextEditorFont } from '../types/font-state';
6
+ import { SkyTextEditorLinkWindowOptionsType } from '../types/link-window-options-type';
6
7
  import { SkyTextEditorStyleState } from '../types/style-state';
7
8
  import { SkyTextEditorToolbarActionType } from '../types/toolbar-action-type';
8
9
  import * as i0 from "@angular/core";
@@ -16,6 +17,7 @@ export declare class SkyTextEditorToolbarComponent implements OnInit {
16
17
  fontList: SkyTextEditorFont[];
17
18
  fontSizeList: number[];
18
19
  toolbarActions: SkyTextEditorToolbarActionType[];
20
+ linkWindowOptions: SkyTextEditorLinkWindowOptionsType[];
19
21
  set styleState(value: SkyTextEditorStyleState);
20
22
  get styleState(): SkyTextEditorStyleState;
21
23
  set disabled(value: boolean);
@@ -33,5 +35,5 @@ export declare class SkyTextEditorToolbarComponent implements OnInit {
33
35
  changeFontSize(size: number): void;
34
36
  onColorpickerColorChanged(color: SkyColorpickerOutput, isBackground?: boolean): void;
35
37
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyTextEditorToolbarComponent, never>;
36
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyTextEditorToolbarComponent, "sky-text-editor-toolbar", never, { "editorFocusStream": { "alias": "editorFocusStream"; "required": false; }; "fontList": { "alias": "fontList"; "required": false; }; "fontSizeList": { "alias": "fontSizeList"; "required": false; }; "toolbarActions": { "alias": "toolbarActions"; "required": false; }; "styleState": { "alias": "styleState"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkyTextEditorToolbarComponent, "sky-text-editor-toolbar", never, { "editorFocusStream": { "alias": "editorFocusStream"; "required": false; }; "fontList": { "alias": "fontList"; "required": false; }; "fontSizeList": { "alias": "fontSizeList"; "required": false; }; "toolbarActions": { "alias": "toolbarActions"; "required": false; }; "linkWindowOptions": { "alias": "linkWindowOptions"; "required": false; }; "styleState": { "alias": "styleState"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
37
39
  }
@@ -0,0 +1 @@
1
+ export type SkyTextEditorLinkWindowOptionsType = 'new' | 'existing';
@@ -1,7 +1,9 @@
1
+ import { SkyTextEditorLinkWindowOptionsType } from '../types/link-window-options-type';
1
2
  import { UrlModalResult } from './text-editor-url-modal-result';
2
3
  /**
3
4
  * @internal
4
5
  */
5
6
  export declare class SkyUrlModalContext {
6
7
  urlResult: UrlModalResult | undefined;
8
+ linkWindowOptions: SkyTextEditorLinkWindowOptionsType[] | undefined;
7
9
  }
@@ -12,6 +12,8 @@ export declare class SkyTextEditorUrlModalComponent {
12
12
  set url(value: string);
13
13
  get url(): string;
14
14
  emailAddressValid: boolean;
15
+ allowAllOpenLinkOptions: boolean;
16
+ openLinksInNewWindowOnly: boolean;
15
17
  subject: string;
16
18
  target: number | string;
17
19
  valid: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/text-editor",
3
- "version": "9.8.0",
3
+ "version": "9.10.0",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -34,17 +34,17 @@
34
34
  "@angular/core": "^16.2.9",
35
35
  "@angular/forms": "^16.2.9",
36
36
  "@angular/platform-browser": "^16.2.9",
37
- "@skyux/colorpicker": "9.8.0",
38
- "@skyux/core": "9.8.0",
39
- "@skyux/forms": "9.8.0",
40
- "@skyux/i18n": "9.8.0",
41
- "@skyux/indicators": "9.8.0",
42
- "@skyux/layout": "9.8.0",
43
- "@skyux/modals": "9.8.0",
44
- "@skyux/popovers": "9.8.0",
45
- "@skyux/tabs": "9.8.0",
46
- "@skyux/theme": "9.8.0",
47
- "@skyux/validation": "9.8.0"
37
+ "@skyux/colorpicker": "9.10.0",
38
+ "@skyux/core": "9.10.0",
39
+ "@skyux/forms": "9.10.0",
40
+ "@skyux/i18n": "9.10.0",
41
+ "@skyux/indicators": "9.10.0",
42
+ "@skyux/layout": "9.10.0",
43
+ "@skyux/modals": "9.10.0",
44
+ "@skyux/popovers": "9.10.0",
45
+ "@skyux/tabs": "9.10.0",
46
+ "@skyux/theme": "9.10.0",
47
+ "@skyux/validation": "9.10.0"
48
48
  },
49
49
  "dependencies": {
50
50
  "dompurify": "3.0.6",