@unisphere/nx 4.5.7 → 4.6.1

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 (30) hide show
  1. package/dist/generators/add-documentation/add-documentation.d.ts.map +1 -1
  2. package/dist/generators/add-documentation/add-documentation.js +11 -0
  3. package/dist/generators/add-documentation/templates/docs/changelog/overview.md +2 -1
  4. package/dist/generators/add-documentation/templates/docs/documentations/overview.md +9 -0
  5. package/dist/generators/add-documentation/templates/docs/{api → reference}/overview.md +2 -1
  6. package/dist/generators/add-documentation/templates/docusaurus.config.ts.template +41 -24
  7. package/dist/generators/add-documentation/templates/sidebars.ts +3 -3
  8. package/dist/generators/add-documentation/templates/src/components/homepage-features/index.tsx +56 -154
  9. package/dist/generators/add-documentation/templates/src/components/homepage-start-now/index.tsx +1 -1
  10. package/dist/generators/add-documentation/templates/src/css/custom.css +223 -0
  11. package/dist/generators/add-documentation/templates/src/pages/index.tsx.template +33 -145
  12. package/dist/generators/add-documentation/templates/src/theme/Navbar/Content/index.tsx +61 -103
  13. package/dist/generators/add-documentation/templates/src/theme/Navbar/Content/styles.module.css +3 -126
  14. package/dist/migrations/3-0-0/pre-cleanup-empty-directories.d.ts +3 -4
  15. package/dist/migrations/3-0-0/pre-cleanup-empty-directories.d.ts.map +1 -1
  16. package/dist/migrations/3-0-0/pre-cleanup-empty-directories.js +6 -44
  17. package/dist/migrations/4-6-0/templates/custom.css +710 -0
  18. package/dist/migrations/4-6-0/templates/navbar-content-styles.module.css +9 -0
  19. package/dist/migrations/4-6-0/templates/navbar-content.tsx +103 -0
  20. package/dist/migrations/4-6-0/templates/sidebars.ts.template +9 -0
  21. package/dist/migrations/4-6-0/update-documentation-structure.d.ts +3 -0
  22. package/dist/migrations/4-6-0/update-documentation-structure.d.ts.map +1 -0
  23. package/dist/migrations/4-6-0/update-documentation-structure.js +238 -0
  24. package/dist/migrations/4-6-1/add-documentation-workflow.d.ts +3 -0
  25. package/dist/migrations/4-6-1/add-documentation-workflow.d.ts.map +1 -0
  26. package/dist/migrations/4-6-1/add-documentation-workflow.js +49 -0
  27. package/dist/migrations/4-6-1/templates/documentation-workflow.template +68 -0
  28. package/migrations.json +16 -0
  29. package/package.json +1 -1
  30. package/dist/generators/add-documentation/templates/docs/getting-started/overview.md +0 -8
@@ -1,132 +1,9 @@
1
- /* Two-row Warp-style Navbar Layout */
2
-
3
- .navbarWrapper {
4
- display: flex;
5
- flex-direction: column;
6
- width: 100%;
7
- padding: 0;
8
- }
9
-
10
- /* Top row: logo + search + color toggle */
11
- .topRow {
12
- display: flex;
13
- align-items: center;
14
- justify-content: space-between;
15
- width: 100%;
16
- padding: 0.75rem 0;
17
- }
18
-
19
- .topLeft {
20
- display: flex;
21
- align-items: center;
22
- gap: 0.5rem;
23
- }
24
-
25
- .topCenter {
26
- flex: 1;
27
- display: flex;
28
- justify-content: center;
29
- align-items: center;
30
- max-width: 480px;
31
- margin: 0 2rem;
32
- position: relative;
33
- z-index: 10;
34
- }
35
-
36
- /* Search bar fills the top-center area */
37
- .topCenter :global(.navbar__search) {
38
- width: 100%;
39
- margin-left: 0 !important;
40
- }
41
-
42
- .topCenter :global(.navbar__search-input) {
43
- width: 100% !important;
44
- transition: none !important;
45
- }
46
-
47
- .topRight {
48
- display: flex;
49
- align-items: center;
50
- gap: 0.5rem;
51
- }
52
-
53
- /* Bottom row: navigation items */
54
- .bottomRow {
55
- display: flex;
56
- align-items: center;
57
- gap: 0.25rem;
58
- padding-bottom: 0;
59
- width: 100%;
60
- border-top: 1px solid var(--uc-border-color);
61
- }
62
-
63
- /* Icon + label wrapper for each nav item */
64
- .navItemWithIcon {
65
- display: flex;
66
- align-items: center;
67
- gap: 0.375rem;
68
- padding: 0.625rem 0.75rem;
69
- border-bottom: 2px solid transparent;
70
- transition: all 0.2s ease;
71
- cursor: pointer;
72
- }
73
-
74
- .navItemWithIcon:hover {
75
- color: var(--ifm-color-primary);
76
- }
77
-
78
- /* Active state: apply underline to the wrapper when it contains an active link */
79
- .navItemWithIcon:has(:global(.navbar__link--active)) {
80
- border-bottom-color: var(--ifm-color-primary);
81
- }
82
-
83
- .navIcon {
84
- display: flex;
85
- align-items: center;
86
- flex-shrink: 0;
87
- opacity: 0.6;
88
- }
89
-
90
- .navItemWithIcon:hover .navIcon,
91
- .navItemWithIcon:has(:global(.navbar__link--active)) .navIcon {
92
- opacity: 1;
93
- color: var(--ifm-color-primary);
94
- }
95
-
96
- /* Reset default navbar item styles inside our wrapper */
97
- .navItemWithIcon :global(.navbar__item) {
98
- padding: 0;
99
- margin: 0;
100
- }
101
-
102
- .navItemWithIcon :global(.navbar__link) {
103
- padding: 0;
104
- border-radius: 0;
105
- font-size: 0.875rem;
106
- font-weight: 500;
107
- }
108
-
109
- .navItemWithIcon :global(.navbar__link--active) {
110
- color: var(--ifm-color-primary);
111
- font-weight: 600;
112
- }
113
-
114
- .navItemWithIcon :global(.navbar__link:hover) {
115
- background: none;
116
- color: var(--ifm-color-primary);
117
- }
118
-
119
- /* Hide color mode toggle on mobile */
120
1
  @media (max-width: 996px) {
121
2
  .colorModeToggle {
122
3
  display: none;
123
4
  }
5
+ }
124
6
 
125
- .topCenter {
126
- display: none;
127
- }
128
-
129
- .bottomRow {
130
- display: none;
131
- }
7
+ :global(.navbar__items--right) > :last-child {
8
+ padding-right: 0;
132
9
  }
@@ -2,10 +2,9 @@
2
2
  * Migration: Pre-cleanup Empty Directories
3
3
  *
4
4
  * This migration runs before the reorganize migrations to:
5
- * 1. Remove known-broken third-party migrations from migrations.json
6
- * 2. Check Nx version is 22 or higher
7
- * 3. Reset Nx cache to ensure fresh project graph
8
- * 4. Clean up any existing empty directories that might block the migration flow
5
+ * 1. Check Nx version is 22 or higher
6
+ * 2. Reset Nx cache to ensure fresh project graph
7
+ * 3. Clean up any existing empty directories that might block the migration flow
9
8
  */
10
9
  import { Tree } from '@nx/devkit';
11
10
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"pre-cleanup-empty-directories.d.ts","sourceRoot":"","sources":["../../../src/migrations/3-0-0/pre-cleanup-empty-directories.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,IAAI,EAAoB,MAAM,YAAY,CAAC;AA2HpD;;GAEG;AACH,wBAA8B,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAwB9D"}
1
+ {"version":3,"file":"pre-cleanup-empty-directories.d.ts","sourceRoot":"","sources":["../../../src/migrations/3-0-0/pre-cleanup-empty-directories.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,IAAI,EAAoB,MAAM,YAAY,CAAC;AAqFpD;;GAEG;AACH,wBAA8B,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAqB9D"}
@@ -3,17 +3,14 @@
3
3
  * Migration: Pre-cleanup Empty Directories
4
4
  *
5
5
  * This migration runs before the reorganize migrations to:
6
- * 1. Remove known-broken third-party migrations from migrations.json
7
- * 2. Check Nx version is 22 or higher
8
- * 3. Reset Nx cache to ensure fresh project graph
9
- * 4. Clean up any existing empty directories that might block the migration flow
6
+ * 1. Check Nx version is 22 or higher
7
+ * 2. Reset Nx cache to ensure fresh project graph
8
+ * 3. Clean up any existing empty directories that might block the migration flow
10
9
  */
11
10
  Object.defineProperty(exports, "__esModule", { value: true });
12
11
  exports.default = update;
13
12
  const devkit_1 = require("@nx/devkit");
14
13
  const child_process_1 = require("child_process");
15
- const fs_1 = require("fs");
16
- const path_1 = require("path");
17
14
  /**
18
15
  * Check that Nx version is 22 or higher
19
16
  */
@@ -50,39 +47,6 @@ function resetNxCache() {
50
47
  devkit_1.logger.warn(' Could not reset Nx cache (this may be fine): ' + error);
51
48
  }
52
49
  }
53
- /**
54
- * Remove known-broken third-party migrations from migrations.json.
55
- * These migrations crash due to chalk/tslib >=2.8 incompatibility and cannot
56
- * be fixed from our side. They are low-value (e.g., renaming deprecated Jest
57
- * matcher aliases) and safe to skip.
58
- */
59
- const BROKEN_MIGRATIONS = [
60
- 'replace-removed-matcher-aliases-v22-3',
61
- ];
62
- function removeKnownBrokenMigrations() {
63
- const migrationsPath = (0, path_1.join)(process.cwd(), 'migrations.json');
64
- if (!(0, fs_1.existsSync)(migrationsPath))
65
- return;
66
- try {
67
- const content = (0, fs_1.readFileSync)(migrationsPath, 'utf-8');
68
- const migrations = JSON.parse(content);
69
- if (!migrations.migrations)
70
- return;
71
- const original = Object.keys(migrations.migrations);
72
- for (const name of BROKEN_MIGRATIONS) {
73
- if (migrations.migrations[name]) {
74
- delete migrations.migrations[name];
75
- devkit_1.logger.info(` Removed known-broken migration: ${name}`);
76
- }
77
- }
78
- if (Object.keys(migrations.migrations).length < original.length) {
79
- (0, fs_1.writeFileSync)(migrationsPath, JSON.stringify(migrations, null, 2) + '\n');
80
- }
81
- }
82
- catch (error) {
83
- devkit_1.logger.warn(' Could not process migrations.json: ' + error);
84
- }
85
- }
86
50
  /**
87
51
  * Clean up empty directories in unisphere folder.
88
52
  * Also removes directories that only contain hidden files (like .DS_Store).
@@ -127,13 +91,11 @@ async function update(tree) {
127
91
  devkit_1.logger.info('Pre-cleanup: Preparing for reorganization');
128
92
  devkit_1.logger.info('========================================');
129
93
  devkit_1.logger.info('');
130
- // Step 1: Remove known-broken migrations that crash due to chalk/tslib incompatibility
131
- removeKnownBrokenMigrations();
132
- // Step 2: Check Nx version is 22 or higher
94
+ // Step 1: Check Nx version is 22 or higher
133
95
  checkNxVersion(tree);
134
- // Step 3: Reset Nx cache to ensure fresh project graph
96
+ // Step 2: Reset Nx cache to ensure fresh project graph
135
97
  resetNxCache();
136
- // Step 4: Clean up empty directories
98
+ // Step 3: Clean up empty directories
137
99
  devkit_1.logger.info(' Removing empty directories...');
138
100
  cleanupEmptyDirectories();
139
101
  devkit_1.logger.info(' Empty directories cleaned');