@unisphere/nx 3.14.0 → 3.17.0

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 (117) hide show
  1. package/dist/generators/add-documentation/USAGE.md +64 -0
  2. package/dist/generators/add-documentation/add-documentation.d.ts +1 -1
  3. package/dist/generators/add-documentation/add-documentation.d.ts.map +1 -1
  4. package/dist/generators/add-documentation/add-documentation.js +80 -41
  5. package/dist/generators/add-documentation/schema.d.ts +4 -1
  6. package/dist/generators/add-documentation/schema.json +19 -10
  7. package/dist/generators/add-documentation/templates/babel.config.js +3 -0
  8. package/dist/generators/add-documentation/templates/docs/api/overview.md +8 -0
  9. package/dist/generators/add-documentation/templates/docs/changelog/overview.md +8 -0
  10. package/dist/generators/add-documentation/templates/docs/getting-started/overview.md +8 -0
  11. package/dist/generators/add-documentation/templates/docusaurus.config.ts.template +116 -0
  12. package/dist/generators/add-documentation/templates/package.json.template +57 -0
  13. package/dist/generators/add-documentation/templates/postcss.config.js +6 -0
  14. package/dist/generators/add-documentation/templates/sidebars.ts +9 -0
  15. package/dist/generators/add-documentation/templates/src/components/demo-placeholder-card.tsx +33 -0
  16. package/dist/generators/add-documentation/templates/src/components/guides/experiences/genie/integrate-genie-guide.tsx +149 -0
  17. package/dist/generators/add-documentation/templates/src/components/guides/experiences/notifications/notifications-react-guide.tsx +211 -0
  18. package/dist/generators/add-documentation/templates/src/components/homepage-features/index.tsx +239 -0
  19. package/dist/generators/add-documentation/templates/src/components/homepage-features/styles.module.css +87 -0
  20. package/dist/generators/add-documentation/templates/src/components/homepage-modules/index.tsx +76 -0
  21. package/dist/generators/add-documentation/templates/src/components/homepage-modules/styles.module.css +120 -0
  22. package/dist/generators/add-documentation/templates/src/components/homepage-start-now/index.tsx +22 -0
  23. package/dist/generators/add-documentation/templates/src/components/homepage-start-now/styles.module.css +38 -0
  24. package/dist/generators/add-documentation/templates/src/components/interactive-code-panel.tsx +258 -0
  25. package/dist/generators/add-documentation/templates/src/components/introductions/developer-toolbox-experience.tsx +84 -0
  26. package/dist/generators/add-documentation/templates/src/components/introductions/hello-world-experience.tsx +130 -0
  27. package/dist/generators/add-documentation/templates/src/components/introductions/notificaitons-experience.tsx +635 -0
  28. package/dist/generators/add-documentation/templates/src/components/introductions/reactions-experience.tsx +117 -0
  29. package/dist/generators/add-documentation/templates/src/components/ui-shared/introduction-card.tsx +117 -0
  30. package/dist/generators/add-documentation/templates/src/components/ui-shared/playground-card.tsx +67 -0
  31. package/dist/generators/add-documentation/templates/src/components/ui-shared/use-color-mode.ts +20 -0
  32. package/dist/generators/add-documentation/templates/src/components/ui-shared/utils.ts +8 -0
  33. package/dist/generators/add-documentation/templates/src/css/custom.css +487 -0
  34. package/dist/generators/add-documentation/templates/src/css/hero.module.css +190 -0
  35. package/dist/generators/add-documentation/templates/src/pages/index.module.css +59 -0
  36. package/dist/generators/add-documentation/templates/src/pages/index.tsx.template +191 -0
  37. package/dist/generators/add-documentation/templates/src/theme/Navbar/Content/index.tsx +145 -0
  38. package/dist/generators/add-documentation/templates/src/theme/Navbar/Content/styles.module.css +132 -0
  39. package/dist/generators/add-documentation/templates/src/theme/Navbar/MobileSidebar/Header/index.tsx +45 -0
  40. package/dist/generators/add-documentation/templates/static/.nojekyll +0 -0
  41. package/dist/generators/add-documentation/templates/static/docs/overview/unisphere-for-dummies-1.png +0 -0
  42. package/dist/generators/add-documentation/templates/static/docs/overview/unisphere-for-dummies-2.png +0 -0
  43. package/dist/generators/add-documentation/templates/static/docs/overview/unisphere-for-dummies-3.png +0 -0
  44. package/dist/generators/add-documentation/templates/static/docs/overview/unisphere-for-dummies-4.png +0 -0
  45. package/dist/generators/add-documentation/templates/static/homepage/divider.svg +5 -0
  46. package/dist/generators/add-documentation/templates/static/homepage/icons/Architecture.svg +4 -0
  47. package/dist/generators/add-documentation/templates/static/homepage/icons/Cost.svg +4 -0
  48. package/dist/generators/add-documentation/templates/static/homepage/icons/ExternalLink.svg +3 -0
  49. package/dist/generators/add-documentation/templates/static/homepage/icons/Infra.svg +8 -0
  50. package/dist/generators/add-documentation/templates/static/homepage/icons/Redundancies.svg +6 -0
  51. package/dist/generators/add-documentation/templates/static/homepage/icons/Speed.svg +6 -0
  52. package/dist/generators/add-documentation/templates/static/homepage/icons/Standards.svg +4 -0
  53. package/dist/generators/add-documentation/templates/static/homepage/icons/Unified.svg +12 -0
  54. package/dist/generators/add-documentation/templates/static/homepage/services/custo.jpg +0 -0
  55. package/dist/generators/add-documentation/templates/static/homepage/services/flame.jpg +0 -0
  56. package/dist/generators/add-documentation/templates/static/homepage/services/keepr.jpg +0 -0
  57. package/dist/generators/add-documentation/templates/static/homepage/services/loggi.jpg +0 -0
  58. package/dist/generators/add-documentation/templates/static/homepage/services/palleto.jpg +0 -0
  59. package/dist/generators/add-documentation/templates/static/homepage/services/publi.jpg +0 -0
  60. package/dist/generators/add-documentation/templates/static/homepage/services/tinker.jpg +0 -0
  61. package/dist/generators/add-documentation/templates/static/img/favicon.ico +0 -0
  62. package/dist/generators/add-documentation/templates/static/img/logo.svg +6 -0
  63. package/dist/generators/add-documentation/templates/static/img/logo_big.svg +12 -0
  64. package/dist/generators/add-documentation/templates/static/img/logo_big_dark.svg +12 -0
  65. package/dist/generators/add-documentation/templates/static/img/logo_dark.svg +6 -0
  66. package/dist/generators/add-documentation/templates/static/img/unisphere-social-card.jpg +0 -0
  67. package/dist/generators/add-documentation/templates/static/llm/INTEGRATE.md +497 -0
  68. package/dist/generators/add-documentation/templates/static/robots.txt +5 -0
  69. package/dist/generators/add-documentation/templates/static/team/amirc.jpeg +0 -0
  70. package/dist/generators/add-documentation/templates/static/team/erans.jpeg +0 -0
  71. package/dist/generators/add-documentation/templates/static/team/hadass.jpeg +0 -0
  72. package/dist/generators/add-documentation/templates/static/team/hillelc.jpeg +0 -0
  73. package/dist/generators/add-documentation/templates/static/team/idoz.jpeg +0 -0
  74. package/dist/generators/add-documentation/templates/static/team/lianb.jpeg +0 -0
  75. package/dist/generators/add-documentation/templates/static/team/nirb.jpeg +0 -0
  76. package/dist/generators/add-documentation/templates/static/team/nivs.jpeg +0 -0
  77. package/dist/generators/add-documentation/templates/static/team/omric.jpeg +0 -0
  78. package/dist/generators/add-documentation/templates/static/team/roeed.jpeg +0 -0
  79. package/dist/generators/add-documentation/templates/static/team/sivana.jpeg +0 -0
  80. package/dist/generators/add-documentation/templates/static/team/stask.png +0 -0
  81. package/dist/generators/add-documentation/templates/static/team/tanyal.jpeg +0 -0
  82. package/dist/generators/add-documentation/templates/static/team/tomere.jpeg +0 -0
  83. package/dist/generators/add-documentation/templates/static/team/tornikem.jpeg +0 -0
  84. package/dist/generators/add-documentation/templates/static/team/yairn.jpeg +0 -0
  85. package/dist/generators/add-documentation/templates/tailwind.config.js +30 -0
  86. package/dist/generators/add-documentation/templates/tsconfig.json +7 -0
  87. package/dist/generators/add-package/add-package.d.ts.map +1 -1
  88. package/dist/generators/add-package/add-package.js +9 -4
  89. package/dist/generators/add-package/schema.d.ts +1 -1
  90. package/dist/generators/add-package/schema.json +18 -10
  91. package/dist/generators/internal-dev-runner/generator.d.ts.map +1 -1
  92. package/dist/generators/internal-dev-runner/generator.js +2 -40
  93. package/dist/generators/rename-package/rename-package.d.ts.map +1 -1
  94. package/dist/generators/rename-package/rename-package.js +12 -0
  95. package/dist/generators/utils.d.ts +1 -1
  96. package/dist/generators/utils.d.ts.map +1 -1
  97. package/dist/generators/utils.js +8 -10
  98. package/dist/migrations/3-15-0/add-experience-documentation.d.ts +10 -0
  99. package/dist/migrations/3-15-0/add-experience-documentation.d.ts.map +1 -0
  100. package/dist/migrations/3-15-0/add-experience-documentation.js +20 -0
  101. package/dist/migrations/3-16-0/remove-rollup-patch.d.ts +10 -0
  102. package/dist/migrations/3-16-0/remove-rollup-patch.d.ts.map +1 -0
  103. package/dist/migrations/3-16-0/remove-rollup-patch.js +32 -0
  104. package/dist/migrations/3-17-0/add-local-runtimes-setup.d.ts +11 -0
  105. package/dist/migrations/3-17-0/add-local-runtimes-setup.d.ts.map +1 -0
  106. package/dist/migrations/3-17-0/add-local-runtimes-setup.js +160 -0
  107. package/dist/migrations/3-6-3/remove-rollup-patch.d.ts +1 -1
  108. package/dist/migrations/3-6-3/remove-rollup-patch.d.ts.map +1 -1
  109. package/dist/migrations/3-6-3/remove-rollup-patch.js +16 -6
  110. package/dist/migrations/3-7-0/update-gitignore-claude-exclusions.d.ts +9 -0
  111. package/dist/migrations/3-7-0/update-gitignore-claude-exclusions.d.ts.map +1 -0
  112. package/dist/migrations/3-7-0/update-gitignore-claude-exclusions.js +68 -0
  113. package/dist/shared.d.ts +4 -2
  114. package/dist/shared.d.ts.map +1 -1
  115. package/dist/shared.js +3 -1
  116. package/migrations.json +43 -0
  117. package/package.json +1 -1
@@ -0,0 +1,30 @@
1
+ /** @type {import('tailwindcss').Config} */
2
+ module.exports = {
3
+ content: [
4
+ './src/**/*.{js,jsx,ts,tsx,md,mdx}',
5
+ './docs/**/*.{md,mdx}',
6
+ ],
7
+ darkMode: ['class', '[data-theme="dark"]'],
8
+ theme: {
9
+ extend: {
10
+ colors: {
11
+ 'purple': {
12
+ 50: '#faf5ff',
13
+ 100: '#f3e8ff',
14
+ 200: '#e9d5ff',
15
+ 300: '#d8b4fe',
16
+ 400: '#c084fc',
17
+ 500: '#a855f7',
18
+ 600: '#9333ea',
19
+ 700: '#7c3aed',
20
+ 800: '#6b21a8',
21
+ 900: '#581c87',
22
+ }
23
+ }
24
+ },
25
+ },
26
+ plugins: [],
27
+ corePlugins: {
28
+ preflight: false, // disable Tailwind's reset to avoid conflicts with Docusaurus
29
+ },
30
+ };
@@ -0,0 +1,7 @@
1
+ {
2
+ // This file is not used in compilation. It is here just for a nice editor experience.
3
+ "extends": "@docusaurus/tsconfig",
4
+ "compilerOptions": {
5
+ "baseUrl": "."
6
+ }
7
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"add-package.d.ts","sourceRoot":"","sources":["../../../src/generators/add-package/add-package.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,IAAI,EAAgD,MAAM,YAAY,CAAC;AAE5G,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AA4DrD,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,yBAAyB,uBAiHnC;AAED,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"add-package.d.ts","sourceRoot":"","sources":["../../../src/generators/add-package/add-package.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,IAAI,EAAgD,MAAM,YAAY,CAAC;AAE5G,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AA4DrD,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,yBAAyB,uBAqHnC;AAED,eAAe,mBAAmB,CAAC"}
@@ -56,10 +56,15 @@ async function addPackageGenerator(tree, options) {
56
56
  else {
57
57
  packageJsonName = experienceName + `-${userInputPackageName}`;
58
58
  }
59
- const prefix = options.scope === 'public' ? '@unisphere/' :
60
- options.scope === 'internal' ? '@kaltura-corp/unisphere-' :
61
- options.scope === 'kaltura-ai' ? '@kaltura-ai/' :
62
- '@local/';
59
+ const scopeToPrefixMap = {
60
+ 'unisphere': '@unisphere/',
61
+ 'kaltura-corp': '@kaltura-corp/unisphere-',
62
+ 'kaltura-ui': '@kaltura-ui/',
63
+ 'kaltura-apps': '@kaltura-apps/',
64
+ 'kaltura-sdk': '@kaltura-sdk/',
65
+ 'local': '@local/',
66
+ };
67
+ const prefix = scopeToPrefixMap[options.scope];
63
68
  packageJsonName = prefix + packageJsonName;
64
69
  const transformedPackageName = (0, devkit_1.names)(userInputPackageName);
65
70
  const githubUrl = `https://github.com/${companyName}/${experienceName}`;
@@ -1,5 +1,5 @@
1
1
  export interface AddPackageGeneratorSchema {
2
2
  packageName: string;
3
- scope: 'public' | 'internal' | 'none' | 'kaltura-ai';
3
+ scope: 'unisphere' | 'kaltura-corp' | 'local' | 'kaltura-ui' | 'kaltura-apps' | 'kaltura-sdk';
4
4
  dependencies?: string[];
5
5
  }
@@ -13,26 +13,34 @@
13
13
  "scope": {
14
14
  "type": "string",
15
15
  "description": "The distribution scope of the package",
16
- "default": "none",
16
+ "default": "local",
17
17
  "x-prompt": {
18
- "message": "What scope should this package have? If you're unsure, choose Private.",
18
+ "message": "What scope should this package have? If you're unsure, choose Local.",
19
19
  "type": "list",
20
20
  "items": [
21
21
  {
22
- "value": "none",
23
- "label": "Private – This repository only (not published to npm)"
22
+ "value": "local",
23
+ "label": "Local – This repository only (not published to npm)"
24
24
  },
25
25
  {
26
- "value": "internal",
27
- "label": "Kaltura Internal – For Kaltura repositories only (jfrog scope: @kaltura-corp/...)"
26
+ "value": "kaltura-corp",
27
+ "label": "Kaltura Corp – For Kaltura repositories only (jfrog scope: @kaltura-corp/...)"
28
28
  },
29
29
  {
30
- "value": "public",
31
- "label": "Unisphere Public – For all Unisphere workspace consumers (npm scope: @unisphere/...)"
30
+ "value": "unisphere",
31
+ "label": "Unisphere – For all Unisphere workspace consumers (npm scope: @unisphere/...)"
32
32
  },
33
33
  {
34
- "value": "kaltura-ai",
35
- "label": "Kaltura AI Lab – Experimental packages for standalone use (npm scope: @kaltura-ai/...)"
34
+ "value": "kaltura-ui",
35
+ "label": "Kaltura UI – UI components for standalone use (npm scope: @kaltura-ui/...)"
36
+ },
37
+ {
38
+ "value": "kaltura-apps",
39
+ "label": "Kaltura Apps – Application packages for standalone use (npm scope: @kaltura-apps/...)"
40
+ },
41
+ {
42
+ "value": "kaltura-sdk",
43
+ "label": "Kaltura SDK – SDK packages for standalone use (npm scope: @kaltura-sdk/...)"
36
44
  }
37
45
  ]
38
46
  }
@@ -1 +1 @@
1
- {"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../src/generators/internal-dev-runner/generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAclC,wBAA8B,sBAAsB,CAAC,IAAI,EAAE,IAAI,iBAuC9D"}
1
+ {"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../src/generators/internal-dev-runner/generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAKlC,wBAA8B,sBAAsB,CAAC,IAAI,EAAE,IAAI,iBAE9D"}
@@ -3,45 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = testMigrationGenerator;
4
4
  const tslib_1 = require("tslib");
5
5
  // Import the migrations to test
6
- // import addEnvToGitignore from '../../migrations/3-0-0/add-env-to-application-gitignore';
7
- // import addDefinePluginToWebpack from '../../migrations/3-0-0/add-define-plugin-to-webpack';
8
- // import upgradeCliToV2 from '../../migrations/3-0-0/upgrade-cli-to-v2';
9
- // import preCleanupEmptyDirectories from '../../migrations/3-0-0/pre-cleanup-empty-directories';
10
- // import reorganizePackagesByDistributionChannel from '../../migrations/3-0-0/reorganize-packages-by-distribution-channel';
11
- // import reorganizeApplicationsByDistributionChannel from '../../migrations/3-0-0/reorganize-applications-by-distribution-channel';
12
- // import upgradeSchemaTo2 from '../../migrations/3-0-0/upgrade-schema-to-2-0-0';
13
- // import postCleanupEmptyDirectories from '../../migrations/3-0-0/post-cleanup-empty-directories';
14
- // import removePrivateFromApplicationsAndRuntimes from '../../migrations/3-0-0/remove-private-from-applications-and-runtimes';
15
- const fix_workspaces_pattern_1 = tslib_1.__importDefault(require("../../migrations/3-1-0/fix-workspaces-pattern"));
6
+ const add_local_runtimes_setup_1 = tslib_1.__importDefault(require("../../migrations/3-17-0/add-local-runtimes-setup"));
16
7
  async function testMigrationGenerator(tree) {
17
- // Collect all callbacks to run after all migrations complete
18
- // const callbacks: (() => void)[] = [];
19
- // Upgrade CLI to v2 first (needed for other migrations)
20
- // const upgradeCliCallback = await upgradeCliToV2(tree);
21
- // if (upgradeCliCallback) {
22
- // callbacks.push(upgradeCliCallback);
23
- // }
24
- // Pre-cleanup: Remove empty directories before reorganization
25
- // await preCleanupEmptyDirectories(tree);
26
- // Reorganize packages by distribution channel (also handles core->types rename and -react suffix)
27
- // await reorganizePackagesByDistributionChannel(tree);
28
- // // Reorganize applications by distribution channel
29
- // await reorganizeApplicationsByDistributionChannel(tree);
30
- // Upgrade schema to 2.0.0 and remove distributionChannel from packages
31
- // await upgradeSchemaTo2(tree);
32
- // Remove private field from applications, runtimes, and packages
33
- // await removePrivateFromApplicationsAndRuntimes(tree);
34
- await (0, fix_workspaces_pattern_1.default)(tree);
35
- // Post-cleanup: Remove empty directories after reorganization
36
- // const postCleanupCallback = await postCleanupEmptyDirectories(tree);
37
- // if (postCleanupCallback) {
38
- // callbacks.push(postCleanupCallback);
39
- // }
40
- // Run all callbacks at the end
41
- // Note: In Nx generators, Tree changes are written when the generator completes.
42
- // These callbacks run after all migrations but before the generator finishes.
43
- // For file system operations (like npm install), they should work correctly.
44
- // for (const callback of callbacks) {
45
- // callback();
46
- // }
8
+ await (0, add_local_runtimes_setup_1.default)(tree);
47
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"rename-package.d.ts","sourceRoot":"","sources":["../../../src/generators/rename-package/rename-package.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EACL,IAAI,EAKL,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAqaxD,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,4BAA4B,iBA2GtC;AAED,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"rename-package.d.ts","sourceRoot":"","sources":["../../../src/generators/rename-package/rename-package.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EACL,IAAI,EAKL,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AA6axD,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,4BAA4B,iBA2GtC;AAED,eAAe,sBAAsB,CAAC"}
@@ -118,6 +118,18 @@ function calculateNewPackageJsonName(tree, newPackageName, oldPackageJsonName) {
118
118
  else if (oldPackageJsonName.startsWith('@kaltura/unisphere-')) {
119
119
  prefix = '@kaltura/unisphere-';
120
120
  }
121
+ else if (oldPackageJsonName.startsWith('@kaltura-corp/unisphere-')) {
122
+ prefix = '@kaltura-corp/unisphere-';
123
+ }
124
+ else if (oldPackageJsonName.startsWith('@kaltura-ui/')) {
125
+ prefix = '@kaltura-ui/';
126
+ }
127
+ else if (oldPackageJsonName.startsWith('@kaltura-apps/')) {
128
+ prefix = '@kaltura-apps/';
129
+ }
130
+ else if (oldPackageJsonName.startsWith('@kaltura-sdk/')) {
131
+ prefix = '@kaltura-sdk/';
132
+ }
121
133
  else {
122
134
  // Truly private package with no standard prefix
123
135
  return normalizedNewName;
@@ -41,7 +41,7 @@ export declare function checkIfRuntimeExists(tree: Tree, runtimeName: string): b
41
41
  * @param scope - The package scope ('public', 'internal', 'none')
42
42
  * @returns The subdirectory name ('unisphere', 'kaltura-corp', 'local')
43
43
  */
44
- export declare function getSubdirectoryFromScope(scope: 'public' | 'internal' | 'none' | 'kaltura-ai'): string;
44
+ export declare function getSubdirectoryFromScope(scope: 'unisphere' | 'kaltura-corp' | 'local' | 'kaltura-ui' | 'kaltura-apps' | 'kaltura-sdk'): string;
45
45
  /**
46
46
  * Extracts the subdirectory from a package sourceRoot path
47
47
  * @param sourceRoot - The sourceRoot path (e.g., "unisphere/packages/kaltura-corp/shared")
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/generators/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EAKL,MAAM,YAAY,CAAC;AAGpB,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE;QACvB,U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AG,OAAO,CAgB7E;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,WAAW,GAAG,cAAc,GAAG,OAAO,GAAG,YAAY,GAAG,cAAc,GAAG,aAAa,GAAG,MAAM,CAE9I;AAED;;;;GAIG;AACH,wBAAgB,iCAAiC,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAWnF;AAED;;;;GAIG;AACH,wBAAgB,gCAAgC,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAI3E;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,MAAM,GACpB,IAAI,CAyBN"}
@@ -233,7 +233,9 @@ function isCorePackagePath(pathValue) {
233
233
  'unisphere/packages/local/core/src/index.ts',
234
234
  'unisphere/packages/kaltura-corp/core/src/index.ts',
235
235
  'unisphere/packages/unisphere/core/src/index.ts',
236
- 'unisphere/packages/kaltura-ai/core/src/index.ts',
236
+ 'unisphere/packages/kaltura-ui/core/src/index.ts',
237
+ 'unisphere/packages/kaltura-apps/core/src/index.ts',
238
+ 'unisphere/packages/kaltura-sdk/core/src/index.ts',
237
239
  ];
238
240
  return corePatterns.includes(pathValue);
239
241
  }
@@ -281,7 +283,9 @@ function isTypesPackagePath(pathValue) {
281
283
  'unisphere/packages/local/types/src/index.ts',
282
284
  'unisphere/packages/kaltura-corp/types/src/index.ts',
283
285
  'unisphere/packages/unisphere/types/src/index.ts',
284
- 'unisphere/packages/kaltura-ai/types/src/index.ts',
286
+ 'unisphere/packages/kaltura-ui/types/src/index.ts',
287
+ 'unisphere/packages/kaltura-apps/types/src/index.ts',
288
+ 'unisphere/packages/kaltura-sdk/types/src/index.ts',
285
289
  ];
286
290
  return typesPatterns.includes(pathValue);
287
291
  }
@@ -433,13 +437,7 @@ function checkIfRuntimeExists(tree, runtimeName) {
433
437
  * @returns The subdirectory name ('unisphere', 'kaltura-corp', 'local')
434
438
  */
435
439
  function getSubdirectoryFromScope(scope) {
436
- const scopeToSubdirectory = {
437
- 'public': 'unisphere',
438
- 'internal': 'kaltura-corp',
439
- 'none': 'local',
440
- 'kaltura-ai': 'kaltura-ai',
441
- };
442
- return scopeToSubdirectory[scope];
440
+ return scope;
443
441
  }
444
442
  /**
445
443
  * Extracts the subdirectory from a package sourceRoot path
@@ -452,7 +450,7 @@ function extractSubdirectoryFromSourceRoot(sourceRoot) {
452
450
  // Or old format: unisphere/packages/<packageName>
453
451
  if (parts.length === 4 && parts[0] === 'unisphere' && parts[1] === 'packages') {
454
452
  const subdirectory = parts[2];
455
- if (['local', 'kaltura-corp', 'unisphere', 'kaltura-ai'].includes(subdirectory)) {
453
+ if (['local', 'kaltura-corp', 'unisphere', 'kaltura-ui', 'kaltura-apps', 'kaltura-sdk'].includes(subdirectory)) {
456
454
  return subdirectory;
457
455
  }
458
456
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Migration: Add experience-level documentation
3
+ *
4
+ * Creates a Docusaurus documentation site for the experience,
5
+ * using the experience name from .unisphere config.
6
+ * Skips npm install since the user will run it separately.
7
+ */
8
+ import { Tree } from '@nx/devkit';
9
+ export default function update(tree: Tree): Promise<void>;
10
+ //# sourceMappingURL=add-experience-documentation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-experience-documentation.d.ts","sourceRoot":"","sources":["../../../src/migrations/3-15-0/add-experience-documentation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,IAAI,EAAU,MAAM,YAAY,CAAC;AAG1C,wBAA8B,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAS9D"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ /**
3
+ * Migration: Add experience-level documentation
4
+ *
5
+ * Creates a Docusaurus documentation site for the experience,
6
+ * using the experience name from .unisphere config.
7
+ * Skips npm install since the user will run it separately.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.default = update;
11
+ const devkit_1 = require("@nx/devkit");
12
+ const add_documentation_1 = require("../../generators/add-documentation/add-documentation");
13
+ async function update(tree) {
14
+ devkit_1.logger.info('📖 Creating experience-level documentation site...');
15
+ await (0, add_documentation_1.addDocumentationGenerator)(tree, {
16
+ isExperienceLevel: true,
17
+ skipInstall: true,
18
+ });
19
+ devkit_1.logger.info('✅ Documentation site created successfully.');
20
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Migration: Remove outdated rollup patch file
3
+ *
4
+ * Removes any patches/@nx+rollup+*.patch file if it exists.
5
+ * Catches cases where the 3.6.3 migration missed patches with non-22.1.3 versions.
6
+ * Migration succeeds whether file exists or not.
7
+ */
8
+ import { Tree } from '@nx/devkit';
9
+ export default function update(tree: Tree): Promise<void>;
10
+ //# sourceMappingURL=remove-rollup-patch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remove-rollup-patch.d.ts","sourceRoot":"","sources":["../../../src/migrations/3-16-0/remove-rollup-patch.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,IAAI,EAAU,MAAM,YAAY,CAAC;AAI1C,wBAA8B,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAwB9D"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ /**
3
+ * Migration: Remove outdated rollup patch file
4
+ *
5
+ * Removes any patches/@nx+rollup+*.patch file if it exists.
6
+ * Catches cases where the 3.6.3 migration missed patches with non-22.1.3 versions.
7
+ * Migration succeeds whether file exists or not.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.default = update;
11
+ const devkit_1 = require("@nx/devkit");
12
+ const PATCH_PREFIX = '@nx+rollup+';
13
+ async function update(tree) {
14
+ devkit_1.logger.info('🔄 Removing outdated rollup patch file...');
15
+ const patchesDir = 'patches';
16
+ if (!tree.exists(patchesDir)) {
17
+ devkit_1.logger.info('â„šī¸ No patches directory found');
18
+ return;
19
+ }
20
+ const rollupPatches = tree
21
+ .children(patchesDir)
22
+ .filter((file) => file.startsWith(PATCH_PREFIX));
23
+ if (rollupPatches.length === 0) {
24
+ devkit_1.logger.info('â„šī¸ No rollup patch file found (already removed or never existed)');
25
+ return;
26
+ }
27
+ for (const patch of rollupPatches) {
28
+ const patchPath = `${patchesDir}/${patch}`;
29
+ tree.delete(patchPath);
30
+ devkit_1.logger.info(`✅ Removed ${patchPath}`);
31
+ }
32
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Migration: Add local runtimes setup
3
+ *
4
+ * For each local application (sourceRoot containing '/local/'):
5
+ * 1. Creates setup-local-runtimes.ts with experience name from .unisphere
6
+ * 2. Imports and calls setupLocalRuntimes() in main.tsx
7
+ * 3. Adds LOCAL_RUNTIMES env var to webpack DefinePlugin
8
+ */
9
+ import { Tree } from '@nx/devkit';
10
+ export default function update(tree: Tree): Promise<void>;
11
+ //# sourceMappingURL=add-local-runtimes-setup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-local-runtimes-setup.d.ts","sourceRoot":"","sources":["../../../src/migrations/3-17-0/add-local-runtimes-setup.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,IAAI,EAAiC,MAAM,YAAY,CAAC;AA2GjE,wBAA8B,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CA4E9D"}
@@ -0,0 +1,160 @@
1
+ "use strict";
2
+ /**
3
+ * Migration: Add local runtimes setup
4
+ *
5
+ * For each local application (sourceRoot containing '/local/'):
6
+ * 1. Creates setup-local-runtimes.ts with experience name from .unisphere
7
+ * 2. Imports and calls setupLocalRuntimes() in main.tsx
8
+ * 3. Adds LOCAL_RUNTIMES env var to webpack DefinePlugin
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.default = update;
12
+ const devkit_1 = require("@nx/devkit");
13
+ const path_1 = require("path");
14
+ function generateSetupLocalRuntimes(experienceName) {
15
+ return `export function setupLocalRuntimes() {
16
+ if (!process.env.LOCAL_RUNTIMES) return;
17
+
18
+ const runtimes: Record<string, { token: string; baseEnvName: string }> = {};
19
+ process.env.LOCAL_RUNTIMES.split(',').forEach((entry) => {
20
+ const [name, port] = entry.split('@');
21
+ if (name && port) {
22
+ runtimes[name] = { token: port, baseEnvName: '' };
23
+ }
24
+ });
25
+
26
+ const overrides = {
27
+ baseEnvName: '',
28
+ mode: 'integration',
29
+ options: { verbose: 'inherit' },
30
+ baseEnvScope: { core: 'inherit', presets: 'inherit' },
31
+ runtimes: {
32
+ '${experienceName}': runtimes,
33
+ },
34
+ };
35
+
36
+ (window as any).unisphereRuntimeOverrides = btoa(JSON.stringify(overrides));
37
+ }
38
+ `;
39
+ }
40
+ function addImportToMainTsx(content) {
41
+ const importLine = "import { setupLocalRuntimes } from './setup-local-runtimes';";
42
+ const callLine = 'setupLocalRuntimes();';
43
+ if (content.includes('setupLocalRuntimes')) {
44
+ return content;
45
+ }
46
+ // Find the last import statement
47
+ const lines = content.split('\n');
48
+ let lastImportIndex = -1;
49
+ for (let i = 0; i < lines.length; i++) {
50
+ if (lines[i].startsWith('import ')) {
51
+ lastImportIndex = i;
52
+ }
53
+ }
54
+ if (lastImportIndex === -1) {
55
+ // No imports found, add at the top
56
+ return `${importLine}\n\n${callLine}\n\n${content}`;
57
+ }
58
+ // Insert after the last import
59
+ lines.splice(lastImportIndex + 1, 0, importLine, '', callLine);
60
+ return lines.join('\n');
61
+ }
62
+ function addLocalRuntimesToDefinePlugin(content) {
63
+ const entry = "'process.env.LOCAL_RUNTIMES': JSON.stringify(process.env.LOCAL_RUNTIMES),";
64
+ if (content.includes('LOCAL_RUNTIMES')) {
65
+ return content;
66
+ }
67
+ // Find the DefinePlugin block and add before its closing })
68
+ const definePluginMatch = content.match(/new DefinePlugin\(\{/);
69
+ if (!definePluginMatch || definePluginMatch.index === undefined) {
70
+ return content;
71
+ }
72
+ // Find the closing }) of DefinePlugin
73
+ const startIndex = definePluginMatch.index;
74
+ let braceCount = 0;
75
+ let closingIndex = -1;
76
+ for (let i = startIndex; i < content.length; i++) {
77
+ if (content[i] === '{')
78
+ braceCount++;
79
+ if (content[i] === '}') {
80
+ braceCount--;
81
+ if (braceCount === 0) {
82
+ closingIndex = i;
83
+ break;
84
+ }
85
+ }
86
+ }
87
+ if (closingIndex === -1) {
88
+ return content;
89
+ }
90
+ const indent = ' ';
91
+ // Insert the new entry before the closing }
92
+ return content.substring(0, closingIndex).trimEnd() + '\n' +
93
+ `${indent}${entry}\n` +
94
+ ' ' + content.substring(closingIndex);
95
+ }
96
+ async function update(tree) {
97
+ devkit_1.logger.info('🔄 Adding local runtimes setup to local applications...');
98
+ if (!tree.exists('.unisphere')) {
99
+ devkit_1.logger.warn('âš ī¸ No .unisphere file found, skipping');
100
+ return;
101
+ }
102
+ const config = (0, devkit_1.readJson)(tree, '.unisphere');
103
+ const experienceName = `${config.company}.${config.type}.${config.name}`;
104
+ const applications = config.elements?.applications;
105
+ if (!applications || Object.keys(applications).length === 0) {
106
+ devkit_1.logger.info('â„šī¸ No applications found, skipping');
107
+ return;
108
+ }
109
+ let updatedCount = 0;
110
+ for (const [appName, appConfig] of Object.entries(applications)) {
111
+ const { sourceRoot } = appConfig;
112
+ // Only process local applications
113
+ if (!sourceRoot.includes('/local/')) {
114
+ devkit_1.logger.info(`â„šī¸ ${appName}: Not a local application, skipping`);
115
+ continue;
116
+ }
117
+ const setupFilePath = (0, path_1.join)(sourceRoot, 'src', 'setup-local-runtimes.ts');
118
+ const mainTsxPath = (0, path_1.join)(sourceRoot, 'src', 'main.tsx');
119
+ const webpackPath = (0, path_1.join)(sourceRoot, 'webpack.config.js');
120
+ // 1. Create setup-local-runtimes.ts
121
+ if (tree.exists(setupFilePath)) {
122
+ devkit_1.logger.info(`â„šī¸ ${appName}: setup-local-runtimes.ts already exists, skipping`);
123
+ }
124
+ else {
125
+ tree.write(setupFilePath, generateSetupLocalRuntimes(experienceName));
126
+ devkit_1.logger.info(`✅ ${appName}: Created setup-local-runtimes.ts`);
127
+ }
128
+ // 2. Modify main.tsx
129
+ if (!tree.exists(mainTsxPath)) {
130
+ devkit_1.logger.warn(`âš ī¸ ${appName}: No main.tsx found, skipping`);
131
+ continue;
132
+ }
133
+ const mainContent = tree.read(mainTsxPath, 'utf-8') || '';
134
+ const updatedMain = addImportToMainTsx(mainContent);
135
+ if (updatedMain !== mainContent) {
136
+ tree.write(mainTsxPath, updatedMain);
137
+ devkit_1.logger.info(`✅ ${appName}: Added setupLocalRuntimes import to main.tsx`);
138
+ }
139
+ else {
140
+ devkit_1.logger.info(`â„šī¸ ${appName}: main.tsx already has setupLocalRuntimes`);
141
+ }
142
+ // 3. Modify webpack.config.js
143
+ if (!tree.exists(webpackPath)) {
144
+ devkit_1.logger.warn(`âš ī¸ ${appName}: No webpack.config.js found, skipping`);
145
+ continue;
146
+ }
147
+ const webpackContent = tree.read(webpackPath, 'utf-8') || '';
148
+ const updatedWebpack = addLocalRuntimesToDefinePlugin(webpackContent);
149
+ if (updatedWebpack !== webpackContent) {
150
+ tree.write(webpackPath, updatedWebpack);
151
+ devkit_1.logger.info(`✅ ${appName}: Added LOCAL_RUNTIMES to DefinePlugin`);
152
+ }
153
+ else {
154
+ devkit_1.logger.info(`â„šī¸ ${appName}: webpack.config.js already has LOCAL_RUNTIMES`);
155
+ }
156
+ updatedCount++;
157
+ }
158
+ await (0, devkit_1.formatFiles)(tree);
159
+ devkit_1.logger.info(`\n✅ Done: ${updatedCount} local application(s) updated with local runtimes setup (experience: ${experienceName})`);
160
+ }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Migration: Remove outdated rollup patch file
3
3
  *
4
- * Removes patches/@nx+rollup+22.1.3.patch if it exists.
4
+ * Removes any patches/@nx+rollup+*.patch file if it exists.
5
5
  * Migration succeeds whether file exists or not.
6
6
  */
7
7
  import { Tree } from '@nx/devkit';
@@ -1 +1 @@
1
- {"version":3,"file":"remove-rollup-patch.d.ts","sourceRoot":"","sources":["../../../src/migrations/3-6-3/remove-rollup-patch.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAU,MAAM,YAAY,CAAC;AAE1C,wBAA8B,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAW9D"}
1
+ {"version":3,"file":"remove-rollup-patch.d.ts","sourceRoot":"","sources":["../../../src/migrations/3-6-3/remove-rollup-patch.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAU,MAAM,YAAY,CAAC;AAI1C,wBAA8B,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAwB9D"}
@@ -2,20 +2,30 @@
2
2
  /**
3
3
  * Migration: Remove outdated rollup patch file
4
4
  *
5
- * Removes patches/@nx+rollup+22.1.3.patch if it exists.
5
+ * Removes any patches/@nx+rollup+*.patch file if it exists.
6
6
  * Migration succeeds whether file exists or not.
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.default = update;
10
10
  const devkit_1 = require("@nx/devkit");
11
+ const PATCH_PREFIX = '@nx+rollup+';
11
12
  async function update(tree) {
12
13
  devkit_1.logger.info('🔄 Removing outdated rollup patch file...');
13
- const patchPath = 'patches/@nx+rollup+22.1.3.patch';
14
- if (tree.exists(patchPath)) {
14
+ const patchesDir = 'patches';
15
+ if (!tree.exists(patchesDir)) {
16
+ devkit_1.logger.info('â„šī¸ No patches directory found');
17
+ return;
18
+ }
19
+ const rollupPatches = tree
20
+ .children(patchesDir)
21
+ .filter((file) => file.startsWith(PATCH_PREFIX));
22
+ if (rollupPatches.length === 0) {
23
+ devkit_1.logger.info('â„šī¸ No rollup patch file found (already removed or never existed)');
24
+ return;
25
+ }
26
+ for (const patch of rollupPatches) {
27
+ const patchPath = `${patchesDir}/${patch}`;
15
28
  tree.delete(patchPath);
16
29
  devkit_1.logger.info(`✅ Removed ${patchPath}`);
17
30
  }
18
- else {
19
- devkit_1.logger.info(`â„šī¸ Patch file not found (already removed or never existed)`);
20
- }
21
31
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Migration: Update .gitignore to exclude Claude Code files
3
+ *
4
+ * Adds .claude/* directory to .gitignore to prevent Claude Code files from being committed,
5
+ * while preserving the skills directory (!.claudes/skills).
6
+ */
7
+ import { Tree } from '@nx/devkit';
8
+ export default function update(tree: Tree): Promise<void>;
9
+ //# sourceMappingURL=update-gitignore-claude-exclusions.d.ts.map