@egen-civitas/esm-framework 4.0.0 → 4.1.0

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # @egen-civitas/esm-framework
2
2
 
3
+ ## 4.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c5d96c9: Client du protocole Host v1 (C5) : `createBridgeClient` (handshake mémorisé, délais, concurrence, messages invalides ignorés et comptés), `getHostInfo()`, `getHostBridge()`, `createMockHost()` (testing). En natif, `getPlatform().ready` attend désormais le handshake et rejette `INCOMPATIBLE` si le Host est de version incompatible ou annonce une autre plateforme. Aucun changement en Web.
8
+ - 74f778d: Conformité à la TopBar neutre du core (niveaux déclarés par les apps).
9
+
10
+ - `esm-extensions` : nouveau `TOPBAR_SLOT` (`topbar-slot`, seul slot d'extension de la TopBar) et types `TopBarPlacementMeta` / `TopBarRegion` / `TopBarContentRegion` pour la déclaration `meta.topbar` (niveau, rang, région, ordre, before/after). Retrait de `TOPBAR_LEVEL2_NAV_SLOT` et `TOPBAR_NAV_SLOTS` : le slot de navigation est uniquement `TOPBAR_NAV_SLOT` (`topbar-nav-slot`).
11
+ - `esm-styleguide` : `SectionNavPanel` ne lit plus l'ancien slot `topbar-level2-nav`.
12
+ - `esm-framework` : mocks alignés. `esm-app-shell` : documentation du layout-sync sans notion de niveau figé.
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [c5d96c9]
17
+ - Updated dependencies [340f5fe]
18
+ - Updated dependencies [74f778d]
19
+ - @egen-civitas/esm-platform@1.2.0
20
+ - @egen-civitas/esm-globals@2.2.0
21
+ - @egen-civitas/esm-extensions@2.5.0
22
+ - @egen-civitas/esm-styleguide@4.1.0
23
+
3
24
  ## 4.0.0
4
25
 
5
26
  ### Major Changes
package/mock-jest.tsx CHANGED
@@ -2,7 +2,7 @@ import React, { useState } from 'react';
2
2
  import { NEVER } from 'rxjs';
3
3
  import type {} from '@egen-civitas/esm-globals';
4
4
  import * as utils from '@egen-civitas/esm-utils/mock';
5
- import { createMockPlatform } from '@egen-civitas/esm-platform/testing';
5
+ import { createMockHost, createMockPlatform } from '@egen-civitas/esm-platform/testing';
6
6
  import dayjs from 'dayjs';
7
7
 
8
8
  window.i18next = { ...window.i18next, language: 'en' };
@@ -73,8 +73,12 @@ export {
73
73
  getPlatformEnvironment,
74
74
  isNativePlatform,
75
75
  hasHostBridge,
76
+ getHostBridge,
77
+ createBridgeClient,
76
78
  } from '@egen-civitas/esm-platform';
77
- export { createMockPlatform };
79
+ export { createMockPlatform, createMockHost };
80
+ /* Handshake avec le Host : jamais effectué dans un test unitaire ; `createMockHost()` simule `window.egenHostBridge`. */
81
+ export const getHostInfo = jest.fn(() => null);
78
82
  export const getPlatform = jest.fn(() => createMockPlatform());
79
83
 
80
84
  /* esm-styleguide */
@@ -89,8 +93,7 @@ export const getNavBehavior = jest.fn();
89
93
  // Constantes et validateurs purs : on garde les vraies implémentations (aucune raison de les simuler).
90
94
  export {
91
95
  TOPBAR_NAV_SLOT,
92
- TOPBAR_NAV_SLOTS,
93
- TOPBAR_LEVEL2_NAV_SLOT,
96
+ TOPBAR_SLOT,
94
97
  NAV_ALL_WORKSPACES,
95
98
  isNavEntryMeta,
96
99
  isNavEntryInWorkspace,
package/mock.tsx CHANGED
@@ -4,7 +4,7 @@ import { NEVER } from 'rxjs';
4
4
  import { vi } from 'vitest';
5
5
  import type {} from '@egen-civitas/esm-globals';
6
6
  import * as utils from '@egen-civitas/esm-utils/mock';
7
- import { createMockPlatform } from '@egen-civitas/esm-platform/testing';
7
+ import { createMockHost, createMockPlatform } from '@egen-civitas/esm-platform/testing';
8
8
 
9
9
  window.i18next = { ...window.i18next, language: 'en' };
10
10
 
@@ -74,8 +74,12 @@ export {
74
74
  getPlatformEnvironment,
75
75
  isNativePlatform,
76
76
  hasHostBridge,
77
+ getHostBridge,
78
+ createBridgeClient,
77
79
  } from '@egen-civitas/esm-platform';
78
- export { createMockPlatform };
80
+ export { createMockPlatform, createMockHost };
81
+ /* Handshake avec le Host : jamais effectué dans un test unitaire ; `createMockHost()` simule `window.egenHostBridge`. */
82
+ export const getHostInfo = vi.fn(() => null);
79
83
  export const getPlatform = vi.fn(() => createMockPlatform());
80
84
 
81
85
  /* esm-styleguide */
@@ -90,8 +94,7 @@ export const getNavBehavior = vi.fn();
90
94
  // Constantes et validateurs purs : on garde les vraies implémentations (aucune raison de les simuler).
91
95
  export {
92
96
  TOPBAR_NAV_SLOT,
93
- TOPBAR_NAV_SLOTS,
94
- TOPBAR_LEVEL2_NAV_SLOT,
97
+ TOPBAR_SLOT,
95
98
  NAV_ALL_WORKSPACES,
96
99
  isNavEntryMeta,
97
100
  isNavEntryInWorkspace,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@egen-civitas/esm-framework",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "license": "MPL-2.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -74,16 +74,16 @@
74
74
  "@egen-civitas/esm-dynamic-loading": "^2.1.0",
75
75
  "@egen-civitas/esm-error-handling": "^1.0.2",
76
76
  "@egen-civitas/esm-expression-evaluator": "^1.0.0",
77
- "@egen-civitas/esm-extensions": "^2.4.1",
77
+ "@egen-civitas/esm-extensions": "^2.5.0",
78
78
  "@egen-civitas/esm-feature-flags": "^1.0.2",
79
- "@egen-civitas/esm-globals": "^2.1.0",
79
+ "@egen-civitas/esm-globals": "^2.2.0",
80
80
  "@egen-civitas/esm-navigation": "^1.0.0",
81
81
  "@egen-civitas/esm-offline": "^1.0.4",
82
- "@egen-civitas/esm-platform": "^1.1.0",
82
+ "@egen-civitas/esm-platform": "^1.2.0",
83
83
  "@egen-civitas/esm-react-utils": "^3.0.1",
84
84
  "@egen-civitas/esm-routes": "^1.2.0",
85
85
  "@egen-civitas/esm-state": "^1.0.3",
86
- "@egen-civitas/esm-styleguide": "^4.0.0",
86
+ "@egen-civitas/esm-styleguide": "^4.1.0",
87
87
  "@egen-civitas/esm-tenant": "^1.0.0",
88
88
  "@egen-civitas/esm-translations": "^1.0.4",
89
89
  "@egen-civitas/esm-utils": "^2.0.0"