@omnia/velcron 8.0.552-dev → 8.0.555-dev

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.
@@ -1,3 +1,4 @@
1
+ import { ThemeContextType } from "./theme";
1
2
  export declare enum IconTypes {
2
3
  FontAwesome = "IFontAwesomeIcon",
3
4
  Fabric = "IFabricIcon",
@@ -9,6 +10,7 @@ export declare enum IconTypes {
9
10
  export interface IIcon {
10
11
  iconType: IconTypes;
11
12
  role?: string;
13
+ themeType?: ThemeContextType;
12
14
  }
13
15
  export interface IFontAwesomeIcon extends IIcon {
14
16
  faClass: string;
@@ -3,6 +3,7 @@ import { guid } from "./Guid";
3
3
  import { TenantIdentifier } from "./Tenant";
4
4
  import { OmniaBackendRuntimes, OmniaClientRuntimes } from "./Enums";
5
5
  import { ActorId } from "./activity-hub";
6
+ import { ThemeBoot } from "./theme";
6
7
  export interface OmniaSharedBootstrapData {
7
8
  uiThreadId: guid;
8
9
  workerThreadId: guid;
@@ -32,6 +33,7 @@ export interface OmniaSharedBootstrapData {
32
33
  * Don't use it, only for test perf
33
34
  */
34
35
  location: typeof window.location;
36
+ theming?: ThemeBoot;
35
37
  }
36
38
  export interface OmniaAnalytics {
37
39
  paq: any[];
@@ -6,6 +6,7 @@ export type Spacing = {
6
6
  left?: SpacingValue;
7
7
  };
8
8
  export type SpacingScale = "l" | "s";
9
+ export type SpacingPreset = "preset-layout" | "preset-section" | "preset-column" | "preset-block";
9
10
  export interface SpacingDefinition {
10
11
  name?: string;
11
12
  xs?: number;
@@ -14,7 +15,7 @@ export interface SpacingDefinition {
14
15
  l?: number;
15
16
  xl?: number;
16
17
  }
17
- export type SpacingValue = "xs" | "s" | "m" | "l" | "xl" | "l:xs" | "l:s" | "l:m" | "l:l" | "l:xl" | "s:xs" | "s:s" | "s:m" | "s:l" | "s:xl" | number;
18
+ export type SpacingValue = "xs" | "s" | "m" | "l" | "xl" | "l:xs" | "l:s" | "l:m" | "l:l" | "l:xl" | "s:xs" | "s:s" | "s:m" | "s:l" | "s:xl" | number | SpacingPreset;
18
19
  export declare enum SpacingTypes {
19
20
  xs = "xs",
20
21
  s = "s",
@@ -4,6 +4,7 @@ import { Id } from "../Id";
4
4
  import { BlueprintVariant, BoxDimensions, ButtonBlueprint, ComponentBlueprints, ContainerFillBlueprints, MediaResources, SpacingBlueprint, TextFillBlueprints } from "./Blueprints";
5
5
  import { Color } from "./Color";
6
6
  import { LegacyBorderDefinition, LegacyThemeDefinition } from "./LegacyThemeDefinition";
7
+ import { Spacing, SpacingValue } from "./Spacing";
7
8
  import { ThemeBase } from "./ThemeBase";
8
9
  import { TypographyBlueprint } from "./Typography";
9
10
  export type ThemeContextType = "default" | "admin" | "designer" | "preview";
@@ -76,8 +77,18 @@ export interface ThemeDefinitionReference {
76
77
  export interface ThemeSettings {
77
78
  layoutWrapper?: {
78
79
  width?: number;
80
+ margin?: SpacingValue;
81
+ };
82
+ blockSpacing?: SpacingValue;
83
+ sectionMargin?: Spacing;
84
+ columnSpacing?: SpacingValue;
85
+ iconStyling?: {
86
+ style?: ThemeIconStyle;
87
+ pack?: ThemeIconPack;
79
88
  };
80
89
  }
90
+ export type ThemeIconStyle = "solid" | "regular" | "light" | "thin";
91
+ export type ThemeIconPack = "classic" | "duotone" | "sharp" | "sharp-duotone";
81
92
  export interface ResolvedThemeDefinition extends ThemeDefinition<ColorSchemas> {
82
93
  typography?: TypographyBlueprint;
83
94
  spacing?: SpacingBlueprint;
@@ -40,6 +40,7 @@ export interface BuiltInComponentRenderers {
40
40
  "link": unknown;
41
41
  "motion": unknown;
42
42
  "scroll": unknown;
43
+ "markdown": unknown;
43
44
  }
44
45
  export interface ColorSchemaReference {
45
46
  name: string;
@@ -327,6 +328,12 @@ export interface VelcronFlowDefinition extends VelcronDefinition, VelcronColorSt
327
328
  placeholder?: VelcronBindableProp<string>;
328
329
  events?: VelcronOnUpdatedEvent;
329
330
  }
331
+ export interface VelcronMarkdownDefinition extends VelcronDefinition, VelcronColorStyling {
332
+ type: "markdown";
333
+ value?: VelcronBindableProp<string>;
334
+ placeholder?: VelcronBindableProp<string>;
335
+ events?: VelcronOnUpdatedEvent;
336
+ }
330
337
  export interface VelcronMotionDefinition extends VelcronDefinition {
331
338
  initial?: false | VariantDefinition;
332
339
  animate?: VariantDefinition;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/velcron",
3
3
  "license": "MIT",
4
- "version": "8.0.552-dev",
4
+ "version": "8.0.555-dev",
5
5
  "description": "Provide Omnia Velcron Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -29,6 +29,7 @@ export declare const VelcronConstants: {
29
29
  link: string;
30
30
  motion: string;
31
31
  scroll: string;
32
+ markdown: string;
32
33
  };
33
34
  events: {
34
35
  idTokenStart: string;
@@ -32,6 +32,7 @@ exports.VelcronConstants = {
32
32
  link: "link",
33
33
  motion: "motion",
34
34
  scroll: "scroll",
35
+ markdown: "markdown"
35
36
  },
36
37
  events: {
37
38
  idTokenStart: "$ev{",