@shipfox/client-features 4.0.0 → 6.0.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.
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +80 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +2 -1
- package/dist/runtime.js.map +1 -1
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +16 -12
- package/src/index.test.ts +31 -0
- package/src/index.ts +6 -0
- package/src/runtime.tsx +2 -5
- package/tsconfig.build.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipfox/client-features",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "6.0.1",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/ShipfoxHQ/shipfox.git",
|
|
@@ -10,9 +10,6 @@
|
|
|
10
10
|
"type": "module",
|
|
11
11
|
"main": "dist/index.js",
|
|
12
12
|
"types": "dist/index.d.ts",
|
|
13
|
-
"imports": {
|
|
14
|
-
"#*": "./dist/*"
|
|
15
|
-
},
|
|
16
13
|
"exports": {
|
|
17
14
|
".": {
|
|
18
15
|
"types": "./dist/index.d.ts",
|
|
@@ -25,19 +22,26 @@
|
|
|
25
22
|
},
|
|
26
23
|
"dependencies": {
|
|
27
24
|
"@swc/helpers": "^0.5.17",
|
|
28
|
-
"@shipfox/client-shell": "
|
|
25
|
+
"@shipfox/client-shell": "6.0.1",
|
|
26
|
+
"@shipfox/client-onboarding": "6.0.1"
|
|
29
27
|
},
|
|
30
28
|
"peerDependencies": {
|
|
31
29
|
"@tanstack/react-router": "^1.170.16",
|
|
32
30
|
"react": "^19.0.0",
|
|
33
31
|
"react-dom": "^19.0.0",
|
|
34
|
-
"@shipfox/client-
|
|
35
|
-
"@shipfox/client-
|
|
36
|
-
"@shipfox/client-
|
|
37
|
-
"@shipfox/client-
|
|
38
|
-
"@shipfox/client-
|
|
39
|
-
"@shipfox/client-
|
|
40
|
-
"@shipfox/client-
|
|
32
|
+
"@shipfox/client-agent": "6.0.1",
|
|
33
|
+
"@shipfox/client-auth": "6.0.1",
|
|
34
|
+
"@shipfox/client-integrations": "6.0.1",
|
|
35
|
+
"@shipfox/client-invitations": "6.0.1",
|
|
36
|
+
"@shipfox/client-projects": "6.0.1",
|
|
37
|
+
"@shipfox/client-secrets": "6.0.1",
|
|
38
|
+
"@shipfox/client-runners": "6.0.1",
|
|
39
|
+
"@shipfox/client-triggers": "6.0.1",
|
|
40
|
+
"@shipfox/client-workflows": "6.0.1",
|
|
41
|
+
"@shipfox/client-workspace-settings": "6.0.1"
|
|
42
|
+
},
|
|
43
|
+
"imports": {
|
|
44
|
+
"#*": "./dist/*"
|
|
41
45
|
},
|
|
42
46
|
"scripts": {
|
|
43
47
|
"build": "shipfox-swc",
|
package/src/index.test.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import {composeClientFeatures} from '@shipfox/client-shell/runtime';
|
|
1
2
|
import {describe, expect, it} from '@shipfox/vitest/vi';
|
|
2
3
|
import manifest from '../package.json' with {type: 'json'};
|
|
3
4
|
import {defaultFeatures} from './index.js';
|
|
@@ -13,6 +14,9 @@ describe('defaultFeatures', () => {
|
|
|
13
14
|
'shipfox.projects',
|
|
14
15
|
'shipfox.workflows',
|
|
15
16
|
'shipfox.agent',
|
|
17
|
+
'shipfox.runners',
|
|
18
|
+
'shipfox.secrets',
|
|
19
|
+
'shipfox.triggers',
|
|
16
20
|
'shipfox.workspace-settings',
|
|
17
21
|
]);
|
|
18
22
|
});
|
|
@@ -31,4 +35,31 @@ describe('defaultFeatures', () => {
|
|
|
31
35
|
|
|
32
36
|
expect([...routePackageNames].sort()).toEqual(peerPackageNames.sort());
|
|
33
37
|
});
|
|
38
|
+
|
|
39
|
+
it('composes each navigation and settings contribution exactly once', () => {
|
|
40
|
+
const composition = composeClientFeatures(defaultFeatures());
|
|
41
|
+
|
|
42
|
+
expect(composition.navigation.map(({id}) => id)).toEqual([
|
|
43
|
+
'nav.projects',
|
|
44
|
+
'nav.runs',
|
|
45
|
+
'nav.workflows',
|
|
46
|
+
'nav.settings',
|
|
47
|
+
]);
|
|
48
|
+
expect(composition.settingsSections.map(({id}) => id)).toEqual([
|
|
49
|
+
'settings.members',
|
|
50
|
+
'settings.runners',
|
|
51
|
+
'settings.provisioners',
|
|
52
|
+
'settings.agents',
|
|
53
|
+
'settings.secrets',
|
|
54
|
+
'settings.variables',
|
|
55
|
+
'settings.integrations',
|
|
56
|
+
'settings.events',
|
|
57
|
+
]);
|
|
58
|
+
expect(new Set(composition.navigation.map(({id}) => id)).size).toBe(
|
|
59
|
+
composition.navigation.length,
|
|
60
|
+
);
|
|
61
|
+
expect(new Set(composition.settingsSections.map(({id}) => id)).size).toBe(
|
|
62
|
+
composition.settingsSections.length,
|
|
63
|
+
);
|
|
64
|
+
});
|
|
34
65
|
});
|
package/src/index.ts
CHANGED
|
@@ -3,7 +3,10 @@ import {authFeature} from '@shipfox/client-auth/feature';
|
|
|
3
3
|
import {integrationsFeature} from '@shipfox/client-integrations/feature';
|
|
4
4
|
import {invitationsFeature} from '@shipfox/client-invitations/feature';
|
|
5
5
|
import {projectsFeature} from '@shipfox/client-projects/feature';
|
|
6
|
+
import {runnersFeature} from '@shipfox/client-runners/feature';
|
|
7
|
+
import {secretsFeature} from '@shipfox/client-secrets/feature';
|
|
6
8
|
import type {ClientFeature} from '@shipfox/client-shell';
|
|
9
|
+
import {triggersFeature} from '@shipfox/client-triggers/feature';
|
|
7
10
|
import {workflowsFeature} from '@shipfox/client-workflows/feature';
|
|
8
11
|
import {workspaceSettingsFeature} from '@shipfox/client-workspace-settings/feature';
|
|
9
12
|
|
|
@@ -15,6 +18,9 @@ export function defaultFeatures(): ClientFeature[] {
|
|
|
15
18
|
projectsFeature,
|
|
16
19
|
workflowsFeature,
|
|
17
20
|
agentFeature,
|
|
21
|
+
runnersFeature,
|
|
22
|
+
secretsFeature,
|
|
23
|
+
triggersFeature,
|
|
18
24
|
workspaceSettingsFeature,
|
|
19
25
|
];
|
|
20
26
|
}
|
package/src/runtime.tsx
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
ProjectBreadcrumb,
|
|
4
|
-
ProjectLayoutGuard,
|
|
5
|
-
} from '@shipfox/client-projects';
|
|
1
|
+
import {loadWorkspaceSetupRoute} from '@shipfox/client-onboarding';
|
|
2
|
+
import {ProjectBreadcrumb, ProjectLayoutGuard} from '@shipfox/client-projects';
|
|
6
3
|
import type {ChromeSlots, WorkspaceSetupGate} from '@shipfox/client-shell/runtime';
|
|
7
4
|
|
|
8
5
|
export const defaultChrome: ChromeSlots = {ProjectBreadcrumb, ProjectLayoutGuard};
|