@wippy-fe/types-global-proxy 0.0.61 → 0.0.62

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 (2) hide show
  1. package/index.d.ts +11 -7
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -528,13 +528,16 @@ interface AppCustomization {
528
528
  }
529
529
  /** Page render engine: 'iframe' = legacy srcdoc; 'fragment' = Web Fragment. */
530
530
  type RenderEngine = 'iframe' | 'fragment';
531
- interface HostConfig {
532
- showAdmin?: boolean;
531
+ interface UiOptions {
533
532
  allowSelectModel?: boolean;
533
+ hideSessionSelector?: boolean;
534
+ allowAdditionalTags?: Record<string, string[]>;
535
+ }
536
+ interface HostConfig extends UiOptions {
537
+ showAdmin?: boolean;
534
538
  startNavOpen?: boolean;
535
539
  hideNavBar?: boolean;
536
540
  disableRightPanel?: boolean;
537
- hideSessionSelector?: boolean;
538
541
  additionalNavItems?: Array<PageApi.Page>;
539
542
  chat?: {
540
543
  convertPasteToFile?: {
@@ -558,7 +561,6 @@ interface HostConfig {
558
561
  maxPages?: number;
559
562
  maxSizePerPage?: number;
560
563
  };
561
- allowAdditionalTags?: Record<string, string[]>;
562
564
  session?: {
563
565
  type: 'non-persistent' | 'cookie';
564
566
  };
@@ -636,7 +638,7 @@ interface TanstackConfig {
636
638
  /** Overrides layered over `default` for list / navigation queries. */
637
639
  lists?: TanstackQueryOptions;
638
640
  }
639
- interface AppConfig {
641
+ interface AppConfig extends UiOptions {
640
642
  $schema: string;
641
643
  auth: AppAuthConfig;
642
644
  env: AppEnv;
@@ -667,7 +669,7 @@ type ChildAppConfig = Omit<AppConfig, 'hostConfig'> & {
667
669
  */
668
670
  mountRoutes?: Record<string, string>;
669
671
  };
670
- interface AppConfigOverrides {
672
+ interface AppConfigOverrides extends UiOptions {
671
673
  customization?: Partial<AppCustomization>;
672
674
  axiosDefaults?: Partial<AxiosDefaults>;
673
675
  routePrefix?: string;
@@ -1470,8 +1472,10 @@ interface LayoutApi {
1470
1472
  on: (channel: string, handler: (env: BroadcastEnvelope) => void) => () => void;
1471
1473
  }
1472
1474
 
1473
- type KnownTopics = '@history' | '@visibility' | '@message' | '@state-error' | '@layout-change' | '@layout-breakpoint' | '@theme';
1475
+ type KnownTopics = '@history' | '@visibility' | '@message' | '@state-error' | '@layout-change' | '@layout-breakpoint' | '@theme' | '@config';
1474
1476
  type Events = {
1477
+ /** Effective child config changed; the injected config is refreshed before this fires. */
1478
+ '@config': () => void;
1475
1479
  /** Emitted when pages are updated */
1476
1480
  '@history': (data: {
1477
1481
  path: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wippy-fe/types-global-proxy",
3
- "version": "0.0.61",
3
+ "version": "0.0.62",
4
4
  "description": "Global type declarations for Wippy iframe proxy (window.getWippyApi, $W, etc.)",
5
5
  "license": "UNLICENSED",
6
6
  "types": "index.d.ts",