commandbar
Advanced tools
Comparing version 1.7.0 to 1.7.1
import { DetailPreviewType } from '../middleware/detailPreview'; | ||
import { OptionGroupRenderAsType } from '../middleware/types'; | ||
export declare type DataRow = { | ||
@@ -59,2 +60,4 @@ icon?: string; | ||
labelKey?: string; | ||
renderAs?: OptionGroupRenderAsType; | ||
searchTabEnabled?: boolean; | ||
}; | ||
@@ -99,2 +102,4 @@ /** Options to customize the search behavior for `key`. */ | ||
detail?: DetailPreviewType; | ||
renderAs?: OptionGroupRenderAsType; | ||
searchTabEnabled?: boolean; | ||
/** | ||
@@ -101,0 +106,0 @@ * A list of object fields to be searched. If a custom `searchFunction` is provided, matches will be highlighted in |
@@ -58,4 +58,5 @@ import { AddContextOptions, ArgumentOptions, DataRow, RecordOptions } from './AddContextOptions'; | ||
}; | ||
export declare type NudgeHandler = ({ slug, content, onClick, timeout, }: { | ||
export declare type NudgeHandler = ({ slug, title, content, onClick, timeout, }: { | ||
slug: string; | ||
title: string; | ||
content: string; | ||
@@ -62,0 +63,0 @@ onClick: () => void; |
@@ -9,3 +9,3 @@ /*******************************************************************************/ | ||
}>]>; | ||
export declare type DetailPreviewObjectType = t.TypeOf<typeof DetailPreviewObjectV>; | ||
export declare type DetailPreviewObjectType = t.TypeOf<typeof DetailPreviewObjectV> & unknown; | ||
export declare type DetailPreviewType = string | DetailPreviewObjectType | (string | DetailPreviewObjectType)[]; | ||
@@ -12,0 +12,0 @@ export declare type DataRowMetadata = { |
import * as t from 'io-ts'; | ||
import { CommandFromClientV } from './CommandFromClientV'; | ||
import { ContextArgumentV } from './helpers/argument'; | ||
export declare type ICommandFromClientType = t.TypeOf<typeof CommandFromClientV>; | ||
export declare type ICommandFromClientType = t.TypeOf<typeof CommandFromClientV> & unknown; | ||
export declare type IContextArgument = t.TypeOf<typeof ContextArgumentV>; |
import * as t from 'io-ts'; | ||
import { ResourceSettingsV } from './ResourceSettingsV'; | ||
export declare type IResourceSettings = t.TypeOf<typeof ResourceSettingsV>; | ||
export declare type IResourceSettings = t.TypeOf<typeof ResourceSettingsV> & unknown; |
@@ -25,2 +25,3 @@ import * as t from 'io-ts'; | ||
}>, t.PartialC<{ | ||
title: t.StringC; | ||
is_live: t.BooleanC; | ||
@@ -52,2 +53,3 @@ }>]>; | ||
} & { | ||
title?: string | undefined; | ||
is_live?: boolean | undefined; | ||
@@ -78,2 +80,3 @@ }; | ||
} & { | ||
title?: string | undefined; | ||
is_live?: boolean | undefined; | ||
@@ -103,2 +106,3 @@ }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{ | ||
} & { | ||
title?: string | undefined; | ||
is_live?: boolean | undefined; | ||
@@ -129,2 +133,3 @@ }>; | ||
} & { | ||
title?: string | undefined; | ||
is_live?: boolean | undefined; | ||
@@ -154,2 +159,3 @@ }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{ | ||
} & { | ||
title?: string | undefined; | ||
is_live?: boolean | undefined; | ||
@@ -181,2 +187,3 @@ }>; | ||
} & { | ||
title?: string | undefined; | ||
is_live?: boolean | undefined; | ||
@@ -210,4 +217,5 @@ })[]>; | ||
} & { | ||
title?: string | undefined; | ||
is_live?: boolean | undefined; | ||
}>; | ||
} |
@@ -44,2 +44,4 @@ import * as t from 'io-ts'; | ||
slash_filters_enabled: t.BooleanC; | ||
recents_sort_key: t.UnionC<[t.NumberC, t.NullC]>; | ||
recommended_sort_key: t.UnionC<[t.NumberC, t.NullC]>; | ||
}>; | ||
@@ -131,2 +133,4 @@ export declare class Organization { | ||
slash_filters_enabled: boolean; | ||
recents_sort_key: number | null; | ||
recommended_sort_key: number | null; | ||
}>; | ||
@@ -214,2 +218,4 @@ static update: (object: { | ||
slash_filters_enabled: boolean; | ||
recents_sort_key: number | null; | ||
recommended_sort_key: number | null; | ||
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{ | ||
@@ -296,2 +302,4 @@ id: string | number; | ||
slash_filters_enabled: boolean; | ||
recents_sort_key: number | null; | ||
recommended_sort_key: number | null; | ||
}>; | ||
@@ -595,7 +603,2 @@ static listCommands: (orgUID: string) => Promise<({ | ||
}) | ({ | ||
type: "named_rule"; | ||
rule_id: number; | ||
} & { | ||
reason?: string | undefined; | ||
}) | ({ | ||
type: "always"; | ||
@@ -607,2 +610,7 @@ } & { | ||
reason?: null | undefined; | ||
}) | ({ | ||
type: "named_rule"; | ||
rule_id: number; | ||
} & { | ||
reason?: string | undefined; | ||
}))[]; | ||
@@ -777,2 +785,4 @@ availability_expression: import("./helpers/rules").RuleExpression; | ||
slash_filters_enabled: boolean; | ||
recents_sort_key: number | null; | ||
recommended_sort_key: number | null; | ||
}>; | ||
@@ -806,2 +816,4 @@ static updateSetting: (object: { | ||
slash_filters_enabled?: boolean | undefined; | ||
recents_sort_key?: number | null | undefined; | ||
recommended_sort_key?: number | null | undefined; | ||
}, params?: Record<string, string> | undefined, callbacks?: { | ||
@@ -837,2 +849,4 @@ onSuccess?: (() => void) | undefined; | ||
slash_filters_enabled: boolean; | ||
recents_sort_key: number | null; | ||
recommended_sort_key: number | null; | ||
}>; | ||
@@ -920,3 +934,5 @@ static decode: (data: any) => { | ||
slash_filters_enabled: boolean; | ||
recents_sort_key: number | null; | ||
recommended_sort_key: number | null; | ||
}; | ||
} |
@@ -77,2 +77,4 @@ import * as t from 'io-ts'; | ||
slash_filters_enabled: t.BooleanC; | ||
recents_sort_key: t.UnionC<[t.NumberC, t.NullC]>; | ||
recommended_sort_key: t.UnionC<[t.NumberC, t.NullC]>; | ||
}>; | ||
@@ -159,4 +161,6 @@ export declare const defaults: t.TypeOf<typeof OrganizationAdditionalV>; | ||
slash_filters_enabled: t.BooleanC; | ||
recents_sort_key: t.UnionC<[t.NumberC, t.NullC]>; | ||
recommended_sort_key: t.UnionC<[t.NumberC, t.NullC]>; | ||
}>]>; | ||
export declare type IOrganizationType = t.TypeOf<typeof OrganizationV>; | ||
export declare type IOrganizationType = t.TypeOf<typeof OrganizationV> & unknown; | ||
export {}; |
@@ -26,53 +26,53 @@ /*******************************************************************************/ | ||
/*******************************************************************************/ | ||
export declare type IContextType = t.TypeOf<typeof ContextV>; | ||
export declare type IUserType = t.TypeOf<typeof UserV>; | ||
export declare type ICommandType = t.TypeOf<typeof CommandV>; | ||
export declare type IEditorCommandType = t.TypeOf<typeof EditorCommandV>; | ||
export declare type IHelpSyncCommandType = t.TypeOf<typeof HelpSyncCommandV>; | ||
export declare type IContextType = t.TypeOf<typeof ContextV> & unknown; | ||
export declare type IUserType = t.TypeOf<typeof UserV> & unknown; | ||
export declare type ICommandType = t.TypeOf<typeof CommandV> & unknown; | ||
export declare type IEditorCommandType = t.TypeOf<typeof EditorCommandV> & unknown; | ||
export declare type IHelpSyncCommandType = t.TypeOf<typeof HelpSyncCommandV> & unknown; | ||
export type { ICommandFromClientType } from './ICommandFromClientType'; | ||
export declare type ICommandCategoryType = t.TypeOf<typeof CommandCategoryV>; | ||
export declare type ICommandCategoryType = t.TypeOf<typeof CommandCategoryV> & unknown; | ||
export declare type IGuideType = t.TypeOf<typeof GuideV> & { | ||
preview?: boolean; | ||
}; | ||
export declare type IHistoryEventType = t.TypeOf<typeof HistoryEventV>; | ||
export declare type IHelpDocsSyncType = t.TypeOf<typeof HelpDocsSyncV>; | ||
export declare type IHelpDocsIntegrationType = t.TypeOf<typeof HelpDocsIntegrationV>; | ||
} & unknown; | ||
export declare type IHistoryEventType = t.TypeOf<typeof HistoryEventV> & unknown; | ||
export declare type IHelpDocsSyncType = t.TypeOf<typeof HelpDocsSyncV> & unknown; | ||
export declare type IHelpDocsIntegrationType = t.TypeOf<typeof HelpDocsIntegrationV> & unknown; | ||
export type { IOrganizationType } from './OrganizationV'; | ||
export declare type IOrganizationStatusType = t.TypeOf<typeof OrganizationStatusV>; | ||
export declare type IInternalSettingsType = t.TypeOf<typeof InternalSettingsV>; | ||
export declare type ISkinType = t.TypeOf<typeof SkinV>; | ||
export declare type IProfileType = t.TypeOf<typeof ProfileV>; | ||
export declare type IOrganizationSettingsType = t.TypeOf<typeof OrganizationSettingsV>; | ||
export declare type IPlaceholderType = t.TypeOf<typeof PlaceholderV>; | ||
export declare type ITabType = t.TypeOf<typeof TabV>; | ||
export declare type IEnvironmentType = t.TypeOf<typeof EnvironmentV>; | ||
export declare type IReleaseStep = t.TypeOf<typeof ReleaseStepV>; | ||
export declare type IRelease = t.TypeOf<typeof ReleaseV>; | ||
export declare type IEnvReleaseInfo = t.TypeOf<typeof EnvReleaseInfoV>; | ||
export declare type IOrganizationStatusType = t.TypeOf<typeof OrganizationStatusV> & unknown; | ||
export declare type IInternalSettingsType = t.TypeOf<typeof InternalSettingsV> & unknown; | ||
export declare type ISkinType = t.TypeOf<typeof SkinV> & unknown; | ||
export declare type IProfileType = t.TypeOf<typeof ProfileV> & unknown; | ||
export declare type IOrganizationSettingsType = t.TypeOf<typeof OrganizationSettingsV> & unknown; | ||
export declare type IPlaceholderType = t.TypeOf<typeof PlaceholderV> & unknown; | ||
export declare type ITabType = t.TypeOf<typeof TabV> & unknown; | ||
export declare type IEnvironmentType = t.TypeOf<typeof EnvironmentV> & unknown; | ||
export declare type IReleaseStep = t.TypeOf<typeof ReleaseStepV> & unknown; | ||
export declare type IRelease = t.TypeOf<typeof ReleaseV> & unknown; | ||
export declare type IEnvReleaseInfo = t.TypeOf<typeof EnvReleaseInfoV> & unknown; | ||
/*******************************************************************************/ | ||
export declare type IBatchOperation = t.TypeOf<typeof BatchOperationV>; | ||
export declare type IBatchEditorCommandRequst = t.TypeOf<typeof GenericBatchRequest>; | ||
export declare type IBatchEditorCommandResponse = t.TypeOf<typeof BatchEditorCommandResponseV>; | ||
export declare type IBatchOperation = t.TypeOf<typeof BatchOperationV> & unknown; | ||
export declare type IBatchEditorCommandRequst = t.TypeOf<typeof GenericBatchRequest> & unknown; | ||
export declare type IBatchEditorCommandResponse = t.TypeOf<typeof BatchEditorCommandResponseV> & unknown; | ||
/*******************************************************************************/ | ||
export declare type IKeyEventCategory = t.TypeOf<typeof KeyEventV>; | ||
export declare type IArgumentMap = t.TypeOf<typeof ArgumentMapV>; | ||
export declare type IArgumentType = t.TypeOf<typeof ArgumentTypeV>; | ||
export declare type IStepArgumentType = t.TypeOf<typeof StepArgumentTypeV>; | ||
export declare type ITemplate = t.TypeOf<typeof TemplateV>; | ||
export declare type RequestTemplateType = t.TypeOf<typeof RequestTemplateV>; | ||
export declare type RequestType = t.TypeOf<typeof RequestV>; | ||
export declare type ITemplateOptions = t.TypeOf<typeof TemplateOptionsV>; | ||
export declare type IEndUserType = t.TypeOf<typeof EndUserV>; | ||
export declare type IRuleExpression = t.TypeOf<typeof RuleExpressionV>; | ||
export declare type IRuleExpressionAnd = t.TypeOf<typeof RuleExpressionAndV>; | ||
export declare type IRuleExpressionOr = t.TypeOf<typeof RuleExpressionOrV>; | ||
export declare type IConditionType = t.TypeOf<typeof ConditionV>; | ||
export declare type IConditionOperatorType = t.TypeOf<typeof ConditionOperatorV>; | ||
export declare type IContextArgumentType = t.TypeOf<typeof ContextArgumentV>; | ||
export declare type ISetArgumentType = t.TypeOf<typeof SetArgumentV>; | ||
export declare type IDynamicArgumentType = t.TypeOf<typeof DynamicArgumentV>; | ||
export declare type IDependentArgumentType = t.TypeOf<typeof DependentArgumentV>; | ||
export declare type IFunctionArgumentType = t.TypeOf<typeof FunctionArgumentV>; | ||
export declare type OptionGroupRenderAsType = t.TypeOf<typeof OptionGroupRenderAsV>; | ||
export declare type INudgeType = t.TypeOf<typeof NudgeV>; | ||
export declare type IKeyEventCategory = t.TypeOf<typeof KeyEventV> & unknown; | ||
export declare type IArgumentMap = t.TypeOf<typeof ArgumentMapV> & unknown; | ||
export declare type IArgumentType = t.TypeOf<typeof ArgumentTypeV> & unknown; | ||
export declare type IStepArgumentType = t.TypeOf<typeof StepArgumentTypeV> & unknown; | ||
export declare type ITemplate = t.TypeOf<typeof TemplateV> & unknown; | ||
export declare type RequestTemplateType = t.TypeOf<typeof RequestTemplateV> & unknown; | ||
export declare type RequestType = t.TypeOf<typeof RequestV> & unknown; | ||
export declare type ITemplateOptions = t.TypeOf<typeof TemplateOptionsV> & unknown; | ||
export declare type IEndUserType = t.TypeOf<typeof EndUserV> & unknown; | ||
export declare type IRuleExpression = t.TypeOf<typeof RuleExpressionV> & unknown; | ||
export declare type IRuleExpressionAnd = t.TypeOf<typeof RuleExpressionAndV> & unknown; | ||
export declare type IRuleExpressionOr = t.TypeOf<typeof RuleExpressionOrV> & unknown; | ||
export declare type IConditionType = t.TypeOf<typeof ConditionV> & unknown; | ||
export declare type IConditionOperatorType = t.TypeOf<typeof ConditionOperatorV> & unknown; | ||
export declare type IContextArgumentType = t.TypeOf<typeof ContextArgumentV> & unknown; | ||
export declare type ISetArgumentType = t.TypeOf<typeof SetArgumentV> & unknown; | ||
export declare type IDynamicArgumentType = t.TypeOf<typeof DynamicArgumentV> & unknown; | ||
export declare type IDependentArgumentType = t.TypeOf<typeof DependentArgumentV> & unknown; | ||
export declare type IFunctionArgumentType = t.TypeOf<typeof FunctionArgumentV> & unknown; | ||
export declare type OptionGroupRenderAsType = t.TypeOf<typeof OptionGroupRenderAsV> & unknown; | ||
export declare type INudgeType = t.TypeOf<typeof NudgeV> & unknown; | ||
export interface INudgeClientType { | ||
@@ -117,399 +117,9 @@ nudge: INudgeType; | ||
export type { IResourceSettings } from './IResourceSettings'; | ||
export declare type IResourceSettingsByContextKey = t.TypeOf<typeof ResourceSettingsByContextKeyV>; | ||
export declare type IResourceSettingsByContextKey = t.TypeOf<typeof ResourceSettingsByContextKeyV> & unknown; | ||
export type { DetailPreviewObjectType, DetailPreviewType, DataRowMetadata } from './detailPreview'; | ||
/*******************************************************************************/ | ||
export declare const isCommand: (command?: ICommandType | any) => command is { | ||
id: number; | ||
organization: string | number; | ||
text: string; | ||
template: ({ | ||
type: "admin"; | ||
value: string; | ||
} & {} & { | ||
commandType?: "object" | "help" | "independent" | undefined; | ||
object?: string | undefined; | ||
hoverTooltip?: boolean | undefined; | ||
operation?: "self" | "router" | "blank" | undefined; | ||
}) | ({ | ||
type: "callback"; | ||
value: string; | ||
} & {} & { | ||
commandType?: "object" | "help" | "independent" | undefined; | ||
object?: string | undefined; | ||
hoverTooltip?: boolean | undefined; | ||
operation?: "self" | "router" | "blank" | undefined; | ||
}) | ({ | ||
type: "link"; | ||
value: string; | ||
} & {} & { | ||
commandType?: "object" | "help" | "independent" | undefined; | ||
object?: string | undefined; | ||
hoverTooltip?: boolean | undefined; | ||
operation?: "self" | "router" | "blank" | undefined; | ||
}) | ({ | ||
type: "click" | "clickByXpath" | "clickBySelector"; | ||
value: string[]; | ||
} & {} & { | ||
commandType?: "object" | "help" | "independent" | undefined; | ||
object?: string | undefined; | ||
hoverTooltip?: boolean | undefined; | ||
operation?: "self" | "router" | "blank" | undefined; | ||
}) | ({ | ||
type: "builtin"; | ||
value: string; | ||
} & {} & { | ||
commandType?: "object" | "help" | "independent" | undefined; | ||
object?: string | undefined; | ||
hoverTooltip?: boolean | undefined; | ||
operation?: "self" | "router" | "blank" | undefined; | ||
}) | ({ | ||
type: "webhook"; | ||
value: string; | ||
} & {} & { | ||
commandType?: "object" | "help" | "independent" | undefined; | ||
object?: string | undefined; | ||
hoverTooltip?: boolean | undefined; | ||
operation?: "self" | "router" | "blank" | undefined; | ||
}) | ({ | ||
type: "script"; | ||
value: string; | ||
} & {} & { | ||
commandType?: "object" | "help" | "independent" | undefined; | ||
object?: string | undefined; | ||
hoverTooltip?: boolean | undefined; | ||
operation?: "self" | "router" | "blank" | undefined; | ||
}) | ({ | ||
type: "request"; | ||
value: { | ||
method: "head" | "options" | "get" | "delete" | "post" | "put" | "patch"; | ||
url: string; | ||
} & { | ||
headers?: { | ||
[key: string]: unknown; | ||
} | undefined; | ||
body?: { | ||
[key: string]: unknown; | ||
} | undefined; | ||
onSend?: string | undefined; | ||
onSuccess?: string | undefined; | ||
onError?: string | undefined; | ||
}; | ||
} & {} & { | ||
commandType?: "object" | "help" | "independent" | undefined; | ||
object?: string | undefined; | ||
hoverTooltip?: boolean | undefined; | ||
operation?: "self" | "router" | "blank" | undefined; | ||
}) | ({ | ||
type: "appcues"; | ||
value: string; | ||
} & {} & { | ||
commandType?: "object" | "help" | "independent" | undefined; | ||
object?: string | undefined; | ||
hoverTooltip?: boolean | undefined; | ||
operation?: "self" | "router" | "blank" | undefined; | ||
}) | ({ | ||
type: "video"; | ||
value: string; | ||
} & {} & { | ||
commandType?: "object" | "help" | "independent" | undefined; | ||
object?: string | undefined; | ||
hoverTooltip?: boolean | undefined; | ||
operation?: "self" | "router" | "blank" | undefined; | ||
}) | ({ | ||
type: "helpdoc"; | ||
value: string; | ||
} & {} & { | ||
commandType?: "object" | "help" | "independent" | undefined; | ||
object?: string | undefined; | ||
hoverTooltip?: boolean | undefined; | ||
operation?: "self" | "router" | "blank" | undefined; | ||
}); | ||
} & { | ||
disabledReason?: string | undefined; | ||
source?: string | undefined; | ||
name?: string | undefined; | ||
last_available?: string | null | undefined; | ||
modified?: string | undefined; | ||
isAsync?: boolean | undefined; | ||
} & { | ||
arguments: { | ||
[x: string]: ({ | ||
type: "context"; | ||
value: string; | ||
order_key: number; | ||
} & { | ||
label?: string | undefined; | ||
chosen?: string | number | undefined; | ||
selected?: any[] | undefined; | ||
input_type?: string | undefined; | ||
preselected_key?: string | undefined; | ||
label_field?: string | undefined; | ||
availability_condition?: { | ||
field: string; | ||
operator: "==" | "!=" | "isTruthy" | "isFalsy"; | ||
value: string | undefined; | ||
}[] | undefined; | ||
loaded?: any[] | undefined; | ||
allow_create?: boolean | undefined; | ||
allow_create_label?: string | undefined; | ||
show_in_record_action_list?: boolean | undefined; | ||
show_in_default_list?: boolean | undefined; | ||
auto_choose?: boolean | undefined; | ||
is_private?: boolean | undefined; | ||
}) | ({ | ||
type: "set"; | ||
value: string[] | number[] | { | ||
[key: string]: unknown; | ||
}[]; | ||
order_key: number; | ||
} & { | ||
label?: string | undefined; | ||
chosen?: string | number | undefined; | ||
selected?: any[] | undefined; | ||
input_type?: string | undefined; | ||
preselected_key?: string | undefined; | ||
label_field?: string | undefined; | ||
availability_condition?: { | ||
field: string; | ||
operator: "==" | "!=" | "isTruthy" | "isFalsy"; | ||
value: string | undefined; | ||
}[] | undefined; | ||
loaded?: any[] | undefined; | ||
allow_create?: boolean | undefined; | ||
allow_create_label?: string | undefined; | ||
auto_choose?: boolean | undefined; | ||
is_private?: boolean | undefined; | ||
}) | ({ | ||
type: "provided"; | ||
value: "time" | "text"; | ||
order_key: number; | ||
} & { | ||
label?: string | undefined; | ||
chosen?: string | number | undefined; | ||
selected?: any[] | undefined; | ||
input_type?: string | undefined; | ||
preselected_key?: string | undefined; | ||
label_field?: string | undefined; | ||
availability_condition?: { | ||
field: string; | ||
operator: "==" | "!=" | "isTruthy" | "isFalsy"; | ||
value: string | undefined; | ||
}[] | undefined; | ||
loaded?: any[] | undefined; | ||
dateTimeArgumentTypeId?: number | undefined; | ||
allow_create?: boolean | undefined; | ||
allow_create_label?: string | undefined; | ||
auto_choose?: boolean | undefined; | ||
is_private?: boolean | undefined; | ||
}) | ({ | ||
type: "dependent"; | ||
value: string; | ||
order_key: number; | ||
} & { | ||
label?: string | undefined; | ||
chosen?: string | number | undefined; | ||
selected?: any[] | undefined; | ||
input_type?: string | undefined; | ||
preselected_key?: string | undefined; | ||
label_field?: string | undefined; | ||
availability_condition?: { | ||
field: string; | ||
operator: "==" | "!=" | "isTruthy" | "isFalsy"; | ||
value: string | undefined; | ||
}[] | undefined; | ||
loaded?: any[] | undefined; | ||
allow_create?: boolean | undefined; | ||
allow_create_label?: string | undefined; | ||
auto_choose?: boolean | undefined; | ||
is_private?: boolean | undefined; | ||
}) | ({ | ||
type: "function"; | ||
value: string; | ||
order_key: number; | ||
} & { | ||
label?: string | undefined; | ||
chosen?: string | number | undefined; | ||
selected?: any[] | undefined; | ||
input_type?: string | undefined; | ||
preselected_key?: string | undefined; | ||
label_field?: string | undefined; | ||
availability_condition?: { | ||
field: string; | ||
operator: "==" | "!=" | "isTruthy" | "isFalsy"; | ||
value: string | undefined; | ||
}[] | undefined; | ||
loaded?: any[] | undefined; | ||
allow_create?: boolean | undefined; | ||
allow_create_label?: string | undefined; | ||
auto_choose?: boolean | undefined; | ||
is_private?: boolean | undefined; | ||
}) | ({ | ||
type: "html" | "video"; | ||
value: { | ||
source: string; | ||
} & { | ||
title?: string | undefined; | ||
description?: string | undefined; | ||
url?: string | undefined; | ||
}; | ||
order_key: number; | ||
} & { | ||
label?: string | undefined; | ||
chosen?: string | number | undefined; | ||
selected?: any[] | undefined; | ||
input_type?: string | undefined; | ||
preselected_key?: string | undefined; | ||
label_field?: string | undefined; | ||
availability_condition?: { | ||
field: string; | ||
operator: "==" | "!=" | "isTruthy" | "isFalsy"; | ||
value: string | undefined; | ||
}[] | undefined; | ||
loaded?: any[] | undefined; | ||
allow_create?: boolean | undefined; | ||
allow_create_label?: string | undefined; | ||
is_private?: boolean | undefined; | ||
auto_choose?: boolean | undefined; | ||
}); | ||
}; | ||
tags: string[]; | ||
availability_rules: ({ | ||
type: "url" | "element" | "context"; | ||
operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage"; | ||
} & { | ||
field?: string | undefined; | ||
value?: string | undefined; | ||
reason?: string | undefined; | ||
})[]; | ||
recommend_rules: (({ | ||
type: "url" | "element" | "context"; | ||
operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage"; | ||
} & { | ||
field?: string | undefined; | ||
value?: string | undefined; | ||
reason?: string | undefined; | ||
}) | ({ | ||
type: "always"; | ||
} & { | ||
operator?: null | undefined; | ||
field?: null | undefined; | ||
value?: null | undefined; | ||
reason?: null | undefined; | ||
}))[]; | ||
availability_expression: import("./helpers/rules").RuleExpression | null; | ||
recommend_expression: import("./helpers/rules").RuleExpression | null; | ||
always_recommend: boolean; | ||
confirm: string; | ||
shortcut: string[]; | ||
explanation: string; | ||
heading: string; | ||
is_live: boolean; | ||
category: number | null; | ||
sort_key: number | null; | ||
icon: string | null; | ||
image: string | null; | ||
celebrate: boolean | { | ||
angle?: number | undefined; | ||
spread?: number | undefined; | ||
width?: string | undefined; | ||
height?: string | undefined; | ||
duration?: number | undefined; | ||
dragFriction?: number | undefined; | ||
stagger?: number | undefined; | ||
startVelocity?: number | undefined; | ||
elementCount?: number | undefined; | ||
decay?: number | undefined; | ||
colors?: string[] | undefined; | ||
random?: any; | ||
} | null; | ||
recommend_sort_key: number | null; | ||
shortcut_mac: string[]; | ||
shortcut_win: string[]; | ||
hotkey_mac: string; | ||
hotkey_win: string; | ||
detail: string | ({ | ||
type: "html" | "video" | "plaintext" | "markdown" | "react" | "component"; | ||
value: string; | ||
} & { | ||
position?: "inline" | "popover" | undefined; | ||
}) | (string | ({ | ||
type: "html" | "video" | "plaintext" | "markdown" | "react" | "component"; | ||
value: string; | ||
} & { | ||
position?: "inline" | "popover" | undefined; | ||
}))[] | null; | ||
next_steps: (string | number)[]; | ||
} & { | ||
third_party_source?: string | null | undefined; | ||
third_party_id?: string | null | undefined; | ||
}; | ||
export declare const isCommand: (command?: ICommandType | any) => command is ICommandType; | ||
export declare const isResource: (option: any) => option is IResourceType; | ||
export declare const isContextArgument: (argument: IArgumentType) => argument is { | ||
type: "context"; | ||
value: string; | ||
order_key: number; | ||
} & { | ||
label?: string | undefined; | ||
chosen?: string | number | undefined; | ||
selected?: any[] | undefined; | ||
input_type?: string | undefined; | ||
preselected_key?: string | undefined; | ||
label_field?: string | undefined; | ||
availability_condition?: { | ||
field: string; | ||
operator: "==" | "!=" | "isTruthy" | "isFalsy"; | ||
value: string | undefined; | ||
}[] | undefined; | ||
loaded?: any[] | undefined; | ||
allow_create?: boolean | undefined; | ||
allow_create_label?: string | undefined; | ||
show_in_record_action_list?: boolean | undefined; | ||
show_in_default_list?: boolean | undefined; | ||
auto_choose?: boolean | undefined; | ||
is_private?: boolean | undefined; | ||
}; | ||
export declare const isTimeArgument: (argument: IArgumentType) => argument is { | ||
type: "provided"; | ||
value: "time" | "text"; | ||
order_key: number; | ||
} & { | ||
label?: string | undefined; | ||
chosen?: string | number | undefined; | ||
selected?: any[] | undefined; | ||
input_type?: string | undefined; | ||
preselected_key?: string | undefined; | ||
label_field?: string | undefined; | ||
availability_condition?: { | ||
field: string; | ||
operator: "==" | "!=" | "isTruthy" | "isFalsy"; | ||
value: string | undefined; | ||
}[] | undefined; | ||
loaded?: any[] | undefined; | ||
dateTimeArgumentTypeId?: number | undefined; | ||
allow_create?: boolean | undefined; | ||
allow_create_label?: string | undefined; | ||
auto_choose?: boolean | undefined; | ||
is_private?: boolean | undefined; | ||
}; | ||
export declare const isFunctionArgument: (argument: IArgumentType) => argument is { | ||
type: "function"; | ||
value: string; | ||
order_key: number; | ||
} & { | ||
label?: string | undefined; | ||
chosen?: string | number | undefined; | ||
selected?: any[] | undefined; | ||
input_type?: string | undefined; | ||
preselected_key?: string | undefined; | ||
label_field?: string | undefined; | ||
availability_condition?: { | ||
field: string; | ||
operator: "==" | "!=" | "isTruthy" | "isFalsy"; | ||
value: string | undefined; | ||
}[] | undefined; | ||
loaded?: any[] | undefined; | ||
allow_create?: boolean | undefined; | ||
allow_create_label?: string | undefined; | ||
auto_choose?: boolean | undefined; | ||
is_private?: boolean | undefined; | ||
}; | ||
export declare const isContextArgument: (argument: IArgumentType) => argument is IContextArgumentType; | ||
export declare const isTimeArgument: (argument: IArgumentType) => argument is IDynamicArgumentType; | ||
export declare const isFunctionArgument: (argument: IArgumentType) => argument is IFunctionArgumentType; |
{ | ||
"name": "commandbar", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"description": "Javascript Utility for CommandBar", | ||
@@ -23,3 +23,4 @@ "main": "build/commandbar-js/src/index.js", | ||
"fp-ts": "2.10.5", | ||
"io-ts": "2.2.13" | ||
"io-ts": "2.2.13", | ||
"react-hot-toast": "^2.3.0" | ||
}, | ||
@@ -26,0 +27,0 @@ "devDependencies": { |
Sorry, the diff of this file is too big to display
528245
4
11926
+ Addedreact-hot-toast@^2.3.0
+ Addedcsstype@3.1.3(transitive)
+ Addedgoober@2.1.16(transitive)
+ Addedreact@19.0.0(transitive)
+ Addedreact-dom@19.0.0(transitive)
+ Addedreact-hot-toast@2.5.1(transitive)
+ Addedscheduler@0.25.0(transitive)