@uptime.app/contracts 1.0.8 → 1.0.9-rc.1

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 (86) hide show
  1. package/dist/cjs/index.d.ts +9 -4
  2. package/dist/cjs/index.d.ts.map +1 -1
  3. package/dist/cjs/index.js +9 -4
  4. package/dist/cjs/index.js.map +1 -1
  5. package/dist/cjs/profile/profile-events.d.ts +35 -0
  6. package/dist/cjs/profile/profile-events.d.ts.map +1 -0
  7. package/dist/cjs/profile/profile-events.js +3 -0
  8. package/dist/cjs/profile/profile-events.js.map +1 -0
  9. package/dist/cjs/profile/profile.d.ts +25 -0
  10. package/dist/cjs/profile/profile.d.ts.map +1 -0
  11. package/dist/cjs/profile/profile.js +3 -0
  12. package/dist/cjs/profile/profile.js.map +1 -0
  13. package/dist/cjs/profile/translated-profile.d.ts +13 -0
  14. package/dist/cjs/profile/translated-profile.d.ts.map +1 -0
  15. package/dist/cjs/profile/translated-profile.js +3 -0
  16. package/dist/cjs/profile/translated-profile.js.map +1 -0
  17. package/dist/cjs/theme/theme-events.d.ts +18 -0
  18. package/dist/cjs/theme/theme-events.d.ts.map +1 -0
  19. package/dist/cjs/theme/theme-events.js +3 -0
  20. package/dist/cjs/theme/theme-events.js.map +1 -0
  21. package/dist/cjs/theme/theme.d.ts +64 -0
  22. package/dist/cjs/theme/theme.d.ts.map +1 -0
  23. package/dist/cjs/theme/theme.js +3 -0
  24. package/dist/cjs/theme/theme.js.map +1 -0
  25. package/dist/esm/index.d.ts +9 -4
  26. package/dist/esm/index.d.ts.map +1 -1
  27. package/dist/esm/index.js +9 -4
  28. package/dist/esm/index.js.map +1 -1
  29. package/dist/esm/profile/profile-events.d.ts +35 -0
  30. package/dist/esm/profile/profile-events.d.ts.map +1 -0
  31. package/dist/esm/profile/profile-events.js +2 -0
  32. package/dist/esm/profile/profile-events.js.map +1 -0
  33. package/dist/esm/profile/profile.d.ts +25 -0
  34. package/dist/esm/profile/profile.d.ts.map +1 -0
  35. package/dist/esm/profile/profile.js +2 -0
  36. package/dist/esm/profile/profile.js.map +1 -0
  37. package/dist/esm/profile/translated-profile.d.ts +13 -0
  38. package/dist/esm/profile/translated-profile.d.ts.map +1 -0
  39. package/dist/esm/profile/translated-profile.js +2 -0
  40. package/dist/esm/profile/translated-profile.js.map +1 -0
  41. package/dist/esm/theme/theme-events.d.ts +18 -0
  42. package/dist/esm/theme/theme-events.d.ts.map +1 -0
  43. package/dist/esm/theme/theme-events.js +2 -0
  44. package/dist/esm/theme/theme-events.js.map +1 -0
  45. package/dist/esm/theme/theme.d.ts +64 -0
  46. package/dist/esm/theme/theme.d.ts.map +1 -0
  47. package/dist/esm/theme/theme.js +2 -0
  48. package/dist/esm/theme/theme.js.map +1 -0
  49. package/package.json +2 -2
  50. package/src/brand/brand-events.ts +21 -21
  51. package/src/brand/brand.ts +8 -8
  52. package/src/draft-hack/draft-hack-events.ts +21 -21
  53. package/src/draft-hack/draft-hack.ts +208 -208
  54. package/src/hack/extracted-subject.ts +4 -4
  55. package/src/hack/hack-events.ts +21 -21
  56. package/src/hack/hack-with-voice-events.ts +20 -20
  57. package/src/hack/hack-with-voice.ts +33 -33
  58. package/src/hack/hack.ts +114 -114
  59. package/src/hack-metadata/hack-metadata-events.ts +21 -21
  60. package/src/hack-metadata/hack-metadata.ts +17 -17
  61. package/src/index.ts +45 -38
  62. package/src/knowledge-source/knowledge-source-events.ts +21 -21
  63. package/src/knowledge-source/knowledge-source.ts +43 -43
  64. package/src/localisation/live-locales.ts +32 -32
  65. package/src/localisation/locale-language.ts +4 -4
  66. package/src/localisation/supported-languages.ts +11 -11
  67. package/src/localisation/supported-locales.ts +42 -42
  68. package/src/pending-hack/pending-hack-events.ts +20 -20
  69. package/src/pending-hack/pending-hack-with-voice-events.ts +20 -20
  70. package/src/pending-hack/pending-hack-with-voice.ts +25 -25
  71. package/src/pending-hack/pending-hack.ts +75 -75
  72. package/src/profile/profile-events.ts +41 -0
  73. package/src/profile/profile.ts +27 -0
  74. package/src/profile/translated-profile.ts +13 -0
  75. package/src/segment/segment-commands.ts +70 -70
  76. package/src/segment/segment-with-voice.ts +8 -8
  77. package/src/segment/segment.ts +82 -82
  78. package/src/skin/skin-events.ts +21 -21
  79. package/src/skin/skin.ts +6 -6
  80. package/src/text-to-speech/create-speech-commands.ts +20 -20
  81. package/src/text-to-speech/speech-created-events.ts +11 -11
  82. package/src/text-to-speech/text-segment.ts +29 -29
  83. package/src/theme/theme-events.ts +21 -0
  84. package/src/theme/theme.ts +68 -0
  85. package/tsconfig.cjs.json +7 -7
  86. package/tsconfig.npm.json +21 -21
@@ -1,3 +1,5 @@
1
+ export * from './brand/brand';
2
+ export * from './brand/brand-events';
1
3
  export * from './draft-hack/draft-hack';
2
4
  export * from './draft-hack/draft-hack-events';
3
5
  export * from './hack/extracted-subject';
@@ -17,14 +19,17 @@ export * from './pending-hack/pending-hack';
17
19
  export * from './pending-hack/pending-hack-events';
18
20
  export * from './pending-hack/pending-hack-with-voice';
19
21
  export * from './pending-hack/pending-hack-with-voice-events';
22
+ export * from './profile/profile';
23
+ export * from './profile/translated-profile';
24
+ export * from './profile/profile-events';
20
25
  export * from './segment/segment-with-voice';
21
26
  export * from './segment/segment-commands';
22
27
  export * from './segment/segment';
28
+ export * from './skin/skin';
29
+ export * from './skin/skin-events';
23
30
  export * from './text-to-speech/create-speech-commands';
24
31
  export * from './text-to-speech/speech-created-events';
25
32
  export * from './text-to-speech/text-segment';
26
- export * from './skin/skin';
27
- export * from './skin/skin-events';
28
- export * from './brand/brand';
29
- export * from './brand/brand-events';
33
+ export * from './theme/theme';
34
+ export * from './theme/theme-events';
30
35
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAE/C,cAAc,0BAA0B,CAAC;AACzC,c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A6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,+CAA+C,CAAC;AAE9D,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AAEzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAElC,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AAEnC,cAAc,yCAAyC,CAAC;AACxD,cAAc,wCAAwC,CAAC;AACvD,cAAc,+BAA+B,CAAC;AAE9C,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC"}
package/dist/cjs/index.js CHANGED
@@ -14,6 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./brand/brand"), exports);
18
+ __exportStar(require("./brand/brand-events"), exports);
17
19
  __exportStar(require("./draft-hack/draft-hack"), exports);
18
20
  __exportStar(require("./draft-hack/draft-hack-events"), exports);
19
21
  __exportStar(require("./hack/extracted-subject"), exports);
@@ -33,14 +35,17 @@ __exportStar(require("./pending-hack/pending-hack"), exports);
33
35
  __exportStar(require("./pending-hack/pending-hack-events"), exports);
34
36
  __exportStar(require("./pending-hack/pending-hack-with-voice"), exports);
35
37
  __exportStar(require("./pending-hack/pending-hack-with-voice-events"), exports);
38
+ __exportStar(require("./profile/profile"), exports);
39
+ __exportStar(require("./profile/translated-profile"), exports);
40
+ __exportStar(require("./profile/profile-events"), exports);
36
41
  __exportStar(require("./segment/segment-with-voice"), exports);
37
42
  __exportStar(require("./segment/segment-commands"), exports);
38
43
  __exportStar(require("./segment/segment"), exports);
44
+ __exportStar(require("./skin/skin"), exports);
45
+ __exportStar(require("./skin/skin-events"), exports);
39
46
  __exportStar(require("./text-to-speech/create-speech-commands"), exports);
40
47
  __exportStar(require("./text-to-speech/speech-created-events"), exports);
41
48
  __exportStar(require("./text-to-speech/text-segment"), exports);
42
- __exportStar(require("./skin/skin"), exports);
43
- __exportStar(require("./skin/skin-events"), exports);
44
- __exportStar(require("./brand/brand"), exports);
45
- __exportStar(require("./brand/brand-events"), exports);
49
+ __exportStar(require("./theme/theme"), exports);
50
+ __exportStar(require("./theme/theme-events"), exports);
46
51
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,iEAA+C;AAE/C,2DAAyC;AACzC,8CAA4B;AAC5B,yDAAuC;AACvC,qDAAmC;AACnC,gEAA8C;AAE9C,gEAA8C;AAC9C,uEAAqD;AAErD,sEAAoD;AACpD,6EAA2D;AAE3D,8DAA4C;AAC5C,iEAA+C;AAC/C,qEAAmD;AACnD,mEAAiD;AAEjD,8DAA4C;AAC5C,qEAAmD;AACnD,yEAAuD;AACvD,gFAA8D;AAE9D,+DAA6C;AAC7C,6DAA2C;AAC3C,oDAAkC;AAElC,0EAAwD;AACxD,yEAAuD;AACvD,gEAA8C;AAE9C,8CAA4B;AAC5B,qDAAmC;AAEnC,gDAA8B;AAC9B,uDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,uDAAqC;AAErC,0DAAwC;AACxC,iEAA+C;AAE/C,2DAAyC;AACzC,8CAA4B;AAC5B,yDAAuC;AACvC,qDAAmC;AACnC,gEAA8C;AAE9C,gEAA8C;AAC9C,uEAAqD;AAErD,sEAAoD;AACpD,6EAA2D;AAE3D,8DAA4C;AAC5C,iEAA+C;AAC/C,qEAAmD;AACnD,mEAAiD;AAEjD,8DAA4C;AAC5C,qEAAmD;AACnD,yEAAuD;AACvD,gFAA8D;AAE9D,oDAAkC;AAClC,+DAA6C;AAC7C,2DAAyC;AAEzC,+DAA6C;AAC7C,6DAA2C;AAC3C,oDAAkC;AAElC,8CAA4B;AAC5B,qDAAmC;AAEnC,0EAAwD;AACxD,yEAAuD;AACvD,gEAA8C;AAE9C,gDAA8B;AAC9B,uDAAqC"}
@@ -0,0 +1,35 @@
1
+ import { Profile } from './profile';
2
+ import { TranslatedProfile } from './translated-profile';
3
+ export interface ProfileCreatedEvent {
4
+ id: string;
5
+ type: 'ProfileCreated';
6
+ payload: Profile;
7
+ }
8
+ export interface ProfileUpdatedEvent {
9
+ id: string;
10
+ type: 'ProfileUpdated';
11
+ payload: Profile;
12
+ }
13
+ export interface ProfileDeletedEvent {
14
+ id: string;
15
+ type: 'ProfileDeleted';
16
+ payload: Profile;
17
+ }
18
+ export interface TranslatedProfileCreatedEvent {
19
+ id: string;
20
+ type: 'TranslatedProfileCreated';
21
+ payload: TranslatedProfile;
22
+ }
23
+ export interface TranslatedProfileUpdatedEvent {
24
+ id: string;
25
+ type: 'TranslatedProfileUpdated';
26
+ payload: TranslatedProfile;
27
+ }
28
+ export interface TranslatedProfileDeletedEvent {
29
+ id: string;
30
+ type: 'TranslatedProfileDeleted';
31
+ payload: TranslatedProfile;
32
+ }
33
+ export type ProfileChangedEvent = ProfileCreatedEvent | ProfileUpdatedEvent | ProfileDeletedEvent;
34
+ export type TranslatedProfileChangedEvent = TranslatedProfileCreatedEvent | TranslatedProfileUpdatedEvent | TranslatedProfileDeletedEvent;
35
+ //# sourceMappingURL=profile-events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile-events.d.ts","sourceRoot":"","sources":["../../../src/profile/profile-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,MAAM,WAAW,mBAAmB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,mBAAmB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,mBAAmB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,6BAA6B;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,0BAA0B,CAAC;IACjC,OAAO,EAAE,iBAAiB,CAAC;CAC9B;AAED,MAAM,WAAW,6BAA6B;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,0BAA0B,CAAC;IACjC,OAAO,EAAE,iBAAiB,CAAC;CAC9B;AAED,MAAM,WAAW,6BAA6B;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,0BAA0B,CAAC;IACjC,OAAO,EAAE,iBAAiB,CAAC;CAC9B;AAED,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,GAAG,mBAAmB,GAAG,mBAAmB,CAAC;AAClG,MAAM,MAAM,6BAA6B,GAAG,6BAA6B,GAAG,6BAA6B,GAAG,6BAA6B,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=profile-events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile-events.js","sourceRoot":"","sources":["../../../src/profile/profile-events.ts"],"names":[],"mappings":""}
@@ -0,0 +1,25 @@
1
+ import { SupportedLocale } from '../localisation/supported-locales';
2
+ export interface StoredProfile {
3
+ id: string;
4
+ v: number;
5
+ createdAt: string;
6
+ updatedAt: string;
7
+ avatarUrl: string;
8
+ name: string;
9
+ owner: string;
10
+ handle: string;
11
+ _sanitisedHandle?: string;
12
+ headerImageUrl?: string;
13
+ tags?: string[];
14
+ links?: ProfileLink[];
15
+ tagline: string;
16
+ description?: string;
17
+ /** The locale (language and region) of the draft hack e.g. fr-FR. Mandatory property since 12/05/2023. */
18
+ locale: SupportedLocale;
19
+ }
20
+ export type Profile = Omit<StoredProfile, '_sanitisedHandle'>;
21
+ export interface ProfileLink {
22
+ type: 'Other' | 'Twitter' | 'Facebook' | 'Youtube' | 'Medium' | 'Instagram' | 'Patreon' | 'TikTok' | 'LinkedIn' | 'LinkTree';
23
+ url: string;
24
+ }
25
+ //# sourceMappingURL=profile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../../src/profile/profile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE,MAAM,WAAW,aAAa;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0GAA0G;IAC1G,MAAM,EAAE,eAAe,CAAC;CAC3B;AAED,MAAM,MAAM,OAAO,GAAG,IAAI,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAAC;AAE9D,MAAM,WAAW,WAAW;IACxB,IAAI,EAAE,OAAO,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,CAAC;IAC7H,GAAG,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=profile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile.js","sourceRoot":"","sources":["../../../src/profile/profile.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ import { SupportedLocale } from '../localisation/supported-locales';
2
+ export interface TranslatedProfile {
3
+ id: string;
4
+ v: number;
5
+ createdAt: string;
6
+ updatedAt: string;
7
+ profileId: string;
8
+ locale: SupportedLocale;
9
+ tagline: string;
10
+ description?: string;
11
+ tags?: string[];
12
+ }
13
+ //# sourceMappingURL=translated-profile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translated-profile.d.ts","sourceRoot":"","sources":["../../../src/profile/translated-profile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,eAAe,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=translated-profile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translated-profile.js","sourceRoot":"","sources":["../../../src/profile/translated-profile.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ import { Theme } from './theme';
2
+ export interface ThemeCreatedEvent {
3
+ id: string;
4
+ type: 'ThemeCreated';
5
+ payload: Theme;
6
+ }
7
+ export interface ThemeUpdatedEvent {
8
+ id: string;
9
+ type: 'ThemeUpdated';
10
+ payload: Theme;
11
+ }
12
+ export interface ThemeDeletedEvent {
13
+ id: string;
14
+ type: 'ThemeDeleted';
15
+ payload: Theme;
16
+ }
17
+ export type ThemeChangedEvent = ThemeCreatedEvent | ThemeUpdatedEvent | ThemeDeletedEvent;
18
+ //# sourceMappingURL=theme-events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme-events.d.ts","sourceRoot":"","sources":["../../../src/theme/theme-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,cAAc,CAAC;IACrB,OAAO,EAAE,KAAK,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,cAAc,CAAC;IACrB,OAAO,EAAE,KAAK,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,cAAc,CAAC;IACrB,OAAO,EAAE,KAAK,CAAC;CAClB;AAED,MAAM,MAAM,iBAAiB,GAAG,iBAAiB,GAAG,iBAAiB,GAAG,iBAAiB,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=theme-events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme-events.js","sourceRoot":"","sources":["../../../src/theme/theme-events.ts"],"names":[],"mappings":""}
@@ -0,0 +1,64 @@
1
+ export interface ThemeTemplate {
2
+ /** the url of the background video */
3
+ backgroundVideoUrl?: string;
4
+ /** the url of the background image */
5
+ backgroundImageUrl?: string;
6
+ /** the font color that will be used when rendering text in the foreground */
7
+ fontColor: string;
8
+ }
9
+ export interface SegmentThemeTemplates {
10
+ overview: {
11
+ a: ThemeTemplate;
12
+ b: ThemeTemplate;
13
+ };
14
+ insightOne: {
15
+ a: ThemeTemplate;
16
+ b: ThemeTemplate;
17
+ };
18
+ insightTwo: {
19
+ a: ThemeTemplate;
20
+ b: ThemeTemplate;
21
+ };
22
+ insightThree: {
23
+ a: ThemeTemplate;
24
+ b: ThemeTemplate;
25
+ };
26
+ dark: {
27
+ overview: {
28
+ a: ThemeTemplate;
29
+ b: ThemeTemplate;
30
+ };
31
+ insightOne: {
32
+ a: ThemeTemplate;
33
+ b: ThemeTemplate;
34
+ };
35
+ insightTwo: {
36
+ a: ThemeTemplate;
37
+ b: ThemeTemplate;
38
+ };
39
+ insightThree: {
40
+ a: ThemeTemplate;
41
+ b: ThemeTemplate;
42
+ };
43
+ };
44
+ }
45
+ export interface Theme {
46
+ id: string;
47
+ name: string;
48
+ fontFamily: string;
49
+ templates: SegmentThemeTemplates;
50
+ mood: 'neutral' | 'sombre' | 'vibrant';
51
+ isCustom: boolean;
52
+ player?: {
53
+ light: {
54
+ backgroundColor: string;
55
+ };
56
+ dark: {
57
+ backgroundColor: string;
58
+ };
59
+ };
60
+ updatedAt: string;
61
+ createdAt: string;
62
+ v: number;
63
+ }
64
+ //# sourceMappingURL=theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/theme/theme.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC1B,sCAAsC;IACtC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,sCAAsC;IACtC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,6EAA6E;IAC7E,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,qBAAqB;IAClC,QAAQ,EAAE;QACN,CAAC,EAAE,aAAa,CAAC;QACjB,CAAC,EAAE,aAAa,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=theme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../src/theme/theme.ts"],"names":[],"mappings":""}
@@ -1,3 +1,5 @@
1
+ export * from './brand/brand';
2
+ export * from './brand/brand-events';
1
3
  export * from './draft-hack/draft-hack';
2
4
  export * from './draft-hack/draft-hack-events';
3
5
  export * from './hack/extracted-subject';
@@ -17,14 +19,17 @@ export * from './pending-hack/pending-hack';
17
19
  export * from './pending-hack/pending-hack-events';
18
20
  export * from './pending-hack/pending-hack-with-voice';
19
21
  export * from './pending-hack/pending-hack-with-voice-events';
22
+ export * from './profile/profile';
23
+ export * from './profile/translated-profile';
24
+ export * from './profile/profile-events';
20
25
  export * from './segment/segment-with-voice';
21
26
  export * from './segment/segment-commands';
22
27
  export * from './segment/segment';
28
+ export * from './skin/skin';
29
+ export * from './skin/skin-events';
23
30
  export * from './text-to-speech/create-speech-commands';
24
31
  export * from './text-to-speech/speech-created-events';
25
32
  export * from './text-to-speech/text-segment';
26
- export * from './skin/skin';
27
- export * from './skin/skin-events';
28
- export * from './brand/brand';
29
- export * from './brand/brand-events';
33
+ export * from './theme/theme';
34
+ export * from './theme/theme-events';
30
35
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAE/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAE9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sCAAsC,CAAC;AAErD,cAAc,qCAAqC,CAAC;AACpD,cAAc,4CAA4C,CAAC;AAE3D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,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,CAAC;AAEnC,cAAc,yCAAyC,CAAC;AACxD,cAAc,wCAAwC,CAAC;AACvD,cAAc,+BAA+B,CAAC;AAE9C,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC"}
package/dist/esm/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ export * from './brand/brand';
2
+ export * from './brand/brand-events';
1
3
  export * from './draft-hack/draft-hack';
2
4
  export * from './draft-hack/draft-hack-events';
3
5
  export * from './hack/extracted-subject';
@@ -17,14 +19,17 @@ export * from './pending-hack/pending-hack';
17
19
  export * from './pending-hack/pending-hack-events';
18
20
  export * from './pending-hack/pending-hack-with-voice';
19
21
  export * from './pending-hack/pending-hack-with-voice-events';
22
+ export * from './profile/profile';
23
+ export * from './profile/translated-profile';
24
+ export * from './profile/profile-events';
20
25
  export * from './segment/segment-with-voice';
21
26
  export * from './segment/segment-commands';
22
27
  export * from './segment/segment';
28
+ export * from './skin/skin';
29
+ export * from './skin/skin-events';
23
30
  export * from './text-to-speech/create-speech-commands';
24
31
  export * from './text-to-speech/speech-created-events';
25
32
  export * from './text-to-speech/text-segment';
26
- export * from './skin/skin';
27
- export * from './skin/skin-events';
28
- export * from './brand/brand';
29
- export * from './brand/brand-events';
33
+ export * from './theme/theme';
34
+ export * from './theme/theme-events';
30
35
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAE/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAE9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sCAAsC,CAAC;AAErD,cAAc,qCAAqC,CAAC;AACpD,cAAc,4CAA4C,CAAC;AAE3D,cAAc,6BAA6B,CAAC;AAC5C,cA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mB,CAAC;AAElC,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AAEnC,cAAc,yCAAyC,CAAC;AACxD,cAAc,wCAAwC,CAAC;AACvD,cAAc,+BAA+B,CAAC;AAE9C,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { Profile } from './profile';
2
+ import { TranslatedProfile } from './translated-profile';
3
+ export interface ProfileCreatedEvent {
4
+ id: string;
5
+ type: 'ProfileCreated';
6
+ payload: Profile;
7
+ }
8
+ export interface ProfileUpdatedEvent {
9
+ id: string;
10
+ type: 'ProfileUpdated';
11
+ payload: Profile;
12
+ }
13
+ export interface ProfileDeletedEvent {
14
+ id: string;
15
+ type: 'ProfileDeleted';
16
+ payload: Profile;
17
+ }
18
+ export interface TranslatedProfileCreatedEvent {
19
+ id: string;
20
+ type: 'TranslatedProfileCreated';
21
+ payload: TranslatedProfile;
22
+ }
23
+ export interface TranslatedProfileUpdatedEvent {
24
+ id: string;
25
+ type: 'TranslatedProfileUpdated';
26
+ payload: TranslatedProfile;
27
+ }
28
+ export interface TranslatedProfileDeletedEvent {
29
+ id: string;
30
+ type: 'TranslatedProfileDeleted';
31
+ payload: TranslatedProfile;
32
+ }
33
+ export type ProfileChangedEvent = ProfileCreatedEvent | ProfileUpdatedEvent | ProfileDeletedEvent;
34
+ export type TranslatedProfileChangedEvent = TranslatedProfileCreatedEvent | TranslatedProfileUpdatedEvent | TranslatedProfileDeletedEvent;
35
+ //# sourceMappingURL=profile-events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile-events.d.ts","sourceRoot":"","sources":["../../../src/profile/profile-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,MAAM,WAAW,mBAAmB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,mBAAmB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,mBAAmB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,6BAA6B;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,0BAA0B,CAAC;IACjC,OAAO,EAAE,iBAAiB,CAAC;CAC9B;AAED,MAAM,WAAW,6BAA6B;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,0BAA0B,CAAC;IACjC,OAAO,EAAE,iBAAiB,CAAC;CAC9B;AAED,MAAM,WAAW,6BAA6B;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,0BAA0B,CAAC;IACjC,OAAO,EAAE,iBAAiB,CAAC;CAC9B;AAED,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,GAAG,mBAAmB,GAAG,mBAAmB,CAAC;AAClG,MAAM,MAAM,6BAA6B,GAAG,6BAA6B,GAAG,6BAA6B,GAAG,6BAA6B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=profile-events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile-events.js","sourceRoot":"","sources":["../../../src/profile/profile-events.ts"],"names":[],"mappings":""}
@@ -0,0 +1,25 @@
1
+ import { SupportedLocale } from '../localisation/supported-locales';
2
+ export interface StoredProfile {
3
+ id: string;
4
+ v: number;
5
+ createdAt: string;
6
+ updatedAt: string;
7
+ avatarUrl: string;
8
+ name: string;
9
+ owner: string;
10
+ handle: string;
11
+ _sanitisedHandle?: string;
12
+ headerImageUrl?: string;
13
+ tags?: string[];
14
+ links?: ProfileLink[];
15
+ tagline: string;
16
+ description?: string;
17
+ /** The locale (language and region) of the draft hack e.g. fr-FR. Mandatory property since 12/05/2023. */
18
+ locale: SupportedLocale;
19
+ }
20
+ export type Profile = Omit<StoredProfile, '_sanitisedHandle'>;
21
+ export interface ProfileLink {
22
+ type: 'Other' | 'Twitter' | 'Facebook' | 'Youtube' | 'Medium' | 'Instagram' | 'Patreon' | 'TikTok' | 'LinkedIn' | 'LinkTree';
23
+ url: string;
24
+ }
25
+ //# sourceMappingURL=profile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../../src/profile/profile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE,MAAM,WAAW,aAAa;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0GAA0G;IAC1G,MAAM,EAAE,eAAe,CAAC;CAC3B;AAED,MAAM,MAAM,OAAO,GAAG,IAAI,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAAC;AAE9D,MAAM,WAAW,WAAW;IACxB,IAAI,EAAE,OAAO,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,CAAC;IAC7H,GAAG,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=profile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile.js","sourceRoot":"","sources":["../../../src/profile/profile.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ import { SupportedLocale } from '../localisation/supported-locales';
2
+ export interface TranslatedProfile {
3
+ id: string;
4
+ v: number;
5
+ createdAt: string;
6
+ updatedAt: string;
7
+ profileId: string;
8
+ locale: SupportedLocale;
9
+ tagline: string;
10
+ description?: string;
11
+ tags?: string[];
12
+ }
13
+ //# sourceMappingURL=translated-profile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translated-profile.d.ts","sourceRoot":"","sources":["../../../src/profile/translated-profile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,eAAe,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=translated-profile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translated-profile.js","sourceRoot":"","sources":["../../../src/profile/translated-profile.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ import { Theme } from './theme';
2
+ export interface ThemeCreatedEvent {
3
+ id: string;
4
+ type: 'ThemeCreated';
5
+ payload: Theme;
6
+ }
7
+ export interface ThemeUpdatedEvent {
8
+ id: string;
9
+ type: 'ThemeUpdated';
10
+ payload: Theme;
11
+ }
12
+ export interface ThemeDeletedEvent {
13
+ id: string;
14
+ type: 'ThemeDeleted';
15
+ payload: Theme;
16
+ }
17
+ export type ThemeChangedEvent = ThemeCreatedEvent | ThemeUpdatedEvent | ThemeDeletedEvent;
18
+ //# sourceMappingURL=theme-events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme-events.d.ts","sourceRoot":"","sources":["../../../src/theme/theme-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,cAAc,CAAC;IACrB,OAAO,EAAE,KAAK,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,cAAc,CAAC;IACrB,OAAO,EAAE,KAAK,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,cAAc,CAAC;IACrB,OAAO,EAAE,KAAK,CAAC;CAClB;AAED,MAAM,MAAM,iBAAiB,GAAG,iBAAiB,GAAG,iBAAiB,GAAG,iBAAiB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=theme-events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme-events.js","sourceRoot":"","sources":["../../../src/theme/theme-events.ts"],"names":[],"mappings":""}
@@ -0,0 +1,64 @@
1
+ export interface ThemeTemplate {
2
+ /** the url of the background video */
3
+ backgroundVideoUrl?: string;
4
+ /** the url of the background image */
5
+ backgroundImageUrl?: string;
6
+ /** the font color that will be used when rendering text in the foreground */
7
+ fontColor: string;
8
+ }
9
+ export interface SegmentThemeTemplates {
10
+ overview: {
11
+ a: ThemeTemplate;
12
+ b: ThemeTemplate;
13
+ };
14
+ insightOne: {
15
+ a: ThemeTemplate;
16
+ b: ThemeTemplate;
17
+ };
18
+ insightTwo: {
19
+ a: ThemeTemplate;
20
+ b: ThemeTemplate;
21
+ };
22
+ insightThree: {
23
+ a: ThemeTemplate;
24
+ b: ThemeTemplate;
25
+ };
26
+ dark: {
27
+ overview: {
28
+ a: ThemeTemplate;
29
+ b: ThemeTemplate;
30
+ };
31
+ insightOne: {
32
+ a: ThemeTemplate;
33
+ b: ThemeTemplate;
34
+ };
35
+ insightTwo: {
36
+ a: ThemeTemplate;
37
+ b: ThemeTemplate;
38
+ };
39
+ insightThree: {
40
+ a: ThemeTemplate;
41
+ b: ThemeTemplate;
42
+ };
43
+ };
44
+ }
45
+ export interface Theme {
46
+ id: string;
47
+ name: string;
48
+ fontFamily: string;
49
+ templates: SegmentThemeTemplates;
50
+ mood: 'neutral' | 'sombre' | 'vibrant';
51
+ isCustom: boolean;
52
+ player?: {
53
+ light: {
54
+ backgroundColor: string;
55
+ };
56
+ dark: {
57
+ backgroundColor: string;
58
+ };
59
+ };
60
+ updatedAt: string;
61
+ createdAt: string;
62
+ v: number;
63
+ }
64
+ //# sourceMappingURL=theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/theme/theme.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC1B,sCAAsC;IACtC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,sCAAsC;IACtC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,6EAA6E;IAC7E,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,qBAAqB;IAClC,QAAQ,EAAE;QACN,CAAC,EAAE,aAAa,CAAC;QACjB,CAAC,EAAE,aAAa,CAAC;KACpB,CAAC;IACF,UAAU,EAAE;QAGR,CAAC,EAAE,aAAa,CAAC;QACjB,CAAC,EAAE,aAAa,CAAC;KACpB,CAAC;IACF,UAAU,EAAE;QACR,CAAC,EAAE,aAAa,CAAC;QACjB,CAAC,EAAE,aAAa,CAAC;KACpB,CAAC;IACF,YAAY,EAAE;QACV,CAAC,EAAE,aAAa,CAAC;QACjB,CAAC,EAAE,aAAa,CAAC;KACpB,CAAC;IACF,IAAI,EAAE;QACF,QAAQ,EAAE;YACN,CAAC,EAAE,aAAa,CAAC;YACjB,CAAC,EAAE,aAAa,CAAC;SACpB,CAAC;QACF,UAAU,EAAE;YACR,CAAC,EAAE,aAAa,CAAC;YACjB,CAAC,EAAE,aAAa,CAAC;SACpB,CAAC;QACF,UAAU,EAAE;YACR,CAAC,EAAE,aAAa,CAAC;YACjB,CAAC,EAAE,aAAa,CAAC;SACpB,CAAC;QACF,YAAY,EAAE;YACV,CAAC,EAAE,aAAa,CAAC;YACjB,CAAC,EAAE,aAAa,CAAC;SACpB,CAAA;KACJ,CAAA;CACJ;AAED,MAAM,WAAW,KAAK;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,qBAAqB,CAAC;IACjC,IAAI,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;IACvC,QAAQ,EAAE,OAAO,CAAC;IAElB,MAAM,CAAC,EAAE;QACL,KAAK,EAAE;YACH,eAAe,EAAE,MAAM,CAAC;SAC3B,CAAC;QACF,IAAI,EAAE;YACF,eAAe,EAAE,MAAM,CAAC;SAC3B,CAAA;KACJ,CAAA;IACD,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,CAAC,EAAE,MAAM,CAAC;CACb"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=theme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../src/theme/theme.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uptime.app/contracts",
3
- "version": "1.0.8",
3
+ "version": "1.0.9-rc.1",
4
4
  "license": "MIT",
5
5
  "types": "./dist/esm/index.d.ts",
6
6
  "main": "./dist/cjs/index.js",
@@ -13,5 +13,5 @@
13
13
  "devDependencies": {
14
14
  "typescript": "^5.4.3"
15
15
  },
16
- "gitHead": "13e37e694a27ae99fa581a1ef3eac868d6ee5e46"
16
+ "gitHead": "8b09f4559db3e745e0e3c654069cc53327f329e8"
17
17
  }