@omnia/fx 7.9.70-preview → 7.9.72-preview

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.
@@ -7,7 +7,7 @@ export interface SettingsValue {
7
7
  blockTitleSettings: BlockTitleSettings;
8
8
  icon: IIcon;
9
9
  customSettings: boolean;
10
- titleFormatting?: GuidValue;
10
+ headerLevel?: GuidValue;
11
11
  }
12
12
  export declare class BlockTitleSettingsStore extends Store {
13
13
  blockTitleGlobalSettingsStore: BlockTitleGlobalSettingsStore;
@@ -37,9 +37,9 @@ export declare class BlockTitleSettingsStore extends Store {
37
37
  setLayoutInheritage: (key: any) => void;
38
38
  setComponentIcon: (key: any, icon: IIcon) => void;
39
39
  removeComponentIcon: (key: any) => void;
40
- setComponentSettings: (key: any, blockTitleSettings: BlockTitleSettings, icon?: IIcon, titleFormatting?: GuidValue) => void;
40
+ setComponentSettings: (key: any, blockTitleSettings: BlockTitleSettings, icon?: IIcon, headerLevel?: GuidValue) => void;
41
41
  revertComponentToGlobalSettings: (key: any) => void;
42
- setComponentTitleFormatting: (key: any, titleFormatting: GuidValue) => void;
42
+ setComponentTitleHeaderLevel: (key: any, headerLevel: GuidValue) => void;
43
43
  };
44
44
  /**
45
45
  * Implementation of actions
@@ -973,7 +973,7 @@ export interface OmniaUxLocalization {
973
973
  AnchorName: string;
974
974
  CustomAnchorName: string;
975
975
  ScrollIntoView: string;
976
- Formatting: string;
976
+ HeaderLevel: string;
977
977
  };
978
978
  Buttons: {
979
979
  AddColor: string;
@@ -17,13 +17,12 @@ export default class HeaderItem extends VueComponentBase {
17
17
  private settings;
18
18
  private model;
19
19
  private textStylesSettings;
20
- private showTitleFormattingSetting;
21
20
  mounted(): void;
22
21
  created(): Promise<void>;
23
22
  private loadTextStylesSettings;
24
23
  private headerValueChanged;
25
24
  private onIconValueChanged;
26
- private onTitleFormattingValueChanged;
25
+ private onHeaderLevelValueChanged;
27
26
  private updateSpfxSettings;
28
27
  private createHeadingItem;
29
28
  render(): VueTsxSupport.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { IconSizes, BlockTitleIconSettings, BlockTitleSettings, TextAlignment, HeadingConfiguration } from "../../../../../models";
1
+ import { IconSizes, BlockTitleIconSettings, BlockTitleSettings, TextAlignment } from "../../../../../models";
2
2
  import { ITheming } from "../../../..";
3
3
  export declare const BlockTitleStyles: {
4
4
  safeGetSpacingPixels(value: any, spacing: any): string;
@@ -7,5 +7,5 @@ export declare const BlockTitleStyles: {
7
7
  iconWrapperButton: (settings: BlockTitleIconSettings) => string;
8
8
  iconInButton: (settings: BlockTitleIconSettings, theming: ITheming) => string;
9
9
  wrapper: (settings: BlockTitleSettings, textAlignment: TextAlignment, theming: ITheming) => string;
10
- headingWrapper: (heading: HeadingConfiguration) => string;
10
+ headingWrapper: (theming: ITheming, settings: BlockTitleSettings) => string;
11
11
  };
@@ -10,6 +10,7 @@ export declare class BlockTitleComponent extends VueComponentBase implements IWe
10
10
  multilingualtitle: string | MultilingualString;
11
11
  settingsKey: any;
12
12
  alternativeContent?: JSX.Element;
13
+ wrapWithHeaderLevel?: (headerElement: JSX.Element) => JSX.Element;
13
14
  multilingualStore: MultilingualStore;
14
15
  blockTitleSettingsStore: BlockTitleSettingsStore;
15
16
  blockInstance: BlockInstance;
@@ -25,6 +26,6 @@ export declare class BlockTitleComponent extends VueComponentBase implements IWe
25
26
  getTextAlignment(): TextAlignment;
26
27
  renderBlockIcon(title: string): VueTsxSupport.JSX.Element;
27
28
  renderTitle(title: string): VueTsxSupport.JSX.Element;
28
- renderTitleWithFormatting(heading: HeadingConfiguration, title: string): import("vue").VNode;
29
+ renderTitleWithHeaderLevel(heading: HeadingConfiguration, title: string): import("vue").VNode;
29
30
  render(): VueTsxSupport.JSX.Element;
30
31
  }
@@ -4,7 +4,11 @@ export interface IBlockTitleComponent {
4
4
  title?: string;
5
5
  multilingualtitle?: MultilingualString | string;
6
6
  settingsKey: any;
7
+ /**
8
+ * @deprecated Use wrapWithHeaderLevel instead.
9
+ */
7
10
  alternativeContent?: JSX.Element;
11
+ wrapWithHeaderLevel?: (headerElement: JSX.Element) => JSX.Element;
8
12
  }
9
13
  declare global {
10
14
  namespace VueTsxSupport.JSX {
@@ -13,7 +13,6 @@ export default class HeaderSectionItem extends VueComponentBase {
13
13
  private section;
14
14
  private model;
15
15
  private textStylesSettings;
16
- private showTitleFormattingSetting;
17
16
  mounted(): void;
18
17
  created(): Promise<void>;
19
18
  private loadTextStylesSettings;
@@ -22,7 +21,7 @@ export default class HeaderSectionItem extends VueComponentBase {
22
21
  * */
23
22
  private onSectionChange;
24
23
  private onIconValueChanged;
25
- private onTitleFormattingValueChanged;
24
+ private onHeaderLevelValueChanged;
26
25
  private onHeaderValueChanged;
27
26
  private createHeadingItem;
28
27
  render(): VueTsxSupport.JSX.Element;
@@ -22,7 +22,19 @@ export declare class BlockCatalogStore extends Store {
22
22
  filterBlockRegistrationOnFeatureDependency(blockRegistration: BlockRegistration): boolean;
23
23
  filterBlockRegistrationByBackendRuntimes(blockRegistration: BlockRegistration): boolean;
24
24
  filterBlockRegistrationByClientRuntimes(blockRegistration: BlockRegistration): boolean;
25
- filterBlockRegistrationOnLayoutDependency(blockRegistration: BlockRegistration, provider: string): boolean;
25
+ /**
26
+ * Validate if block is valid for layout provider.
27
+ * @param blockRegistration
28
+ * @param layoutProvider
29
+ * @returns
30
+ */
31
+ filterBlockRegistrationOnLayoutDependency(blockRegistration: BlockRegistration, layoutProvider: string): boolean;
32
+ /**
33
+ * Validate if block is valid for current environment (backend/client runtime) and feature dependencies.
34
+ * @param block
35
+ * @returns
36
+ */
37
+ isBlockValidForEnvironment(block: BlockRegistration): boolean;
26
38
  filterBlockRegistrationByDisableAuth(blockRegistration: BlockRegistration): boolean;
27
39
  /**
28
40
  * Implementation of mutations
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx",
3
3
  "license": "MIT",
4
- "version": "7.9.70-preview",
4
+ "version": "7.9.72-preview",
5
5
  "description": "Provide Omnia Fx typings and tooling for clientside Omnia development.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -20,7 +20,7 @@
20
20
  ],
21
21
  "author": "Omnia Digital Workplace AB",
22
22
  "dependencies": {
23
- "@omnia/fx-models": "7.9.70-preview",
23
+ "@omnia/fx-models": "7.9.72-preview",
24
24
  "@microsoft/signalr": "6.0.1",
25
25
  "broadcast-channel": "4.8.0",
26
26
  "dayjs": "1.10.7",