@micheeeeel/yinyangapp 2.5.1 → 3.0.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/dist/bundle.js +1 -1
- package/dist/types/adapters/yasuniCauseAdapter.d.ts +16 -14
- package/dist/types/api.d.ts +5 -2
- package/dist/types/components/controller/YinYangController.d.ts +63 -679
- package/dist/types/components/controller/action-stack/ActionStackController.d.ts +35 -0
- package/dist/types/components/controller/action-stack/ActionStackManager.d.ts +9 -0
- package/dist/types/components/controller/action-stack/StackFocusController.d.ts +105 -0
- package/dist/types/components/controller/actions/ActionProjectionService.d.ts +32 -3
- package/dist/types/components/controller/actions/ChildActionMenuController.d.ts +8 -4
- package/dist/types/components/controller/actions/CoreEventMenuController.d.ts +13 -13
- package/dist/types/components/controller/actions/KeyEventController.d.ts +192 -0
- package/dist/types/components/controller/actions/radialItemMenu.d.ts +0 -9
- package/dist/types/components/controller/children/ChildrenBuilder.d.ts +95 -0
- package/dist/types/components/controller/children/ComponentSwitchCoordinator.d.ts +80 -0
- package/dist/types/components/controller/debug/ControllerDebugTools.d.ts +81 -0
- package/dist/types/components/controller/force-field/ForceFieldComputationService.d.ts +3 -15
- package/dist/types/components/controller/force-field/ForceFieldDetailsPanel.d.ts +120 -66
- package/dist/types/components/controller/force-field/ForceFieldDetailsPresenter.d.ts +139 -0
- package/dist/types/components/controller/force-field/ForceFieldRenderer.d.ts +0 -8
- package/dist/types/components/controller/force-field/IncomingForceFieldService.d.ts +53 -0
- package/dist/types/components/controller/force-field/PropagationAnimator.d.ts +56 -0
- package/dist/types/components/controller/force-field/edgeIdentity.d.ts +28 -0
- package/dist/types/components/controller/force-field/incomingContinuation.d.ts +22 -0
- package/dist/types/components/controller/force-field/propagation-viz/PropagationCometPlayer.d.ts +60 -0
- package/dist/types/components/controller/force-field/propagation-viz/propagationVizLists.d.ts +51 -0
- package/dist/types/components/controller/force-field/propagation-viz/propagationVizModel.d.ts +60 -0
- package/dist/types/components/controller/force-field/propagationTree.d.ts +32 -0
- package/dist/types/components/controller/force-field/shieldViewModel.d.ts +79 -0
- package/dist/types/components/controller/force-field/types.d.ts +37 -10
- package/dist/types/components/controller/labels/ComponentTitlePresenter.d.ts +99 -0
- package/dist/types/components/controller/navigation/DiagramNavigator.d.ts +64 -0
- package/dist/types/components/controller/odd/OddViewManager.d.ts +1 -1
- package/dist/types/components/controller/search/SearchPanelSynchronizer.d.ts +9 -0
- package/dist/types/components/controller/state/ControllerSession.d.ts +107 -0
- package/dist/types/components/controller/state/ControllerUiCallbacks.d.ts +60 -0
- package/dist/types/components/controller/state/YinYangControllerState.d.ts +4 -5
- package/dist/types/components/controller/types.d.ts +103 -0
- package/dist/types/components/controller/utils/actionCatalog.d.ts +15 -0
- package/dist/types/components/controller/utils/forceFieldPresentation.d.ts +14 -8
- package/dist/types/components/search/GlobalSearchController.d.ts +68 -9
- package/dist/types/components/view/BorderDrawer.d.ts +5 -0
- package/dist/types/components/workspace/workspaceTemplate.d.ts +1 -1
- package/dist/types/config/propagationCometConfig.d.ts +9 -36
- package/dist/types/config/propagationCometVizConfig.d.ts +34 -0
- package/dist/types/data/activeDiagram.d.ts +7 -8
- package/dist/types/data/adverse-action-planner.d.ts +22 -0
- package/dist/types/data/catalogue-coverage.d.ts +26 -0
- package/dist/types/data/combo-engine.d.ts +76 -21
- package/dist/types/data/contacts/buildContactSphere.d.ts +17 -6
- package/dist/types/data/contacts/demoContact.d.ts +3 -0
- package/dist/types/data/contacts/index.d.ts +3 -9
- package/dist/types/data/propagation-graph.d.ts +16 -0
- package/dist/types/data/stability-shield.d.ts +21 -0
- package/dist/types/data/yasuni_actions.d.ts +38 -5
- package/dist/types/data/yasuni_cause.d.ts +7 -0
- package/dist/types/data/yasuni_key_events.d.ts +3 -2
- package/dist/types/interfaces/IPropagationGraph.d.ts +39 -0
- package/dist/types/interfaces/IYinYangController.d.ts +2 -2
- package/dist/types/utils/actionPropagation.d.ts +104 -32
- package/dist/types/utils/adverseMode.d.ts +14 -0
- package/package.json +4 -2
- package/dist/types/components/controller/utils/forceFieldMetadata.d.ts +0 -4
- package/dist/types/data/contacts/profiles/andres_cevallos.d.ts +0 -2
- package/dist/types/data/contacts/profiles/camila_serrano.d.ts +0 -2
- package/dist/types/data/contacts/profiles/dika.d.ts +0 -2
- package/dist/types/data/contacts/profiles/elena_viteri.d.ts +0 -2
- package/dist/types/data/contacts/profiles/etawane.d.ts +0 -2
- package/dist/types/data/contacts/profiles/gabriel_mena.d.ts +0 -2
- package/dist/types/data/contacts/profiles/kuri_tapuy.d.ts +0 -2
- package/dist/types/data/contacts/profiles/lucia_cardenas.d.ts +0 -2
- package/dist/types/data/contacts/profiles/mariana_paredes.d.ts +0 -2
- package/dist/types/data/contacts/profiles/martin_aguirre.d.ts +0 -2
- package/dist/types/data/contacts/profiles/mateo_salazar.d.ts +0 -2
- package/dist/types/data/contacts/profiles/sofia_almeida.d.ts +0 -2
- package/dist/types/data/contacts/profiles/tomas_valverde.d.ts +0 -2
- package/dist/types/data/yasuni_graph.d.ts +0 -22
- package/dist/types/data/yasuni_propagation_layers.d.ts +0 -3
- package/dist/types/interfaces/ICauseGraph.d.ts +0 -9
- package/dist/types/interfaces/IPropagationLayers.d.ts +0 -27
- package/dist/types/utils/causeGraph.d.ts +0 -6
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { Composante } from "../data/yasuni_cause";
|
|
2
2
|
import type { Cause } from "../interfaces/ICauseModel";
|
|
3
|
+
import { type ContactProfileData } from "../data/contacts";
|
|
3
4
|
/**
|
|
4
5
|
* Adapte le catalogue Composante[] (format yasuni_cause.ts) vers le format
|
|
5
|
-
* Cause attendu par
|
|
6
|
+
* Cause attendu par mapCauseToInternalModel.
|
|
6
7
|
* Les scores initiaux sont neutres (0.5 = 50 % de tension), les poids valent 1
|
|
7
8
|
* par satellite tant qu'aucune valeur n'est renseignée dans les données.
|
|
8
9
|
*/
|
|
@@ -10,16 +11,17 @@ export declare function composantesToCause(composantes: Composante[], id?: strin
|
|
|
10
11
|
/** La `Cause` du Yasuní, fraîchement construite à chaque appel (l'hôte peut
|
|
11
12
|
* la muter sans effet de bord). `id` par défaut : "yasuni". */
|
|
12
13
|
export declare function getYasuniCause(id?: string): Cause;
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
14
|
+
/**
|
|
15
|
+
* La `Cause` d'un contact (sphère individuelle, 8 facettes / 38 satellites)
|
|
16
|
+
* construite à partir du profil FOURNI PAR L'HÔTE — pour YvY, celui de
|
|
17
|
+
* `GET /api/contacts` (yvy-backend, seule source des profils). La lib n'y
|
|
18
|
+
* ajoute que la grille universelle ; elle ne fait aucun appel réseau.
|
|
19
|
+
*
|
|
20
|
+
* `id` par défaut : l'id du profil. `description` (titre au repos, panneau
|
|
21
|
+
* de détails) : celle du profil, chaîne vide à défaut — le diagramme montre
|
|
22
|
+
* alors le nom du contact, jamais la sphère active de la page.
|
|
23
|
+
* Fraîchement construite à chaque appel (aucun état partagé entre deux
|
|
24
|
+
* contacts). Lève une erreur explicite pour un profil incomplet ou hors
|
|
25
|
+
* bornes (`validateContactProfile`).
|
|
26
|
+
*/
|
|
27
|
+
export declare function contactProfileToCause(profile: ContactProfileData, id?: string): Cause;
|
package/dist/types/api.d.ts
CHANGED
|
@@ -58,7 +58,10 @@ export { createYinYangFilmSvg, createYinYangFilmSvgAsync } from "./api-film";
|
|
|
58
58
|
export type { YinYangFilmConfig, YinYangFilmAsyncOptions } from "./api-film";
|
|
59
59
|
export { createRandomCause } from "./api-random";
|
|
60
60
|
export type { RandomCauseOptions, RandomRange } from "./api-random";
|
|
61
|
-
export { getYasuniCause,
|
|
62
|
-
export
|
|
61
|
+
export { getYasuniCause, contactProfileToCause } from "./adapters/yasuniCauseAdapter";
|
|
62
|
+
export { validateContactProfile } from "./data/contacts/buildContactSphere";
|
|
63
|
+
export type { ContactProfileData, ContactSatelliteValue, } from "./data/contacts/buildContactSphere";
|
|
64
|
+
export { UNIVERSAL_FACETS, CONTACT_CATEGORIES } from "./data/contacts/universalFacets";
|
|
65
|
+
export type { SatelliteKey, ContactFacetId, ContactCategoryId, UniversalFacet, UniversalSatellite, ContactCategory, } from "./data/contacts/universalFacets";
|
|
63
66
|
export { mountYinYangWorkspace } from "./api-workspace";
|
|
64
67
|
export type { YinYangWorkspaceConfig, YinYangWorkspaceHandle, } from "./api-workspace";
|