@liorian/sdk 0.39.1-alpha.3d2639a → 0.51.2-alpha.ee4411f

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 (67) hide show
  1. package/package.json +9 -4
  2. package/schemas/module.schema.json +487 -77
  3. package/src/application/service/auth-api-service.ts +2 -2
  4. package/src/application/service/config-module-api.service.ts +2 -2
  5. package/src/application/service/module-activation-api.service.ts +2 -2
  6. package/src/application/service/module-installation-api.service.ts +72 -2
  7. package/src/application/service/notifications-api-service.ts +2 -2
  8. package/src/application/service/organizations-api-service.ts +2 -2
  9. package/src/application/service/otp-api-service.ts +2 -2
  10. package/src/application/service/storage-api-service.ts +2 -2
  11. package/src/application/service/storefront-api.service.ts +3 -3
  12. package/src/application/service/user-preferences-api.service.ts +2 -2
  13. package/src/domain/config/app.config.ts +28 -1
  14. package/src/domain/entities/index.ts +2 -0
  15. package/src/domain/entities/module-installation.interface.ts +32 -0
  16. package/src/domain/entities/module-runtime.interface.ts +123 -0
  17. package/src/domain/entities/module-scope.interface.ts +32 -0
  18. package/src/domain/entities/module.interface.ts +13 -2
  19. package/src/domain/enums/module-category.enum.ts +1 -1
  20. package/src/domain/enums/module-type.enum.ts +73 -11
  21. package/src/infrastructure/hooks/module-installation.ts +16 -0
  22. package/src/infrastructure/module-installer/__tests__/artifact-attestation.test.ts +182 -0
  23. package/src/infrastructure/module-installer/__tests__/module-installer.service.test.ts +306 -0
  24. package/src/infrastructure/module-installer/__tests__/reinstall-schedule.test.ts +81 -0
  25. package/src/infrastructure/module-installer/artifact-attestation.ts +209 -0
  26. package/src/infrastructure/module-installer/declare-module-from-manifest.ts +61 -9
  27. package/src/infrastructure/module-installer/index.ts +2 -0
  28. package/src/infrastructure/module-installer/module-installer.service.ts +193 -3
  29. package/src/infrastructure/module-installer/reinstall-schedule.ts +76 -0
  30. package/src/infrastructure/module-runtime/__tests__/bridge-protocol.test.ts +33 -0
  31. package/src/infrastructure/module-runtime/__tests__/module-bridge-client.test.ts +289 -0
  32. package/src/infrastructure/module-runtime/__tests__/module-transport.test.ts +94 -0
  33. package/src/infrastructure/module-runtime/bridge-protocol.ts +115 -0
  34. package/src/infrastructure/module-runtime/module-api.service.ts +134 -0
  35. package/src/infrastructure/module-runtime/module-bootstrap.ts +76 -0
  36. package/src/infrastructure/module-runtime/module-bridge-client.ts +324 -0
  37. package/src/infrastructure/module-runtime/module-context.binding.ts +87 -0
  38. package/src/infrastructure/module-runtime/module-context.provider.tsx +70 -0
  39. package/src/infrastructure/module-runtime/module-transport.ts +79 -0
  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/routines/__tests__/routine.test.ts +6 -1
  44. package/src/infrastructure/stores/__tests__/module-installation.store.test.ts +139 -0
  45. package/src/infrastructure/stores/module-channel.store.ts +74 -0
  46. package/src/infrastructure/stores/module-installation.store.ts +196 -29
  47. package/src/infrastructure/utilities/__tests__/api-service.test.ts +141 -0
  48. package/src/infrastructure/utilities/activity-lock.service.ts +4 -4
  49. package/src/infrastructure/utilities/api-service.ts +55 -248
  50. package/src/infrastructure/utilities/auth-logout.util.ts +2 -2
  51. package/src/infrastructure/utilities/client-api-service.ts +140 -0
  52. package/src/infrastructure/utilities/index.tsx +5 -0
  53. package/src/infrastructure/utilities/session-events.ts +1 -1
  54. package/src/infrastructure/utilities/socket-service.ts +17 -1
  55. package/src/infrastructure/utilities/socle-api-service.ts +357 -0
  56. package/src/infrastructure/utilities/socle-transport.ts +84 -0
  57. package/src/infrastructure/utilities/sso-auth.util.ts +2 -2
  58. package/src/infrastructure/utilities/users-client.ts +119 -0
  59. package/src/infrastructure/utilities/users-name.util.ts +20 -0
  60. package/src/presentation/components/auto-breadcrumb.tsx +126 -0
  61. package/src/presentation/components/index.tsx +4 -0
  62. package/src/presentation/components/media-picker-dialog.tsx +440 -0
  63. package/src/presentation/components/module-link.tsx +39 -0
  64. package/src/presentation/components/module-runtime/declarative/declarative-types.ts +6 -0
  65. package/src/presentation/components/module-runtime/iframe-host.tsx +118 -1
  66. package/src/presentation/components/module-runtime/use-module-route.ts +31 -8
  67. package/src/presentation/components/user-activities-feed.tsx +153 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liorian/sdk",
3
- "version": "0.39.1-alpha.3d2639a",
3
+ "version": "0.51.2-alpha.ee4411f",
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
  }