@omnia/velcron 8.0.555-dev → 8.0.557-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.
@@ -26,4 +26,5 @@ export interface FeedQuery {
26
26
  filterByCategory?: ActorActivityCategory;
27
27
  includeRecentCreators?: number;
28
28
  includeCategories?: boolean;
29
+ take?: number;
29
30
  }
@@ -4,15 +4,13 @@ import { ChannelId } from "../channels/ActivityChannel";
4
4
  import { DynamicState } from "../../DynamicState";
5
5
  export declare enum ActorActivityStatus {
6
6
  new = 0,
7
- read = 1,
8
- completed = 2
7
+ read = 1
9
8
  }
10
9
  export declare enum ActorActivityCategory {
11
10
  none = 0,
12
- important = 1,
13
- todo = 2,
14
- snoozed = 3,
15
- bookmarked = 4
11
+ todo = 1,
12
+ snoozed = 2,
13
+ completed = 3
16
14
  }
17
15
  export interface ActivitySettings {
18
16
  category: ActorActivityCategory;
@@ -27,7 +25,7 @@ export interface ActorActivityBase {
27
25
  status: ActorActivityStatus;
28
26
  category: ActorActivityCategory;
29
27
  }
30
- export interface ActorActivity<TRenderState extends DynamicState, TState extends DynamicState> extends ActorActivityBase {
28
+ export interface ActorActivity<TRenderState extends DynamicState = object, TState extends DynamicState = object> extends ActorActivityBase {
31
29
  activity: Activity<TRenderState>;
32
30
  state?: TState;
33
31
  }
@@ -46,6 +44,11 @@ export interface ActivityCategoryCount {
46
44
  category: ActorActivityCategory;
47
45
  count: number;
48
46
  }
47
+ export interface ActivityCategoryInfo {
48
+ category: ActorActivityCategory;
49
+ title: string;
50
+ icon: string;
51
+ }
49
52
  export interface RecentActorActivities {
50
53
  createdBy: ActorId;
51
54
  activityId: ActivityId;
@@ -5,13 +5,11 @@ var ActorActivityStatus;
5
5
  (function (ActorActivityStatus) {
6
6
  ActorActivityStatus[ActorActivityStatus["new"] = 0] = "new";
7
7
  ActorActivityStatus[ActorActivityStatus["read"] = 1] = "read";
8
- ActorActivityStatus[ActorActivityStatus["completed"] = 2] = "completed";
9
8
  })(ActorActivityStatus || (exports.ActorActivityStatus = ActorActivityStatus = {}));
10
9
  var ActorActivityCategory;
11
10
  (function (ActorActivityCategory) {
12
11
  ActorActivityCategory[ActorActivityCategory["none"] = 0] = "none";
13
- ActorActivityCategory[ActorActivityCategory["important"] = 1] = "important";
14
- ActorActivityCategory[ActorActivityCategory["todo"] = 2] = "todo";
15
- ActorActivityCategory[ActorActivityCategory["snoozed"] = 3] = "snoozed";
16
- ActorActivityCategory[ActorActivityCategory["bookmarked"] = 4] = "bookmarked";
12
+ ActorActivityCategory[ActorActivityCategory["todo"] = 1] = "todo";
13
+ ActorActivityCategory[ActorActivityCategory["snoozed"] = 2] = "snoozed";
14
+ ActorActivityCategory[ActorActivityCategory["completed"] = 3] = "completed";
17
15
  })(ActorActivityCategory || (exports.ActorActivityCategory = ActorActivityCategory = {}));
@@ -1,4 +1,5 @@
1
1
  import { HorizontalAlignments, TextAlignment, VerticalAlignments } from "../Enums";
2
+ import { guid } from "../Guid";
2
3
  import { IIcon } from "../Icon";
3
4
  import { MediaPickerImage } from "../media";
4
5
  import { MultilingualString } from "../MultilingualString";
@@ -6,7 +7,7 @@ import { VelcronRendererResolverReference } from "../velcron";
6
7
  import { Spacing, SpacingDefinition, SpacingValue } from "./Spacing";
7
8
  import { ThemeBase } from "./ThemeBase";
8
9
  import { BackgroundDefinition, BlueprintsReference, ColorSchemaType, ColorValue, TextFillDefinitionValue } from "./ThemeDefinition";
9
- import { TextStyleValue, TypographyFontDefinition } from "./Typography";
10
+ import { TextStyleConfiguration, TextStyleValue, TypographyFontDefinition } from "./Typography";
10
11
  export interface BlueprintStrategy {
11
12
  buttons: {
12
13
  primary: ButtonBlueprint;
@@ -22,8 +23,10 @@ export interface BoxDimensions extends Spacing {
22
23
  export interface Blueprints {
23
24
  name?: string;
24
25
  }
25
- export type BlueprintVariant = "primary" | "secondary" | "variant1" | "variant2" | "variant3" | "variant4" | "variant5" | "variant6" | "variant7" | "variant8";
26
+ type VariantTypeBase = "variant1" | "variant2" | "variant3" | "variant4" | "variant5" | "variant6" | "variant7" | "variant8";
27
+ export type BlueprintVariant = "primary" | "secondary" | VariantTypeBase;
26
28
  export declare const BlueprintVariants: Array<BlueprintVariant>;
29
+ export type ContainerFillVariants = VariantTypeBase;
27
30
  export interface VariantBlueprints<T> extends Blueprints {
28
31
  variant1?: T;
29
32
  variant2?: T;
@@ -224,6 +227,7 @@ export interface TabsBlueprint extends Blueprint, DynamicColorSettings {
224
227
  export interface TextBlueprint extends Blueprint {
225
228
  color?: TextFillDefinitionValue;
226
229
  textStyle?: TextStyleValue;
230
+ configuration?: TextStyleConfiguration | guid;
227
231
  }
228
232
  export interface IconBlueprint extends Blueprint {
229
233
  color?: TextFillDefinitionValue;
@@ -233,3 +237,4 @@ export interface ChipBlueprint extends Blueprint {
233
237
  bgColor?: TextFillDefinitionValue;
234
238
  textColor?: TextFillDefinitionValue;
235
239
  }
240
+ export {};
@@ -7,6 +7,7 @@ export type Spacing = {
7
7
  };
8
8
  export type SpacingScale = "l" | "s";
9
9
  export type SpacingPreset = "preset-layout" | "preset-section" | "preset-column" | "preset-block";
10
+ export declare const SpacingPresetValues: string[];
10
11
  export interface SpacingDefinition {
11
12
  name?: string;
12
13
  xs?: number;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SpacingTypes = void 0;
3
+ exports.SpacingTypes = exports.SpacingPresetValues = void 0;
4
+ exports.SpacingPresetValues = ["preset-layout", "preset-section", "preset-column", "preset-block"];
4
5
  var SpacingTypes;
5
6
  (function (SpacingTypes) {
6
7
  SpacingTypes["xs"] = "xs";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/velcron",
3
3
  "license": "MIT",
4
- "version": "8.0.555-dev",
4
+ "version": "8.0.557-dev",
5
5
  "description": "Provide Omnia Velcron Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"