@abyss-project/commons-front-core 3.2.1 → 3.3.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.
Files changed (34) hide show
  1. package/dist/{CookieConsentSettings.component-Cigp3geQ.js → CookieConsentSettings.component-DDxU9lB_.js} +2051 -1995
  2. package/dist/components/Layouts/AbyssBillingPlan/AbyssBillingPlan.component.spec.d.ts +1 -0
  3. package/dist/components/Utils/AbyssLayoutMenu/AbyssLayoutMenu.component.spec.d.ts +1 -0
  4. package/dist/cookie-consent.js +1 -1
  5. package/dist/hooks/use-rich-intl.hook.d.ts +42 -4
  6. package/dist/{index-Dyf9kIU9.js → index--nOhPJev.js} +1 -1
  7. package/dist/{index-DdPGa3C8.js → index-0lwoxirP.js} +4 -4
  8. package/dist/{index-CkOB1-Cm.js → index-AwsGP7Cc.js} +3 -3
  9. package/dist/{index-Bo25l4a1.js → index-B-t9Mtak.js} +3 -3
  10. package/dist/{index-w1PwOFhZ.js → index-B0PIPR3M.js} +2 -2
  11. package/dist/{index-DShW99gD.js → index-B1CcSRlQ.js} +4 -4
  12. package/dist/{index-a5ITEmNu.js → index-BGMIWugc.js} +2 -2
  13. package/dist/{index-BeIZvfbH.js → index-BK8FsOJh.js} +8970 -8958
  14. package/dist/{index-DVlERqlb.js → index-BYzF1-l4.js} +3 -3
  15. package/dist/{index-BZq3UPY7.js → index-BZ0NBbuD.js} +2 -2
  16. package/dist/{index--zQDrQsN.js → index-Bid_88_S.js} +2 -2
  17. package/dist/{index-5nDlrvU3.js → index-BnUGxcam.js} +2 -2
  18. package/dist/{index-B3ufXjWS.js → index-C8lFSgyO.js} +2 -2
  19. package/dist/{index-CiicUS9N.js → index-CcSicji1.js} +2 -2
  20. package/dist/{index-Da36WN3W.js → index-CzDS96zm.js} +2 -2
  21. package/dist/{index-DwlzIsOy.js → index-DTx6pB-d.js} +3 -3
  22. package/dist/{index-Be-GYM3X.js → index-DsN6bTCO.js} +2 -2
  23. package/dist/{index-D3hrfSA5.js → index-NvlhgErk.js} +2 -2
  24. package/dist/{index-DxDFOAmM.js → index-PpHsXSAE.js} +4 -4
  25. package/dist/{index-G2WqOtwQ.js → index-mkr4Oxme.js} +2 -2
  26. package/dist/{index-Bc1kg3zS.js → index-ovZmVMv3.js} +2 -2
  27. package/dist/{index-B3A4XQoK.js → index-xBFNmia8.js} +2 -2
  28. package/dist/index.js +135 -132
  29. package/dist/translations/en.d.ts +10 -2
  30. package/dist/translations/fr.d.ts +10 -2
  31. package/dist/utils/billing.utils.d.ts +17 -1
  32. package/dist/utils/billing.utils.spec.d.ts +1 -0
  33. package/package.json +3 -3
  34. package/vite.config.ts +10 -0
package/vite.config.ts CHANGED
@@ -14,6 +14,14 @@ export default defineConfig({
14
14
  insertTypesEntry: true,
15
15
  }),
16
16
  ].filter(Boolean),
17
+ resolve: {
18
+ alias: {
19
+ // BUNDLED, never external: the plan labels and their resolution (#618). A satellite runs
20
+ // its own, older `@abyss-project/main`, which has no such entry — so this package carries
21
+ // its own copy, compiled from the single source in abyss_main_core.
22
+ '@abyss-project/main/plan-name': resolve(__dirname, '../abyss_main_core/src/plan-name/index.ts'),
23
+ },
24
+ },
17
25
  build: {
18
26
  lib: {
19
27
  // Multiple entries: the full barrel (`index`) plus a browser-safe,
@@ -51,6 +59,8 @@ export default defineConfig({
51
59
  // and resolve fine, so they stay externalized.)
52
60
  if (id === '@mui/x-date-pickers/AdapterDateFns') return false;
53
61
  if (id === '@mui/x-date-pickers/PickersDay') return false;
62
+ // Bundled on purpose, see `resolve.alias` above.
63
+ if (id === '@abyss-project/main/plan-name') return false;
54
64
  // Scoped-package prefixes (these always end with '/')
55
65
  const scopedPrefixes = ['@mui/', '@emotion/', '@abyss-project/', '@tanstack/'];
56
66
  return scopedPrefixes.some((prefix) => id.startsWith(prefix));