@pilotiq/pilotiq 0.7.1 → 0.7.2
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 +2 -2
- package/CHANGELOG.md +12 -0
- package/dist/vite.js +6 -6
- package/package.json +1 -1
- package/src/vite.ts +6 -6
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
> @pilotiq/pilotiq@0.7.
|
|
2
|
+
> @pilotiq/pilotiq@0.7.2 build /home/runner/work/pilotiq/pilotiq/packages/pilotiq
|
|
3
3
|
> tsc -p tsconfig.build.json && pnpm run copy-assets
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @pilotiq/pilotiq@0.7.
|
|
6
|
+
> @pilotiq/pilotiq@0.7.2 copy-assets /home/runner/work/pilotiq/pilotiq/packages/pilotiq
|
|
7
7
|
> mkdir -p dist/styles && cp -R src/styles/*.css dist/styles/
|
|
8
8
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @pilotiq/pilotiq
|
|
2
2
|
|
|
3
|
+
## 0.7.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f18898f: Tighten auto-generated page-stub emissions so consumers' `tsc --noEmit` passes under `noUncheckedIndexedAccess` + `exactOptionalPropertyTypes`:
|
|
8
|
+
|
|
9
|
+
- All 10 depth-1 and 4 depth-2 route stubs now emit `basePath: parts[0]!` (was `parts[0]`, typed as `string | undefined`, which Vike's `RouteSync.routeParams: Record<string, string>` rejects).
|
|
10
|
+
- `_clusterOffset.ts` emits `slugs.includes(parts[1]!)` for the same reason.
|
|
11
|
+
- `+Layout.tsx` passes `currentPath={currentPath ?? ''}` to `<AppShell>` so `exactOptionalPropertyTypes` accepts the prop.
|
|
12
|
+
|
|
13
|
+
The non-null assertions are safe — each route guards on `parts.length` before reaching the return; `_clusterOffset` checks `parts.length < 2` before reading `parts[1]`. Pure emission tightening — no runtime behavior change.
|
|
14
|
+
|
|
3
15
|
## 0.7.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/vite.js
CHANGED
|
@@ -355,7 +355,7 @@ export const route: RouteSync = (pageContext) => {
|
|
|
355
355
|
if (parts[5 + off] === 'edit') return false
|
|
356
356
|
if (import.meta.env.SSR && !PilotiqRegistry.findByPath('/' + parts[0])) return false
|
|
357
357
|
return { routeParams: {
|
|
358
|
-
basePath: parts[0]
|
|
358
|
+
basePath: parts[0]!,
|
|
359
359
|
slug: parts[1 + off]!,
|
|
360
360
|
id: parts[2 + off]!,
|
|
361
361
|
relationship: parts[3 + off]!,
|
|
@@ -377,7 +377,7 @@ export const route: RouteSync = (pageContext) => {
|
|
|
377
377
|
if (parts.length !== 7 + off || parts[6 + off] !== 'create') return false
|
|
378
378
|
if (import.meta.env.SSR && !PilotiqRegistry.findByPath('/' + parts[0])) return false
|
|
379
379
|
return { routeParams: {
|
|
380
|
-
basePath: parts[0]
|
|
380
|
+
basePath: parts[0]!,
|
|
381
381
|
slug: parts[1 + off]!,
|
|
382
382
|
id: parts[2 + off]!,
|
|
383
383
|
relationship: parts[3 + off]!,
|
|
@@ -400,7 +400,7 @@ export const route: RouteSync = (pageContext) => {
|
|
|
400
400
|
if (parts[6 + off] === 'create') return false
|
|
401
401
|
if (import.meta.env.SSR && !PilotiqRegistry.findByPath('/' + parts[0])) return false
|
|
402
402
|
return { routeParams: {
|
|
403
|
-
basePath: parts[0]
|
|
403
|
+
basePath: parts[0]!,
|
|
404
404
|
slug: parts[1 + off]!,
|
|
405
405
|
id: parts[2 + off]!,
|
|
406
406
|
relationship: parts[3 + off]!,
|
|
@@ -423,7 +423,7 @@ export const route: RouteSync = (pageContext) => {
|
|
|
423
423
|
if (parts.length !== 8 + off || parts[7 + off] !== 'edit') return false
|
|
424
424
|
if (import.meta.env.SSR && !PilotiqRegistry.findByPath('/' + parts[0])) return false
|
|
425
425
|
return { routeParams: {
|
|
426
|
-
basePath: parts[0]
|
|
426
|
+
basePath: parts[0]!,
|
|
427
427
|
slug: parts[1 + off]!,
|
|
428
428
|
id: parts[2 + off]!,
|
|
429
429
|
relationship: parts[3 + off]!,
|
|
@@ -534,7 +534,7 @@ import { clusterSlugsByBasePath } from './_components.js'
|
|
|
534
534
|
export function clusterOffset(parts: string[]): number {
|
|
535
535
|
if (parts.length < 2) return 0
|
|
536
536
|
const slugs = clusterSlugsByBasePath['/' + parts[0]]
|
|
537
|
-
return slugs && slugs.includes(parts[1]) ? 1 : 0
|
|
537
|
+
return slugs && slugs.includes(parts[1]!) ? 1 : 0
|
|
538
538
|
}
|
|
539
539
|
`);
|
|
540
540
|
const lines = [
|
|
@@ -636,7 +636,7 @@ export default function PilotiqLayout({ children }: { children: ReactNode }) {
|
|
|
636
636
|
<NavigateProvider navigate={navigate}>
|
|
637
637
|
<ThemeProvider theme={panel.theme}>
|
|
638
638
|
{themeCss && <style dangerouslySetInnerHTML={{ __html: themeCss }} />}
|
|
639
|
-
<AppShell panel={panel} basePath={basePath} layout={layout} notifications={notifications} currentPath={currentPath} componentRegistry={componentRegistry as any} rightPanelRegistry={rightPanelRegistry as any} layoutProviderRegistry={layoutProviderRegistry as any}>
|
|
639
|
+
<AppShell panel={panel} basePath={basePath} layout={layout} notifications={notifications} currentPath={currentPath ?? ''} componentRegistry={componentRegistry as any} rightPanelRegistry={rightPanelRegistry as any} layoutProviderRegistry={layoutProviderRegistry as any}>
|
|
640
640
|
{children}
|
|
641
641
|
</AppShell>
|
|
642
642
|
</ThemeProvider>
|
package/package.json
CHANGED
package/src/vite.ts
CHANGED
|
@@ -390,7 +390,7 @@ export const route: RouteSync = (pageContext) => {
|
|
|
390
390
|
if (parts[5 + off] === 'edit') return false
|
|
391
391
|
if (import.meta.env.SSR && !PilotiqRegistry.findByPath('/' + parts[0])) return false
|
|
392
392
|
return { routeParams: {
|
|
393
|
-
basePath: parts[0]
|
|
393
|
+
basePath: parts[0]!,
|
|
394
394
|
slug: parts[1 + off]!,
|
|
395
395
|
id: parts[2 + off]!,
|
|
396
396
|
relationship: parts[3 + off]!,
|
|
@@ -413,7 +413,7 @@ export const route: RouteSync = (pageContext) => {
|
|
|
413
413
|
if (parts.length !== 7 + off || parts[6 + off] !== 'create') return false
|
|
414
414
|
if (import.meta.env.SSR && !PilotiqRegistry.findByPath('/' + parts[0])) return false
|
|
415
415
|
return { routeParams: {
|
|
416
|
-
basePath: parts[0]
|
|
416
|
+
basePath: parts[0]!,
|
|
417
417
|
slug: parts[1 + off]!,
|
|
418
418
|
id: parts[2 + off]!,
|
|
419
419
|
relationship: parts[3 + off]!,
|
|
@@ -437,7 +437,7 @@ export const route: RouteSync = (pageContext) => {
|
|
|
437
437
|
if (parts[6 + off] === 'create') return false
|
|
438
438
|
if (import.meta.env.SSR && !PilotiqRegistry.findByPath('/' + parts[0])) return false
|
|
439
439
|
return { routeParams: {
|
|
440
|
-
basePath: parts[0]
|
|
440
|
+
basePath: parts[0]!,
|
|
441
441
|
slug: parts[1 + off]!,
|
|
442
442
|
id: parts[2 + off]!,
|
|
443
443
|
relationship: parts[3 + off]!,
|
|
@@ -461,7 +461,7 @@ export const route: RouteSync = (pageContext) => {
|
|
|
461
461
|
if (parts.length !== 8 + off || parts[7 + off] !== 'edit') return false
|
|
462
462
|
if (import.meta.env.SSR && !PilotiqRegistry.findByPath('/' + parts[0])) return false
|
|
463
463
|
return { routeParams: {
|
|
464
|
-
basePath: parts[0]
|
|
464
|
+
basePath: parts[0]!,
|
|
465
465
|
slug: parts[1 + off]!,
|
|
466
466
|
id: parts[2 + off]!,
|
|
467
467
|
relationship: parts[3 + off]!,
|
|
@@ -592,7 +592,7 @@ import { clusterSlugsByBasePath } from './_components.js'
|
|
|
592
592
|
export function clusterOffset(parts: string[]): number {
|
|
593
593
|
if (parts.length < 2) return 0
|
|
594
594
|
const slugs = clusterSlugsByBasePath['/' + parts[0]]
|
|
595
|
-
return slugs && slugs.includes(parts[1]) ? 1 : 0
|
|
595
|
+
return slugs && slugs.includes(parts[1]!) ? 1 : 0
|
|
596
596
|
}
|
|
597
597
|
`)
|
|
598
598
|
|
|
@@ -698,7 +698,7 @@ export default function PilotiqLayout({ children }: { children: ReactNode }) {
|
|
|
698
698
|
<NavigateProvider navigate={navigate}>
|
|
699
699
|
<ThemeProvider theme={panel.theme}>
|
|
700
700
|
{themeCss && <style dangerouslySetInnerHTML={{ __html: themeCss }} />}
|
|
701
|
-
<AppShell panel={panel} basePath={basePath} layout={layout} notifications={notifications} currentPath={currentPath} componentRegistry={componentRegistry as any} rightPanelRegistry={rightPanelRegistry as any} layoutProviderRegistry={layoutProviderRegistry as any}>
|
|
701
|
+
<AppShell panel={panel} basePath={basePath} layout={layout} notifications={notifications} currentPath={currentPath ?? ''} componentRegistry={componentRegistry as any} rightPanelRegistry={rightPanelRegistry as any} layoutProviderRegistry={layoutProviderRegistry as any}>
|
|
702
702
|
{children}
|
|
703
703
|
</AppShell>
|
|
704
704
|
</ThemeProvider>
|