@ojiepermana/angular 22.0.44 → 22.0.45

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/README.md CHANGED
@@ -60,6 +60,19 @@ import { provideUiTheme } from '@ojiepermana/angular/theme/styles';
60
60
  > and importable directly, but the `@ojiepermana/angular/...` namespace above is the
61
61
  > recommended surface.
62
62
 
63
+ **Subpaths only in production.** The bare `@ojiepermana/angular` root barrel
64
+ re-exports the *entire* design system (chart + component + navigation + sdk +
65
+ theme). Importing from it pulls everything into your bundle, so reserve it for
66
+ tests, demos, or prototypes:
67
+
68
+ ```ts
69
+ // ✗ Avoid in production — drags in the whole design system
70
+ import * as Ui from '@ojiepermana/angular';
71
+
72
+ // ✓ Production — granular, tree-shakeable
73
+ import { Button } from '@ojiepermana/angular/component/button';
74
+ ```
75
+
63
76
  ## Theme & Tailwind v4 setup
64
77
 
65
78
  Add the theme tokens, Tailwind, and the Tailwind token mapping to your global
@@ -7,12 +7,18 @@ export * from '@ojiepermana/angular-theme';
7
7
  /*
8
8
  * Public API of @ojiepermana/angular
9
9
  *
10
- * Root of the design system. Import everything through the nested subpaths,
11
- * which re-export the matching @ojiepermana/angular-<lib> entry points:
10
+ * PRODUCTION IMPORTS always import from a subpath entry point. Subpaths are
11
+ * tree-shakeable and pull in only what you use; they re-export the matching
12
+ * @ojiepermana/angular-<lib> entry points:
12
13
  * import { BarChart } from '@ojiepermana/angular/chart/bar';
13
14
  * import { Button } from '@ojiepermana/angular/component/button';
14
15
  * import { provideUiTheme } from '@ojiepermana/angular/theme/styles';
15
16
  *
17
+ * CONVENIENCE ONLY — the root barrel below re-exports the entire design system
18
+ * (chart + component + navigation + sdk + theme). Importing from the bare
19
+ * `@ojiepermana/angular` specifier drags in everything, so reserve it for tests,
20
+ * demos, or prototypes. Never use the root barrel in production code.
21
+ *
16
22
  * The nested entry points under library/angular/<lib>/<entry>/ are generated by
17
23
  * scripts/gen-umbrella-entrypoints.mjs. The barrel re-exports below back the
18
24
  * top-level `@ojiepermana/angular` entry.
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@ojiepermana/angular",
3
- "version": "22.0.44",
3
+ "version": "22.0.45",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^22.0.0",
6
6
  "@angular/core": "^22.0.0"
7
7
  },
8
8
  "dependencies": {
9
- "@ojiepermana/angular-chart": "^22.0.44",
10
- "@ojiepermana/angular-component": "^22.0.44",
11
- "@ojiepermana/angular-navigation": "^22.0.44",
12
- "@ojiepermana/angular-sdk": "^22.0.44",
13
- "@ojiepermana/angular-theme": "^22.0.44",
9
+ "@ojiepermana/angular-chart": "^22.0.45",
10
+ "@ojiepermana/angular-component": "^22.0.45",
11
+ "@ojiepermana/angular-navigation": "^22.0.45",
12
+ "@ojiepermana/angular-sdk": "^22.0.45",
13
+ "@ojiepermana/angular-theme": "^22.0.45",
14
14
  "tslib": "^2.8.1"
15
15
  },
16
16
  "publishConfig": {