@vendure/common
Advanced tools
Comparing version 1.4.0-beta.0 to 1.4.0
@@ -8,2 +8,17 @@ export declare type FetchPolicy = 'cache-first' | 'network-only' | 'cache-only' | 'no-cache' | 'standby'; | ||
} | ||
export interface ActiveRouteData { | ||
url: string; | ||
origin: string; | ||
pathname: string; | ||
params: { | ||
[key: string]: any; | ||
}; | ||
queryParams: { | ||
[key: string]: any; | ||
}; | ||
fragment: string | null; | ||
} | ||
export interface ActivatedRouteMessage extends BaseExtensionMessage { | ||
type: 'active-route'; | ||
} | ||
export interface QueryMessage extends BaseExtensionMessage { | ||
@@ -47,3 +62,3 @@ type: 'graphql-query'; | ||
} | ||
export declare type ExtensionMesssage = QueryMessage | MutationMessage | NotificationMessage | CancellationMessage | DestroyMessage; | ||
export declare type ExtensionMessage = ActivatedRouteMessage | QueryMessage | MutationMessage | NotificationMessage | CancellationMessage | DestroyMessage; | ||
export interface MessageResponse { | ||
@@ -50,0 +65,0 @@ requestId: string; |
@@ -99,3 +99,3 @@ import { LanguageCode, LocalizedString } from './generated-types'; | ||
* @description | ||
* Used to defined the expected arguments for a given default form input component. | ||
* Used to define the expected arguments for a given default form input component. | ||
* | ||
@@ -134,3 +134,6 @@ * @docsCategory ConfigurableOperationDef | ||
}; | ||
'text-form-input': {}; | ||
'text-form-input': { | ||
prefix?: string; | ||
suffix?: string; | ||
}; | ||
'textarea-form-input': { | ||
@@ -140,36 +143,13 @@ spellcheck?: boolean; | ||
}; | ||
export declare type DefaultFormComponentConfig<T extends DefaultFormComponentId> = DefaultFormConfigHash[T]; | ||
export declare type UiComponentConfig = (({ | ||
component: 'boolean-form-input'; | ||
} & DefaultFormComponentConfig<'boolean-form-input'>) | ({ | ||
component: 'currency-form-input'; | ||
} & DefaultFormComponentConfig<'currency-form-input'>) | ({ | ||
component: 'customer-group-form-input'; | ||
} & DefaultFormComponentConfig<'customer-group-form-input'>) | ({ | ||
component: 'date-form-input'; | ||
} & DefaultFormComponentConfig<'date-form-input'>) | ({ | ||
component: 'facet-value-form-input'; | ||
} & DefaultFormComponentConfig<'facet-value-form-input'>) | ({ | ||
component: 'json-editor-form-input'; | ||
} & DefaultFormComponentConfig<'json-editor-form-input'>) | ({ | ||
component: 'number-form-input'; | ||
} & DefaultFormComponentConfig<'number-form-input'>) | ({ | ||
component: 'password-form-input'; | ||
} & DefaultFormComponentConfig<'password-form-input'>) | ({ | ||
component: 'product-selector-form-input'; | ||
} & DefaultFormComponentConfig<'product-selector-form-input'>) | ({ | ||
component: 'relation-form-input'; | ||
} & DefaultFormComponentConfig<'relation-form-input'>) | ({ | ||
component: 'rich-text-form-input'; | ||
} & DefaultFormComponentConfig<'rich-text-form-input'>) | ({ | ||
component: 'select-form-input'; | ||
} & DefaultFormComponentConfig<'select-form-input'>) | ({ | ||
component: 'text-form-input'; | ||
} & DefaultFormComponentConfig<'text-form-input'>) | ({ | ||
component: 'textarea-form-input'; | ||
} & DefaultFormComponentConfig<'textarea-form-input'>) | { | ||
export declare type DefaultFormComponentUiConfig<T extends DefaultFormComponentId | string> = T extends DefaultFormComponentId ? DefaultFormConfigHash[T] : any; | ||
export declare type DefaultFormComponentConfig<T extends DefaultFormComponentId | string> = DefaultFormComponentUiConfig<T> & { | ||
ui?: DefaultFormComponentUiConfig<T>; | ||
}; | ||
export declare type UiComponentConfig<T extends DefaultFormComponentId | string> = T extends DefaultFormComponentId ? { | ||
component: T; | ||
tab?: string; | ||
} & DefaultFormConfigHash[T] : { | ||
component: string; | ||
tab?: string; | ||
[prop: string]: any; | ||
}) & { | ||
tab?: string; | ||
}; | ||
@@ -176,0 +156,0 @@ export declare type CustomFieldsObject = { |
{ | ||
"name": "@vendure/common", | ||
"version": "1.4.0-beta.0", | ||
"version": "1.4.0", | ||
"main": "index.js", | ||
@@ -25,3 +25,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "b4a29d6cff5a7c5b39000719b4c556f60a80b521" | ||
"gitHead": "d5df49c276dacd0f5e50a04c12def4ca22dfc3aa" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
383460
9957
0