commandbar 1.13.1 → 1.14.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/build/commandbar-js/src/index.d.ts +0 -2
- package/build/commandbar-js/src/index.js +1 -2
- package/build/internal/src/middleware/OrganizationV.d.ts +8 -0
- package/build/internal/src/middleware/chat.d.ts +705 -705
- package/build/internal/src/middleware/command.d.ts +311 -311
- package/build/internal/src/middleware/experienceTemplate.d.ts +104 -40
- package/build/internal/src/middleware/experiencesSearch.d.ts +105 -105
- package/build/internal/src/middleware/flags.d.ts +2 -0
- package/build/internal/src/middleware/helpDocsSearch.d.ts +75 -75
- package/build/internal/src/middleware/helpers/rules.d.ts +1 -1
- package/build/internal/src/middleware/nudge.d.ts +116 -45
- package/build/internal/src/middleware/organization.d.ts +91 -75
- package/build/internal/src/middleware/organizationSettings.d.ts +22 -6
- package/build/internal/src/middleware/types.d.ts +10 -0
- package/build/internal/src/util/operatingSystem.d.ts +1 -0
- package/package.json +1 -2
- package/src/index.ts +0 -2
- package/build/commandbar-js/src/index.js.LICENSE.txt +0 -14
@@ -43,6 +43,10 @@ export declare const OrganizationSettingsV: t.TypeC<{
|
|
43
43
|
helphub_continuations_enabled: t.BooleanC;
|
44
44
|
helphub_manual_suggested_queries: t.ArrayC<t.StringC>;
|
45
45
|
helphub_custom_theme: t.UnionC<[t.StringC, t.NullC]>;
|
46
|
+
product_tours_custom_theme: t.UnionC<[t.StringC, t.NullC]>;
|
47
|
+
announcements_custom_theme: t.UnionC<[t.StringC, t.NullC]>;
|
48
|
+
surveys_custom_theme: t.UnionC<[t.StringC, t.NullC]>;
|
49
|
+
checklists_custom_theme: t.UnionC<[t.StringC, t.NullC]>;
|
46
50
|
copilot_name: t.StringC;
|
47
51
|
copilot_avatar: t.StringC;
|
48
52
|
copilot_avatar_v2: t.UnionC<[t.TypeC<{
|
@@ -276,6 +280,10 @@ export declare const read: (params?: Record<string, string> | undefined, callbac
|
|
276
280
|
helphub_continuations_enabled: boolean;
|
277
281
|
helphub_manual_suggested_queries: string[];
|
278
282
|
helphub_custom_theme: string | null;
|
283
|
+
product_tours_custom_theme: string | null;
|
284
|
+
announcements_custom_theme: string | null;
|
285
|
+
surveys_custom_theme: string | null;
|
286
|
+
checklists_custom_theme: string | null;
|
279
287
|
copilot_name: string;
|
280
288
|
copilot_avatar: string;
|
281
289
|
copilot_avatar_v2: {
|
@@ -287,9 +295,9 @@ export declare const read: (params?: Record<string, string> | undefined, callbac
|
|
287
295
|
template: "professional" | "friendly" | "confident" | "serious" | "empathetic";
|
288
296
|
} | {
|
289
297
|
template: "custom";
|
290
|
-
adjectives: ("
|
298
|
+
adjectives: ("brave" | "empathetic" | "abrasive" | "adventurous" | "affable" | "arrogant" | "assertive" | "assured" | "belligerent" | "cheerful" | "compassionate" | "condescending" | "courteous" | "creative" | "cynical" | "decisive" | "detached" | "diligent" | "eloquent" | "evasive" | "formal" | "frivolous" | "garrulous" | "generous" | "impulsive" | "innovative" | "intense" | "judgmental" | "jovial" | "manipulative" | "obstinate" | "optimistic" | "perceptive" | "pessimistic" | "quarrelsome" | "respectful" | "resourceful" | "sarcastic" | "sincere" | "sociable" | "solemn" | "supportive" | "tactful" | "thoughtful" | "understanding" | "unreliable" | "vain" | "vivacious" | "warm" | "withdrawn" | "witty" | "zealous")[];
|
291
299
|
response_length: "long" | "short" | "conversational";
|
292
|
-
response_format: "
|
300
|
+
response_format: "lists" | "paragraphs" | "mixed";
|
293
301
|
};
|
294
302
|
copilot_chat_history_enabled: boolean;
|
295
303
|
helphub_enabled: boolean;
|
@@ -503,6 +511,10 @@ export declare const update: (object: {
|
|
503
511
|
helphub_continuations_enabled?: boolean | undefined;
|
504
512
|
helphub_manual_suggested_queries?: string[] | undefined;
|
505
513
|
helphub_custom_theme?: string | null | undefined;
|
514
|
+
product_tours_custom_theme?: string | null | undefined;
|
515
|
+
announcements_custom_theme?: string | null | undefined;
|
516
|
+
surveys_custom_theme?: string | null | undefined;
|
517
|
+
checklists_custom_theme?: string | null | undefined;
|
506
518
|
copilot_name?: string | undefined;
|
507
519
|
copilot_avatar?: string | undefined;
|
508
520
|
copilot_avatar_v2?: {
|
@@ -514,9 +526,9 @@ export declare const update: (object: {
|
|
514
526
|
template: "professional" | "friendly" | "confident" | "serious" | "empathetic";
|
515
527
|
} | {
|
516
528
|
template: "custom";
|
517
|
-
adjectives: ("
|
529
|
+
adjectives: ("brave" | "empathetic" | "abrasive" | "adventurous" | "affable" | "arrogant" | "assertive" | "assured" | "belligerent" | "cheerful" | "compassionate" | "condescending" | "courteous" | "creative" | "cynical" | "decisive" | "detached" | "diligent" | "eloquent" | "evasive" | "formal" | "frivolous" | "garrulous" | "generous" | "impulsive" | "innovative" | "intense" | "judgmental" | "jovial" | "manipulative" | "obstinate" | "optimistic" | "perceptive" | "pessimistic" | "quarrelsome" | "respectful" | "resourceful" | "sarcastic" | "sincere" | "sociable" | "solemn" | "supportive" | "tactful" | "thoughtful" | "understanding" | "unreliable" | "vain" | "vivacious" | "warm" | "withdrawn" | "witty" | "zealous")[];
|
518
530
|
response_length: "long" | "short" | "conversational";
|
519
|
-
response_format: "
|
531
|
+
response_format: "lists" | "paragraphs" | "mixed";
|
520
532
|
} | undefined;
|
521
533
|
copilot_chat_history_enabled?: boolean | undefined;
|
522
534
|
helphub_enabled?: boolean | undefined;
|
@@ -732,6 +744,10 @@ export declare const update: (object: {
|
|
732
744
|
helphub_continuations_enabled: boolean;
|
733
745
|
helphub_manual_suggested_queries: string[];
|
734
746
|
helphub_custom_theme: string | null;
|
747
|
+
product_tours_custom_theme: string | null;
|
748
|
+
announcements_custom_theme: string | null;
|
749
|
+
surveys_custom_theme: string | null;
|
750
|
+
checklists_custom_theme: string | null;
|
735
751
|
copilot_name: string;
|
736
752
|
copilot_avatar: string;
|
737
753
|
copilot_avatar_v2: {
|
@@ -743,9 +759,9 @@ export declare const update: (object: {
|
|
743
759
|
template: "professional" | "friendly" | "confident" | "serious" | "empathetic";
|
744
760
|
} | {
|
745
761
|
template: "custom";
|
746
|
-
adjectives: ("
|
762
|
+
adjectives: ("brave" | "empathetic" | "abrasive" | "adventurous" | "affable" | "arrogant" | "assertive" | "assured" | "belligerent" | "cheerful" | "compassionate" | "condescending" | "courteous" | "creative" | "cynical" | "decisive" | "detached" | "diligent" | "eloquent" | "evasive" | "formal" | "frivolous" | "garrulous" | "generous" | "impulsive" | "innovative" | "intense" | "judgmental" | "jovial" | "manipulative" | "obstinate" | "optimistic" | "perceptive" | "pessimistic" | "quarrelsome" | "respectful" | "resourceful" | "sarcastic" | "sincere" | "sociable" | "solemn" | "supportive" | "tactful" | "thoughtful" | "understanding" | "unreliable" | "vain" | "vivacious" | "warm" | "withdrawn" | "witty" | "zealous")[];
|
747
763
|
response_length: "long" | "short" | "conversational";
|
748
|
-
response_format: "
|
764
|
+
response_format: "lists" | "paragraphs" | "mixed";
|
749
765
|
};
|
750
766
|
copilot_chat_history_enabled: boolean;
|
751
767
|
helphub_enabled: boolean;
|
@@ -110,6 +110,16 @@ export type INudgeTooltipStepType = INudgeStepType & {
|
|
110
110
|
type: 'tooltip';
|
111
111
|
};
|
112
112
|
};
|
113
|
+
export type INudgePopoverStepType = INudgeStepType & {
|
114
|
+
form_factor: {
|
115
|
+
type: 'popover';
|
116
|
+
};
|
117
|
+
};
|
118
|
+
export type INudgeModalStepType = INudgeStepType & {
|
119
|
+
form_factor: {
|
120
|
+
type: 'modal';
|
121
|
+
};
|
122
|
+
};
|
113
123
|
export type INudgePinStepType = INudgeStepType & {
|
114
124
|
form_factor: {
|
115
125
|
type: 'pin';
|
@@ -3,6 +3,7 @@ export type BrowserType = 'chrome' | 'firefox' | 'safari' | 'opera' | 'edge' | '
|
|
3
3
|
export type DeviceType = 'mobile' | 'desktop';
|
4
4
|
export declare const EDITOR_MOBILE_PREVIEW_SCREEN_HEIGHT = 932;
|
5
5
|
export declare const EDITOR_MOBILE_PREVIEW_SCREEN_WIDTH = 430;
|
6
|
+
export declare const isTouchDevice: () => boolean;
|
6
7
|
export declare const isMobileDevice: () => boolean;
|
7
8
|
export declare const getDeviceType: () => DeviceType;
|
8
9
|
export declare const getBrowser: () => BrowserType | null;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "commandbar",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.14.0",
|
4
4
|
"description": "Javascript Utility for CommandBar",
|
5
5
|
"main": "build/commandbar-js/src/index.js",
|
6
6
|
"types": "build/commandbar-js/src/index.d.ts",
|
@@ -18,7 +18,6 @@
|
|
18
18
|
"author": "",
|
19
19
|
"license": "ISC",
|
20
20
|
"dependencies": {
|
21
|
-
"commandbar-launcher": "^1.1.10",
|
22
21
|
"fp-ts": "2.10.5",
|
23
22
|
"io-ts": "^2.2.14"
|
24
23
|
},
|
package/src/index.ts
CHANGED
@@ -1,10 +1,8 @@
|
|
1
|
-
import Launcher, { getControlKey } from 'commandbar-launcher';
|
2
1
|
import type { CommandBarClientSDK } from '@commandbar/internal/client/CommandBarClientSDK';
|
3
2
|
|
4
3
|
export { default as init } from './init';
|
5
4
|
export { initProxySDK as initProxy } from '@commandbar/internal/client/proxy';
|
6
5
|
export { CommandBarClientSDK };
|
7
|
-
export { Launcher, getControlKey };
|
8
6
|
|
9
7
|
declare global {
|
10
8
|
interface Window {
|
@@ -1,14 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
object-assign
|
3
|
-
(c) Sindre Sorhus
|
4
|
-
@license MIT
|
5
|
-
*/
|
6
|
-
|
7
|
-
/** @license React v17.0.2
|
8
|
-
* react.production.min.js
|
9
|
-
*
|
10
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
11
|
-
*
|
12
|
-
* This source code is licensed under the MIT license found in the
|
13
|
-
* LICENSE file in the root directory of this source tree.
|
14
|
-
*/
|