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

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 +28 -8
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -6,6 +6,15 @@ import { ToastMessageOptions } from 'primevue/toast';
6
6
  import * as nanoevents from 'nanoevents';
7
7
  import * as tailwindcss_types_config from 'tailwindcss/types/config';
8
8
 
9
+ interface IconifyProviderConfig {
10
+ resources: string[];
11
+ path?: string;
12
+ timeout?: number;
13
+ }
14
+ interface IconifyConfig {
15
+ providers?: Record<string, IconifyProviderConfig | null> | null;
16
+ }
17
+
9
18
  /**
10
19
  * Host-side layout types (Wippy-flavored wrapper around `@wippy-fe/layout`).
11
20
  *
@@ -528,13 +537,16 @@ interface AppCustomization {
528
537
  }
529
538
  /** Page render engine: 'iframe' = legacy srcdoc; 'fragment' = Web Fragment. */
530
539
  type RenderEngine = 'iframe' | 'fragment';
531
- interface HostConfig {
532
- showAdmin?: boolean;
540
+ interface UiOptions {
533
541
  allowSelectModel?: boolean;
542
+ hideSessionSelector?: boolean;
543
+ allowAdditionalTags?: Record<string, string[]>;
544
+ }
545
+ interface HostConfig extends UiOptions {
546
+ showAdmin?: boolean;
534
547
  startNavOpen?: boolean;
535
548
  hideNavBar?: boolean;
536
549
  disableRightPanel?: boolean;
537
- hideSessionSelector?: boolean;
538
550
  additionalNavItems?: Array<PageApi.Page>;
539
551
  chat?: {
540
552
  convertPasteToFile?: {
@@ -558,7 +570,6 @@ interface HostConfig {
558
570
  maxPages?: number;
559
571
  maxSizePerPage?: number;
560
572
  };
561
- allowAdditionalTags?: Record<string, string[]>;
562
573
  session?: {
563
574
  type: 'non-persistent' | 'cookie';
564
575
  };
@@ -636,7 +647,12 @@ interface TanstackConfig {
636
647
  /** Overrides layered over `default` for list / navigation queries. */
637
648
  lists?: TanstackQueryOptions;
638
649
  }
639
- interface AppConfig {
650
+ /** Standard browser import-map entries shared with child document creators. */
651
+ interface ImportMapConfig {
652
+ imports?: Record<string, string>;
653
+ scopes?: Record<string, Record<string, string>>;
654
+ }
655
+ interface AppConfig extends UiOptions {
640
656
  $schema: string;
641
657
  auth: AppAuthConfig;
642
658
  env: AppEnv;
@@ -645,6 +661,8 @@ interface AppConfig {
645
661
  apiRoutes?: ApiRoutesOverride;
646
662
  attention?: AttentionConfig;
647
663
  tanstack?: TanstackConfig;
664
+ iconify?: IconifyConfig | null;
665
+ importMap?: ImportMapConfig | null;
648
666
  themeMode?: ThemeMode;
649
667
  theming: {
650
668
  global?: ThemingScope;
@@ -667,7 +685,7 @@ type ChildAppConfig = Omit<AppConfig, 'hostConfig'> & {
667
685
  */
668
686
  mountRoutes?: Record<string, string>;
669
687
  };
670
- interface AppConfigOverrides {
688
+ interface AppConfigOverrides extends UiOptions {
671
689
  customization?: Partial<AppCustomization>;
672
690
  axiosDefaults?: Partial<AxiosDefaults>;
673
691
  routePrefix?: string;
@@ -1470,8 +1488,10 @@ interface LayoutApi {
1470
1488
  on: (channel: string, handler: (env: BroadcastEnvelope) => void) => () => void;
1471
1489
  }
1472
1490
 
1473
- type KnownTopics = '@history' | '@visibility' | '@message' | '@state-error' | '@layout-change' | '@layout-breakpoint' | '@theme';
1491
+ type KnownTopics = '@history' | '@visibility' | '@message' | '@state-error' | '@layout-change' | '@layout-breakpoint' | '@theme' | '@config';
1474
1492
  type Events = {
1493
+ /** Effective child config changed; the injected config is refreshed before this fires. */
1494
+ '@config': () => void;
1475
1495
  /** Emitted when pages are updated */
1476
1496
  '@history': (data: {
1477
1497
  path: string;
@@ -1488,7 +1508,7 @@ type Events = {
1488
1508
  name: string;
1489
1509
  width: number;
1490
1510
  }) => void;
1491
- /** Forced theme mode changed (broadcast via SetConfig from the host). */
1511
+ /** Accepted theme mode changed in the resolved application config. */
1492
1512
  '@theme': (mode: 'auto' | 'light' | 'dark') => void;
1493
1513
  } & {
1494
1514
  [K in string as K extends KnownTopics ? never : K]: (data: WsMessage) => void;
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.63",
4
4
  "description": "Global type declarations for Wippy iframe proxy (window.getWippyApi, $W, etc.)",
5
5
  "license": "UNLICENSED",
6
6
  "types": "index.d.ts",