Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

altair-exported-types

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

altair-exported-types - npm Package Compare versions

Comparing version 4.0.4 to 4.0.5

dist/app/modules/altair/effects/local.effect.d.ts

8

dist/app/modules/altair/components/element-wrapper/element-wrapper.component.d.ts

@@ -1,7 +0,11 @@

import { AfterViewInit, ElementRef } from '@angular/core';
export declare class ElementWrapperComponent implements AfterViewInit {
import { AfterViewInit, ElementRef, OnChanges, SimpleChanges } from '@angular/core';
export declare class ElementWrapperComponent implements AfterViewInit, OnChanges {
element: HTMLElement;
windowId: string;
activeWindowId: string;
elRef: ElementRef<HTMLDivElement>;
constructor();
ngAfterViewInit(): void;
ngOnChanges(changes: SimpleChanges): void;
handleRender(): void;
}

@@ -16,2 +16,3 @@ import { EventEmitter, OnChanges, ElementRef, SimpleChanges, DoCheck } from '@angular/core';

import { SubscriptionResponse } from '../../store/query/query.interfaces';
import { AltairPanel } from '../../services/plugin/plugin';
export declare class QueryResultComponent implements OnChanges, DoCheck {

@@ -28,3 +29,6 @@ queryResult: string;

autoscrollSubscriptionResponses: boolean;
windowId: string;
activeWindowId: string;
uiActions: never[];
bottomPanels: never[];
downloadResultChange: EventEmitter<any>;

@@ -35,2 +39,3 @@ stopSubscriptionChange: EventEmitter<any>;

uiActionExecuteChange: EventEmitter<any>;
bottomPanelActiveToggle: EventEmitter<AltairPanel>;
editor: ElementRef & {

@@ -64,2 +69,4 @@ codeMirror: CodeMirror.Editor;

subscriptionResponseTrackBy(index: number, response: SubscriptionResponse): number;
togglePanelActive(panel: AltairPanel): void;
trackById(index: number, item: any): any;
}
import { OnInit, EventEmitter, ElementRef, OnChanges, SimpleChanges } from '@angular/core';
import { StorageService } from '../../services';
import * as fromVariables from '../../store/variables/variables.reducer';
export declare class VariableFileItemComponent implements OnInit, OnChanges {
private storageService;
fileVariable: fromVariables.FileVariable;
fileVariableNameChange: EventEmitter<any>;
fileVariableDataChange: EventEmitter<any>;
fileVariableDataChange: EventEmitter<{
files: File[];
fromCache?: boolean | undefined;
}>;
fileVariableIsMultipleChange: EventEmitter<any>;

@@ -14,6 +19,8 @@ deleteFileVariableChange: EventEmitter<any>;

filesText: string;
constructor();
ngOnInit(): void;
constructor(storageService: StorageService);
ngOnInit(): Promise<void>;
ngOnChanges(changes: SimpleChanges): void;
onSelectFiles(): void;
isValidFileData(fileVariable: fromVariables.FileVariable): void;
updateLocalState(fileVariable: fromVariables.FileVariable): void;
}

@@ -13,3 +13,3 @@ import { OnInit } from '@angular/core';

import { Observable } from 'rxjs';
import { AltairUiAction } from '../../services/plugin/plugin';
import { AltairPanel, AltairUiAction } from '../../services/plugin/plugin';
import { IDictionary } from '../../interfaces/shared';

@@ -47,2 +47,3 @@ import { PerWindowState, RootState } from '../../store/state.interfaces';

layout$: Observable<fromLayout.State>;
activeWindowId$: Observable<string>;
addQueryDepthLimit$: Observable<number>;

@@ -53,2 +54,3 @@ tabSize$: Observable<number>;

resultPaneUiActions$: Observable<AltairUiAction[]>;
resultPaneBottomPanels$: Observable<AltairPanel[]>;
windowId: string;

@@ -68,3 +70,3 @@ isElectron: boolean;

subscriptionConnectionParams: string;
availableSubscriptionProviders: import("../../services/subscriptions/subscription-provider-registry.service").SubscriptionProviderData[];
availableSubscriptionProviders$: import("rxjs").BehaviorSubject<import("../../services/subscriptions/subscription-provider-registry.service").SubscriptionProviderData[]>;
selectedSubscriptionProviderId: string;

@@ -91,2 +93,3 @@ historyList: fromHistory.History[];

togglePreRequestDialog(isOpen: boolean): void;
togglePanelActive(panel: AltairPanel): void;
setDocView(docView: fromDocs.DocView): void;

@@ -111,5 +114,6 @@ onShowTokenInDocs(docView: fromDocs.DocView): void;

}): void;
updateFileVariableData({ index, fileData }: {
updateFileVariableData({ index, fileData, fromCache }: {
index: number;
fileData: File;
fileData: File[];
fromCache?: boolean;
}): void;

@@ -116,0 +120,0 @@ deleteFileVariable({ index }: {

@@ -8,13 +8,14 @@ import { Store } from '@ngrx/store';

import { NotifyService } from '../../../services/notify/notify.service';
import { ExportWindowState, RootState } from 'app/modules/altair/store/state.interfaces';
interface CreatePanelOptions {
import { ExportWindowState, RootState } from '../../../store/state.interfaces';
import { SubscriptionProviderData, SubscriptionProviderRegistryService } from '../../subscriptions/subscription-provider-registry.service';
export interface CreatePanelOptions {
title?: string;
location?: AltairPanelLocation;
}
interface CreateActionOptions {
export interface CreateActionOptions {
title: string;
location: AltairUiActionLocation;
location?: AltairUiActionLocation;
execute: (data: PluginWindowState) => void;
}
interface PluginWindowState extends ExportWindowState {
export interface PluginWindowState extends ExportWindowState {
windowId: string;

@@ -29,4 +30,5 @@ sdl: string;

private themeRegistryService;
private subscriptionProviderRegistryService;
private notifyService;
constructor(store: Store<RootState>, windowService: WindowService, pluginEventService: PluginEventService, themeRegistryService: ThemeRegistryService, notifyService: NotifyService);
constructor(store: Store<RootState>, windowService: WindowService, pluginEventService: PluginEventService, themeRegistryService: ThemeRegistryService, subscriptionProviderRegistryService: SubscriptionProviderRegistryService, notifyService: NotifyService);
createContext(pluginName: string, plugin: AltairPlugin): {

@@ -67,2 +69,3 @@ app: {

setEndpoint(windowId: string, url: string): void;
addSubscriptionProvider(providerData: SubscriptionProviderData): void;
executeCommand(): void;

@@ -90,2 +93,1 @@ };

}
export {};

@@ -52,6 +52,7 @@ import { PluginContextService } from './context/plugin-context.service';

export declare type PluginContext = ReturnType<PluginContextService['createContext']>;
export declare type PluginClass = new () => PluginClassInstance;
/**
* We should have plugin instance extend to SidebarPanel, ResultAction, HeaderPanel, UiTheme
*/
export interface GenericPluginInstance {
export interface PluginClassInstance {
initialize(ctx: PluginContext): void;

@@ -62,3 +63,4 @@ destroy(): void;

HEADER = "header",
SIDEBAR = "sidebar"
SIDEBAR = "sidebar",
RESULT_PANE_BOTTOM = "result_pane_bottom"
}

@@ -65,0 +67,0 @@ export declare enum AltairUiActionLocation {

import Dexie from 'dexie';
import { IQueryCollection } from '../../store/collection/collection.reducer';
interface ISelectedFile {
id: string;
windowId: string;
data: File[];
}
export declare class StorageService extends Dexie {

@@ -9,2 +14,3 @@ queryCollections: Dexie.Table<IQueryCollection, number>;

}, string>;
selectedFiles: Dexie.Table<ISelectedFile, string>;
constructor();

@@ -15,1 +21,2 @@ schema(): void;

}
export {};

@@ -0,1 +1,2 @@

import { BehaviorSubject } from 'rxjs';
import { SubscriptionProviderConstructor } from './subscription-provider';

@@ -20,2 +21,3 @@ export interface SubscriptionProviderData {

private list;
private list$;
constructor();

@@ -25,2 +27,3 @@ addProviderData(providerData: SubscriptionProviderData): void;

getAllProviderData(): SubscriptionProviderData[];
getAllProviderData$(): BehaviorSubject<SubscriptionProviderData[]>;
}
import { InjectionToken } from '@angular/core';
import { Action, ActionReducer, ActionReducerMap, MetaReducer } from '@ngrx/store';
import { RootState } from './state.interfaces';
import * as fromLayout from './layout/layout.reducer';
import * as fromQuery from './query/query.reducer';
import * as fromHeaders from './headers/headers.reducer';
import * as fromVariables from './variables/variables.reducer';
import * as fromDialogs from './dialogs/dialogs.reducer';
import * as fromGqlSchema from './gql-schema/gql-schema.reducer';
import * as fromDocs from './docs/docs.reducer';
import * as fromHistory from './history/history.reducer';
import * as fromStream from './stream/stream.reducer';
import * as fromPreRequest from './pre-request/pre-request.reducer';
import * as fromPostRequest from './post-request/post-request.reducer';
export declare const getPerWindowReducer: () => {
layout: typeof fromLayout.layoutReducer;
query: typeof fromQuery.queryReducer;
headers: typeof fromHeaders.headerReducer;
variables: typeof fromVariables.variableReducer;
dialogs: typeof fromDialogs.dialogReducer;
schema: typeof fromGqlSchema.gqlSchemaReducer;
docs: typeof fromDocs.docsReducer;
history: typeof fromHistory.historyReducer;
stream: typeof fromStream.streamReducer;
preRequest: typeof fromPreRequest.preRequestReducer;
postRequest: typeof fromPostRequest.postRequestReducer;
windowId: (_: string) => string;
};
export declare function log(_reducer: ActionReducer<any>): ActionReducer<any>;

@@ -5,0 +30,0 @@ export declare function asyncStorageSyncReducer(_reducer: ActionReducer<any>): ActionReducer<any>;

import * as local from './local.action';
import { IDictionary } from '../../interfaces/shared';
import { AltairPlugin, GenericPluginInstance, AltairPanel, AltairUiAction } from '../../services/plugin/plugin';
import { AltairPlugin, PluginClassInstance, AltairPanel, AltairUiAction } from '../../services/plugin/plugin';
export interface PluginStateEntry {

@@ -9,3 +9,3 @@ name: string;

isActive?: boolean;
instance?: GenericPluginInstance;
instance?: PluginClassInstance;
}

@@ -12,0 +12,0 @@ export interface State {

@@ -5,4 +5,5 @@ import { RootState } from '../state.interfaces';

export declare const getSidebarPanels: import("@ngrx/store").MemoizedSelector<RootState, import("../../services/plugin/plugin").AltairPanel[], import("@ngrx/store").DefaultProjectorFn<import("../../services/plugin/plugin").AltairPanel[]>>;
export declare const getResultPaneBottomPanels: import("@ngrx/store").MemoizedSelector<RootState, import("../../services/plugin/plugin").AltairPanel[], import("@ngrx/store").DefaultProjectorFn<import("../../services/plugin/plugin").AltairPanel[]>>;
export declare const getHeaderPanels: import("@ngrx/store").MemoizedSelector<RootState, import("../../services/plugin/plugin").AltairPanel[], import("@ngrx/store").DefaultProjectorFn<import("../../services/plugin/plugin").AltairPanel[]>>;
export declare const getUiActions: import("@ngrx/store").MemoizedSelector<RootState, import("../../services/plugin/plugin").AltairUiAction[], import("@ngrx/store").DefaultProjectorFn<import("../../services/plugin/plugin").AltairUiAction[]>>;
export declare const getResultPaneUiActions: import("@ngrx/store").MemoizedSelector<RootState, import("../../services/plugin/plugin").AltairUiAction[], import("@ngrx/store").DefaultProjectorFn<import("../../services/plugin/plugin").AltairUiAction[]>>;
import { AltairConfig } from '../config';
import { StorageService } from '../services';
import { RootState } from './state.interfaces';
export declare class ReducerBootstrapper {
private altairConfig;
private storageService;
initialState: RootState | undefined;
constructor(altairConfig: AltairConfig);
constructor(altairConfig: AltairConfig, storageService: StorageService);
bootstrap(): Promise<void>;
cleanSelectedFilesStorage(): Promise<void>;
}

@@ -58,3 +58,4 @@ import { Action as NGRXAction } from '@ngrx/store';

index: number;
fileData: File | File[];
fileData: File[];
fromCache?: boolean;
};

@@ -64,5 +65,6 @@ readonly type = "UPDATE_FILE_VARIABLE_DATA";

index: number;
fileData: File | File[];
fileData: File[];
fromCache?: boolean;
});
}
export declare type Action = UpdateVariablesAction | AddFileVariableAction | DeleteFileVariableAction | UpdateFileVariableNameAction | UpdateFileVariableIsMultipleAction | UpdateFileVariableDataAction;
import * as variables from './variables.action';
export interface FileVariable {
id?: string;
name: string;

@@ -4,0 +5,0 @@ isMultiple?: boolean;

@@ -28,5 +28,9 @@ import { Action as NGRXAction } from '@ngrx/store';

export declare class RemoveWindowAction implements NGRXAction {
payload: any;
payload: {
windowId: string;
};
readonly type = "REMOVE_WINDOW";
constructor(payload: any);
constructor(payload: {
windowId: string;
});
}

@@ -33,0 +37,0 @@ export declare class ExportWindowAction implements NGRXAction {

@@ -7,2 +7,3 @@ import { Action, ActionReducer } from '@ngrx/store';

}
export declare const getInitWindowState: (perWindowReducer: ActionReducer<PerWindowState>) => PerWindowState;
/**

@@ -9,0 +10,0 @@ * Metareducer to add new window and pass the correct window state to the main reducer

@@ -7,6 +7,6 @@ import { ComponentFixture } from '@angular/core/testing';

private _testHostFixture;
private _mainComponent;
private _mainComponent?;
private _mainComponentDebugEl;
private _isWrapper;
constructor(_testHostFixture: ComponentFixture<BaseTestHostComponent>, _mainComponent: any);
constructor(_testHostFixture: ComponentFixture<BaseTestHostComponent>, _mainComponent?: any);
get fx(): ComponentFixture<BaseTestHostComponent>;

@@ -19,3 +19,3 @@ get component(): DebugElement;

find<SC extends any = unknown>(selector: string): NgxTestWrapper<SC>;
findComponent<SC extends any = unknown>(type: Type<any>): NgxTestWrapper<SC> | undefined;
findComponent<SC extends any = unknown>(type: Type<any>): NgxTestWrapper<SC>;
findAll<SC extends any = unknown>(selector: string): NgxTestWrapper<SC>[];

@@ -32,2 +32,3 @@ findAllComponents<SC extends any = unknown>(type: Type<any>): NgxTestWrapper<SC>[];

nextTick(): Promise<void>;
private assertExists;
}
{
"name": "altair-exported-types",
"version": "4.0.4",
"version": "4.0.5",
"description": "Contains types exported from the app",

@@ -12,7 +12,7 @@ "main": "index.js",

"devDependencies": {
"altair-app": "^4.0.4",
"altair-app": "^4.0.5",
"jest": "^26.6.3",
"typescript": "4.0.7"
},
"gitHead": "b9f0b766a61d31de39db2bcfba868fbd62fe0e27"
"gitHead": "cf7fa3501da2ff227e333740021b25fca9a6383b"
}

@@ -61,2 +61,3 @@ {

// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
// "noResolve": true,
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */

@@ -63,0 +64,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc