@africanies/angular-web-sdk 0.1.1 → 0.1.2

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 (71) hide show
  1. package/.angular/cache/22.0.9/playground/.tsbuildinfo +1 -1
  2. package/.angular/cache/22.0.9/playground/angular-compiler.db +0 -0
  3. package/.angular/cache/22.0.9/playground/angular-compiler.db-lock +0 -0
  4. package/.github/workflows/deploy-demo.yml +63 -0
  5. package/.nx/cache/run.json +14 -14
  6. package/.nx/cache/terminalOutputs/13524438527920092277 +196 -21
  7. package/.nx/cache/terminalOutputs/14153928176747262656 +45 -21
  8. package/.nx/cache/terminalOutputs/14416694322692463866 +108 -21
  9. package/.nx/cache/terminalOutputs/15255861479705594703 +51 -21
  10. package/.nx/cache/terminalOutputs/18132311043100376919 +315 -21
  11. package/.nx/cache/terminalOutputs/2436781291243085315 +8 -0
  12. package/.nx/cache/terminalOutputs/6664915487114632770 +44 -21
  13. package/.nx/cache/terminalOutputs/8767335728598176888 +37 -0
  14. package/.nx/cache/terminalOutputs/9739655320223921719 +47 -0
  15. package/.nx/workspace-data/0091ABA9-5C90-580D-953C-8C94E763ADB5-v3.db +0 -0
  16. package/.nx/workspace-data/0091ABA9-5C90-580D-953C-8C94E763ADB5-v3.db-shm +0 -0
  17. package/.nx/workspace-data/0091ABA9-5C90-580D-953C-8C94E763ADB5-v3.db-wal +0 -0
  18. package/.nx/workspace-data/d/daemon.log +1367 -0
  19. package/.nx/workspace-data/d/server-process.json +2 -2
  20. package/.nx/workspace-data/file-map.json +3065 -3108
  21. package/.nx/workspace-data/nx_files.nxt +0 -0
  22. package/.nx/workspace-data/project-graph.json +6 -6
  23. package/.nx/workspace-data/project-graph.lock +0 -0
  24. package/.nx/workspace-data/source-maps.json +80 -0
  25. package/.pnpm-store/v11/index.db +0 -0
  26. package/README.md +13 -1
  27. package/apps/playground/src/app/app.config.ts +28 -3
  28. package/dist/apps/playground/3rdpartylicenses.txt +415 -0
  29. package/dist/apps/playground/browser/assets/africanies-icons/icons.sprite.svg +1844 -0
  30. package/dist/apps/playground/browser/assets/africanies-ui/brand/africanies-logo-mini.png +0 -0
  31. package/dist/apps/playground/browser/assets/africanies-ui/brand/africanies-logo.png +0 -0
  32. package/dist/apps/playground/browser/assets/africanies-ui/brand/africanies-logo.svg +5 -0
  33. package/dist/apps/playground/browser/assets/africanies-ui/carriers/dhl.svg +7 -0
  34. package/dist/apps/playground/browser/chunk--VJ6U9Ev.js +2 -0
  35. package/dist/apps/playground/browser/chunk-B1QVY0hA.js +1 -0
  36. package/dist/apps/playground/browser/chunk-BHI7MG2Y.js +1 -0
  37. package/dist/apps/playground/browser/chunk-BJ5IK8Re.js +1 -0
  38. package/dist/apps/playground/browser/chunk-BOSfyWK2.js +1 -0
  39. package/dist/apps/playground/browser/chunk-BYPboEAg.js +1 -0
  40. package/dist/apps/playground/browser/chunk-BZBRtbFJ.js +1 -0
  41. package/dist/apps/playground/browser/chunk-BdrGkq40.js +1 -0
  42. package/dist/apps/playground/browser/chunk-Bej5a2xR.js +1 -0
  43. package/dist/apps/playground/browser/chunk-Bg3QC1eL.js +1 -0
  44. package/dist/apps/playground/browser/chunk-BsnTz1m5.js +1 -0
  45. package/dist/apps/playground/browser/chunk-C5kLunTi.js +1 -0
  46. package/dist/apps/playground/browser/chunk-C6tu3y81.js +1 -0
  47. package/dist/apps/playground/browser/chunk-C96WSpFp.js +1 -0
  48. package/dist/apps/playground/browser/chunk-CCnOVzbz.js +2 -0
  49. package/dist/apps/playground/browser/chunk-CERmZ9We.js +1 -0
  50. package/dist/apps/playground/browser/chunk-CZBTrY_H.js +68 -0
  51. package/dist/apps/playground/browser/chunk-Cg7brw6x.js +4070 -0
  52. package/dist/apps/playground/browser/chunk-CjTyStrr.js +1 -0
  53. package/dist/apps/playground/browser/chunk-CjYlnYC7.js +1 -0
  54. package/dist/apps/playground/browser/chunk-ClSUoZp8.js +292 -0
  55. package/dist/apps/playground/browser/chunk-CsrxfMap.js +1 -0
  56. package/dist/apps/playground/browser/chunk-CtndMAe2.js +1 -0
  57. package/dist/apps/playground/browser/chunk-Cy-ZOZI8.js +1 -0
  58. package/dist/apps/playground/browser/chunk-D3-jrtyv.js +1 -0
  59. package/dist/apps/playground/browser/chunk-D3vgrlDF.js +1 -0
  60. package/dist/apps/playground/browser/chunk-D48aVVTv.js +1 -0
  61. package/dist/apps/playground/browser/chunk-D4V3eSCv.js +1 -0
  62. package/dist/apps/playground/browser/chunk-DK715t6D.js +1 -0
  63. package/dist/apps/playground/browser/chunk-DUkct7WP.js +1 -0
  64. package/dist/apps/playground/browser/chunk-Y9ccR-I6.js +1 -0
  65. package/dist/apps/playground/browser/chunk-lfUHaltX.js +1 -0
  66. package/dist/apps/playground/browser/favicon.ico +0 -0
  67. package/dist/apps/playground/browser/index.html +14 -0
  68. package/dist/apps/playground/browser/main-WEJC3BLT.js +148 -0
  69. package/dist/apps/playground/browser/styles-4FSELHYD.css +1 -0
  70. package/dist/apps/playground/prerendered-routes.json +3 -0
  71. package/package.json +31 -8
Binary file
@@ -826,7 +826,7 @@
826
826
  "targetGroups": {},
827
827
  "js": {
828
828
  "packageName": "@africanies/angular-web-sdk",
829
- "packageVersion": "0.1.1",
829
+ "packageVersion": "0.1.2",
830
830
  "isInPackageManagerWorkspaces": true
831
831
  }
832
832
  },
@@ -17471,22 +17471,22 @@
17471
17471
  },
17472
17472
  {
17473
17473
  "source": "playground",
17474
- "target": "africanies-theme",
17474
+ "target": "africanies-icons",
17475
17475
  "type": "static"
17476
17476
  },
17477
17477
  {
17478
17478
  "source": "playground",
17479
- "target": "africanies-ui",
17479
+ "target": "africanies-theme",
17480
17480
  "type": "static"
17481
17481
  },
17482
17482
  {
17483
17483
  "source": "playground",
17484
- "target": "npm:rxjs",
17484
+ "target": "africanies-ui",
17485
17485
  "type": "static"
17486
17486
  },
17487
17487
  {
17488
17488
  "source": "playground",
17489
- "target": "africanies-icons",
17489
+ "target": "npm:rxjs",
17490
17490
  "type": "static"
17491
17491
  },
17492
17492
  {
@@ -42090,5 +42090,5 @@
42090
42090
  },
42091
42091
  "version": "6.0",
42092
42092
  "errors": [],
42093
- "computedAt": 1787674991009
42093
+ "computedAt": 1787676035498
42094
42094
  }
File without changes
@@ -148,6 +148,10 @@
148
148
  "libs/africanies-core/package.json",
149
149
  "nx/core/package-json"
150
150
  ],
151
+ "metadata.description": [
152
+ "libs/africanies-core/package.json",
153
+ "nx/core/package-json"
154
+ ],
151
155
  "metadata.js": [
152
156
  "libs/africanies-core/package.json",
153
157
  "nx/core/package-json"
@@ -160,6 +164,14 @@
160
164
  "libs/africanies-core/package.json",
161
165
  "nx/core/package-json"
162
166
  ],
167
+ "metadata.js.packageExports": [
168
+ "libs/africanies-core/package.json",
169
+ "nx/core/package-json"
170
+ ],
171
+ "metadata.js.packageMain": [
172
+ "libs/africanies-core/package.json",
173
+ "nx/core/package-json"
174
+ ],
163
175
  "metadata.js.isInPackageManagerWorkspaces": [
164
176
  "libs/africanies-core/package.json",
165
177
  "nx/core/package-json"
@@ -414,6 +426,10 @@
414
426
  "libs/africanies-icons/package.json",
415
427
  "nx/core/package-json"
416
428
  ],
429
+ "metadata.description": [
430
+ "libs/africanies-icons/package.json",
431
+ "nx/core/package-json"
432
+ ],
417
433
  "metadata.js": [
418
434
  "libs/africanies-icons/package.json",
419
435
  "nx/core/package-json"
@@ -426,6 +442,14 @@
426
442
  "libs/africanies-icons/package.json",
427
443
  "nx/core/package-json"
428
444
  ],
445
+ "metadata.js.packageExports": [
446
+ "libs/africanies-icons/package.json",
447
+ "nx/core/package-json"
448
+ ],
449
+ "metadata.js.packageMain": [
450
+ "libs/africanies-icons/package.json",
451
+ "nx/core/package-json"
452
+ ],
429
453
  "metadata.js.isInPackageManagerWorkspaces": [
430
454
  "libs/africanies-icons/package.json",
431
455
  "nx/core/package-json"
@@ -680,6 +704,10 @@
680
704
  "libs/africanies-models/package.json",
681
705
  "nx/core/package-json"
682
706
  ],
707
+ "metadata.description": [
708
+ "libs/africanies-models/package.json",
709
+ "nx/core/package-json"
710
+ ],
683
711
  "metadata.js": [
684
712
  "libs/africanies-models/package.json",
685
713
  "nx/core/package-json"
@@ -692,6 +720,14 @@
692
720
  "libs/africanies-models/package.json",
693
721
  "nx/core/package-json"
694
722
  ],
723
+ "metadata.js.packageExports": [
724
+ "libs/africanies-models/package.json",
725
+ "nx/core/package-json"
726
+ ],
727
+ "metadata.js.packageMain": [
728
+ "libs/africanies-models/package.json",
729
+ "nx/core/package-json"
730
+ ],
695
731
  "metadata.js.isInPackageManagerWorkspaces": [
696
732
  "libs/africanies-models/package.json",
697
733
  "nx/core/package-json"
@@ -946,6 +982,10 @@
946
982
  "libs/africanies-storage/package.json",
947
983
  "nx/core/package-json"
948
984
  ],
985
+ "metadata.description": [
986
+ "libs/africanies-storage/package.json",
987
+ "nx/core/package-json"
988
+ ],
949
989
  "metadata.js": [
950
990
  "libs/africanies-storage/package.json",
951
991
  "nx/core/package-json"
@@ -958,6 +998,14 @@
958
998
  "libs/africanies-storage/package.json",
959
999
  "nx/core/package-json"
960
1000
  ],
1001
+ "metadata.js.packageExports": [
1002
+ "libs/africanies-storage/package.json",
1003
+ "nx/core/package-json"
1004
+ ],
1005
+ "metadata.js.packageMain": [
1006
+ "libs/africanies-storage/package.json",
1007
+ "nx/core/package-json"
1008
+ ],
961
1009
  "metadata.js.isInPackageManagerWorkspaces": [
962
1010
  "libs/africanies-storage/package.json",
963
1011
  "nx/core/package-json"
@@ -1212,6 +1260,10 @@
1212
1260
  "libs/africanies-theme/package.json",
1213
1261
  "nx/core/package-json"
1214
1262
  ],
1263
+ "metadata.description": [
1264
+ "libs/africanies-theme/package.json",
1265
+ "nx/core/package-json"
1266
+ ],
1215
1267
  "metadata.js": [
1216
1268
  "libs/africanies-theme/package.json",
1217
1269
  "nx/core/package-json"
@@ -1228,6 +1280,10 @@
1228
1280
  "libs/africanies-theme/package.json",
1229
1281
  "nx/core/package-json"
1230
1282
  ],
1283
+ "metadata.js.packageMain": [
1284
+ "libs/africanies-theme/package.json",
1285
+ "nx/core/package-json"
1286
+ ],
1231
1287
  "metadata.js.isInPackageManagerWorkspaces": [
1232
1288
  "libs/africanies-theme/package.json",
1233
1289
  "nx/core/package-json"
@@ -1482,6 +1538,10 @@
1482
1538
  "libs/africanies-ui/package.json",
1483
1539
  "nx/core/package-json"
1484
1540
  ],
1541
+ "metadata.description": [
1542
+ "libs/africanies-ui/package.json",
1543
+ "nx/core/package-json"
1544
+ ],
1485
1545
  "metadata.js": [
1486
1546
  "libs/africanies-ui/package.json",
1487
1547
  "nx/core/package-json"
@@ -1494,6 +1554,14 @@
1494
1554
  "libs/africanies-ui/package.json",
1495
1555
  "nx/core/package-json"
1496
1556
  ],
1557
+ "metadata.js.packageExports": [
1558
+ "libs/africanies-ui/package.json",
1559
+ "nx/core/package-json"
1560
+ ],
1561
+ "metadata.js.packageMain": [
1562
+ "libs/africanies-ui/package.json",
1563
+ "nx/core/package-json"
1564
+ ],
1497
1565
  "metadata.js.isInPackageManagerWorkspaces": [
1498
1566
  "libs/africanies-ui/package.json",
1499
1567
  "nx/core/package-json"
@@ -1954,6 +2022,10 @@
1954
2022
  "package.json",
1955
2023
  "nx/core/package-json"
1956
2024
  ],
2025
+ "metadata.description": [
2026
+ "package.json",
2027
+ "nx/core/package-json"
2028
+ ],
1957
2029
  "metadata.js": [
1958
2030
  "package.json",
1959
2031
  "nx/core/package-json"
@@ -1966,6 +2038,14 @@
1966
2038
  "package.json",
1967
2039
  "nx/core/package-json"
1968
2040
  ],
2041
+ "metadata.js.packageExports": [
2042
+ "package.json",
2043
+ "nx/core/package-json"
2044
+ ],
2045
+ "metadata.js.packageMain": [
2046
+ "package.json",
2047
+ "nx/core/package-json"
2048
+ ],
1969
2049
  "metadata.js.isInPackageManagerWorkspaces": [
1970
2050
  "package.json",
1971
2051
  "nx/core/package-json"
Binary file
package/README.md CHANGED
@@ -4,6 +4,8 @@ Official Angular SDK for AFRICANIES product UIs. Six independently versioned pac
4
4
  under the `@africanies` scope, published to [npm](https://www.npmjs.com/org/africanies). Workspace package:
5
5
  **@africanies/angular-web-sdk**.
6
6
 
7
+ [View the live component and SDK demo](https://a-i-e-s.github.io/angular-web-sdk/)
8
+
7
9
  ## Packages
8
10
 
9
11
  | Package | Role |
@@ -108,15 +110,25 @@ Serve the icon sprite from `node_modules/@africanies/africanies-icons/assets/ico
108
110
 
109
111
  ## Playground
110
112
 
111
- Local catalog of the components and tokens:
113
+ Browse the hosted catalog of components, tokens, models, API examples, and common
114
+ product flows:
115
+
116
+ - [Open the live demo](https://a-i-e-s.github.io/angular-web-sdk/)
117
+
118
+ Run the same catalog locally:
112
119
 
113
120
  ```bash
114
121
  pnpm dev
115
122
  # or: pnpm exec nx serve playground
116
123
  ```
117
124
 
125
+ The hosted demo is built automatically from `main`. Its examples use the test API;
126
+ authenticated examples require a user-supplied access token, and no credentials are
127
+ stored in the repository.
128
+
118
129
  ## Docs
119
130
 
131
+ - [Live component and SDK demo](https://a-i-e-s.github.io/angular-web-sdk/)
120
132
  - [Contributing & release](./CONTRIBUTING.md)
121
133
  - Per-library READMEs under `libs/africanies-*` (playground at `pnpm dev` for live examples)
122
134
 
@@ -4,11 +4,21 @@ import {
4
4
  provideAppInitializer,
5
5
  provideBrowserGlobalErrorListeners,
6
6
  } from '@angular/core';
7
- import { provideRouter, withInMemoryScrolling } from '@angular/router';
7
+ import {
8
+ provideRouter,
9
+ withHashLocation,
10
+ withInMemoryScrolling,
11
+ } from '@angular/router';
8
12
 
9
- import { provideAfricaniesHttpClient, provideAfricaniesSdk } from '@africanies/africanies-core';
13
+ import {
14
+ provideAfricaniesHttpClient,
15
+ provideAfricaniesSdk,
16
+ } from '@africanies/africanies-core';
17
+ import { AFRICANIES_ICON_SPRITE_URL } from '@africanies/africanies-icons';
10
18
  import { ThemeService } from '@africanies/africanies-theme';
11
19
  import {
20
+ AFRICANIES_BRAND_LOGO_MINI_URL,
21
+ AFRICANIES_BRAND_LOGO_URL,
12
22
  provideAfricaniesToasts,
13
23
  provideAfricaniesUiOverlays,
14
24
  provideGooglePlaces,
@@ -27,7 +37,9 @@ const GOOGLE_PLACES_API_KEY_STORAGE = 'africanies.googlePlacesApiKey';
27
37
  */
28
38
  function playgroundGooglePlacesApiKey(): string {
29
39
  try {
30
- return globalThis.localStorage?.getItem(GOOGLE_PLACES_API_KEY_STORAGE) ?? '';
40
+ return (
41
+ globalThis.localStorage?.getItem(GOOGLE_PLACES_API_KEY_STORAGE) ?? ''
42
+ );
31
43
  } catch {
32
44
  return '';
33
45
  }
@@ -41,11 +53,24 @@ export const appConfig: ApplicationConfig = {
41
53
  provideBrowserGlobalErrorListeners(),
42
54
  provideRouter(
43
55
  appRoutes,
56
+ withHashLocation(),
44
57
  withInMemoryScrolling({
45
58
  anchorScrolling: 'enabled',
46
59
  scrollPositionRestoration: 'enabled',
47
60
  }),
48
61
  ),
62
+ {
63
+ provide: AFRICANIES_ICON_SPRITE_URL,
64
+ useValue: 'assets/africanies-icons/icons.sprite.svg',
65
+ },
66
+ {
67
+ provide: AFRICANIES_BRAND_LOGO_URL,
68
+ useValue: 'assets/africanies-ui/brand/africanies-logo.png',
69
+ },
70
+ {
71
+ provide: AFRICANIES_BRAND_LOGO_MINI_URL,
72
+ useValue: 'assets/africanies-ui/brand/africanies-logo-mini.png',
73
+ },
49
74
  provideAfricaniesSdk({
50
75
  baseUrl: PLAYGROUND_API_BASE,
51
76
  httpToasts: 'errors',