@kentico/xperience-admin-base 31.1.2 → 31.2.0
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/dist/entry.d.ts +12 -4
- package/dist/entry.js +15 -15
- package/package.json +25 -24
package/dist/entry.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ declare interface Action {
|
|
|
55
55
|
/**
|
|
56
56
|
* Action button color.
|
|
57
57
|
*/
|
|
58
|
-
readonly buttonColor: ButtonColor.Primary | ButtonColor.Secondary;
|
|
58
|
+
readonly buttonColor: ButtonColor.Primary | ButtonColor.Secondary | ButtonColor.Tertiary;
|
|
59
59
|
/**
|
|
60
60
|
* Component properties to be used for the action.
|
|
61
61
|
*/
|
|
@@ -242,13 +242,13 @@ declare interface CommandContextType {
|
|
|
242
242
|
* @param files Files to be uploaded by the command.
|
|
243
243
|
* @param abortController Abort controller which can abort the command request.
|
|
244
244
|
*/
|
|
245
|
-
executeCommand: <TCommandResult = void, TData = void>(name:
|
|
245
|
+
executeCommand: <TCommandResult = void, TData = void>(name: CommandName, data?: TData, files?: FileList, abortController?: AbortController) => Promise<TCommandResult | undefined>;
|
|
246
246
|
/**
|
|
247
247
|
* Registers command into the current provider.
|
|
248
248
|
* @param name Name of the command to be registered.
|
|
249
249
|
* @param execute Callback that executes the command.
|
|
250
250
|
*/
|
|
251
|
-
registerCommand: <T>(name:
|
|
251
|
+
registerCommand: <T>(name: CommandName, execute: (data: T, files?: FileList) => Promise<void>) => void;
|
|
252
252
|
}
|
|
253
253
|
|
|
254
254
|
/**
|
|
@@ -256,6 +256,8 @@ declare interface CommandContextType {
|
|
|
256
256
|
*/
|
|
257
257
|
export declare type CommandExecutor<TData, TResponse> = (data?: TData, files?: FileList, abortController?: AbortController) => Promise<TResponse>;
|
|
258
258
|
|
|
259
|
+
declare type CommandName = string;
|
|
260
|
+
|
|
259
261
|
declare interface ComponentContent {
|
|
260
262
|
/**
|
|
261
263
|
* Name of the rendered component.
|
|
@@ -514,8 +516,14 @@ declare const KXIconSets = {
|
|
|
514
516
|
declare interface LinkParameters {
|
|
515
517
|
/**
|
|
516
518
|
* Opens a link using window.open().
|
|
519
|
+
* Conflicts with {@link useAnchor}.
|
|
517
520
|
*/
|
|
518
521
|
readonly useWindowOpen?: boolean;
|
|
522
|
+
/**
|
|
523
|
+
* Opens a link using shadow anchor element.
|
|
524
|
+
* Conflicts with {@link useWindowOpen}.
|
|
525
|
+
*/
|
|
526
|
+
readonly useAnchor?: boolean;
|
|
519
527
|
/**
|
|
520
528
|
* Name of the browsing context the resource is being loaded into.
|
|
521
529
|
*/
|
|
@@ -914,7 +922,7 @@ export declare const useGlobalization: () => {
|
|
|
914
922
|
* @param dependencies If present, command will only activate if the values in the list change.
|
|
915
923
|
* @returns Invocation callback to be executed manually.
|
|
916
924
|
*/
|
|
917
|
-
export declare function usePageCommand<TCommandResult, TCommandData = void>(commandName:
|
|
925
|
+
export declare function usePageCommand<TCommandResult, TCommandData = void>(commandName: CommandName, config?: UseCommandConfig<TCommandResult, TCommandData>, dependencies?: React_2.DependencyList): Command<TCommandData>;
|
|
918
926
|
|
|
919
927
|
/**
|
|
920
928
|
* Returns the command provider for the current page.
|