@liorian/sdk 0.46.0-alpha.63c4079 → 1.3.1-alpha.53f9eeb

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 (96) hide show
  1. package/package.json +9 -4
  2. package/schemas/module.schema.json +643 -80
  3. package/src/application/service/auth-api-service.ts +26 -0
  4. package/src/application/service/auth-user.service.ts +52 -0
  5. package/src/application/service/module-activation-api.service.ts +23 -0
  6. package/src/application/service/module-installation-api.service.ts +54 -1
  7. package/src/application/service/storefront-api.service.ts +5 -2
  8. package/src/domain/config/__tests__/app.config.test.ts +70 -0
  9. package/src/domain/config/app.config.ts +115 -27
  10. package/src/domain/config/auth.config.ts +30 -2
  11. package/src/domain/entities/module-installation.interface.ts +32 -0
  12. package/src/domain/entities/module-legal.interface.ts +89 -0
  13. package/src/domain/entities/module-router.interface.ts +47 -0
  14. package/src/domain/entities/module-runtime.interface.ts +52 -2
  15. package/src/domain/entities/module-scope.interface.ts +1 -1
  16. package/src/domain/entities/module.interface.ts +26 -2
  17. package/src/domain/enums/module-type.enum.ts +73 -11
  18. package/src/infrastructure/module-installer/__tests__/artifact-attestation.test.ts +182 -0
  19. package/src/infrastructure/module-installer/__tests__/declare-module-from-manifest.test.ts +93 -0
  20. package/src/infrastructure/module-installer/__tests__/module-installer.service.test.ts +180 -9
  21. package/src/infrastructure/module-installer/__tests__/reinstall-schedule.test.ts +81 -0
  22. package/src/infrastructure/module-installer/artifact-attestation.ts +209 -0
  23. package/src/infrastructure/module-installer/declare-module-from-manifest.ts +113 -10
  24. package/src/infrastructure/module-installer/index.ts +2 -2
  25. package/src/infrastructure/module-installer/module-installer.service.ts +148 -3
  26. package/src/infrastructure/module-installer/module-legal.api.ts +159 -0
  27. package/src/infrastructure/module-installer/reinstall-schedule.ts +76 -0
  28. package/src/infrastructure/module-runtime/__tests__/module-bridge-client.test.ts +12 -0
  29. package/src/infrastructure/module-runtime/__tests__/module-theme.test.ts +94 -0
  30. package/src/infrastructure/module-runtime/__tests__/module-transport.test.ts +109 -1
  31. package/src/infrastructure/module-runtime/bridge-protocol.ts +13 -3
  32. package/src/infrastructure/module-runtime/module-api.service.ts +134 -0
  33. package/src/infrastructure/module-runtime/module-bootstrap.ts +33 -1
  34. package/src/infrastructure/module-runtime/module-bridge-client.ts +23 -4
  35. package/src/infrastructure/module-runtime/module-context.binding.ts +87 -0
  36. package/src/infrastructure/module-runtime/module-context.provider.tsx +70 -0
  37. package/src/infrastructure/module-runtime/module-theme-tokens.ts +265 -0
  38. package/src/infrastructure/module-runtime/module-theme.ts +100 -0
  39. package/src/infrastructure/module-runtime/module-transport.ts +56 -8
  40. package/src/infrastructure/module-runtime/use-module-navigate.ts +57 -0
  41. package/src/infrastructure/providers/index.tsx +1 -0
  42. package/src/infrastructure/providers/module-query.provider.tsx +52 -0
  43. package/src/infrastructure/providers/modules-guard.provider.tsx +95 -22
  44. package/src/infrastructure/routines/__tests__/routine.test.ts +6 -1
  45. package/src/infrastructure/stores/__tests__/module-installation.store.test.ts +89 -20
  46. package/src/infrastructure/stores/__tests__/module.schema.legal.test.ts +129 -0
  47. package/src/infrastructure/stores/__tests__/module.store.test.ts +409 -0
  48. package/src/infrastructure/stores/auth-user-connected.store.ts +23 -0
  49. package/src/infrastructure/stores/module-channel.store.ts +74 -0
  50. package/src/infrastructure/stores/module-installation.store.ts +241 -40
  51. package/src/infrastructure/stores/module.store.ts +230 -99
  52. package/src/infrastructure/utilities/__tests__/permission.util.test.ts +48 -0
  53. package/src/infrastructure/utilities/__tests__/socle-api-service.test.ts +164 -0
  54. package/src/infrastructure/utilities/encryption.service.ts +12 -1
  55. package/src/infrastructure/utilities/index.tsx +3 -0
  56. package/src/infrastructure/utilities/permission.util.ts +27 -0
  57. package/src/infrastructure/utilities/socle-api-service.ts +122 -31
  58. package/src/infrastructure/utilities/socle-transport.ts +84 -0
  59. package/src/infrastructure/utilities/users-client.ts +119 -0
  60. package/src/infrastructure/utilities/users-name.util.ts +20 -0
  61. package/src/presentation/charts/chart-widgets.types.ts +22 -0
  62. package/src/presentation/charts/combo-widget.chart-skeleton.tsx +64 -0
  63. package/src/presentation/charts/combo-widget.chart.tsx +92 -0
  64. package/src/presentation/charts/index.tsx +2 -0
  65. package/src/presentation/charts/line-widget.chart.tsx +21 -2
  66. package/src/presentation/charts/tooltip-widget.chart.tsx +30 -2
  67. package/src/presentation/components/activity-loader.tsx +1 -1
  68. package/src/presentation/components/auto-breadcrumb.tsx +126 -0
  69. package/src/presentation/components/index.tsx +4 -0
  70. package/src/presentation/components/media-picker-dialog.tsx +440 -0
  71. package/src/presentation/components/module-link.tsx +39 -0
  72. package/src/presentation/components/module-runtime/__tests__/module-router.test.ts +74 -0
  73. package/src/presentation/components/module-runtime/__tests__/use-module-route.test.ts +125 -0
  74. package/src/presentation/components/module-runtime/declarative/declarative-types.ts +12 -0
  75. package/src/presentation/components/module-runtime/iframe-host.tsx +99 -18
  76. package/src/presentation/components/module-runtime/module-router.tsx +201 -0
  77. package/src/presentation/components/module-runtime/use-module-route.ts +64 -22
  78. package/src/presentation/components/user-activities-feed.tsx +153 -0
  79. package/src/presentation/data-grid/data-grid-empty.tsx +3 -4
  80. package/src/presentation/index.tsx +1 -1
  81. package/src/presentation/module-widget.tsx +6 -231
  82. package/src/presentation/themes/katon/header-modules-recents.tsx +2 -2
  83. package/src/presentation/themes/katon/header-tasks-connected-user.tsx +12 -6
  84. package/src/presentation/themes/katon/helmet-registry.ts +32 -0
  85. package/src/presentation/themes/katon/index.tsx +2 -0
  86. package/src/presentation/themes/katon/socle-helmet.tsx +62 -0
  87. package/src/presentation/themes/katon/view-helmet.tsx +33 -45
  88. package/src/presentation/widget/fragments-controls.tsx +388 -0
  89. package/src/presentation/widget/fragments-data.tsx +293 -0
  90. package/src/presentation/widget/fragments-grids.tsx +137 -0
  91. package/src/presentation/widget/fragments-lists.tsx +277 -0
  92. package/src/presentation/widget/fragments-media.tsx +89 -0
  93. package/src/presentation/widget/fragments-progress.tsx +216 -0
  94. package/src/presentation/widget/fragments.types.ts +425 -0
  95. package/src/presentation/widget/fragments.utils.ts +45 -0
  96. package/src/presentation/widget.tsx +700 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liorian/sdk",
3
- "version": "0.46.0-alpha.63c4079",
3
+ "version": "1.3.1-alpha.53f9eeb",
4
4
  "description": "Core package for the Liora (application shell, domain, infrastructure, UI design system).",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -25,7 +25,8 @@
25
25
  "./presentation": "./src/presentation/index.tsx",
26
26
  "./presentation/*": "./src/presentation/*",
27
27
  "./styles.css": "./src/styles.css",
28
- "./themes.css": "./src/themes.css"
28
+ "./themes.css": "./src/themes.css",
29
+ "./schemas/*": "./schemas/*"
29
30
  },
30
31
  "files": [
31
32
  "src",
@@ -33,7 +34,8 @@
33
34
  "README.md"
34
35
  ],
35
36
  "scripts": {
36
- "typecheck": "tsc --noEmit"
37
+ "typecheck": "tsc --noEmit",
38
+ "test": "vitest run"
37
39
  },
38
40
  "peerDependencies": {
39
41
  "next": ">=16",
@@ -89,6 +91,9 @@
89
91
  "next": "^16.0.0",
90
92
  "react": "^19.0.0",
91
93
  "react-dom": "^19.0.0",
92
- "typescript": "^5"
94
+ "typescript": "^6.0.3",
95
+ "vitest": "^4.1.9",
96
+ "@testing-library/react": "^16.3.2",
97
+ "jsdom": "^29.1.1"
93
98
  }
94
99
  }