@unisphere/nx 3.14.0 â 3.16.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.
- package/dist/generators/add-documentation/USAGE.md +64 -0
- package/dist/generators/add-documentation/add-documentation.d.ts +1 -1
- package/dist/generators/add-documentation/add-documentation.d.ts.map +1 -1
- package/dist/generators/add-documentation/add-documentation.js +80 -41
- package/dist/generators/add-documentation/schema.d.ts +4 -1
- package/dist/generators/add-documentation/schema.json +19 -10
- package/dist/generators/add-documentation/templates/babel.config.js +3 -0
- package/dist/generators/add-documentation/templates/docs/api/overview.md +8 -0
- package/dist/generators/add-documentation/templates/docs/changelog/overview.md +8 -0
- package/dist/generators/add-documentation/templates/docs/getting-started/overview.md +8 -0
- package/dist/generators/add-documentation/templates/docusaurus.config.ts.template +116 -0
- package/dist/generators/add-documentation/templates/package.json.template +57 -0
- package/dist/generators/add-documentation/templates/postcss.config.js +6 -0
- package/dist/generators/add-documentation/templates/sidebars.ts +9 -0
- package/dist/generators/add-documentation/templates/src/components/demo-placeholder-card.tsx +33 -0
- package/dist/generators/add-documentation/templates/src/components/guides/experiences/genie/integrate-genie-guide.tsx +149 -0
- package/dist/generators/add-documentation/templates/src/components/guides/experiences/notifications/notifications-react-guide.tsx +211 -0
- package/dist/generators/add-documentation/templates/src/components/homepage-features/index.tsx +239 -0
- package/dist/generators/add-documentation/templates/src/components/homepage-features/styles.module.css +87 -0
- package/dist/generators/add-documentation/templates/src/components/homepage-modules/index.tsx +76 -0
- package/dist/generators/add-documentation/templates/src/components/homepage-modules/styles.module.css +120 -0
- package/dist/generators/add-documentation/templates/src/components/homepage-start-now/index.tsx +22 -0
- package/dist/generators/add-documentation/templates/src/components/homepage-start-now/styles.module.css +38 -0
- package/dist/generators/add-documentation/templates/src/components/interactive-code-panel.tsx +258 -0
- package/dist/generators/add-documentation/templates/src/components/introductions/developer-toolbox-experience.tsx +84 -0
- package/dist/generators/add-documentation/templates/src/components/introductions/hello-world-experience.tsx +130 -0
- package/dist/generators/add-documentation/templates/src/components/introductions/notificaitons-experience.tsx +635 -0
- package/dist/generators/add-documentation/templates/src/components/introductions/reactions-experience.tsx +117 -0
- package/dist/generators/add-documentation/templates/src/components/ui-shared/introduction-card.tsx +117 -0
- package/dist/generators/add-documentation/templates/src/components/ui-shared/playground-card.tsx +67 -0
- package/dist/generators/add-documentation/templates/src/components/ui-shared/use-color-mode.ts +20 -0
- package/dist/generators/add-documentation/templates/src/components/ui-shared/utils.ts +8 -0
- package/dist/generators/add-documentation/templates/src/css/custom.css +487 -0
- package/dist/generators/add-documentation/templates/src/css/hero.module.css +190 -0
- package/dist/generators/add-documentation/templates/src/pages/index.module.css +59 -0
- package/dist/generators/add-documentation/templates/src/pages/index.tsx.template +191 -0
- package/dist/generators/add-documentation/templates/src/theme/Navbar/Content/index.tsx +145 -0
- package/dist/generators/add-documentation/templates/src/theme/Navbar/Content/styles.module.css +132 -0
- package/dist/generators/add-documentation/templates/src/theme/Navbar/MobileSidebar/Header/index.tsx +45 -0
- package/dist/generators/add-documentation/templates/static/.nojekyll +0 -0
- package/dist/generators/add-documentation/templates/static/docs/overview/unisphere-for-dummies-1.png +0 -0
- package/dist/generators/add-documentation/templates/static/docs/overview/unisphere-for-dummies-2.png +0 -0
- package/dist/generators/add-documentation/templates/static/docs/overview/unisphere-for-dummies-3.png +0 -0
- package/dist/generators/add-documentation/templates/static/docs/overview/unisphere-for-dummies-4.png +0 -0
- package/dist/generators/add-documentation/templates/static/homepage/divider.svg +5 -0
- package/dist/generators/add-documentation/templates/static/homepage/icons/Architecture.svg +4 -0
- package/dist/generators/add-documentation/templates/static/homepage/icons/Cost.svg +4 -0
- package/dist/generators/add-documentation/templates/static/homepage/icons/ExternalLink.svg +3 -0
- package/dist/generators/add-documentation/templates/static/homepage/icons/Infra.svg +8 -0
- package/dist/generators/add-documentation/templates/static/homepage/icons/Redundancies.svg +6 -0
- package/dist/generators/add-documentation/templates/static/homepage/icons/Speed.svg +6 -0
- package/dist/generators/add-documentation/templates/static/homepage/icons/Standards.svg +4 -0
- package/dist/generators/add-documentation/templates/static/homepage/icons/Unified.svg +12 -0
- package/dist/generators/add-documentation/templates/static/homepage/services/custo.jpg +0 -0
- package/dist/generators/add-documentation/templates/static/homepage/services/flame.jpg +0 -0
- package/dist/generators/add-documentation/templates/static/homepage/services/keepr.jpg +0 -0
- package/dist/generators/add-documentation/templates/static/homepage/services/loggi.jpg +0 -0
- package/dist/generators/add-documentation/templates/static/homepage/services/palleto.jpg +0 -0
- package/dist/generators/add-documentation/templates/static/homepage/services/publi.jpg +0 -0
- package/dist/generators/add-documentation/templates/static/homepage/services/tinker.jpg +0 -0
- package/dist/generators/add-documentation/templates/static/img/favicon.ico +0 -0
- package/dist/generators/add-documentation/templates/static/img/logo.svg +6 -0
- package/dist/generators/add-documentation/templates/static/img/logo_big.svg +12 -0
- package/dist/generators/add-documentation/templates/static/img/logo_big_dark.svg +12 -0
- package/dist/generators/add-documentation/templates/static/img/logo_dark.svg +6 -0
- package/dist/generators/add-documentation/templates/static/img/unisphere-social-card.jpg +0 -0
- package/dist/generators/add-documentation/templates/static/llm/INTEGRATE.md +497 -0
- package/dist/generators/add-documentation/templates/static/robots.txt +5 -0
- package/dist/generators/add-documentation/templates/static/team/amirc.jpeg +0 -0
- package/dist/generators/add-documentation/templates/static/team/erans.jpeg +0 -0
- package/dist/generators/add-documentation/templates/static/team/hadass.jpeg +0 -0
- package/dist/generators/add-documentation/templates/static/team/hillelc.jpeg +0 -0
- package/dist/generators/add-documentation/templates/static/team/idoz.jpeg +0 -0
- package/dist/generators/add-documentation/templates/static/team/lianb.jpeg +0 -0
- package/dist/generators/add-documentation/templates/static/team/nirb.jpeg +0 -0
- package/dist/generators/add-documentation/templates/static/team/nivs.jpeg +0 -0
- package/dist/generators/add-documentation/templates/static/team/omric.jpeg +0 -0
- package/dist/generators/add-documentation/templates/static/team/roeed.jpeg +0 -0
- package/dist/generators/add-documentation/templates/static/team/sivana.jpeg +0 -0
- package/dist/generators/add-documentation/templates/static/team/stask.png +0 -0
- package/dist/generators/add-documentation/templates/static/team/tanyal.jpeg +0 -0
- package/dist/generators/add-documentation/templates/static/team/tomere.jpeg +0 -0
- package/dist/generators/add-documentation/templates/static/team/tornikem.jpeg +0 -0
- package/dist/generators/add-documentation/templates/static/team/yairn.jpeg +0 -0
- package/dist/generators/add-documentation/templates/tailwind.config.js +30 -0
- package/dist/generators/add-documentation/templates/tsconfig.json +7 -0
- package/dist/generators/add-package/add-package.d.ts.map +1 -1
- package/dist/generators/add-package/add-package.js +9 -4
- package/dist/generators/add-package/schema.d.ts +1 -1
- package/dist/generators/add-package/schema.json +18 -10
- package/dist/generators/rename-package/rename-package.d.ts.map +1 -1
- package/dist/generators/rename-package/rename-package.js +12 -0
- package/dist/generators/utils.d.ts +1 -1
- package/dist/generators/utils.d.ts.map +1 -1
- package/dist/generators/utils.js +8 -10
- package/dist/migrations/3-15-0/add-experience-documentation.d.ts +10 -0
- package/dist/migrations/3-15-0/add-experience-documentation.d.ts.map +1 -0
- package/dist/migrations/3-15-0/add-experience-documentation.js +20 -0
- package/dist/migrations/3-16-0/remove-rollup-patch.d.ts +10 -0
- package/dist/migrations/3-16-0/remove-rollup-patch.d.ts.map +1 -0
- package/dist/migrations/3-16-0/remove-rollup-patch.js +32 -0
- package/dist/migrations/3-6-3/remove-rollup-patch.d.ts +1 -1
- package/dist/migrations/3-6-3/remove-rollup-patch.d.ts.map +1 -1
- package/dist/migrations/3-6-3/remove-rollup-patch.js +16 -6
- package/dist/migrations/3-7-0/update-gitignore-claude-exclusions.d.ts +9 -0
- package/dist/migrations/3-7-0/update-gitignore-claude-exclusions.d.ts.map +1 -0
- package/dist/migrations/3-7-0/update-gitignore-claude-exclusions.js +68 -0
- package/dist/shared.d.ts +4 -2
- package/dist/shared.d.ts.map +1 -1
- package/dist/shared.js +3 -1
- package/migrations.json +35 -0
- 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
|
+
};
|
|
@@ -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,
|
|
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
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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}`;
|
|
@@ -13,26 +13,34 @@
|
|
|
13
13
|
"scope": {
|
|
14
14
|
"type": "string",
|
|
15
15
|
"description": "The distribution scope of the package",
|
|
16
|
-
"default": "
|
|
16
|
+
"default": "local",
|
|
17
17
|
"x-prompt": {
|
|
18
|
-
"message": "What scope should this package have? If you're unsure, choose
|
|
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": "
|
|
23
|
-
"label": "
|
|
22
|
+
"value": "local",
|
|
23
|
+
"label": "Local â This repository only (not published to npm)"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
|
-
"value": "
|
|
27
|
-
"label": "Kaltura
|
|
26
|
+
"value": "kaltura-corp",
|
|
27
|
+
"label": "Kaltura Corp â For Kaltura repositories only (jfrog scope: @kaltura-corp/...)"
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
|
-
"value": "
|
|
31
|
-
"label": "Unisphere
|
|
30
|
+
"value": "unisphere",
|
|
31
|
+
"label": "Unisphere â For all Unisphere workspace consumers (npm scope: @unisphere/...)"
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
|
-
"value": "kaltura-
|
|
35
|
-
"label": "Kaltura
|
|
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":"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;
|
|
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: '
|
|
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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AAc,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"}
|
package/dist/generators/utils.js
CHANGED
|
@@ -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-
|
|
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-
|
|
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
|
-
|
|
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-
|
|
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
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Migration: Remove outdated rollup patch file
|
|
3
3
|
*
|
|
4
|
-
* Removes patches/@nx+rollup
|
|
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;
|
|
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
|
|
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
|
|
14
|
-
if (tree.exists(
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-gitignore-claude-exclusions.d.ts","sourceRoot":"","sources":["../../../src/migrations/3-7-0/update-gitignore-claude-exclusions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAuB,MAAM,YAAY,CAAC;AAEvD,wBAA8B,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CA8D9D"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Migration: Update .gitignore to exclude Claude Code files
|
|
4
|
+
*
|
|
5
|
+
* Adds .claude/* directory to .gitignore to prevent Claude Code files from being committed,
|
|
6
|
+
* while preserving the skills directory (!.claudes/skills).
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.default = update;
|
|
10
|
+
const devkit_1 = require("@nx/devkit");
|
|
11
|
+
async function update(tree) {
|
|
12
|
+
devkit_1.logger.info('đ Updating .gitignore to exclude Claude Code files...');
|
|
13
|
+
const gitignorePath = '.gitignore';
|
|
14
|
+
// Step 1: Create file if it doesn't exist
|
|
15
|
+
if (!tree.exists(gitignorePath)) {
|
|
16
|
+
devkit_1.logger.warn('â ī¸ .gitignore file not found, creating one');
|
|
17
|
+
tree.write(gitignorePath, '');
|
|
18
|
+
}
|
|
19
|
+
try {
|
|
20
|
+
// Step 2: Read current content
|
|
21
|
+
const currentContent = tree.read(gitignorePath, 'utf-8') || '';
|
|
22
|
+
let updatedContent = currentContent;
|
|
23
|
+
let hasChanges = false;
|
|
24
|
+
// Step 3: Add section comment if needed
|
|
25
|
+
if (!updatedContent.includes('# Claude Code files')) {
|
|
26
|
+
updatedContent = updatedContent.trim() + '\n\n# Claude Code files\n';
|
|
27
|
+
hasChanges = true;
|
|
28
|
+
}
|
|
29
|
+
// Step 4: Check and add .claude/* entry
|
|
30
|
+
const claudePatternRegex = /^\.claude\/\*\s*$/gm;
|
|
31
|
+
if (!claudePatternRegex.test(updatedContent)) {
|
|
32
|
+
if (!updatedContent.includes('.claude/*')) {
|
|
33
|
+
updatedContent += '.claude/*\n';
|
|
34
|
+
devkit_1.logger.info('đ Added .claude/* to .gitignore');
|
|
35
|
+
hasChanges = true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
devkit_1.logger.info('âšī¸ .claude/* already exists in .gitignore');
|
|
40
|
+
}
|
|
41
|
+
// Step 5: Check and add !.claudes/skills entry
|
|
42
|
+
const claudesSkillsRegex = /^!\.claudes\/skills\s*$/gm;
|
|
43
|
+
if (!claudesSkillsRegex.test(updatedContent)) {
|
|
44
|
+
if (!updatedContent.includes('!.claudes/skills')) {
|
|
45
|
+
updatedContent += '!.claudes/skills\n';
|
|
46
|
+
devkit_1.logger.info('đ Added !.claudes/skills to .gitignore');
|
|
47
|
+
hasChanges = true;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
devkit_1.logger.info('âšī¸ !.claudes/skills already exists in .gitignore');
|
|
52
|
+
}
|
|
53
|
+
// Step 6: Write back if there are changes
|
|
54
|
+
if (hasChanges) {
|
|
55
|
+
tree.write(gitignorePath, updatedContent);
|
|
56
|
+
devkit_1.logger.info('â
Successfully updated .gitignore');
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
devkit_1.logger.info('âšī¸ .gitignore already up to date');
|
|
60
|
+
}
|
|
61
|
+
await (0, devkit_1.formatFiles)(tree);
|
|
62
|
+
}
|
|
63
|
+
catch (error) {
|
|
64
|
+
const errorMessage = error instanceof Error ? error.message : 'Unknown error';
|
|
65
|
+
devkit_1.logger.error(`â Failed to update .gitignore: ${errorMessage}`);
|
|
66
|
+
throw new Error(`Failed to update .gitignore: ${errorMessage}`);
|
|
67
|
+
}
|
|
68
|
+
}
|
package/dist/shared.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export declare enum PackagesScopes {
|
|
2
2
|
'unisphere' = "unisphere",
|
|
3
|
-
'kaltura-
|
|
4
|
-
'kaltura-
|
|
3
|
+
'kaltura-corp' = "kaltura-corp",
|
|
4
|
+
'kaltura-ui' = "kaltura-ui",
|
|
5
|
+
'kaltura-apps' = "kaltura-apps",
|
|
6
|
+
'kaltura-sdk' = "kaltura-sdk"
|
|
5
7
|
}
|
|
6
8
|
//# sourceMappingURL=shared.d.ts.map
|
package/dist/shared.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/shared.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACtB,WAAW,cAAc;IACzB,YAAY,eAAe;IAC3B,cAAc,iBAAiB;
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/shared.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACtB,WAAW,cAAc;IACzB,cAAc,iBAAiB;IAC/B,YAAY,eAAe;IAC3B,cAAc,iBAAiB;IAC/B,aAAa,gBAAgB;CAChC"}
|
package/dist/shared.js
CHANGED
|
@@ -4,6 +4,8 @@ exports.PackagesScopes = void 0;
|
|
|
4
4
|
var PackagesScopes;
|
|
5
5
|
(function (PackagesScopes) {
|
|
6
6
|
PackagesScopes["unisphere"] = "unisphere";
|
|
7
|
-
PackagesScopes["kaltura-ai"] = "kaltura-ai";
|
|
8
7
|
PackagesScopes["kaltura-corp"] = "kaltura-corp";
|
|
8
|
+
PackagesScopes["kaltura-ui"] = "kaltura-ui";
|
|
9
|
+
PackagesScopes["kaltura-apps"] = "kaltura-apps";
|
|
10
|
+
PackagesScopes["kaltura-sdk"] = "kaltura-sdk";
|
|
9
11
|
})(PackagesScopes || (exports.PackagesScopes = PackagesScopes = {}));
|
package/migrations.json
CHANGED
|
@@ -314,6 +314,30 @@
|
|
|
314
314
|
"cli": {
|
|
315
315
|
"postUpdateMessage": "â
Outdated rollup patch file removed"
|
|
316
316
|
}
|
|
317
|
+
},
|
|
318
|
+
"3-7-0-update-gitignore-claude-exclusions": {
|
|
319
|
+
"version": "3.7.0",
|
|
320
|
+
"description": "Updates .gitignore to exclude Claude Code files",
|
|
321
|
+
"factory": "./dist/migrations/3-7-0/update-gitignore-claude-exclusions.js",
|
|
322
|
+
"cli": {
|
|
323
|
+
"postUpdateMessage": "â
.gitignore updated to exclude Claude Code files"
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
"3-15-0-add-experience-documentation": {
|
|
327
|
+
"version": "3.15.0",
|
|
328
|
+
"description": "Creates experience-level documentation site (Docusaurus)",
|
|
329
|
+
"factory": "./dist/migrations/3-15-0/add-experience-documentation.js",
|
|
330
|
+
"cli": {
|
|
331
|
+
"postUpdateMessage": "â
Documentation site created. Run `cd unisphere/documentation/<name> && npm install` to install dependencies."
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
"3-16-0-remove-rollup-patch": {
|
|
335
|
+
"version": "3.16.0",
|
|
336
|
+
"description": "Removes outdated @nx/rollup patch file (any version)",
|
|
337
|
+
"factory": "./dist/migrations/3-16-0/remove-rollup-patch.js",
|
|
338
|
+
"cli": {
|
|
339
|
+
"postUpdateMessage": "â
Outdated rollup patch file removed"
|
|
340
|
+
}
|
|
317
341
|
}
|
|
318
342
|
},
|
|
319
343
|
"packageJsonUpdates": {
|
|
@@ -533,6 +557,17 @@
|
|
|
533
557
|
"alwaysAddToPackageJson": false
|
|
534
558
|
}
|
|
535
559
|
}
|
|
560
|
+
},
|
|
561
|
+
"3.15.0": {
|
|
562
|
+
"version": "3.15.0",
|
|
563
|
+
"cli": "nx",
|
|
564
|
+
"postUpdateMessage": "đ Migration to @unisphere/nx 3.15.0 completed successfully!",
|
|
565
|
+
"packages": {
|
|
566
|
+
"@unisphere/cli": {
|
|
567
|
+
"version": "3.0.5",
|
|
568
|
+
"alwaysAddToPackageJson": false
|
|
569
|
+
}
|
|
570
|
+
}
|
|
536
571
|
}
|
|
537
572
|
}
|
|
538
573
|
}
|