@ama-mfe/messages 12.1.0-prerelease.69

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 (53) hide show
  1. package/LICENSE +26 -0
  2. package/README.md +3 -0
  3. package/cjs/messages/navigation/base.js +11 -0
  4. package/cjs/messages/navigation/index.js +25 -0
  5. package/cjs/messages/navigation/navigation.versions.js +4 -0
  6. package/cjs/messages/resize/base.js +11 -0
  7. package/cjs/messages/resize/index.js +25 -0
  8. package/cjs/messages/resize/resize.versions.js +4 -0
  9. package/cjs/messages/theme/base.js +11 -0
  10. package/cjs/messages/theme/index.js +33 -0
  11. package/cjs/messages/theme/theme.versions.js +4 -0
  12. package/cjs/public_api.js +20 -0
  13. package/package.json +158 -0
  14. package/src/messages/navigation/base.d.ts +3 -0
  15. package/src/messages/navigation/base.d.ts.map +1 -0
  16. package/src/messages/navigation/base.js +3 -0
  17. package/src/messages/navigation/base.js.map +1 -0
  18. package/src/messages/navigation/index.d.ts +6 -0
  19. package/src/messages/navigation/index.d.ts.map +1 -0
  20. package/src/messages/navigation/index.js +3 -0
  21. package/src/messages/navigation/index.js.map +1 -0
  22. package/src/messages/navigation/navigation.versions.d.ts +16 -0
  23. package/src/messages/navigation/navigation.versions.d.ts.map +1 -0
  24. package/src/messages/navigation/navigation.versions.js +2 -0
  25. package/src/messages/navigation/navigation.versions.js.map +1 -0
  26. package/src/messages/resize/base.d.ts +3 -0
  27. package/src/messages/resize/base.d.ts.map +1 -0
  28. package/src/messages/resize/base.js +3 -0
  29. package/src/messages/resize/base.js.map +1 -0
  30. package/src/messages/resize/index.d.ts +6 -0
  31. package/src/messages/resize/index.d.ts.map +1 -0
  32. package/src/messages/resize/index.js +3 -0
  33. package/src/messages/resize/index.js.map +1 -0
  34. package/src/messages/resize/resize.versions.d.ts +18 -0
  35. package/src/messages/resize/resize.versions.d.ts.map +1 -0
  36. package/src/messages/resize/resize.versions.js +2 -0
  37. package/src/messages/resize/resize.versions.js.map +1 -0
  38. package/src/messages/theme/base.d.ts +10 -0
  39. package/src/messages/theme/base.d.ts.map +1 -0
  40. package/src/messages/theme/base.js +3 -0
  41. package/src/messages/theme/base.js.map +1 -0
  42. package/src/messages/theme/index.d.ts +6 -0
  43. package/src/messages/theme/index.d.ts.map +1 -0
  44. package/src/messages/theme/index.js +3 -0
  45. package/src/messages/theme/index.js.map +1 -0
  46. package/src/messages/theme/theme.versions.d.ts +15 -0
  47. package/src/messages/theme/theme.versions.d.ts.map +1 -0
  48. package/src/messages/theme/theme.versions.js +2 -0
  49. package/src/messages/theme/theme.versions.js.map +1 -0
  50. package/src/public_api.d.ts +4 -0
  51. package/src/public_api.d.ts.map +1 -0
  52. package/src/public_api.js +4 -0
  53. package/src/public_api.js.map +1 -0
package/LICENSE ADDED
@@ -0,0 +1,26 @@
1
+ Copyright Amadeus SAS
2
+
3
+ Redistribution and use in source and binary forms, with or without modification,
4
+ are permitted provided that the following conditions are met:
5
+
6
+ 1. Redistributions of source code must retain the above copyright notice, this
7
+ list of conditions and the following disclaimer.
8
+
9
+ 2. Redistributions in binary form must reproduce the above copyright notice,
10
+ this list of conditions and the following disclaimer in the documentation and/or
11
+ other materials provided with the distribution.
12
+
13
+ 3. Neither the name of the copyright holder nor the names of its contributors
14
+ may be used to endorse or promote products derived from this software without
15
+ specific prior written permission.
16
+
17
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
18
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
21
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
24
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # Ama mfe messages package
2
+
3
+ Contains interfaces for the common messages used by a communication protocol doing the dialog between iframes in a UI micro frontend architecture
@@ -0,0 +1,11 @@
1
+ /** The navigation message type used at communication with iframes */ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "NAVIGATION_MESSAGE_TYPE", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return NAVIGATION_MESSAGE_TYPE;
9
+ }
10
+ });
11
+ var NAVIGATION_MESSAGE_TYPE = 'navigation';
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "NAVIGATION_MESSAGE_TYPE", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return _base.NAVIGATION_MESSAGE_TYPE;
9
+ }
10
+ });
11
+ _export_star(require("./navigation.versions"), exports);
12
+ var _base = require("./base");
13
+ function _export_star(from, to) {
14
+ Object.keys(from).forEach(function(k) {
15
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
16
+ Object.defineProperty(to, k, {
17
+ enumerable: true,
18
+ get: function() {
19
+ return from[k];
20
+ }
21
+ });
22
+ }
23
+ });
24
+ return from;
25
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
@@ -0,0 +1,11 @@
1
+ /** The resize message type used at communication with iframes */ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "RESIZE_MESSAGE_TYPE", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return RESIZE_MESSAGE_TYPE;
9
+ }
10
+ });
11
+ var RESIZE_MESSAGE_TYPE = 'resize';
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "RESIZE_MESSAGE_TYPE", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return _base.RESIZE_MESSAGE_TYPE;
9
+ }
10
+ });
11
+ _export_star(require("./resize.versions"), exports);
12
+ var _base = require("./base");
13
+ function _export_star(from, to) {
14
+ Object.keys(from).forEach(function(k) {
15
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
16
+ Object.defineProperty(to, k, {
17
+ enumerable: true,
18
+ get: function() {
19
+ return from[k];
20
+ }
21
+ });
22
+ }
23
+ });
24
+ return from;
25
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
@@ -0,0 +1,11 @@
1
+ /** The theme message type used by communication protocol */ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "THEME_MESSAGE_TYPE", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return THEME_MESSAGE_TYPE;
9
+ }
10
+ });
11
+ var THEME_MESSAGE_TYPE = 'theme';
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ THEME_MESSAGE_TYPE: function() {
13
+ return _base.THEME_MESSAGE_TYPE;
14
+ },
15
+ ThemeStructure: function() {
16
+ return _base.ThemeStructure;
17
+ }
18
+ });
19
+ _export_star(require("./theme.versions"), exports);
20
+ var _base = require("./base");
21
+ function _export_star(from, to) {
22
+ Object.keys(from).forEach(function(k) {
23
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
24
+ Object.defineProperty(to, k, {
25
+ enumerable: true,
26
+ get: function() {
27
+ return from[k];
28
+ }
29
+ });
30
+ }
31
+ });
32
+ return from;
33
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ _export_star(require("./messages/navigation/index"), exports);
6
+ _export_star(require("./messages/resize/index"), exports);
7
+ _export_star(require("./messages/theme/index"), exports);
8
+ function _export_star(from, to) {
9
+ Object.keys(from).forEach(function(k) {
10
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
11
+ Object.defineProperty(to, k, {
12
+ enumerable: true,
13
+ get: function() {
14
+ return from[k];
15
+ }
16
+ });
17
+ }
18
+ });
19
+ return from;
20
+ }
package/package.json ADDED
@@ -0,0 +1,158 @@
1
+ {
2
+ "name": "@ama-mfe/messages",
3
+ "version": "12.1.0-prerelease.69",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "description": "Contains common messages types used for iframes dialog in mfe architecture",
8
+ "module": "src/public_api.js",
9
+ "typings": "src/public_api.d.ts",
10
+ "sideEffects": false,
11
+ "exports": {
12
+ "./package.json": {
13
+ "default": "./package.json"
14
+ },
15
+ ".": {
16
+ "module": "./src/public_api.js",
17
+ "typings": "./src/public_api.d.ts",
18
+ "node": "./cjs/public_api.js",
19
+ "require": "./cjs/public_api.js",
20
+ "default": "./cjs/public_api.js"
21
+ }
22
+ },
23
+ "scripts": {
24
+ "nx": "nx",
25
+ "ng": "yarn nx",
26
+ "build": "yarn nx build ama-mfe-messages",
27
+ "build:cjs": "swc src -d dist/cjs -C module.type=commonjs -q --strip-leading-paths",
28
+ "build:esm2020": "tsc -b tsconfig.build.json",
29
+ "postbuild": "yarn cpy './package.json' dist && patch-package-json-main",
30
+ "prepare:publish": "prepare-publish ./dist"
31
+ },
32
+ "dependencies": {
33
+ "tslib": "^2.6.2"
34
+ },
35
+ "peerDependencies": {
36
+ "@amadeus-it-group/microfrontends": "0.x.x"
37
+ },
38
+ "peerDependenciesMeta": {
39
+ "@amadeus-it-group/microfrontends": {
40
+ "optional": true
41
+ }
42
+ },
43
+ "devDependencies": {
44
+ "@amadeus-it-group/microfrontends": "^0.0.2",
45
+ "@compodoc/compodoc": "^1.1.19",
46
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
47
+ "@nx/eslint-plugin": "~20.4.0",
48
+ "@nx/jest": "~20.4.0",
49
+ "@o3r/build-helpers": "^12.1.0-prerelease.69",
50
+ "@o3r/eslint-plugin": "^12.1.0-prerelease.69",
51
+ "@o3r/test-helpers": "^12.1.0-prerelease.69",
52
+ "@schematics/angular": "~19.1.0",
53
+ "@stylistic/eslint-plugin": "~3.1.0",
54
+ "@stylistic/eslint-plugin-ts": "~3.1.0",
55
+ "@swc/cli": "~0.6.0",
56
+ "@swc/core": "~1.11.0",
57
+ "@types/jest": "~29.5.2",
58
+ "@types/node": "^20.0.0",
59
+ "@types/uuid": "^10.0.0",
60
+ "@typescript-eslint/parser": "~8.25.0",
61
+ "cpy-cli": "^5.0.0",
62
+ "eslint": "~9.21.0",
63
+ "eslint-import-resolver-node": "~0.3.9",
64
+ "eslint-import-resolver-typescript": "~3.8.0",
65
+ "eslint-plugin-import": "~2.31.0",
66
+ "eslint-plugin-import-newlines": "~1.4.0",
67
+ "eslint-plugin-jest": "~28.11.0",
68
+ "eslint-plugin-jsdoc": "~50.6.0",
69
+ "eslint-plugin-prefer-arrow": "~1.2.3",
70
+ "eslint-plugin-unicorn": "~56.0.0",
71
+ "eslint-plugin-unused-imports": "~4.1.4",
72
+ "jest": "~29.7.0",
73
+ "jest-junit": "~16.0.0",
74
+ "jsonc-eslint-parser": "~2.4.0",
75
+ "minimist": "^1.2.6",
76
+ "pid-from-port": "^1.1.3",
77
+ "rimraf": "^6.0.1",
78
+ "rxjs": "^7.8.1",
79
+ "semver": "^7.5.2",
80
+ "ts-jest": "~29.2.5",
81
+ "ts-node": "~10.9.2",
82
+ "type-fest": "^4.30.1",
83
+ "typescript": "~5.7.3",
84
+ "typescript-eslint": "~8.25.0"
85
+ },
86
+ "engines": {
87
+ "node": "^18.19.1 || ^20.11.1 || >=22.0.0"
88
+ },
89
+ "contributors": [
90
+ {
91
+ "name": "Yannick Adam",
92
+ "url": "https://github.com/yannickadam",
93
+ "email": "yannickadam@users.noreply.github.com"
94
+ },
95
+ {
96
+ "name": "Kilian Panot",
97
+ "url": "https://github.com/kpanot",
98
+ "email": "kpanot@users.noreply.github.com"
99
+ },
100
+ {
101
+ "name": "Jeremy Bourgeois",
102
+ "url": "https://github.com/jbourgeois-1A",
103
+ "email": "jbourgeois-1A@users.noreply.github.com"
104
+ },
105
+ {
106
+ "name": "Pierre Henri Ginoux",
107
+ "url": "https://github.com/pginoux-1A",
108
+ "email": "pginoux-1A@users.noreply.github.com"
109
+ },
110
+ {
111
+ "name": "Mircea Vasile Rednic",
112
+ "url": "https://github.com/mrednic-1A",
113
+ "email": "mrednic-1A@users.noreply.github.com"
114
+ },
115
+ {
116
+ "name": "Stephane Dalle",
117
+ "url": "https://github.com/sdalle-1A",
118
+ "email": "sdalle-1A@users.noreply.github.com"
119
+ },
120
+ {
121
+ "name": "Nicolas Hoffmann",
122
+ "url": "https://github.com/nhoffmann-1A",
123
+ "email": "nhoffmann-1A@users.noreply.github.com"
124
+ },
125
+ {
126
+ "name": "Victor Scaiceanu",
127
+ "url": "https://github.com/vscaiceanu-1a",
128
+ "email": "vscaiceanu-1A@users.noreply.github.com"
129
+ },
130
+ {
131
+ "name": "Florian Paul",
132
+ "url": "https://github.com/fpaul-1A",
133
+ "email": "fpaul-1A@users.noreply.github.com"
134
+ },
135
+ {
136
+ "name": "Corinne Paulve",
137
+ "url": "https://github.com/cpaulve-1A",
138
+ "email": "cpaulve-1A@users.noreply.github.com"
139
+ },
140
+ {
141
+ "name": "Matthieu Crouzet",
142
+ "url": "https://github.com/matthieu-crouzet",
143
+ "email": "matthieu-crouzet@users.noreply.github.com"
144
+ },
145
+ {
146
+ "name": "Salome Do",
147
+ "url": "https://github.com/sdo-1A",
148
+ "email": "sdo-1A@users.noreply.github.com"
149
+ }
150
+ ],
151
+ "bugs": "https://github.com/AmadeusITGroup/otter/issues",
152
+ "repository": {
153
+ "type": "git",
154
+ "url": "git+https://github.com/AmadeusITGroup/otter.git"
155
+ },
156
+ "license": "BSD-3-Clause",
157
+ "homepage": "https://amadeusitgroup.github.io/otter/"
158
+ }
@@ -0,0 +1,3 @@
1
+ /** The navigation message type used at communication with iframes */
2
+ export declare const NAVIGATION_MESSAGE_TYPE = "navigation";
3
+ //# sourceMappingURL=base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/messages/navigation/base.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,eAAO,MAAM,uBAAuB,eAAe,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** The navigation message type used at communication with iframes */
2
+ export const NAVIGATION_MESSAGE_TYPE = 'navigation';
3
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../src/messages/navigation/base.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,MAAM,CAAC,MAAM,uBAAuB,GAAG,YAAY,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { NavigationV1_0 } from './navigation.versions';
2
+ export * from './navigation.versions';
3
+ export { NAVIGATION_MESSAGE_TYPE } from './base';
4
+ /** The versions of navigation messages */
5
+ export type NavigationMessage = NavigationV1_0;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/messages/navigation/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACf,MAAM,uBAAuB,CAAC;AAE/B,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,QAAQ,CAAC;AAEjD,0CAA0C;AAC1C,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './navigation.versions';
2
+ export { NAVIGATION_MESSAGE_TYPE } from './base';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/messages/navigation/index.ts"],"names":[],"mappings":"AAIA,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,QAAQ,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { Message } from '@amadeus-it-group/microfrontends';
2
+ import type { NAVIGATION_MESSAGE_TYPE } from './base';
3
+ /**
4
+ * The navigation message object sent via the communication protocol.
5
+ * Used in microfrontend architecture based on iframes where an iframe change its url and notify its parent with the url change
6
+ * The parent should update its own url with the information received in order to allow the refresh and the deep link share
7
+ */
8
+ export interface NavigationV1_0 extends Message {
9
+ /** @inheritdoc */
10
+ type: typeof NAVIGATION_MESSAGE_TYPE;
11
+ /** @inheritdoc */
12
+ version: '1.0';
13
+ /** The url updated */
14
+ url: string;
15
+ }
16
+ //# sourceMappingURL=navigation.versions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigation.versions.d.ts","sourceRoot":"","sources":["../../../../src/messages/navigation/navigation.versions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACR,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EACV,uBAAuB,EACxB,MAAM,QAAQ,CAAC;AAEhB;;;;GAIG;AACH,MAAM,WAAW,cAAe,SAAQ,OAAO;IAC7C,kBAAkB;IAClB,IAAI,EAAE,OAAO,uBAAuB,CAAC;IACrC,kBAAkB;IAClB,OAAO,EAAE,KAAK,CAAC;IACf,sBAAsB;IACtB,GAAG,EAAE,MAAM,CAAC;CACb"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=navigation.versions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigation.versions.js","sourceRoot":"","sources":["../../../../src/messages/navigation/navigation.versions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ /** The resize message type used at communication with iframes */
2
+ export declare const RESIZE_MESSAGE_TYPE = "resize";
3
+ //# sourceMappingURL=base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/messages/resize/base.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,eAAO,MAAM,mBAAmB,WAAW,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** The resize message type used at communication with iframes */
2
+ export const RESIZE_MESSAGE_TYPE = 'resize';
3
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../src/messages/resize/base.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { ResizeV1_0 } from './resize.versions';
2
+ export * from './resize.versions';
3
+ export { RESIZE_MESSAGE_TYPE } from './base';
4
+ /** The versions of resize messages */
5
+ export type ResizeMessage = ResizeV1_0;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/messages/resize/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACX,MAAM,mBAAmB,CAAC;AAE3B,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAE7C,sCAAsC;AACtC,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './resize.versions';
2
+ export { RESIZE_MESSAGE_TYPE } from './base';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/messages/resize/index.ts"],"names":[],"mappings":"AAIA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { Message } from '@amadeus-it-group/microfrontends';
2
+ import type { RESIZE_MESSAGE_TYPE } from './base';
3
+ /**
4
+ * The resize message object sent via the communication protocol
5
+ * Used in microfrontend architecture based on iframes.
6
+ * The iframes height is fix and does not change automatically if the content inside it changes.
7
+ * This message contain the height of the content of an iframe and is sent to the parent of the iframe, so the parent can adjust the height of the iframe.
8
+ * This will avoid a scroll bar on the iframe. If there will be a scroll bar that will be only on the parent
9
+ */
10
+ export interface ResizeV1_0 extends Message {
11
+ /** The type of a resize message */
12
+ type: typeof RESIZE_MESSAGE_TYPE;
13
+ /** The version of this message */
14
+ version: '1.0';
15
+ /** The height in pixels of the content of the iframe */
16
+ height: number;
17
+ }
18
+ //# sourceMappingURL=resize.versions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resize.versions.d.ts","sourceRoot":"","sources":["../../../../src/messages/resize/resize.versions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACR,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EACV,mBAAmB,EACpB,MAAM,QAAQ,CAAC;AAEhB;;;;;;GAMG;AACH,MAAM,WAAW,UAAW,SAAQ,OAAO;IACzC,mCAAmC;IACnC,IAAI,EAAE,OAAO,mBAAmB,CAAC;IACjC,kCAAkC;IAClC,OAAO,EAAE,KAAK,CAAC;IACf,wDAAwD;IACxD,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=resize.versions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resize.versions.js","sourceRoot":"","sources":["../../../../src/messages/resize/resize.versions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ /** The theme message type used by communication protocol */
2
+ export declare const THEME_MESSAGE_TYPE = "theme";
3
+ /** Object containing the name of a theme and the theme definition (css vars plus specific style) */
4
+ export interface ThemeStructure {
5
+ /** The name of the theme. Ex: 'dark', 'blue' ... */
6
+ name: string;
7
+ /** CSS text containing the theme definition */
8
+ css: string | null;
9
+ }
10
+ //# sourceMappingURL=base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/messages/theme/base.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,eAAO,MAAM,kBAAkB,UAAU,CAAC;AAE1C,oGAAoG;AACpG,MAAM,WAAW,cAAc;IAC7B,oDAAoD;IACpD,IAAI,EAAE,MAAM,CAAC;IACb,+CAA+C;IAC/C,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CACpB"}
@@ -0,0 +1,3 @@
1
+ /** The theme message type used by communication protocol */
2
+ export const THEME_MESSAGE_TYPE = 'theme';
3
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../src/messages/theme/base.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,MAAM,CAAC,MAAM,kBAAkB,GAAG,OAAO,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { ThemeV1_0 } from './theme.versions';
2
+ /** The versions of theme messages */
3
+ export type ThemeMessage = ThemeV1_0;
4
+ export * from './theme.versions';
5
+ export { THEME_MESSAGE_TYPE, ThemeStructure } from './base';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/messages/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACV,MAAM,kBAAkB,CAAC;AAE1B,qCAAqC;AACrC,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './theme.versions';
2
+ export { THEME_MESSAGE_TYPE } from './base';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/messages/theme/index.ts"],"names":[],"mappings":"AAMA,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAkB,MAAM,QAAQ,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { Message } from '@amadeus-it-group/microfrontends';
2
+ import type { THEME_MESSAGE_TYPE, ThemeStructure } from './base';
3
+ /**
4
+ * Theme message object sent via communication protocol.
5
+ * It contains the theme name and the theme deffinition
6
+ */
7
+ export interface ThemeV1_0 extends Message, ThemeStructure {
8
+ /** The type of a theme message */
9
+ type: typeof THEME_MESSAGE_TYPE;
10
+ /** The version of this message */
11
+ version: '1.0';
12
+ /** Theme definition: css variables plus specific style */
13
+ css: NonNullable<ThemeStructure['css']>;
14
+ }
15
+ //# sourceMappingURL=theme.versions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.versions.d.ts","sourceRoot":"","sources":["../../../../src/messages/theme/theme.versions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACR,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EACV,kBAAkB,EAClB,cAAc,EACf,MAAM,QAAQ,CAAC;AAEhB;;;GAGG;AACH,MAAM,WAAW,SAAU,SAAQ,OAAO,EAAE,cAAc;IACxD,kCAAkC;IAClC,IAAI,EAAE,OAAO,kBAAkB,CAAC;IAChC,kCAAkC;IAClC,OAAO,EAAE,KAAK,CAAC;IACf,0DAA0D;IAC1D,GAAG,EAAE,WAAW,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC;CACzC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=theme.versions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.versions.js","sourceRoot":"","sources":["../../../../src/messages/theme/theme.versions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export * from './messages/navigation/index';
2
+ export * from './messages/resize/index';
3
+ export * from './messages/theme/index';
4
+ //# sourceMappingURL=public_api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public_api.d.ts","sourceRoot":"","sources":["../../src/public_api.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './messages/navigation/index';
2
+ export * from './messages/resize/index';
3
+ export * from './messages/theme/index';
4
+ //# sourceMappingURL=public_api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public_api.js","sourceRoot":"","sources":["../../src/public_api.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC"}