@shipfox/client-triggers 4.0.0 → 5.0.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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +11 -0
- package/dist/feature.d.ts +16 -0
- package/dist/feature.d.ts.map +1 -0
- package/dist/feature.js +22 -0
- package/dist/feature.js.map +1 -0
- package/dist/routes/events-settings.d.ts +8 -0
- package/dist/routes/events-settings.d.ts.map +1 -0
- package/dist/routes/events-settings.js +37 -0
- package/dist/routes/events-settings.js.map +1 -0
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +12 -3
- package/src/feature.ts +15 -0
- package/src/routes/events-settings.tsx +30 -0
- package/tsconfig.build.tsbuildinfo +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
$ shipfox-swc
|
|
2
|
-
Successfully compiled:
|
|
2
|
+
Successfully compiled: 16 files with swc (469.63ms)
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @shipfox/client-triggers
|
|
2
2
|
|
|
3
|
+
## 5.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f1d6465: Moves workspace-settings and project-workflow route ownership from centralized packages into each feature's own route module, so a feature package declares and ships its own settings pages.
|
|
8
|
+
- Updated dependencies [8d8cdef]
|
|
9
|
+
- Updated dependencies [ffd727b]
|
|
10
|
+
- Updated dependencies [f1d6465]
|
|
11
|
+
- @shipfox/client-integrations@5.0.0
|
|
12
|
+
- @shipfox/client-shell@5.0.0
|
|
13
|
+
|
|
3
14
|
## 4.0.0
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const triggersFeature: {
|
|
2
|
+
readonly id: "shipfox.triggers";
|
|
3
|
+
readonly routes: readonly [{
|
|
4
|
+
readonly path: "/workspaces/$wid/settings/events";
|
|
5
|
+
readonly parent: "workspaceSettings";
|
|
6
|
+
readonly impl: "@shipfox/client-triggers/routes/events-settings";
|
|
7
|
+
}];
|
|
8
|
+
readonly settingsSections: readonly [{
|
|
9
|
+
readonly id: "settings.events";
|
|
10
|
+
readonly pathSegment: "events";
|
|
11
|
+
readonly label: "Events";
|
|
12
|
+
readonly icon: "pulseLine";
|
|
13
|
+
readonly order: 800;
|
|
14
|
+
}];
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=feature.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature.d.ts","sourceRoot":"","sources":["../src/feature.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;CAY1B,CAAC"}
|
package/dist/feature.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineClientFeature } from '@shipfox/client-shell';
|
|
2
|
+
export const triggersFeature = defineClientFeature({
|
|
3
|
+
id: 'shipfox.triggers',
|
|
4
|
+
routes: [
|
|
5
|
+
{
|
|
6
|
+
path: '/workspaces/$wid/settings/events',
|
|
7
|
+
parent: 'workspaceSettings',
|
|
8
|
+
impl: '@shipfox/client-triggers/routes/events-settings'
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
settingsSections: [
|
|
12
|
+
{
|
|
13
|
+
id: 'settings.events',
|
|
14
|
+
pathSegment: 'events',
|
|
15
|
+
label: 'Events',
|
|
16
|
+
icon: 'pulseLine',
|
|
17
|
+
order: 800
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/feature.ts"],"sourcesContent":["import {defineClientFeature} from '@shipfox/client-shell';\n\nexport const triggersFeature = defineClientFeature({\n id: 'shipfox.triggers',\n routes: [\n {\n path: '/workspaces/$wid/settings/events',\n parent: 'workspaceSettings',\n impl: '@shipfox/client-triggers/routes/events-settings',\n },\n ],\n settingsSections: [\n {id: 'settings.events', pathSegment: 'events', label: 'Events', icon: 'pulseLine', order: 800},\n ],\n});\n"],"names":["defineClientFeature","triggersFeature","id","routes","path","parent","impl","settingsSections","pathSegment","label","icon","order"],"mappings":"AAAA,SAAQA,mBAAmB,QAAO,wBAAwB;AAE1D,OAAO,MAAMC,kBAAkBD,oBAAoB;IACjDE,IAAI;IACJC,QAAQ;QACN;YACEC,MAAM;YACNC,QAAQ;YACRC,MAAM;QACR;KACD;IACDC,kBAAkB;QAChB;YAACL,IAAI;YAAmBM,aAAa;YAAUC,OAAO;YAAUC,MAAM;YAAaC,OAAO;QAAG;KAC9F;AACH,GAAG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type TriggerEventsSearch } from '#search.js';
|
|
2
|
+
declare function validateSearch(search: Record<string, unknown>): TriggerEventsSearch;
|
|
3
|
+
declare const _default: import("@shipfox/client-shell/runtime").RouteImpl<{
|
|
4
|
+
readonly validateSearch: typeof validateSearch;
|
|
5
|
+
readonly component: () => import("react").JSX.Element;
|
|
6
|
+
}>;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=events-settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events-settings.d.ts","sourceRoot":"","sources":["../../src/routes/events-settings.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAC,KAAK,mBAAmB,EAA8B,MAAM,YAAY,CAAC;AAQjF,iBAAS,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,mBAAmB,CAE5E;;;;;AAED,wBAaG"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { defineRoute, useActiveWorkspace } from '@shipfox/client-shell/runtime';
|
|
3
|
+
import { getRouteApi } from '@tanstack/react-router';
|
|
4
|
+
import { EventsPage } from '#pages/events-page.js';
|
|
5
|
+
import { validateTriggerEventsSearch } from '#search.js';
|
|
6
|
+
const routeApi = getRouteApi('/workspaces/$wid/settings/events');
|
|
7
|
+
// Wrapped (not just re-typed) so the search validator's own type is portable outside this
|
|
8
|
+
// package: TanStack Router's `const` generics capture the exact declared function, and a
|
|
9
|
+
// route module consumed from another package (apps/client's composed router) can't print a
|
|
10
|
+
// type that only resolves through this package's internal `#search.js` path.
|
|
11
|
+
function validateSearch(search) {
|
|
12
|
+
return validateTriggerEventsSearch(search);
|
|
13
|
+
}
|
|
14
|
+
export default defineRoute({
|
|
15
|
+
validateSearch,
|
|
16
|
+
component: ()=>{
|
|
17
|
+
const workspace = useActiveWorkspace();
|
|
18
|
+
const search = routeApi.useSearch();
|
|
19
|
+
const navigate = routeApi.useNavigate();
|
|
20
|
+
const onFiltersChange = (patch)=>{
|
|
21
|
+
void navigate({
|
|
22
|
+
search: {
|
|
23
|
+
...search,
|
|
24
|
+
...patch
|
|
25
|
+
},
|
|
26
|
+
replace: true
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
return /*#__PURE__*/ _jsx(EventsPage, {
|
|
30
|
+
workspaceId: workspace.id,
|
|
31
|
+
filters: search,
|
|
32
|
+
onFiltersChange: onFiltersChange
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=events-settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/routes/events-settings.tsx"],"sourcesContent":["import {defineRoute, useActiveWorkspace} from '@shipfox/client-shell/runtime';\nimport {getRouteApi} from '@tanstack/react-router';\nimport type {TriggerEventFilters} from '#hooks/api/trigger-events.js';\nimport {EventsPage} from '#pages/events-page.js';\nimport {type TriggerEventsSearch, validateTriggerEventsSearch} from '#search.js';\n\nconst routeApi = getRouteApi('/workspaces/$wid/settings/events');\n\n// Wrapped (not just re-typed) so the search validator's own type is portable outside this\n// package: TanStack Router's `const` generics capture the exact declared function, and a\n// route module consumed from another package (apps/client's composed router) can't print a\n// type that only resolves through this package's internal `#search.js` path.\nfunction validateSearch(search: Record<string, unknown>): TriggerEventsSearch {\n return validateTriggerEventsSearch(search);\n}\n\nexport default defineRoute({\n validateSearch,\n component: () => {\n const workspace = useActiveWorkspace();\n const search = routeApi.useSearch();\n const navigate = routeApi.useNavigate();\n const onFiltersChange = (patch: Partial<TriggerEventFilters>) => {\n void navigate({search: {...search, ...patch}, replace: true});\n };\n return (\n <EventsPage workspaceId={workspace.id} filters={search} onFiltersChange={onFiltersChange} />\n );\n },\n});\n"],"names":["defineRoute","useActiveWorkspace","getRouteApi","EventsPage","validateTriggerEventsSearch","routeApi","validateSearch","search","component","workspace","useSearch","navigate","useNavigate","onFiltersChange","patch","replace","workspaceId","id","filters"],"mappings":";AAAA,SAAQA,WAAW,EAAEC,kBAAkB,QAAO,gCAAgC;AAC9E,SAAQC,WAAW,QAAO,yBAAyB;AAEnD,SAAQC,UAAU,QAAO,wBAAwB;AACjD,SAAkCC,2BAA2B,QAAO,aAAa;AAEjF,MAAMC,WAAWH,YAAY;AAE7B,0FAA0F;AAC1F,yFAAyF;AACzF,2FAA2F;AAC3F,6EAA6E;AAC7E,SAASI,eAAeC,MAA+B;IACrD,OAAOH,4BAA4BG;AACrC;AAEA,eAAeP,YAAY;IACzBM;IACAE,WAAW;QACT,MAAMC,YAAYR;QAClB,MAAMM,SAASF,SAASK,SAAS;QACjC,MAAMC,WAAWN,SAASO,WAAW;QACrC,MAAMC,kBAAkB,CAACC;YACvB,KAAKH,SAAS;gBAACJ,QAAQ;oBAAC,GAAGA,MAAM;oBAAE,GAAGO,KAAK;gBAAA;gBAAGC,SAAS;YAAI;QAC7D;QACA,qBACE,KAACZ;YAAWa,aAAaP,UAAUQ,EAAE;YAAEC,SAASX;YAAQM,iBAAiBA;;IAE7E;AACF,GAAG"}
|