@omnia/velcron 8.0.323-dev → 8.0.325-dev-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.
Files changed (63) hide show
  1. package/internal-do-not-import-from-here/shared/models/OmniaHub.d.ts +5 -0
  2. package/internal-do-not-import-from-here/shared/models/{hub/activities/ActivityHubServiceId.js → OmniaHub.js} +3 -1
  3. package/internal-do-not-import-from-here/shared/models/OmniaSharedBootstrapData.d.ts +1 -1
  4. package/internal-do-not-import-from-here/shared/models/Realtime.d.ts +0 -15
  5. package/internal-do-not-import-from-here/shared/models/Realtime.js +0 -17
  6. package/internal-do-not-import-from-here/shared/models/index.d.ts +1 -1
  7. package/internal-do-not-import-from-here/shared/models/index.js +1 -1
  8. package/internal-do-not-import-from-here/shared/models/theme/Blueprints.d.ts +9 -8
  9. package/internal-do-not-import-from-here/shared/models/theme/SharedBlueprintMethods.d.ts +3 -1
  10. package/internal-do-not-import-from-here/shared/models/theme/SharedBlueprintMethods.js +38 -34
  11. package/internal-do-not-import-from-here/shared/models/theme/ThemeDefinition.d.ts +4 -3
  12. package/internal-do-not-import-from-here/shared/models/theme/Typography.d.ts +1 -2
  13. package/package.json +1 -1
  14. package/parser/VelcronDataBinder.js +16 -16
  15. package/parser/VelcronStyles.js +19 -19
  16. package/stores/VelcronTheming.js +2 -2
  17. package/internal-do-not-import-from-here/shared/models/hub/TempSocialReactions.d.ts +0 -13
  18. package/internal-do-not-import-from-here/shared/models/hub/TempSocialReactions.js +0 -20
  19. package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.d.ts +0 -75
  20. package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.js +0 -13
  21. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityChannel.d.ts +0 -7
  22. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityChannel.js +0 -4
  23. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityDefinition.d.ts +0 -14
  24. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityDefinition.js +0 -15
  25. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityFeed.d.ts +0 -31
  26. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityFeed.js +0 -2
  27. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityHubServiceId.d.ts +0 -2
  28. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRenderer.d.ts +0 -15
  29. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRenderer.js +0 -4
  30. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRendererLoadingReferences.d.ts +0 -8
  31. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRendererLoadingReferences.js +0 -2
  32. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySubscription.d.ts +0 -16
  33. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySubscription.js +0 -4
  34. package/internal-do-not-import-from-here/shared/models/hub/activities/ActorActivity.d.ts +0 -48
  35. package/internal-do-not-import-from-here/shared/models/hub/activities/ActorActivity.js +0 -17
  36. package/internal-do-not-import-from-here/shared/models/hub/activities/index.d.ts +0 -9
  37. package/internal-do-not-import-from-here/shared/models/hub/activities/index.js +0 -12
  38. package/internal-do-not-import-from-here/shared/models/hub/actors/Actor.d.ts +0 -21
  39. package/internal-do-not-import-from-here/shared/models/hub/actors/Actor.js +0 -10
  40. package/internal-do-not-import-from-here/shared/models/hub/actors/ExternalActorId.d.ts +0 -2
  41. package/internal-do-not-import-from-here/shared/models/hub/actors/ExternalActorId.js +0 -2
  42. package/internal-do-not-import-from-here/shared/models/hub/actors/index.d.ts +0 -2
  43. package/internal-do-not-import-from-here/shared/models/hub/actors/index.js +0 -5
  44. package/internal-do-not-import-from-here/shared/models/hub/fileupload/FileOwnerId.d.ts +0 -3
  45. package/internal-do-not-import-from-here/shared/models/hub/fileupload/FileOwnerId.js +0 -4
  46. package/internal-do-not-import-from-here/shared/models/hub/fileupload/TemporaryFileId.d.ts +0 -4
  47. package/internal-do-not-import-from-here/shared/models/hub/fileupload/TemporaryFileId.js +0 -4
  48. package/internal-do-not-import-from-here/shared/models/hub/fileupload/index.d.ts +0 -2
  49. package/internal-do-not-import-from-here/shared/models/hub/fileupload/index.js +0 -5
  50. package/internal-do-not-import-from-here/shared/models/hub/index.d.ts +0 -7
  51. package/internal-do-not-import-from-here/shared/models/hub/index.js +0 -10
  52. package/internal-do-not-import-from-here/shared/models/hub/social/HubComment.d.ts +0 -10
  53. package/internal-do-not-import-from-here/shared/models/hub/social/HubComment.js +0 -2
  54. package/internal-do-not-import-from-here/shared/models/hub/social/HubReaction.d.ts +0 -5
  55. package/internal-do-not-import-from-here/shared/models/hub/social/HubReaction.js +0 -2
  56. package/internal-do-not-import-from-here/shared/models/hub/social/index.d.ts +0 -2
  57. package/internal-do-not-import-from-here/shared/models/hub/social/index.js +0 -5
  58. package/internal-do-not-import-from-here/shared/models/hub/targeting/ExternalIdentityProperty.d.ts +0 -10
  59. package/internal-do-not-import-from-here/shared/models/hub/targeting/ExternalIdentityProperty.js +0 -19
  60. package/internal-do-not-import-from-here/shared/models/hub/targeting/HubSource.d.ts +0 -4
  61. package/internal-do-not-import-from-here/shared/models/hub/targeting/HubSource.js +0 -8
  62. package/internal-do-not-import-from-here/shared/models/hub/targeting/index.d.ts +0 -1
  63. package/internal-do-not-import-from-here/shared/models/hub/targeting/index.js +0 -4
@@ -0,0 +1,5 @@
1
+ import { guid } from "./Guid";
2
+ import { Id } from "./Id";
3
+ export type ActorId = Id<number, "ActorId">;
4
+ export declare function ActorId(id: number): ActorId;
5
+ export declare const ActivityHubServiceId: guid;
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ActivityHubServiceId = void 0;
4
- const Guid_1 = require("../../Guid");
4
+ exports.ActorId = ActorId;
5
+ const Guid_1 = require("./Guid");
6
+ function ActorId(id) { return id; }
5
7
  exports.ActivityHubServiceId = (0, Guid_1.guid)("92fab26a-90c4-45e2-9b5e-9bdf0e26ea14");
@@ -1,7 +1,7 @@
1
1
  import { OmniaToken } from "./Tokens";
2
2
  import { guid } from "./Guid";
3
3
  import { TenantIdentifier } from "./Tenant";
4
- import { ActorId } from "./hub";
4
+ import { ActorId } from "./OmniaHub";
5
5
  export interface OmniaSharedBootstrapData {
6
6
  uiThreadId: guid;
7
7
  workerThreadId: guid;
@@ -1,19 +1,4 @@
1
1
  import { guid } from "./Guid";
2
- export declare abstract class RealtimeChannel {
3
- /**
4
- * Construct a unique channel id that can be targeted to users who are set to be in that channel on the client
5
- * @returns id
6
- */
7
- abstract getId(): string;
8
- }
9
- export declare abstract class RealtimeData<TRealtimeChannel extends RealtimeChannel, TRealtimeData> {
10
- private _channel;
11
- private _value;
12
- get channel(): TRealtimeChannel;
13
- get value(): TRealtimeData;
14
- abstract getId(): guid;
15
- constructor(channel: TRealtimeChannel, value?: TRealtimeData);
16
- }
17
2
  export type RealtimeChannelUpdateTypes = "activate" | "deactivate";
18
3
  export interface RealtimeChannelUpdateMessage extends RealtimChannelMessage {
19
4
  threadId: guid;
@@ -1,19 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RealtimeData = exports.RealtimeChannel = void 0;
4
- class RealtimeChannel {
5
- }
6
- exports.RealtimeChannel = RealtimeChannel;
7
- class RealtimeData {
8
- get channel() {
9
- return this._channel;
10
- }
11
- get value() {
12
- return this._value;
13
- }
14
- constructor(channel, value) {
15
- this._channel = channel;
16
- this._value = value;
17
- }
18
- }
19
- exports.RealtimeData = RealtimeData;
@@ -15,9 +15,9 @@ export * from "./StringExtensions";
15
15
  export * from "./DynamicState";
16
16
  export * from "./Id";
17
17
  export * from "./theme";
18
- export * from "./hub";
19
18
  export * from "./velcron";
20
19
  export * from "./DependencyInjection";
21
20
  export * from "./Messaging";
22
21
  export * from "./EventHook";
23
22
  export * from "./ShortId";
23
+ export * from "./OmniaHub";
@@ -19,9 +19,9 @@ tslib_1.__exportStar(require("./StringExtensions"), exports);
19
19
  tslib_1.__exportStar(require("./DynamicState"), exports);
20
20
  tslib_1.__exportStar(require("./Id"), exports);
21
21
  tslib_1.__exportStar(require("./theme"), exports);
22
- tslib_1.__exportStar(require("./hub"), exports);
23
22
  tslib_1.__exportStar(require("./velcron"), exports);
24
23
  tslib_1.__exportStar(require("./DependencyInjection"), exports);
25
24
  tslib_1.__exportStar(require("./Messaging"), exports);
26
25
  tslib_1.__exportStar(require("./EventHook"), exports);
27
26
  tslib_1.__exportStar(require("./ShortId"), exports);
27
+ tslib_1.__exportStar(require("./OmniaHub"), exports);
@@ -1,7 +1,6 @@
1
1
  import { BackgroundDefinition, BlueprintsReference, ColorValue, FillDefinitionValue } from "./ThemeDefinition";
2
2
  import { SpacingDefinition, Spacing } from "./Spacing";
3
3
  import { TypographyFontDefinition, TypographyValue } from "./Typography";
4
- import { TypographyBlueprint } from "./Typography";
5
4
  import { ThemeBase } from "./ThemeBase";
6
5
  import { VelcronRendererResolverReference } from "../velcron";
7
6
  export interface BlueprintStrategy {
@@ -43,15 +42,9 @@ export interface ContainerFillBlueprint extends Blueprints, BlueprintsReference
43
42
  name?: string;
44
43
  background?: BackgroundDefinition;
45
44
  }
46
- export interface TypographyBlueprints extends ThemeBase {
47
- primary: TypographyBlueprint;
48
- }
49
45
  export interface IFontBlueprints extends Blueprints, BlueprintsReference {
50
46
  fonts: Array<TypographyFontDefinition>;
51
47
  }
52
- export interface SpacingBlueprints extends ThemeBase {
53
- primary: SpacingBlueprint;
54
- }
55
48
  export interface ComponentBlueprints extends ThemeBase {
56
49
  strategy?: "MD2" | "MD3";
57
50
  buttons?: ButtonBlueprints;
@@ -60,8 +53,9 @@ export interface ComponentBlueprints extends ThemeBase {
60
53
  chips?: ChipBlueprint;
61
54
  fills?: ContainerFillBlueprints;
62
55
  headers?: HeaderBlueprints;
56
+ inputs?: InputBlueprints;
63
57
  }
64
- export interface SpacingBlueprint {
58
+ export interface SpacingBlueprint extends ThemeBase {
65
59
  l?: SpacingDefinition;
66
60
  s?: SpacingDefinition;
67
61
  }
@@ -120,6 +114,13 @@ export interface ButtonBlueprints extends Blueprints {
120
114
  close?: ButtonBlueprint;
121
115
  } & VariantBlueprints<ButtonBlueprint>;
122
116
  }
117
+ export interface InputBlueprints extends Blueprints, VariantBlueprints<InputBlueprint> {
118
+ primary?: InputBlueprint;
119
+ }
120
+ export interface InputBlueprint extends Blueprint {
121
+ variant: "filled" | "underlined" | "outlined" | "plain" | "solo" | "solo-inverted" | "solo-filled";
122
+ density?: "large" | "comfortable" | "compact";
123
+ }
123
124
  export interface TabsBlueprints extends Blueprints, VariantBlueprints<TabsBlueprint> {
124
125
  primary?: TabsBlueprint;
125
126
  }
@@ -1,3 +1,5 @@
1
1
  import { SpacingBlueprint } from "./Blueprints";
2
2
  import { SpacingScale } from "./Spacing";
3
- export declare function getSpacingValueFromBlueprint(spacingValue: any, blueprint: SpacingBlueprint, scale?: SpacingScale): number;
3
+ export declare namespace SpacingMethods {
4
+ function getSpacingValueFromBlueprint(spacingValue: any, blueprint: SpacingBlueprint, scale?: SpacingScale): number;
5
+ }
@@ -1,44 +1,48 @@
1
1
  "use strict";
2
2
  // import { SpacingDefinition, SpacingTypes } from "@omnia/fx-models";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.getSpacingValueFromBlueprint = getSpacingValueFromBlueprint;
4
+ exports.SpacingMethods = void 0;
5
5
  const Spacing_1 = require("./Spacing");
6
6
  const useSpacingScaling_1 = require("./useSpacingScaling");
7
7
  const spacingScaling = (0, useSpacingScaling_1.useSpacingScaling)();
8
- function getSpacingValueFromBlueprint(spacingValue, blueprint, scale) {
9
- if (!spacingValue) {
10
- return 0;
11
- }
12
- if (!scale) {
13
- scale = spacingScaling.get.scale(spacingValue);
14
- }
15
- const definition = scale === "l" ? blueprint.l : blueprint.s;
16
- let negative = false;
17
- let result = spacingValue;
18
- if (isNaN(spacingValue)) {
19
- let strippedValue = spacingScaling.get.valueWithoutScale(spacingValue);
20
- if (strippedValue.startsWith("-")) {
21
- negative = true;
22
- }
23
- strippedValue = strippedValue.replace("-", "");
24
- if (strippedValue === Spacing_1.SpacingTypes.xs) {
25
- result = definition.xs;
26
- }
27
- else if (strippedValue === Spacing_1.SpacingTypes.s) {
28
- result = definition.s;
29
- }
30
- else if (strippedValue === Spacing_1.SpacingTypes.m) {
31
- result = definition.m;
32
- }
33
- else if (strippedValue === Spacing_1.SpacingTypes.l) {
34
- result = definition.l;
8
+ var SpacingMethods;
9
+ (function (SpacingMethods) {
10
+ function getSpacingValueFromBlueprint(spacingValue, blueprint, scale) {
11
+ if (!spacingValue) {
12
+ return 0;
35
13
  }
36
- else if (strippedValue === Spacing_1.SpacingTypes.xl) {
37
- result = definition.xl;
14
+ if (!scale) {
15
+ scale = spacingScaling.get.scale(spacingValue);
38
16
  }
39
- else {
40
- result = 0;
17
+ const definition = scale === "l" ? blueprint.l : blueprint.s;
18
+ let negative = false;
19
+ let result = spacingValue;
20
+ if (isNaN(spacingValue)) {
21
+ let strippedValue = spacingScaling.get.valueWithoutScale(spacingValue);
22
+ if (strippedValue.startsWith("-")) {
23
+ negative = true;
24
+ }
25
+ strippedValue = strippedValue.replace("-", "");
26
+ if (strippedValue === Spacing_1.SpacingTypes.xs) {
27
+ result = definition.xs;
28
+ }
29
+ else if (strippedValue === Spacing_1.SpacingTypes.s) {
30
+ result = definition.s;
31
+ }
32
+ else if (strippedValue === Spacing_1.SpacingTypes.m) {
33
+ result = definition.m;
34
+ }
35
+ else if (strippedValue === Spacing_1.SpacingTypes.l) {
36
+ result = definition.l;
37
+ }
38
+ else if (strippedValue === Spacing_1.SpacingTypes.xl) {
39
+ result = definition.xl;
40
+ }
41
+ else {
42
+ result = 0;
43
+ }
41
44
  }
45
+ return negative ? -result : result;
42
46
  }
43
- return negative ? -result : result;
44
- }
47
+ SpacingMethods.getSpacingValueFromBlueprint = getSpacingValueFromBlueprint;
48
+ })(SpacingMethods || (exports.SpacingMethods = SpacingMethods = {}));
@@ -1,9 +1,10 @@
1
1
  import { guid } from "../Guid";
2
2
  import { Id } from "../Id";
3
- import { BlueprintVariant, BoxDimensions, ButtonBlueprint, ComponentBlueprints, SpacingBlueprints, TypographyBlueprints } from "./Blueprints";
3
+ import { BlueprintVariant, BoxDimensions, ButtonBlueprint, ComponentBlueprints, SpacingBlueprint } from "./Blueprints";
4
4
  import { Color } from "./Color";
5
5
  import { LegacyBorderDefinition, LegacyThemeDefinition } from "./LegacyThemeDefinition";
6
6
  import { ThemeBase } from "./ThemeBase";
7
+ import { TypographyBlueprint } from "./Typography";
7
8
  export type ThemeContextType = "default" | "admin" | "preview" | "color-context" | "designer";
8
9
  export interface ColorTypeResult<resultType> {
9
10
  base: resultType;
@@ -73,8 +74,8 @@ export interface ThemeDefinitionReference {
73
74
  }
74
75
  export interface ResolvedThemeDefinition extends ThemeBase {
75
76
  colors?: ColorSchemas;
76
- typography?: TypographyBlueprints;
77
- spacing?: SpacingBlueprints;
77
+ typography?: TypographyBlueprint;
78
+ spacing?: SpacingBlueprint;
78
79
  components?: ComponentBlueprints;
79
80
  }
80
81
  export interface ThemeSelection {
@@ -7,8 +7,7 @@ export interface TypographyFontDefinition extends ThemeBase {
7
7
  cdn?: string;
8
8
  manifestId?: guid;
9
9
  }
10
- export interface TypographyBlueprint {
11
- name: string;
10
+ export interface TypographyBlueprint extends ThemeBase {
12
11
  font?: TypographyFontRef;
13
12
  fills?: VariantBlueprints<FillDefinition>;
14
13
  variants?: VariantBlueprints<TypographyDefinition>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/velcron",
3
3
  "license": "MIT",
4
- "version": "8.0.323-dev",
4
+ "version": "8.0.325-dev-dev",
5
5
  "description": "Provide Omnia Velcron Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -5,8 +5,8 @@ const TextValue_1 = require("./TextValue");
5
5
  const VelcronConstants_1 = require("./VelcronConstants");
6
6
  const VelcronData_1 = require("./VelcronData");
7
7
  const __1 = require("..");
8
- // Precompiled regular expression for token replacement
9
- const TOKEN_REGEX = /\s*{{\s*|\s*}}\s*/g;
8
+ const _interpolationRegex = /^{{\s*([^|}]+?)\s*(\|.*)?}}$/;
9
+ const _formatterRegex = /\|\s*(\w+)(?:\s*:\s*([^|]+))?/g;
10
10
  class VelcronDataBinder {
11
11
  /**
12
12
  * Binds a value based on the provided binding expression.
@@ -58,29 +58,32 @@ class VelcronDataBinder {
58
58
  return bindTo.replace(interpolationRegex, (match) => {
59
59
  const interpolation = this.parseInterpolation(match);
60
60
  if (!interpolation) {
61
- console.warn(`Failed to parse interpolation: ${match}`);
61
+ __1.VelcronLogger.logDataError(`Failed to parse interpolation: ${match}`);
62
62
  return match; // Return as-is if parsing fails
63
63
  }
64
- let value = VelcronData_1.VelcronData.getOrSet(renderContext, interpolation.variable);
64
+ let value;
65
+ if (__1.VelcronActions.valueIsAction(interpolation.variable)) {
66
+ // If the variable is an action (e.g., @getData()), process it
67
+ value = this.processToken(interpolation.variable, renderContext);
68
+ }
69
+ else {
70
+ value = VelcronData_1.VelcronData.getOrSet(renderContext, interpolation.variable);
71
+ }
65
72
  if (value === undefined || value === null) {
66
- console.warn(`Variable "${interpolation.variable}" is not defined in the context.`);
73
+ __1.VelcronLogger.logDataError(`Variable "${interpolation.variable}" is not defined in the context.`);
67
74
  return "";
68
75
  }
69
- console.log(`Initial value for "${interpolation.variable}":`, value);
70
76
  for (const formatter of interpolation.formatters) {
71
77
  const formatterObj = __1.VelcronFormatters.getFormatter(formatter.name);
72
78
  if (!formatterObj) {
73
- console.warn(`Formatter "${formatter.name}" is not registered.`);
79
+ __1.VelcronLogger.logDataError(`Formatter "${formatter.name}" is not registered.`);
74
80
  continue; // Skip unknown formatter
75
81
  }
76
82
  try {
77
83
  value = formatterObj.format(value, ...formatter.args);
78
- console.log(`After formatter "${formatter.name}":`, value);
79
84
  }
80
85
  catch (error) {
81
- console.error(`Error applying formatter "${formatter.name}" to variable "${interpolation.variable}":`, error);
82
- value = ""; // Fallback to empty string on error
83
- break; // Optionally stop applying further formatters
86
+ __1.VelcronLogger.logDataError(`Error applying formatter "${formatter.name}" to variable "${interpolation.variable}": ${error}`);
84
87
  }
85
88
  }
86
89
  if (value instanceof TextValue_1.TextValue) {
@@ -95,17 +98,14 @@ class VelcronDataBinder {
95
98
  * @returns An Interpolation object or null if parsing fails.
96
99
  */
97
100
  static parseInterpolation(match) {
98
- // Adjusted regex to handle variable names with special characters and spaces
99
- const interpolationRegex = /^{{\s*([^|}]+?)\s*(\|.*)?}}$/;
100
- const formatterRegex = /\|\s*(\w+)(?:\s*:\s*([^|]+))?/g;
101
- const mainMatch = interpolationRegex.exec(match);
101
+ const mainMatch = _interpolationRegex.exec(match);
102
102
  if (!mainMatch)
103
103
  return null;
104
104
  const variable = mainMatch[1].trim();
105
105
  const formattersPart = mainMatch[2] || "";
106
106
  const formatters = [];
107
107
  let formatterMatch;
108
- while ((formatterMatch = formatterRegex.exec(formattersPart)) !== null) {
108
+ while ((formatterMatch = _formatterRegex.exec(formattersPart)) !== null) {
109
109
  const name = formatterMatch[1];
110
110
  const rawArgs = formatterMatch[2] || "";
111
111
  const args = [];
@@ -111,13 +111,13 @@ class VelcronStyles {
111
111
  const margin = VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, definition.margin);
112
112
  const spacing = renderCtx.theming.get.spacing();
113
113
  if (typeof margin === "object") {
114
- styleBase.marginTop = this.unitProvider.formatDimension((0, __1.getSpacingValueFromBlueprint)(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, margin.top), spacing, margin.scale));
115
- styleBase.marginRight = this.unitProvider.formatDimension((0, __1.getSpacingValueFromBlueprint)(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, margin.right), spacing, margin.scale));
116
- styleBase.marginBottom = this.unitProvider.formatDimension((0, __1.getSpacingValueFromBlueprint)(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, margin.bottom), spacing, margin.scale));
117
- styleBase.marginLeft = this.unitProvider.formatDimension((0, __1.getSpacingValueFromBlueprint)(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, margin.left), spacing, margin.scale));
114
+ styleBase.marginTop = this.unitProvider.formatDimension(__1.SpacingMethods.getSpacingValueFromBlueprint(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, margin.top), spacing, margin.scale));
115
+ styleBase.marginRight = this.unitProvider.formatDimension(__1.SpacingMethods.getSpacingValueFromBlueprint(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, margin.right), spacing, margin.scale));
116
+ styleBase.marginBottom = this.unitProvider.formatDimension(__1.SpacingMethods.getSpacingValueFromBlueprint(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, margin.bottom), spacing, margin.scale));
117
+ styleBase.marginLeft = this.unitProvider.formatDimension(__1.SpacingMethods.getSpacingValueFromBlueprint(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, margin.left), spacing, margin.scale));
118
118
  }
119
119
  else {
120
- const value = this.unitProvider.formatDimension((0, __1.getSpacingValueFromBlueprint)(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, margin), spacing));
120
+ const value = this.unitProvider.formatDimension(__1.SpacingMethods.getSpacingValueFromBlueprint(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, margin), spacing));
121
121
  styleBase.marginTop = value;
122
122
  styleBase.marginRight = value;
123
123
  styleBase.marginBottom = value;
@@ -128,13 +128,13 @@ class VelcronStyles {
128
128
  const padding = VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, definition.padding);
129
129
  const spacing = renderCtx.theming.get.spacing();
130
130
  if (typeof padding === "object") {
131
- styleBase.paddingTop = this.unitProvider.formatDimension((0, __1.getSpacingValueFromBlueprint)(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, padding.top), spacing, padding.scale));
132
- styleBase.paddingRight = this.unitProvider.formatDimension((0, __1.getSpacingValueFromBlueprint)(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, padding.right), spacing, padding.scale));
133
- styleBase.paddingBottom = this.unitProvider.formatDimension((0, __1.getSpacingValueFromBlueprint)(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, padding.bottom), spacing, padding.scale));
134
- styleBase.paddingLeft = this.unitProvider.formatDimension((0, __1.getSpacingValueFromBlueprint)(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, padding.left), spacing, padding.scale));
131
+ styleBase.paddingTop = this.unitProvider.formatDimension(__1.SpacingMethods.getSpacingValueFromBlueprint(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, padding.top), spacing, padding.scale));
132
+ styleBase.paddingRight = this.unitProvider.formatDimension(__1.SpacingMethods.getSpacingValueFromBlueprint(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, padding.right), spacing, padding.scale));
133
+ styleBase.paddingBottom = this.unitProvider.formatDimension(__1.SpacingMethods.getSpacingValueFromBlueprint(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, padding.bottom), spacing, padding.scale));
134
+ styleBase.paddingLeft = this.unitProvider.formatDimension(__1.SpacingMethods.getSpacingValueFromBlueprint(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, padding.left), spacing, padding.scale));
135
135
  }
136
136
  else {
137
- const value = this.unitProvider.formatDimension((0, __1.getSpacingValueFromBlueprint)(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, padding), spacing));
137
+ const value = this.unitProvider.formatDimension(__1.SpacingMethods.getSpacingValueFromBlueprint(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, padding), spacing));
138
138
  styleBase.paddingTop = value;
139
139
  styleBase.paddingRight = value;
140
140
  styleBase.paddingBottom = value;
@@ -191,10 +191,10 @@ class VelcronStyles {
191
191
  const flexDefinition = definition;
192
192
  const spacingBlueprint = renderCtx.theming.get.spacing();
193
193
  const gapX = flexDefinition.gapX || flexDefinition?.gapX?.toString() === "0"
194
- ? (0, __1.getSpacingValueFromBlueprint)(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, flexDefinition.gapX), spacingBlueprint)
195
- : (0, __1.getSpacingValueFromBlueprint)(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, flexDefinition.gapY), spacingBlueprint);
194
+ ? __1.SpacingMethods.getSpacingValueFromBlueprint(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, flexDefinition.gapX), spacingBlueprint)
195
+ : __1.SpacingMethods.getSpacingValueFromBlueprint(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, flexDefinition.gapY), spacingBlueprint);
196
196
  const gapY = flexDefinition.gapY || flexDefinition?.gapY?.toString() === "0"
197
- ? (0, __1.getSpacingValueFromBlueprint)(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, flexDefinition.gapY), spacingBlueprint)
197
+ ? __1.SpacingMethods.getSpacingValueFromBlueprint(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, flexDefinition.gapY), spacingBlueprint)
198
198
  : gapX;
199
199
  const width = VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, flexDefinition.width);
200
200
  const minWidth = VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, flexDefinition.minWidth);
@@ -273,10 +273,10 @@ class VelcronStyles {
273
273
  const columns = VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, gridDefinition.columns);
274
274
  const minWidth = VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, gridDefinition.minColumnWidth);
275
275
  const gapX = gridDefinition.gapX || gridDefinition?.gapX?.toString() === "0"
276
- ? (0, __1.getSpacingValueFromBlueprint)(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, gridDefinition.gapX), spacingBlueprint)
277
- : (0, __1.getSpacingValueFromBlueprint)(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, gridDefinition.gapY), spacingBlueprint);
276
+ ? __1.SpacingMethods.getSpacingValueFromBlueprint(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, gridDefinition.gapX), spacingBlueprint)
277
+ : __1.SpacingMethods.getSpacingValueFromBlueprint(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, gridDefinition.gapY), spacingBlueprint);
278
278
  const gapY = gridDefinition.gapY || gridDefinition?.gapY?.toString() === "0"
279
- ? (0, __1.getSpacingValueFromBlueprint)(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, gridDefinition.gapY), spacingBlueprint)
279
+ ? __1.SpacingMethods.getSpacingValueFromBlueprint(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, gridDefinition.gapY), spacingBlueprint)
280
280
  : gapX;
281
281
  styleBase.display = "grid";
282
282
  styleBase.width = "100%";
@@ -315,7 +315,7 @@ class VelcronStyles {
315
315
  return this.styleProvider(styleBase, definition, renderCtx);
316
316
  }
317
317
  static applySpacingDimension(value, spacing) {
318
- return this.unitProvider.formatDimension((0, __1.getSpacingValueFromBlueprint)(value, spacing));
318
+ return this.unitProvider.formatDimension(__1.SpacingMethods.getSpacingValueFromBlueprint(value, spacing));
319
319
  }
320
320
  static applyOverflow(definition, renderCtx, styleBase) {
321
321
  const overflowProps = ["overflow", "overflowX", "overflowY"];
@@ -336,7 +336,7 @@ class VelcronStyles {
336
336
  const styleName = styleType?.length > 0
337
337
  ? `${styleType}${prop.charAt(0).toUpperCase() + prop.slice(1)}`
338
338
  : prop;
339
- styleBase[styleName] = this.unitProvider.formatDimension((0, __1.getSpacingValueFromBlueprint)(dataBound[prop], spacingDef));
339
+ styleBase[styleName] = this.unitProvider.formatDimension(__1.SpacingMethods.getSpacingValueFromBlueprint(dataBound[prop], spacingDef));
340
340
  }
341
341
  });
342
342
  }
@@ -346,7 +346,7 @@ class VelcronStyles {
346
346
  const styleName = styleType?.length > 0
347
347
  ? `${styleType}${prop.charAt(0).toUpperCase() + prop.slice(1)}`
348
348
  : prop;
349
- styleBase[styleName] = this.unitProvider.formatDimension((0, __1.getSpacingValueFromBlueprint)(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, spacing[prop]), spacingDef));
349
+ styleBase[styleName] = this.unitProvider.formatDimension(__1.SpacingMethods.getSpacingValueFromBlueprint(VelcronDataBinder_1.VelcronDataBinder.bind(renderCtx, spacing[prop]), spacingDef));
350
350
  }
351
351
  });
352
352
  additionalPropsToDataBind &&
@@ -23,10 +23,10 @@ exports.useVelcronThemingStore = (0, VelcronStore_1.defineVelcronStore)("Velcron
23
23
  return (0, __1.useThemeMethods)(() => state.currentTheme).colorSchema(colorSchemaType);
24
24
  },
25
25
  spacing: () => {
26
- return state.currentTheme.spacing.primary;
26
+ return state.currentTheme.spacing;
27
27
  },
28
28
  typography: (typographyType, size) => {
29
- const typography = state.currentTheme.typography.primary;
29
+ const typography = state.currentTheme.typography;
30
30
  if (typographyType === __1.TypographyTypes.text) {
31
31
  return typography.text[size];
32
32
  }
@@ -1,13 +0,0 @@
1
- import { guid } from "../Guid";
2
- import { RealtimeChannel, RealtimeData } from "../Realtime";
3
- export declare class SocialRealtimeChannel extends RealtimeChannel {
4
- getId(): string;
5
- }
6
- export interface SocialRealtimeMessage {
7
- reactionCount: number;
8
- commentCount: number;
9
- }
10
- export declare class SocialRealtimeData extends RealtimeData<SocialRealtimeChannel, SocialRealtimeMessage> {
11
- constructor(channel: SocialRealtimeChannel);
12
- getId(): guid;
13
- }
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SocialRealtimeData = exports.SocialRealtimeChannel = void 0;
4
- const Guid_1 = require("../Guid");
5
- const Realtime_1 = require("../Realtime");
6
- class SocialRealtimeChannel extends Realtime_1.RealtimeChannel {
7
- getId() {
8
- return "social";
9
- }
10
- }
11
- exports.SocialRealtimeChannel = SocialRealtimeChannel;
12
- class SocialRealtimeData extends Realtime_1.RealtimeData {
13
- constructor(channel) {
14
- super(channel);
15
- }
16
- getId() {
17
- return (0, Guid_1.guid)("445350a8-4565-4a94-ba01-a05dd2cccca6");
18
- }
19
- }
20
- exports.SocialRealtimeData = SocialRealtimeData;
@@ -1,75 +0,0 @@
1
- import { ChannelId } from "./ActivityChannel";
2
- import { ActivityRenderer, ActivityRendererReference } from "./ActivityRenderer";
3
- import { Id } from "../../Id";
4
- import { DynamicState } from "../../DynamicState";
5
- import { ActorActivityCategory } from "./ActorActivity";
6
- import { TemporaryFileId } from "../fileupload";
7
- import { ActorId } from "../actors";
8
- import { guid } from "../../Guid";
9
- export type ActivityId = Id<number, "ActivityId">;
10
- export declare function ActivityId(id: number): ActivityId;
11
- export type ActivityTypeId = Id<guid, "ActivityTypeId">;
12
- export declare function ActivityTypeId(id: guid): ActivityTypeId;
13
- export interface Activity<TRenderState = DynamicState> extends ActivityBase {
14
- id: ActivityId;
15
- state: TRenderState;
16
- renderer: ActivityRenderer | ActivityRendererReference;
17
- createdBy: ActorId;
18
- }
19
- export interface ActivityWithJson extends ActivityBase {
20
- id: ActivityId;
21
- createdBy: ActorId;
22
- stateJson: string;
23
- rendererJson: string;
24
- }
25
- export interface ActivityBase {
26
- channelId: ChannelId;
27
- activityTypeId: ActivityTypeId;
28
- targeting: Array<Array<SourceRelatedHubProperty>>;
29
- notificationTeaser: NotificationTeaser;
30
- expires?: Date;
31
- createdAt: Date;
32
- reactionCount?: number;
33
- commentCount?: number;
34
- }
35
- export interface ActivityRenderState<TActivityState = DynamicState, TIdentityState = DynamicState> {
36
- activity: TActivityState;
37
- identity: TIdentityState;
38
- }
39
- export interface SourceRelatedHubProperty extends HubProperty {
40
- propertySourceId: guid;
41
- }
42
- export interface HubProperty {
43
- name: string;
44
- values: Array<string>;
45
- }
46
- export interface NotificationTeaser {
47
- title: string;
48
- description: string;
49
- url: string;
50
- }
51
- export declare enum PrivacyLevel {
52
- Private = 0,
53
- Public = 1,
54
- Followers = 2
55
- }
56
- export interface CreateActivityRequest {
57
- channelId: ChannelId;
58
- activityTypeId: ActivityTypeId;
59
- createdBy: ActorId;
60
- stateJson: string;
61
- rendererJson: string;
62
- notificationTeaser: NotificationTeaser;
63
- targeting: Array<Array<SourceRelatedHubProperty>>;
64
- addToActors?: {
65
- [actorId: ActorId]: PrivacyLevel;
66
- };
67
- category: ActorActivityCategory;
68
- activityIdPlaceHolder?: TemporaryFileId;
69
- expires?: Date;
70
- createdAt?: Date;
71
- }
72
- export interface CreateActivityResult {
73
- id: ActivityId;
74
- createdAt: Date;
75
- }
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PrivacyLevel = void 0;
4
- exports.ActivityId = ActivityId;
5
- exports.ActivityTypeId = ActivityTypeId;
6
- function ActivityId(id) { return id; }
7
- function ActivityTypeId(id) { return id; }
8
- var PrivacyLevel;
9
- (function (PrivacyLevel) {
10
- PrivacyLevel[PrivacyLevel["Private"] = 0] = "Private";
11
- PrivacyLevel[PrivacyLevel["Public"] = 1] = "Public";
12
- PrivacyLevel[PrivacyLevel["Followers"] = 2] = "Followers";
13
- })(PrivacyLevel || (exports.PrivacyLevel = PrivacyLevel = {}));
@@ -1,7 +0,0 @@
1
- import { Id } from "../../Id";
2
- export type ChannelId = Id<number, "ChannelId">;
3
- export declare function ChannelId(id: number): ChannelId;
4
- export interface ActivityChannel {
5
- id: ChannelId;
6
- createdAt: Date;
7
- }
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChannelId = ChannelId;
4
- function ChannelId(id) { return id; }
@@ -1,14 +0,0 @@
1
- import { DynamicState } from "../../DynamicState";
2
- import { ActivityTypeId } from "./Activity";
3
- import { ActivityRenderer, ActivityRendererReference } from "./ActivityRenderer";
4
- export declare abstract class FeedActivityDefinition<TFeedItemState> implements ActivityDefinition<TFeedItemState> {
5
- state: TFeedItemState;
6
- renderer: ActivityRenderer | ActivityRendererReference;
7
- activityTypeId: ActivityTypeId;
8
- constructor(state: TFeedItemState, renderer: ActivityRenderer | ActivityRendererReference, activityTypeId: ActivityTypeId);
9
- }
10
- export declare abstract class ActivityDefinition<TRenderState = DynamicState> {
11
- state: TRenderState;
12
- renderer: ActivityRenderer | ActivityRendererReference;
13
- abstract activityTypeId: ActivityTypeId;
14
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ActivityDefinition = exports.FeedActivityDefinition = void 0;
4
- class FeedActivityDefinition {
5
- constructor(state, renderer, activityTypeId) {
6
- this.state = state;
7
- this.renderer = renderer;
8
- this.activityTypeId = activityTypeId;
9
- this.activityTypeId = activityTypeId;
10
- }
11
- }
12
- exports.FeedActivityDefinition = FeedActivityDefinition;
13
- class ActivityDefinition {
14
- }
15
- exports.ActivityDefinition = ActivityDefinition;
@@ -1,31 +0,0 @@
1
- import { ActorId } from "../actors";
2
- import { Activity, ActivityId, ActivityWithJson } from "./Activity";
3
- import { ActivityRenderer, ActivityRendererId } from "./ActivityRenderer";
4
- import { ActivityCategoryCount, ActorActivity, ActorActivityCategory, ActorActivityWithJson, NewActivitiesByCreatorBase } from "./ActorActivity";
5
- export interface ActivityFeed extends ActivityFeedBase {
6
- renderers: {
7
- [key: ActivityRendererId]: Array<ActivityRenderer>;
8
- };
9
- actorActivities: Array<ActorActivity<object, object>>;
10
- activities: Array<Activity>;
11
- }
12
- export interface ActivityFeedResult extends ActivityFeedBase {
13
- actorActivities: Array<ActorActivityWithJson>;
14
- activities: Array<ActivityWithJson>;
15
- loadStateHash: string;
16
- }
17
- export interface ActivityFeedBase {
18
- newActivities: Array<NewActivitiesByCreatorBase>;
19
- nextStartingFromId: ActivityId;
20
- recentCreators: Array<ActorId>;
21
- categories: Array<ActivityCategoryCount>;
22
- }
23
- export interface FeedQuery {
24
- forActorId?: ActorId;
25
- newerThenId?: ActivityId;
26
- olderThenId?: ActivityId;
27
- filterByCreator?: ActorId;
28
- filterByCategory?: ActorActivityCategory;
29
- includeRecentCreators?: number;
30
- includeCategories?: boolean;
31
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- import { guid } from "../../Guid";
2
- export declare const ActivityHubServiceId: guid;
@@ -1,15 +0,0 @@
1
- import { guid } from "../../Guid";
2
- import { Id } from "../../Id";
3
- import { VelcronAppDefinition } from "../../velcron";
4
- export type ActivityRendererId = Id<guid, "ActivityRendererId">;
5
- export declare function ActivityRendererId(id: guid): ActivityRendererId;
6
- export interface ActivityRendererReference {
7
- id: ActivityRendererId;
8
- version: string;
9
- }
10
- export interface ActivityRendererWithJson extends ActivityRendererReference {
11
- definition: string;
12
- }
13
- export interface ActivityRenderer extends ActivityRendererReference {
14
- definition: VelcronAppDefinition;
15
- }
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ActivityRendererId = ActivityRendererId;
4
- function ActivityRendererId(id) { return id; }
@@ -1,8 +0,0 @@
1
- import { ActivityRendererReference } from "./ActivityRenderer";
2
- export interface ActivityRendererLoadReference extends ActivityRendererReference {
3
- versionHash: string;
4
- }
5
- export interface ActivityRendererLoadingReferences {
6
- stateHash: string;
7
- loadReferences: Array<ActivityRendererLoadReference>;
8
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,16 +0,0 @@
1
- import { Id } from "../../Id";
2
- import { ActorId } from "../actors";
3
- export type SubscriptionId = Id<string, "SubscriptionId">;
4
- export declare function SubscriptionId(id: string): SubscriptionId;
5
- export interface SubscriptionInformation extends ActorSubscription {
6
- title: Record<string, string>;
7
- description: Record<string, string>;
8
- clientId: string;
9
- }
10
- export interface ActorSubscription {
11
- id: SubscriptionId;
12
- subscriptionOwner: ActorId;
13
- }
14
- export interface Subscription extends ActorSubscription {
15
- subscriber: ActorId;
16
- }
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SubscriptionId = SubscriptionId;
4
- function SubscriptionId(id) { return id; }
@@ -1,48 +0,0 @@
1
- import { DynamicState } from "../../DynamicState";
2
- import { Actor, ActorId } from "../actors";
3
- import { Activity, ActivityId } from "./Activity";
4
- import { ChannelId } from "./ActivityChannel";
5
- export declare enum ActorActivityStatus {
6
- new = 0,
7
- read = 1,
8
- completed = 2
9
- }
10
- export declare enum ActorActivityCategory {
11
- none = 0,
12
- important = 1,
13
- todo = 2,
14
- snoozed = 3,
15
- bookmarked = 4
16
- }
17
- export interface ActivitySettings {
18
- category: ActorActivityCategory;
19
- social: ActivitySocialSettings;
20
- }
21
- export interface ActivitySocialSettings {
22
- comments: boolean;
23
- reactions: boolean;
24
- }
25
- export interface ActorActivityBase {
26
- activityId: ActivityId;
27
- status: ActorActivityStatus;
28
- category: ActorActivityCategory;
29
- }
30
- export interface ActorActivity<TRenderState extends DynamicState, TState extends DynamicState> extends ActorActivityBase {
31
- activity: Activity<TRenderState>;
32
- state?: TState;
33
- }
34
- export interface ActorActivityWithJson extends ActorActivityBase {
35
- stateJson: string;
36
- }
37
- export interface NewActivitiesByCreatorBase {
38
- count: number;
39
- creator: ActorId;
40
- }
41
- export interface NewActivitiesByActor extends NewActivitiesByCreatorBase {
42
- actor: Actor;
43
- channelId: ChannelId;
44
- }
45
- export interface ActivityCategoryCount {
46
- category: ActorActivityCategory;
47
- count: number;
48
- }
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ActorActivityCategory = exports.ActorActivityStatus = void 0;
4
- var ActorActivityStatus;
5
- (function (ActorActivityStatus) {
6
- ActorActivityStatus[ActorActivityStatus["new"] = 0] = "new";
7
- ActorActivityStatus[ActorActivityStatus["read"] = 1] = "read";
8
- ActorActivityStatus[ActorActivityStatus["completed"] = 2] = "completed";
9
- })(ActorActivityStatus || (exports.ActorActivityStatus = ActorActivityStatus = {}));
10
- var ActorActivityCategory;
11
- (function (ActorActivityCategory) {
12
- 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";
17
- })(ActorActivityCategory || (exports.ActorActivityCategory = ActorActivityCategory = {}));
@@ -1,9 +0,0 @@
1
- export * from "./Activity";
2
- export * from "./ActorActivity";
3
- export * from "./ActivityRenderer";
4
- export * from "./ActivityChannel";
5
- export * from "./ActivityFeed";
6
- export * from "./ActivityDefinition";
7
- export * from "./ActivityRendererLoadingReferences";
8
- export * from "./ActivitySubscription";
9
- export * from "./ActivityHubServiceId";
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./Activity"), exports);
5
- tslib_1.__exportStar(require("./ActorActivity"), exports);
6
- tslib_1.__exportStar(require("./ActivityRenderer"), exports);
7
- tslib_1.__exportStar(require("./ActivityChannel"), exports);
8
- tslib_1.__exportStar(require("./ActivityFeed"), exports);
9
- tslib_1.__exportStar(require("./ActivityDefinition"), exports);
10
- tslib_1.__exportStar(require("./ActivityRendererLoadingReferences"), exports);
11
- tslib_1.__exportStar(require("./ActivitySubscription"), exports);
12
- tslib_1.__exportStar(require("./ActivityHubServiceId"), exports);
@@ -1,21 +0,0 @@
1
- import { Id } from "../../Id";
2
- import { ExternalActorId } from "./ExternalActorId";
3
- export type ActorId = Id<number, "ActorId">;
4
- export declare function ActorId(id: number): ActorId;
5
- export interface ActorWithBag<TBag> extends Actor {
6
- bag: TBag;
7
- }
8
- export interface Actor extends ActorBase {
9
- imageUrl: string;
10
- name: Record<string, string>;
11
- description: Record<string, string>;
12
- type: ActorTypes;
13
- }
14
- export interface ActorBase {
15
- id: ActorId;
16
- externalId: ExternalActorId;
17
- }
18
- export declare enum ActorTypes {
19
- user = 0,
20
- app = 1
21
- }
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ActorTypes = void 0;
4
- exports.ActorId = ActorId;
5
- function ActorId(id) { return id; }
6
- var ActorTypes;
7
- (function (ActorTypes) {
8
- ActorTypes[ActorTypes["user"] = 0] = "user";
9
- ActorTypes[ActorTypes["app"] = 1] = "app";
10
- })(ActorTypes || (exports.ActorTypes = ActorTypes = {}));
@@ -1,2 +0,0 @@
1
- import { Id } from "../../Id";
2
- export type ExternalActorId = Id<string, "ExternalActorId">;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- export * from "./ExternalActorId";
2
- export * from "./Actor";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./ExternalActorId"), exports);
5
- tslib_1.__exportStar(require("./Actor"), exports);
@@ -1,3 +0,0 @@
1
- import { Id } from "../../Id";
2
- export type FileOwnerId = Id<string, "FileOwnerId">;
3
- export declare function FileOwnerId(id: string): FileOwnerId;
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FileOwnerId = FileOwnerId;
4
- function FileOwnerId(id) { return id; }
@@ -1,4 +0,0 @@
1
- import { guid } from "../../Guid";
2
- import { Id } from "../../Id";
3
- export type TemporaryFileId = Id<guid, "TemporaryFileId">;
4
- export declare function TemporaryFileId(id: guid): TemporaryFileId;
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TemporaryFileId = TemporaryFileId;
4
- function TemporaryFileId(id) { return id; }
@@ -1,2 +0,0 @@
1
- export * from "./FileOwnerId";
2
- export * from "./TemporaryFileId";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./FileOwnerId"), exports);
5
- tslib_1.__exportStar(require("./TemporaryFileId"), exports);
@@ -1,7 +0,0 @@
1
- export * from "./activities";
2
- export * from "./social";
3
- export * from "./actors/ExternalActorId";
4
- export * from "./fileupload";
5
- export * from "./TempSocialReactions";
6
- export * from "./targeting";
7
- export * from "./actors";
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./activities"), exports);
5
- tslib_1.__exportStar(require("./social"), exports);
6
- tslib_1.__exportStar(require("./actors/ExternalActorId"), exports);
7
- tslib_1.__exportStar(require("./fileupload"), exports);
8
- tslib_1.__exportStar(require("./TempSocialReactions"), exports);
9
- tslib_1.__exportStar(require("./targeting"), exports);
10
- tslib_1.__exportStar(require("./actors"), exports);
@@ -1,10 +0,0 @@
1
- import { ExternalActorId } from "../actors/ExternalActorId";
2
- import { HubReaction } from "./HubReaction";
3
- export interface HubComment {
4
- createdBy: ExternalActorId;
5
- id: number;
6
- inReplyToId: number | null;
7
- rendererJson: string;
8
- mentions: ExternalActorId[];
9
- reactions: HubReaction[];
10
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import { ExternalActorId } from "../actors/ExternalActorId";
2
- export interface HubReaction {
3
- createdBy: ExternalActorId;
4
- uniqueTypeName: string;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- export * from "./HubComment";
2
- export * from "./HubReaction";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./HubComment"), exports);
5
- tslib_1.__exportStar(require("./HubReaction"), exports);
@@ -1,10 +0,0 @@
1
- import { guid } from "../../Guid";
2
- import { ExternalActorId } from "../actors/ExternalActorId";
3
- import { SourceRelatedHubProperty } from "../activities";
4
- export declare class HubExternalIdentityProperty implements SourceRelatedHubProperty {
5
- private externalIdentityId;
6
- constructor(externalIdentityId: ExternalActorId);
7
- get propertySourceId(): guid;
8
- get name(): string;
9
- get values(): string[];
10
- }
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HubExternalIdentityProperty = void 0;
4
- const HubSource_1 = require("./HubSource");
5
- class HubExternalIdentityProperty {
6
- constructor(externalIdentityId) {
7
- this.externalIdentityId = externalIdentityId;
8
- }
9
- get propertySourceId() {
10
- return HubSource_1.HubSource.Id;
11
- }
12
- get name() {
13
- return "identity";
14
- }
15
- get values() {
16
- return [this.externalIdentityId.toString()];
17
- }
18
- }
19
- exports.HubExternalIdentityProperty = HubExternalIdentityProperty;
@@ -1,4 +0,0 @@
1
- import { guid } from "../../Guid";
2
- export declare class HubSource {
3
- static Id: guid;
4
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HubSource = void 0;
4
- const Guid_1 = require("../../Guid");
5
- class HubSource {
6
- static { this.Id = (0, Guid_1.guid)("eb4fde5f-4f3e-4c70-9893-3d9e048fda0c"); }
7
- }
8
- exports.HubSource = HubSource;
@@ -1 +0,0 @@
1
- export * from "./ExternalIdentityProperty";
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./ExternalIdentityProperty"), exports);