@ama-mfe/messages 13.3.0-prerelease.7 → 13.4.0-prerelease.5

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.
@@ -0,0 +1,11 @@
1
+ /** The history message type used at communication with iframes */ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "HISTORY_MESSAGE_TYPE", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return HISTORY_MESSAGE_TYPE;
9
+ }
10
+ });
11
+ var HISTORY_MESSAGE_TYPE = 'history';
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "HISTORY_MESSAGE_TYPE", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return _base.HISTORY_MESSAGE_TYPE;
9
+ }
10
+ });
11
+ _export_star(require("./history.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
+ }
package/cjs/public_api.js CHANGED
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
+ _export_star(require("./messages/history/index"), exports);
5
6
  _export_star(require("./messages/navigation/index"), exports);
6
7
  _export_star(require("./messages/resize/index"), exports);
7
8
  _export_star(require("./messages/theme/index"), exports);
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ama-mfe/messages",
3
- "version": "13.3.0-prerelease.7",
3
+ "version": "13.4.0-prerelease.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
7
  "description": "Contains common messages types used for iframes dialog in mfe architecture",
8
8
  "module": "src/public_api.js",
9
- "typings": "src/public_api.d.ts",
9
+ "types": "src/public_api.d.ts",
10
10
  "sideEffects": false,
11
11
  "exports": {
12
12
  "./package.json": {
@@ -14,7 +14,7 @@
14
14
  },
15
15
  ".": {
16
16
  "module": "./src/public_api.js",
17
- "typings": "./src/public_api.d.ts",
17
+ "types": "./src/public_api.d.ts",
18
18
  "node": "./cjs/public_api.js",
19
19
  "require": "./cjs/public_api.js",
20
20
  "default": "./cjs/public_api.js"
@@ -45,18 +45,18 @@
45
45
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
46
46
  "@nx/eslint-plugin": "~21.6.0",
47
47
  "@nx/jest": "~21.6.0",
48
- "@o3r/build-helpers": "^13.3.0-prerelease.7",
49
- "@o3r/eslint-plugin": "^13.3.0-prerelease.7",
50
- "@o3r/test-helpers": "^13.3.0-prerelease.7",
48
+ "@o3r/build-helpers": "13.4.0-prerelease.5",
49
+ "@o3r/eslint-plugin": "13.4.0-prerelease.5",
50
+ "@o3r/test-helpers": "13.4.0-prerelease.5",
51
51
  "@schematics/angular": "~20.3.0",
52
- "@stylistic/eslint-plugin": "~5.4.0",
52
+ "@stylistic/eslint-plugin": "~5.5.0",
53
53
  "@swc/cli": "~0.7.7",
54
54
  "@swc/core": "~1.13.0",
55
55
  "@types/jest": "~29.5.2",
56
56
  "@types/node": "~22.18.0",
57
57
  "@typescript-eslint/parser": "~8.46.0",
58
58
  "cpy-cli": "^6.0.0",
59
- "eslint": "~9.37.0",
59
+ "eslint": "~9.38.0",
60
60
  "eslint-import-resolver-node": "~0.3.9",
61
61
  "eslint-import-resolver-typescript": "~4.4.0",
62
62
  "eslint-plugin-import": "~2.32.0",
@@ -65,7 +65,7 @@
65
65
  "eslint-plugin-jsdoc": "~54.7.0",
66
66
  "eslint-plugin-prefer-arrow": "~1.2.3",
67
67
  "eslint-plugin-unicorn": "~60.0.0",
68
- "eslint-plugin-unused-imports": "~4.2.0",
68
+ "eslint-plugin-unused-imports": "~4.3.0",
69
69
  "jest": "~29.7.0",
70
70
  "jest-junit": "~16.0.0",
71
71
  "jest-util": "~29.7.0",
@@ -0,0 +1,3 @@
1
+ /** The history message type used at communication with iframes */
2
+ export declare const HISTORY_MESSAGE_TYPE = "history";
3
+ //# sourceMappingURL=base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/messages/history/base.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,eAAO,MAAM,oBAAoB,YAAY,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** The history message type used at communication with iframes */
2
+ export const HISTORY_MESSAGE_TYPE = 'history';
3
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../src/messages/history/base.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,MAAM,CAAC,MAAM,oBAAoB,GAAG,SAAS,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { VersionedMessage } from '@amadeus-it-group/microfrontends';
2
+ import type { HISTORY_MESSAGE_TYPE } from './base';
3
+ /**
4
+ * The history message object sent via the communication protocol.
5
+ * Used in microfrontend architecture based on iframes where an iframe uses history navigation
6
+ */
7
+ export interface HistoryV1_0 extends VersionedMessage {
8
+ /** @inheritdoc */
9
+ type: typeof HISTORY_MESSAGE_TYPE;
10
+ /** @inheritdoc */
11
+ version: '1.0';
12
+ /** The delta of history states to navigate (negative is backward, 0 is reload, positive is forward) */
13
+ delta: number;
14
+ }
15
+ //# sourceMappingURL=history.versions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"history.versions.d.ts","sourceRoot":"","sources":["../../../../src/messages/history/history.versions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EACjB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EACV,oBAAoB,EACrB,MAAM,QAAQ,CAAC;AAEhB;;;GAGG;AACH,MAAM,WAAW,WAAY,SAAQ,gBAAgB;IACnD,kBAAkB;IAClB,IAAI,EAAE,OAAO,oBAAoB,CAAC;IAClC,kBAAkB;IAClB,OAAO,EAAE,KAAK,CAAC;IACf,uGAAuG;IACvG,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=history.versions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"history.versions.js","sourceRoot":"","sources":["../../../../src/messages/history/history.versions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import type { HistoryV1_0 } from './history.versions';
2
+ export * from './history.versions';
3
+ export { HISTORY_MESSAGE_TYPE } from './base';
4
+ /** The versions of history messages */
5
+ export type HistoryMessage = HistoryV1_0;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/messages/history/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACZ,MAAM,oBAAoB,CAAC;AAE5B,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAE9C,uCAAuC;AACvC,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './history.versions';
2
+ export { HISTORY_MESSAGE_TYPE } from './base';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/messages/history/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC"}
@@ -1,3 +1,4 @@
1
+ export * from './messages/history/index';
1
2
  export * from './messages/navigation/index';
2
3
  export * from './messages/resize/index';
3
4
  export * from './messages/theme/index';
@@ -1 +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"}
1
+ {"version":3,"file":"public_api.d.ts","sourceRoot":"","sources":["../../src/public_api.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC"}
package/src/public_api.js CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './messages/history/index';
1
2
  export * from './messages/navigation/index';
2
3
  export * from './messages/resize/index';
3
4
  export * from './messages/theme/index';
@@ -1 +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"}
1
+ {"version":3,"file":"public_api.js","sourceRoot":"","sources":["../../src/public_api.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC"}