@ethlete/query-devtools 1.0.0-next.8 → 1.0.0-next.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethlete/query-devtools",
3
- "version": "1.0.0-next.8",
3
+ "version": "1.0.0-next.9",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
@@ -1,7 +1,7 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { Signal, WritableSignal, OnInit } from '@angular/core';
3
3
  import * as _ethlete_query from '@ethlete/query';
4
- import { JsonPath, QueryDevtoolsOverridesRecorder, QueryRefreshCause, QueryRepositoryEntryDestroyedCause, Query, QueryRepositoryCacheEntry, HttpRequestRetryState, HttpRequestLoadingProgressState, QueryDevtoolsStats, QueryDevtoolsStatsHandle, QueryDevtoolsEntry, AnyQueryBatchItemResult, QueryRepository, QueryClient, QueryKeyLockState, QueryDevtoolsFeature, QueryDevtoolsFault, AnyQueryStack, AnyPagedQueryStack, QuerySequence, AnyQueryBatch, AnyBearerAuthProvider, WebSocketDevtoolsHandle, QueryDevtoolsFormHandle, QuerySequenceStatus, AnyQuerySnapshot, QueryDevtoolsRun, QueryDevtoolsRunError, WebSocketDevtoolsMessage, QueryDevtoolsStorageScope } from '@ethlete/query';
4
+ import { JsonPath, QueryDevtoolsOverridesRecorder, QueryRefreshCause, QueryRepositoryEntryDestroyedCause, Query, QueryRepositoryCacheEntry, HttpRequestRetryState, HttpRequestLoadingProgressState, QueryDevtoolsStats, QueryDevtoolsStatsHandle, QueryDevtoolsEntry, AnyQueryBatchItemResult, QueryRepository, QueryClient, QueryKeyLockState, QueryDevtoolsFeature, QueryDevtoolsFault, AnyQueryStack, AnyPagedQueryStack, QuerySequence, AnyQueryBatch, AnyBearerAuthProvider, WebSocketDevtoolsHandle, QueryDevtoolsFormHandle, QuerySequenceStatus, AnyQuerySnapshot, QueryDevtoolsRun, QueryDevtoolsRunError, WebSocketDevtoolsMessage, QueryDevtoolsStorageScope, QueryDevtoolsApiEnvSwitch } from '@ethlete/query';
5
5
  import { ResizeEdge, DragMoveEvent, ResizeMoveEvent } from '@ethlete/core';
6
6
 
7
7
  type AboutRow = {
@@ -731,7 +731,7 @@ type QueryDevtoolsHost = {
731
731
  resetPaneSize(pane: PaneTarget): void;
732
732
  };
733
733
 
734
- type ScopeKey = 'viewState' | 'pins' | 'overrides' | 'mocks' | 'armedMocks' | 'armedFaults';
734
+ type ScopeKey = 'viewState' | 'pins' | 'overrides' | 'mocks' | 'armedMocks' | 'armedFaults' | 'authSessions';
735
735
  type ScopeRow = {
736
736
  key: ScopeKey;
737
737
  label: string;
@@ -760,6 +760,7 @@ type LimitRow = {
760
760
  * otherwise hold as constants, and the toggles their own tabs also carry.
761
761
  */
762
762
  declare class QueryDevtoolsSettingsComponent {
763
+ private document;
763
764
  protected host: QueryDevtoolsHost;
764
765
  protected readonly SCOPE_ROWS: ScopeRow[];
765
766
  protected readonly SCOPES: {
@@ -774,9 +775,27 @@ declare class QueryDevtoolsSettingsComponent {
774
775
  /** What queries actually retain, which is the application's value unless this panel raised it. */
775
776
  protected responseHistory: _angular_core.Signal<number>;
776
777
  protected mockCount: _angular_core.Signal<number>;
778
+ protected sessionCount: _angular_core.Signal<number>;
777
779
  protected armedMockCount: _angular_core.Signal<number>;
778
780
  protected armedFaultCount: _angular_core.Signal<number>;
779
781
  protected resetConfirming: _angular_core.WritableSignal<boolean>;
782
+ protected readonly FORGET_SESSIONS: () => void;
783
+ /** The backends the application declared, or an empty list - the card renders only for a declared one. */
784
+ protected apiEnvs: _angular_core.Signal<QueryDevtoolsApiEnvSwitch[]>;
785
+ /** The env id (or typed URL) a switch's key holds, or `null` while the application picks for itself. */
786
+ protected apiEnvValue(apiSwitch: QueryDevtoolsApiEnvSwitch): string | null;
787
+ /** The env a switch falls back to with nothing stored, described for the default button. */
788
+ protected apiEnvFallback(apiSwitch: QueryDevtoolsApiEnvSwitch): {
789
+ label: string;
790
+ production: boolean;
791
+ };
792
+ /** Whether the pick in force - the stored env, or the fallback behind an unwritten key - is production. */
793
+ protected apiEnvIsProduction(apiSwitch: QueryDevtoolsApiEnvSwitch): boolean;
794
+ /** A stored value no declared env carries, which is a URL somebody typed in below. */
795
+ protected apiEnvCustomUrl(apiSwitch: QueryDevtoolsApiEnvSwitch): string;
796
+ /** Writes the application's own key and reloads - it is read before Angular boots, so nothing else can. */
797
+ protected pickApiEnv(apiSwitch: QueryDevtoolsApiEnvSwitch, value: string | null): void;
798
+ protected setCustomApiUrl(apiSwitch: QueryDevtoolsApiEnvSwitch, value: string): void;
780
799
  protected settings(): _ethlete_query.QueryDevtoolsSettings;
781
800
  protected scopeOf(key: ScopeKey): QueryDevtoolsStorageScope;
782
801
  protected limitOf(key: LimitKey): number;
@@ -1963,7 +1982,7 @@ declare class QueryDevtoolsComponent implements OnInit {
1963
1982
  declare const QUERY_DEVTOOLS_IMPORTS: readonly [typeof QueryDevtoolsComponent];
1964
1983
 
1965
1984
  /** The version of `@ethlete/query-devtools` this build was cut from. */
1966
- declare const QUERY_DEVTOOLS_VERSION = "1.0.0-next.8";
1985
+ declare const QUERY_DEVTOOLS_VERSION = "1.0.0-next.9";
1967
1986
 
1968
1987
  export { QUERY_DEVTOOLS_IMPORTS, QUERY_DEVTOOLS_VERSION, QueryDevtoolsAboutComponent, QueryDevtoolsComponent, QueryDevtoolsJsonComponent, QueryDevtoolsJsonStylesComponent, QueryDevtoolsSettingsComponent, QueryDevtoolsTimelineStylesComponent, clampFloatToPeek, kindOf, resizedFloatRect, settledFloatRect };
1969
1988
  export type { JsonKind };