commandbar 1.11.0 → 1.12.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/src/shared/services/analytics/EventHandler.d.ts +2 -2
- package/build/commandbar/src/shared/services/analytics/types.d.ts +2 -2
- package/build/commandbar/src/shared/services/analytics/v2/client.d.ts +1 -1
- package/build/commandbar/src/shared/services/analytics/v2/schema.d.ts +1 -1
- package/build/commandbar-js/src/index.d.ts +2 -2
- package/build/commandbar-js/src/index.js +1 -1
- package/build/commandbar-js/src/snippet.d.ts +1 -1
- package/build/internal/src/client/CommandBarClientSDK.d.ts +1 -1
- package/build/internal/src/client/CommandBarSDK.d.ts +3 -3
- package/build/internal/src/middleware/OrganizationV.d.ts +10 -0
- package/build/internal/src/middleware/api.d.ts +8 -0
- package/build/internal/src/middleware/checklist.d.ts +8 -0
- package/build/internal/src/middleware/endUser.d.ts +1 -1
- package/build/internal/src/middleware/experienceTemplate.d.ts +8 -0
- package/build/internal/src/middleware/flags.d.ts +2 -1
- package/build/internal/src/middleware/helpHub.d.ts +1 -0
- package/build/internal/src/middleware/helpers/rules.d.ts +2 -0
- package/build/internal/src/middleware/nudge.d.ts +8 -0
- package/build/internal/src/middleware/organization.d.ts +21 -0
- package/build/internal/src/middleware/organizationSettings.d.ts +4 -0
- package/build/internal/src/middleware/theme.d.ts +74 -0
- package/build/internal/src/middleware/types.d.ts +4 -1
- package/build/internal/src/middleware/workflow.d.ts +16 -0
- package/build/internal/src/util/sentry.d.ts +2 -2
- package/package.json +4 -2
- package/src/index.ts +2 -2
- package/src/init.ts +5 -1
- package/src/snippet.ts +6 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { IPushTrigger, ITemplate } from '
|
1
|
+
import { IPushTrigger, ITemplate } from '../../../../../internal/src/middleware/types';
|
2
2
|
import { EVENT_NAME } from './types';
|
3
3
|
export declare const CLIENT_HANDLER_EVENT_TYPES: {
|
4
4
|
internal: EVENT_NAME;
|
@@ -182,7 +182,7 @@ export interface NudgeEvent {
|
|
182
182
|
export interface SurveyResponseEvent {
|
183
183
|
type: 'survey_response';
|
184
184
|
response: {
|
185
|
-
type: 'number';
|
185
|
+
type: 'number' | 'nps';
|
186
186
|
value: number;
|
187
187
|
emoji: string | undefined;
|
188
188
|
max: number;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { SDKConfig } from '
|
2
|
-
import { FormFactor, MetaAttributes } from '
|
1
|
+
import { SDKConfig } from '../../../../../internal/src/client/SDKConfig';
|
2
|
+
import { FormFactor, MetaAttributes } from '../../../../../internal/src/client/CommandBarClientSDK';
|
3
3
|
import { ChecklistEvent, ChecklistItemEvent, EngagementType, NudgeEvent, PreviewEvent, HelpHubEvent, HelpHubDocEvent, EventType, SurveyResponseEvent, ChatHistory, ClientErrorEvent } from './EventHandler';
|
4
4
|
export declare enum EVENT_TYPE {
|
5
5
|
Track = "t",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { CBEvent, CBEventName, CBRawEvent } from './types';
|
2
2
|
import { CBEventProperties } from './schema';
|
3
|
-
import { IDecideResponseType } from '
|
3
|
+
import { IDecideResponseType } from '../../../../../../internal/src/middleware/types';
|
4
4
|
export declare class AnalyticsV2 {
|
5
5
|
hasBooted: boolean;
|
6
6
|
private enabled;
|
@@ -8,7 +8,7 @@ export interface CBClientEvent {
|
|
8
8
|
* The version of the schema used.
|
9
9
|
*/
|
10
10
|
version: 1 | 2;
|
11
|
-
name: "cb:identify" | "cb:decide" | "cb:pageview" | "cb:click" | "cb:input" | "cb:nudge_viewed" | "cb:nudge_dismissed" | "cb:nudge_snoozed" | "cb:nudge_cta_clicked" | "cb:nudge_survey_submitted" | "cb:nudge_checklist_item_skipped" | "cb:nudge_checklist_item_completed" | "cb:nudge_checklist_completed" | "cb:assistance_modal_opened" | "cb:assistance_modal_closed" | "cb:copilot_viewed" | "cb:copilot_chat_started" | "cb:copilot_chat_restarted" | "cb:copilot_chat_message_sent" | "cb:copilot_chat_message_feedback" | "cb:copilot_follow_up_clicked" | "cb:copilot_source_clicked" | "cb:copilot_link_clicked" | "cb:copilot_experience_clicked" | "cb:
|
11
|
+
name: "cb:identify" | "cb:decide" | "cb:pageview" | "cb:click" | "cb:input" | "cb:nudge_viewed" | "cb:nudge_dismissed" | "cb:nudge_snoozed" | "cb:nudge_cta_clicked" | "cb:nudge_survey_submitted" | "cb:nudge_checklist_item_skipped" | "cb:nudge_checklist_item_completed" | "cb:nudge_checklist_completed" | "cb:assistance_modal_opened" | "cb:assistance_modal_closed" | "cb:copilot_viewed" | "cb:copilot_chat_started" | "cb:copilot_chat_restarted" | "cb:copilot_chat_message_sent" | "cb:copilot_chat_message_feedback" | "cb:copilot_follow_up_clicked" | "cb:copilot_source_clicked" | "cb:copilot_link_clicked" | "cb:copilot_experience_clicked" | "cb:helphub_viewed" | "cb:helphub_search_input" | "cb:helphub_search_executed" | "cb:helphub_search_result_clicked" | "cb:helphub_suggested_query_clicked" | "cb:helphub_doc_link_copied" | "cb:helphub_additional_resource_clicked" | "cb:helphub_recommendation_clicked" | "cb:spotlight_opened" | "cb:spotlight_closed" | "cb:spotlight_search_input" | "cb:spotlight_search_executed" | "cb:spotlight_search_result_clicked" | "cb:action_executed" | "cb:content_viewed" | "cb:content_closed" | "cb:content_link_clicked" | "cb:content_scrolled" | "cb:content_play_clicked" | "cb:content_pause_clicked";
|
12
12
|
/**
|
13
13
|
* Whether the user is an admin of the related organization.
|
14
14
|
*/
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import Launcher, { getControlKey } from 'commandbar-launcher';
|
2
|
-
import type { CommandBarClientSDK } from '
|
2
|
+
import type { CommandBarClientSDK } from '../../internal/src/client/CommandBarClientSDK';
|
3
3
|
export { default as init } from './init';
|
4
|
-
export { initProxySDK as initProxy } from '
|
4
|
+
export { initProxySDK as initProxy } from '../../internal/src/client/proxy';
|
5
5
|
export { CommandBarClientSDK };
|
6
6
|
export { Launcher, getControlKey };
|
7
7
|
declare global {
|
@@ -1,2 +1,2 @@
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.commandbar=t():e.commandbar=t()}(this,(()=>(()=>{var e={599:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m,getControlKey:()=>p});var o=r(378),n=function(){return["WINDOWS","ANDROID","LINUX"].includes(function(){if("undefined"!=typeof window){var e=window.navigator.userAgent,t=window.navigator.platform,r="MAC";return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(t)?r="MAC":-1!==["iPhone","iPad","iPod"].indexOf(t)?r="IOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(t)?r="WINDOWS":/Android/.test(e)?r="ANDROID":/Linux/.test(t)&&(r="LINUX"),r}}())?"Ctrl":"⌘"},i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a=o.createContext&&o.createContext(i),s=function(){return s=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},s.apply(this,arguments)},u=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&(r[o[n]]=e[o[n]])}return r};function c(e){return e&&e.map((function(e,t){return o.createElement(e.tag,s({key:t},e.attr),c(e.child))}))}function l(e){return function(t){return o.createElement(f,s({attr:s({},e.attr)},t),c(e.child))}}function f(e){var t=function(t){var r,n=e.size||t.size||"1em";t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className);var i=e.attr,a=e.title,c=u(e,["attr","title"]);return o.createElement("svg",s({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,c,{className:r,style:s({color:e.color||t.color},t.style,e.style),height:n,width:n,xmlns:"http://www.w3.org/2000/svg"}),a&&o.createElement("title",null,a),e.children)};return void 0!==a?o.createElement(a.Consumer,null,(function(e){return t(e)})):t(i)}function d(e){return l({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]})(e)}var p=n;const m=function(e){var t=e.text,r=e.style;return o.createElement("div",{id:"commandbar-user-launcher-component",className:"commandbar-user-launcher",style:r||{},onClick:function(){var e,t;null===(e=window)||void 0===e||null===(t=e.CommandBar)||void 0===t||t.open()}},o.createElement("div",{className:"commandbar-user-launcher__content"},o.createElement("div",{className:"commandbar-user-launcher__prefix"},o.createElement(d,null)," ",t||"Find anything"),!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&o.createElement("div",{className:"commandbar-user-launcher__suffix"},o.createElement("span",{style:{marginRight:3},className:"commandbar-user-launcher__tag"},n()),o.createElement("span",{style:{marginRight:3}},"+"),o.createElement("span",{className:"commandbar-user-launcher__tag "},"K"))))}},296:(e,t,r)=>{"use strict";var o=r(649),n=r(413),i=r(715),a=r(416),s=r(682);(e.exports=function(e,t){var r,n,u,c,l;return arguments.length<2||"string"!=typeof e?(c=t,t=e,e=null):c=arguments[2],o(e)?(r=s.call(e,"c"),n=s.call(e,"e"),u=s.call(e,"w")):(r=u=!0,n=!1),l={value:t,configurable:r,enumerable:n,writable:u},c?i(a(c),l):l}).gs=function(e,t,r){var u,c,l,f;return"string"!=typeof e?(l=r,r=t,t=e,e=null):l=arguments[3],o(t)?n(t)?o(r)?n(r)||(l=r,r=void 0):r=void 0:(l=t,t=r=void 0):t=void 0,o(e)?(u=s.call(e,"c"),c=s.call(e,"e")):(u=!0,c=!1),f={get:t,set:r,configurable:u,enumerable:c},l?i(a(l),f):f}},448:e=>{"use strict";e.exports=function(){}},715:(e,t,r)=>{"use strict";e.exports=r(927)()?Object.assign:r(958)},927:e=>{"use strict";e.exports=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},958:(e,t,r)=>{"use strict";var o=r(700),n=r(240),i=Math.max;e.exports=function(e,t){var r,a,s,u=i(arguments.length,2);for(e=Object(n(e)),s=function(o){try{e[o]=t[o]}catch(e){r||(r=e)}},a=1;a<u;++a)o(t=arguments[a]).forEach(s);if(void 0!==r)throw r;return e}},630:(e,t,r)=>{"use strict";var o=r(448)();e.exports=function(e){return e!==o&&null!==e}},700:(e,t,r)=>{"use strict";e.exports=r(790)()?Object.keys:r(360)},790:e=>{"use strict";e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}},360:(e,t,r)=>{"use strict";var o=r(630),n=Object.keys;e.exports=function(e){return n(o(e)?Object(e):e)}},416:(e,t,r)=>{"use strict";var o=r(630),n=Array.prototype.forEach,i=Object.create;e.exports=function(e){var t=i(null);return n.call(arguments,(function(e){o(e)&&function(e,t){var r;for(r in e)t[r]=e[r]}(Object(e),t)})),t}},240:(e,t,r)=>{"use strict";var o=r(630);e.exports=function(e){if(!o(e))throw new TypeError("Cannot use null or undefined");return e}},682:(e,t,r)=>{"use strict";e.exports=r(974)()?String.prototype.contains:r(641)},974:e=>{"use strict";var t="razdwatrzy";e.exports=function(){return"function"==typeof t.contains&&!0===t.contains("dwa")&&!1===t.contains("foo")}},641:e=>{"use strict";var t=String.prototype.indexOf;e.exports=function(e){return t.call(this,e,arguments[1])>-1}},86:(e,t,r)=>{"use strict";var o=r(84);e.exports=function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!o(e)}},453:(e,t,r)=>{"use strict";var o=r(649),n={object:!0,function:!0,undefined:!0};e.exports=function(e){return!!o(e)&&hasOwnProperty.call(n,typeof e)}},413:(e,t,r)=>{"use strict";var o=r(86),n=/^\s*class[\s{/}]/,i=Function.prototype.toString;e.exports=function(e){return!!o(e)&&!n.test(i.call(e))}},84:(e,t,r)=>{"use strict";var o=r(453);e.exports=function(e){if(!o(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}},649:e=>{"use strict";e.exports=function(e){return null!=e}},992:(e,t,r)=>{"use strict";r(98).polyfill()},98:e=>{"use strict";function t(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var r=Object(e),o=1;o<arguments.length;o++){var n=arguments[o];if(null!=n)for(var i=Object.keys(Object(n)),a=0,s=i.length;a<s;a++){var u=i[a],c=Object.getOwnPropertyDescriptor(n,u);void 0!==c&&c.enumerable&&(r[u]=n[u])}}return r}e.exports={assign:t,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:t})}}},769:(e,t,r)=>{"use strict";r(614)()||Object.defineProperty(r(119),"Symbol",{value:r(798),configurable:!0,enumerable:!1,writable:!0})},614:(e,t,r)=>{"use strict";var o=r(119),n={object:!0,symbol:!0};e.exports=function(){var e,t=o.Symbol;if("function"!=typeof t)return!1;e=t("test symbol");try{String(e)}catch(e){return!1}return!!n[typeof t.iterator]&&!!n[typeof t.toPrimitive]&&!!n[typeof t.toStringTag]}},64:e=>{"use strict";e.exports=function(e){return!!e&&("symbol"==typeof e||!!e.constructor&&"Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag])}},573:(e,t,r)=>{"use strict";var o=r(296),n=Object.create,i=Object.defineProperty,a=Object.prototype,s=n(null);e.exports=function(e){for(var t,r,n=0;s[e+(n||"")];)++n;return s[e+=n||""]=!0,i(a,t="@@"+e,o.gs(null,(function(e){r||(r=!0,i(this,t,o(e)),r=!1)}))),t}},572:(e,t,r)=>{"use strict";var o=r(296),n=r(119).Symbol;e.exports=function(e){return Object.defineProperties(e,{hasInstance:o("",n&&n.hasInstance||e("hasInstance")),isConcatSpreadable:o("",n&&n.isConcatSpreadable||e("isConcatSpreadable")),iterator:o("",n&&n.iterator||e("iterator")),match:o("",n&&n.match||e("match")),replace:o("",n&&n.replace||e("replace")),search:o("",n&&n.search||e("search")),species:o("",n&&n.species||e("species")),split:o("",n&&n.split||e("split")),toPrimitive:o("",n&&n.toPrimitive||e("toPrimitive")),toStringTag:o("",n&&n.toStringTag||e("toStringTag")),unscopables:o("",n&&n.unscopables||e("unscopables"))})}},781:(e,t,r)=>{"use strict";var o=r(296),n=r(11),i=Object.create(null);e.exports=function(e){return Object.defineProperties(e,{for:o((function(t){return i[t]?i[t]:i[t]=e(String(t))})),keyFor:o((function(e){var t;for(t in n(e),i)if(i[t]===e)return t}))})}},798:(e,t,r)=>{"use strict";var o,n,i,a=r(296),s=r(11),u=r(119).Symbol,c=r(573),l=r(572),f=r(781),d=Object.create,p=Object.defineProperties,m=Object.defineProperty;if("function"==typeof u)try{String(u()),i=!0}catch(e){}else u=null;n=function(e){if(this instanceof n)throw new TypeError("Symbol is not a constructor");return o(e)},e.exports=o=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return i?u(t):(r=d(n.prototype),t=void 0===t?"":String(t),p(r,{__description__:a("",t),__name__:a("",c(t))}))},l(o),f(o),p(n.prototype,{constructor:a(o),toString:a("",(function(){return this.__name__}))}),p(o.prototype,{toString:a((function(){return"Symbol ("+s(this).__description__+")"})),valueOf:a((function(){return s(this)}))}),m(o.prototype,o.toPrimitive,a("",(function(){var e=s(this);return"symbol"==typeof e?e:e.toString()}))),m(o.prototype,o.toStringTag,a("c","Symbol")),m(n.prototype,o.toStringTag,a("c",o.prototype[o.toStringTag])),m(n.prototype,o.toPrimitive,a("c",o.prototype[o.toPrimitive]))},11:(e,t,r)=>{"use strict";var o=r(64);e.exports=function(e){if(!o(e))throw new TypeError(e+" is not a symbol");return e}},308:e=>{var t=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw new Error("Unable to resolve global `this`")};e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return t()}try{return __global__||t()}finally{delete Object.prototype.__global__}}()},119:(e,t,r)=>{"use strict";e.exports=r(801)()?globalThis:r(308)},801:e=>{"use strict";e.exports=function(){return"object"==typeof globalThis&&!!globalThis&&globalThis.Array===Array}},525:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var c in i=Object(arguments[u]))r.call(i,c)&&(s[c]=i[c]);if(t){a=t(i);for(var l=0;l<a.length;l++)o.call(i,a[l])&&(s[a[l]]=i[a[l]])}}return s}},656:(e,t,r)=>{"use strict";var o;(o="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)||"undefined"!=typeof navigator&&"ReactNative"===navigator.product?r.g:self).Proxy||(o.Proxy=r(659)(),o.Proxy.revocable=o.Proxy.revocable)},659:e=>{e.exports=function(){let e,t=null;function r(e){return!!e&&("object"==typeof e||"function"==typeof e)}function o(e){if(null!==e&&!r(e))throw new TypeError("Object prototype may only be an Object or null: "+e)}const n=Object,i=Boolean(n.create)||!({__proto__:null}instanceof n),a=n.create||(i?function(e){return o(e),{__proto__:e}}:function(e){if(o(e),null===e)throw new SyntaxError("Native Object.create is required to create objects with null prototype");var t=function(){};return t.prototype=e,new t}),s=function(){return null},u=n.getPrototypeOf||([].__proto__===Array.prototype?function(e){const t=e.__proto__;return r(t)?t:null}:s);return e=function(c,l){if(void 0===(this&&this instanceof e?this.constructor:void 0))throw new TypeError("Constructor Proxy requires 'new'");if(!r(c)||!r(l))throw new TypeError("Cannot create proxy with a non-object as target or handler");let f=function(){};t=function(){c=null,f=function(e){throw new TypeError(`Cannot perform '${e}' on a proxy that has been revoked`)}},setTimeout((function(){t=null}),0);const d=l;l={get:null,set:null,apply:null,construct:null};for(let e in d){if(!(e in l))throw new TypeError(`Proxy polyfill does not support trap '${e}'`);l[e]=d[e]}"function"==typeof d&&(l.apply=d.apply.bind(d));const p=u(c);let m,y=!1,b=!1;"function"==typeof c?(m=function(){const e=this&&this.constructor===m,t=Array.prototype.slice.call(arguments);return f(e?"construct":"apply"),e&&l.construct?l.construct.call(this,c,t):!e&&l.apply?l.apply(c,this,t):e?(t.unshift(c),new(c.bind.apply(c,t))):c.apply(this,t)},y=!0):c instanceof Array?(m=[],b=!0):m=i||null!==p?a(p):{};const _=l.get?function(e){return f("get"),l.get(this,e,m)}:function(e){return f("get"),this[e]},v=l.set?function(e,t){f("set"),l.set(this,e,t,m)}:function(e,t){f("set"),this[e]=t},h=n.getOwnPropertyNames(c),g={};h.forEach((function(e){if((y||b)&&e in m)return;const t=n.getOwnPropertyDescriptor(c,e),r={enumerable:Boolean(t.enumerable),get:_.bind(c,e),set:v.bind(c,e)};n.defineProperty(m,e,r),g[e]=!0}));let S=!0;if(y||b){const e=n.setPrototypeOf||([].__proto__===Array.prototype?function(e,t){return o(t),e.__proto__=t,e}:s);p&&e(m,p)||(S=!1)}if(l.get||!S)for(let e in c)g[e]||n.defineProperty(m,e,{get:_.bind(c,e)});return n.seal(c),n.seal(m),m},e.revocable=function(r,o){return{proxy:new e(r,o),revoke:t}},e}},535:(e,t,r)=>{"use strict";var o=r(525),n=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,u=60112;t.Suspense=60113;var c=60115,l=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;n=f("react.element"),i=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),s=f("react.context"),u=f("react.forward_ref"),t.Suspense=f("react.suspense"),c=f("react.memo"),l=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y={};function b(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||m}function _(){}function v(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||m}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=b.prototype;var h=v.prototype=new _;h.constructor=v,o(h,b.prototype),h.isPureReactComponent=!0;var g={current:null},S=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function w(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,o)&&!C.hasOwnProperty(o)&&(i[o]=t[o]);var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){for(var c=Array(u),l=0;l<u;l++)c[l]=arguments[l+2];i.children=c}if(e&&e.defaultProps)for(o in u=e.defaultProps)void 0===i[o]&&(i[o]=u[o]);return{$$typeof:n,type:e,key:a,ref:s,props:i,_owner:g.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var P=/\/+/g;function j(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function E(e,t,r,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case i:u=!0}}if(u)return a=a(u=e),e=""===o?"."+j(u,0):o,Array.isArray(a)?(r="",null!=e&&(r=e.replace(P,"$&/")+"/"),E(a,t,r,"",(function(e){return e}))):null!=a&&(O(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,r+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+e)),t.push(a)),1;if(u=0,o=""===o?".":o+":",Array.isArray(e))for(var c=0;c<e.length;c++){var l=o+j(s=e[c],c);u+=E(s,t,r,l,a)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),c=0;!(s=e.next()).done;)u+=E(s=s.value,t,r,l=o+j(s,c++),a);else if("object"===s)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function x(e,t,r){if(null==e)return e;var o=[],n=0;return E(e,o,"","",(function(e){return t.call(r,e,n++)})),o}function B(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var T={current:null};function D(){var e=T.current;if(null===e)throw Error(p(321));return e}var A={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:g,IsSomeRendererActing:{current:!1},assign:o};t.Children={map:x,forEach:function(e,t,r){x(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return x(e,(function(){t++})),t},toArray:function(e){return x(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error(p(143));return e}},t.Component=b,t.PureComponent=v,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,t.cloneElement=function(e,t,r){if(null==e)throw Error(p(267,e));var i=o({},e.props),a=e.key,s=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,u=g.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in t)S.call(t,l)&&!C.hasOwnProperty(l)&&(i[l]=void 0===t[l]&&void 0!==c?c[l]:t[l])}var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){c=Array(l);for(var f=0;f<l;f++)c[f]=arguments[f+2];i.children=c}return{$$typeof:n,type:e.type,key:a,ref:s,props:i,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=w,t.createFactory=function(e){var t=w.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:l,_payload:{_status:-1,_result:e},_init:B}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return D().useCallback(e,t)},t.useContext=function(e,t){return D().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return D().useEffect(e,t)},t.useImperativeHandle=function(e,t,r){return D().useImperativeHandle(e,t,r)},t.useLayoutEffect=function(e,t){return D().useLayoutEffect(e,t)},t.useMemo=function(e,t){return D().useMemo(e,t)},t.useReducer=function(e,t,r){return D().useReducer(e,t,r)},t.useRef=function(e){return D().useRef(e)},t.useState=function(e){return D().useState(e)},t.version="17.0.2"},378:(e,t,r)=>{"use strict";e.exports=r(535)},14:function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,n)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getControlKey=t.Launcher=t.initProxy=t.init=void 0;var s=i(r(599));t.Launcher=s.default,Object.defineProperty(t,"getControlKey",{enumerable:!0,get:function(){return s.getControlKey}});var u=r(956);Object.defineProperty(t,"init",{enumerable:!0,get:function(){return a(u).default}});var c=r(737);Object.defineProperty(t,"initProxy",{enumerable:!0,get:function(){return c.initProxySDK}})},956:function(e,t,r){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),r(656),r(992),r(769);var n=r(737),i=r(207),a=function(e,t){if("complete"===document.readyState){var r=function(e,t){var r=t.apiOrigin||"https://api.commandbar.com",o=[],n=localStorage.getItem("commandbar.lc");n&&n.includes("local")&&(r="http://localhost:8000");var i=r+"/latest/"+e;return n&&o.push("lc="+n),t.nonce&&o.push("nonce="+encodeURIComponent(t.nonce)),t.silentMode&&o.push("silent=true"),t.cdnOrigin&&o.push("cdn="+encodeURIComponent(t.cdnOrigin)),o.push("version=2"),i+"?"+o.join("&")}(e,t),o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src=r,document.head.appendChild(o)}else window.addEventListener("load",a.bind(null,e,t),{capture:!1,once:!0})},s={debug:!1,silentMode:!1};t.default=function(e,t){var r;void 0===t&&(t=s);var u=o(o({},s),t);e?(null===(r=(0,n.getProxySDK)()[i._configuration])||void 0===r?void 0:r.uuid)?console.warn("CommandBar init was called more than once. Skipping the redundant initialization..."):(u.debug&&console.log("CommandBar init...",{environment:t.environment,version:t.version}),(0,n.getProxySDK)()[i._configuration]={api:u.apiOrigin,cdn:u.cdnOrigin,uuid:e,environment:u.environment,version:u.version,config:u.config,nonce:u.nonce,silent:u.silentMode},a(e,u)):console.error("No org specified for CommandBar.init")}},343:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_META_ATTRIBUTES=t.DEFAULT_INSTANCE_ATTRIBUTES=t.PRODUCTS=t.ASYNC_METHODS=t.ASYNC_METHODS_SNIPPET=void 0,t.ASYNC_METHODS_SNIPPET=["addCommand","boot","addEventSubscriber","addRecordAction","setFormFactor"],t.ASYNC_METHODS=["addCommand","boot","addEventSubscriber","addEventHandler","addRecordAction","setFormFactor"],t.PRODUCTS=["spotlight","nudges","checklists","help_hub"],t.DEFAULT_INSTANCE_ATTRIBUTES={canOpenEditor:!0,formFactor:{type:"modal"},products:["spotlight","nudges","checklists","help_hub"]},t.DEFAULT_META_ATTRIBUTES={}},737:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initProxySDK=t.getProxySDK=void 0;var o=r(314),n=r(343),i=r(207);function a(){var e,t,r,o,a,s,u=window.CommandBar,c=window.CommandBar;Array.isArray(null==u?void 0:u.q)||"string"==typeof(null==u?void 0:u.uid)?(o=null==u?void 0:u.uid,a=null==u?void 0:u.q,s=null==u?void 0:u.api):(o=null===(t=null==c?void 0:c[i._configuration])||void 0===t?void 0:t.uuid,a=null==c?void 0:c[i._queue],s=null===(r=null==c?void 0:c[i._configuration])||void 0===r?void 0:r.api);var l=((e={})[i._configuration]={uuid:"string"==typeof o?o:"",api:"string"==typeof s?s:void 0},e[i._disposed]=!1,e[i._isProxy]=!0,e[i._queue]=Array.isArray(a)?a:[],e[i._unwrap]=function(){return l},e[i._eventSubscriptions]=void 0,e[i._sentry]=void 0,e),f=l;Object.assign(l,{shareCallbacks:function(){return{}},shareContext:function(){return{}}}),window.CommandBar=new Proxy(l,{get:function(e,t){return t in f?f[t]:"then"!==t?n.ASYNC_METHODS_SNIPPET.includes(t)?function(){var e=Array.prototype.slice.call(arguments);return new Promise((function(r,o){e.unshift(t,r,o),l[i._queue].push(e)}))}:function(){var e=Array.prototype.slice.call(arguments);e.unshift(t),l[i._queue].push(e)}:void 0}})}t.getProxySDK=function(){var e=window.CommandBar;return((0,o.isDisposed)(e)||"boolean"!=typeof e[i._isProxy])&&a(),window.CommandBar[i._unwrap]()},t.initProxySDK=a},207:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._fingerprint=t._user=t._unwrap=t._state=t._showMessage=t._showGuide=t._shareProgrammaticCommands=t._shareContextSettings=t._shareConfig=t._setEditorVisible=t._setTestMode=t._setPreviewMode=t._setDashboard=t._sentry=t._search=t._report=t._reloadChecklists=t._previewChecklist=t._stopNudgeDebug=t._stopChecklistPreview=t._closeNudgeMocks=t._showNudgeStepMock=t._getDebugSnapshot=t._startNudgeDebug=t._stopRecommendationSetPreview=t._previewCopilotSettings=t._previewRecommendationSet=t._reloadHelpHub=t._reloadNudges=t._reloadPlaceholders=t._reloadOrganization=t._reloadCommands=t._reload=t._queue=t._programmaticTheme=t._perf=t._getEditorPreviewDevice=t._updateEditorPreviewDevice=t._shareEditorRouteWithBar=t._onEditorPathChange=t._loadEditor=t._isProxy=t._instanceAttributes=t._disposed=t._dispose=t._dispatch=t._configUser=t._configure=t._configuration=t._analytics=void 0,t._getActiveChat=t._setActiveChat=t._showWidgetTableau=t._setThemeV2=t._shareTrackedEvents=t._stopDebug=t._startDebug=t._updateEditorRoute=t._metaAttributes=t._eventSubscriptions=t._userProperties=void 0,t._analytics=Symbol.for("CommandBar::analytics"),t._configuration=Symbol.for("CommandBar::configuration"),t._configure=Symbol.for("CommandBar::configure"),t._configUser=Symbol.for("CommandBar::configUser"),t._dispatch=Symbol.for("CommandBar::dispatch"),t._dispose=Symbol.for("CommandBar::dispose"),t._disposed=Symbol.for("CommandBar::disposed"),t._instanceAttributes=Symbol.for("CommandBar::instanceAttributes"),t._isProxy=Symbol.for("CommandBar::isProxy"),t._loadEditor=Symbol.for("CommandBar::loadEditor"),t._onEditorPathChange=Symbol.for("CommandBar::onEditorPathChange"),t._shareEditorRouteWithBar=Symbol.for("CommandBar::shareEditorRouteWithBar"),t._updateEditorPreviewDevice=Symbol.for("CommandBar::updateEditorPreviewDevice"),t._getEditorPreviewDevice=Symbol.for("CommandBar::getEditorPreviewDevice"),t._perf=Symbol.for("CommandBar::perf"),t._programmaticTheme=Symbol.for("CommandBar::programmaticTheme"),t._queue=Symbol.for("CommandBar::queue"),t._reload=Symbol.for("CommandBar::reload"),t._reloadCommands=Symbol.for("CommandBar::reloadCommands"),t._reloadOrganization=Symbol.for("CommandBar::reloadOrganization"),t._reloadPlaceholders=Symbol.for("CommandBar::reloadPlaceholders"),t._reloadNudges=Symbol.for("CommandBar::reloadNudges"),t._reloadHelpHub=Symbol.for("CommandBar::reloadHelpHub"),t._previewRecommendationSet=Symbol.for("CommandBar::previewRecommendationSet"),t._previewCopilotSettings=Symbol.for("CommandBar::previewCopilotSettings"),t._stopRecommendationSetPreview=Symbol.for("CommandBar::stopRecommendationSetPreview"),t._startNudgeDebug=Symbol.for("CommandBar::startNudgeDebug"),t._getDebugSnapshot=Symbol.for("CommandBar::getDebugSnapshot"),t._showNudgeStepMock=Symbol.for("CommandBar::showNudgeStepMock"),t._closeNudgeMocks=Symbol.for("CommandBar::closeNudgeMocks"),t._stopChecklistPreview=Symbol.for("CommandBar::stopChecklistPreview"),t._stopNudgeDebug=Symbol.for("CommandBar::stopNudgeDebug"),t._previewChecklist=Symbol.for("CommandBar::previewChecklist"),t._reloadChecklists=Symbol.for("CommandBar::reloadChecklists"),t._report=Symbol.for("CommandBar::report"),t._search=Symbol.for("CommandBar::search"),t._sentry=Symbol.for("CommandBar::sentry"),t._setDashboard=Symbol.for("CommandBar::setDashboard"),t._setPreviewMode=Symbol.for("CommandBar::setPreviewMode"),t._setTestMode=Symbol.for("CommandBar::setTestMode"),t._setEditorVisible=Symbol.for("CommandBar::setEditorVisible"),t._shareConfig=Symbol.for("CommandBar::shareConfig"),t._shareContextSettings=Symbol.for("CommandBar::shareContextSettings"),t._shareProgrammaticCommands=Symbol.for("CommandBar::shareProgrammaticCommands"),t._showGuide=Symbol.for("CommandBar::showGuide"),t._showMessage=Symbol.for("CommandBar::showMessage"),t._state=Symbol.for("CommandBar::state"),t._unwrap=Symbol.for("CommandBar::unwrap"),t._user=Symbol.for("CommandBar::user"),t._fingerprint=Symbol.for("CommandBar::fingerprint"),t._userProperties=Symbol.for("CommandBar::userProperties"),t._eventSubscriptions=Symbol.for("CommandBar::eventSubscriptions"),t._metaAttributes=Symbol.for("CommandBar::metaAttributes"),t._updateEditorRoute=Symbol.for("CommandBar::updateEditorRoute"),t._startDebug=Symbol.for("CommandBar::startDebug"),t._stopDebug=Symbol.for("CommandBar::stopDebug"),t._shareTrackedEvents=Symbol.for("CommandBar::shareTrackedEvents"),t._setThemeV2=Symbol.for("CommandBar::setThemeV2"),t._showWidgetTableau=Symbol.for("CommandBar::showWidgetTableau"),t._setActiveChat=Symbol.for("CommandBar::setActiveChat"),t._getActiveChat=Symbol.for("CommandBar::getActiveChat")},314:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dispose=t.isDisposed=t.isDisposable=void 0;var o=r(207),n=function(e){return void 0!==e&&void 0!==e.dispose},i=function(e){return void 0!==e&&void 0!==e[o._dispose]};t.isDisposable=function(e){return void 0===e||n(e)||i(e)},t.isDisposed=function(e){return void 0===e||n(e)&&!0===e._disposed||i(e)&&!0===e[o._disposed]},t.dispose=function(e){void 0!==e&&(i(e)?e[o._dispose]():e.dispose())}}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,r),i.exports}return r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(14)})()));
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.commandbar=t():e.commandbar=t()}(this,(()=>(()=>{var e={599:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m,getControlKey:()=>p});var o=r(378),n=function(){return["WINDOWS","ANDROID","LINUX"].includes(function(){if("undefined"!=typeof window){var e=window.navigator.userAgent,t=window.navigator.platform,r="MAC";return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(t)?r="MAC":-1!==["iPhone","iPad","iPod"].indexOf(t)?r="IOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(t)?r="WINDOWS":/Android/.test(e)?r="ANDROID":/Linux/.test(t)&&(r="LINUX"),r}}())?"Ctrl":"⌘"},i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a=o.createContext&&o.createContext(i),s=function(){return s=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},s.apply(this,arguments)},u=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&(r[o[n]]=e[o[n]])}return r};function c(e){return e&&e.map((function(e,t){return o.createElement(e.tag,s({key:t},e.attr),c(e.child))}))}function l(e){return function(t){return o.createElement(f,s({attr:s({},e.attr)},t),c(e.child))}}function f(e){var t=function(t){var r,n=e.size||t.size||"1em";t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className);var i=e.attr,a=e.title,c=u(e,["attr","title"]);return o.createElement("svg",s({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,c,{className:r,style:s({color:e.color||t.color},t.style,e.style),height:n,width:n,xmlns:"http://www.w3.org/2000/svg"}),a&&o.createElement("title",null,a),e.children)};return void 0!==a?o.createElement(a.Consumer,null,(function(e){return t(e)})):t(i)}function d(e){return l({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]})(e)}var p=n;const m=function(e){var t=e.text,r=e.style;return o.createElement("div",{id:"commandbar-user-launcher-component",className:"commandbar-user-launcher",style:r||{},onClick:function(){var e,t;null===(e=window)||void 0===e||null===(t=e.CommandBar)||void 0===t||t.open()}},o.createElement("div",{className:"commandbar-user-launcher__content"},o.createElement("div",{className:"commandbar-user-launcher__prefix"},o.createElement(d,null)," ",t||"Find anything"),!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&o.createElement("div",{className:"commandbar-user-launcher__suffix"},o.createElement("span",{style:{marginRight:3},className:"commandbar-user-launcher__tag"},n()),o.createElement("span",{style:{marginRight:3}},"+"),o.createElement("span",{className:"commandbar-user-launcher__tag "},"K"))))}},296:(e,t,r)=>{"use strict";var o=r(649),n=r(413),i=r(715),a=r(416),s=r(682);(e.exports=function(e,t){var r,n,u,c,l;return arguments.length<2||"string"!=typeof e?(c=t,t=e,e=null):c=arguments[2],o(e)?(r=s.call(e,"c"),n=s.call(e,"e"),u=s.call(e,"w")):(r=u=!0,n=!1),l={value:t,configurable:r,enumerable:n,writable:u},c?i(a(c),l):l}).gs=function(e,t,r){var u,c,l,f;return"string"!=typeof e?(l=r,r=t,t=e,e=null):l=arguments[3],o(t)?n(t)?o(r)?n(r)||(l=r,r=void 0):r=void 0:(l=t,t=r=void 0):t=void 0,o(e)?(u=s.call(e,"c"),c=s.call(e,"e")):(u=!0,c=!1),f={get:t,set:r,configurable:u,enumerable:c},l?i(a(l),f):f}},448:e=>{"use strict";e.exports=function(){}},715:(e,t,r)=>{"use strict";e.exports=r(927)()?Object.assign:r(958)},927:e=>{"use strict";e.exports=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},958:(e,t,r)=>{"use strict";var o=r(700),n=r(240),i=Math.max;e.exports=function(e,t){var r,a,s,u=i(arguments.length,2);for(e=Object(n(e)),s=function(o){try{e[o]=t[o]}catch(e){r||(r=e)}},a=1;a<u;++a)o(t=arguments[a]).forEach(s);if(void 0!==r)throw r;return e}},630:(e,t,r)=>{"use strict";var o=r(448)();e.exports=function(e){return e!==o&&null!==e}},700:(e,t,r)=>{"use strict";e.exports=r(790)()?Object.keys:r(360)},790:e=>{"use strict";e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}},360:(e,t,r)=>{"use strict";var o=r(630),n=Object.keys;e.exports=function(e){return n(o(e)?Object(e):e)}},416:(e,t,r)=>{"use strict";var o=r(630),n=Array.prototype.forEach,i=Object.create;e.exports=function(e){var t=i(null);return n.call(arguments,(function(e){o(e)&&function(e,t){var r;for(r in e)t[r]=e[r]}(Object(e),t)})),t}},240:(e,t,r)=>{"use strict";var o=r(630);e.exports=function(e){if(!o(e))throw new TypeError("Cannot use null or undefined");return e}},682:(e,t,r)=>{"use strict";e.exports=r(974)()?String.prototype.contains:r(641)},974:e=>{"use strict";var t="razdwatrzy";e.exports=function(){return"function"==typeof t.contains&&!0===t.contains("dwa")&&!1===t.contains("foo")}},641:e=>{"use strict";var t=String.prototype.indexOf;e.exports=function(e){return t.call(this,e,arguments[1])>-1}},86:(e,t,r)=>{"use strict";var o=r(84);e.exports=function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!o(e)}},453:(e,t,r)=>{"use strict";var o=r(649),n={object:!0,function:!0,undefined:!0};e.exports=function(e){return!!o(e)&&hasOwnProperty.call(n,typeof e)}},413:(e,t,r)=>{"use strict";var o=r(86),n=/^\s*class[\s{/}]/,i=Function.prototype.toString;e.exports=function(e){return!!o(e)&&!n.test(i.call(e))}},84:(e,t,r)=>{"use strict";var o=r(453);e.exports=function(e){if(!o(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}},649:e=>{"use strict";e.exports=function(e){return null!=e}},992:(e,t,r)=>{"use strict";r(98).polyfill()},98:e=>{"use strict";function t(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var r=Object(e),o=1;o<arguments.length;o++){var n=arguments[o];if(null!=n)for(var i=Object.keys(Object(n)),a=0,s=i.length;a<s;a++){var u=i[a],c=Object.getOwnPropertyDescriptor(n,u);void 0!==c&&c.enumerable&&(r[u]=n[u])}}return r}e.exports={assign:t,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:t})}}},769:(e,t,r)=>{"use strict";r(614)()||Object.defineProperty(r(119),"Symbol",{value:r(798),configurable:!0,enumerable:!1,writable:!0})},614:(e,t,r)=>{"use strict";var o=r(119),n={object:!0,symbol:!0};e.exports=function(){var e,t=o.Symbol;if("function"!=typeof t)return!1;e=t("test symbol");try{String(e)}catch(e){return!1}return!!n[typeof t.iterator]&&!!n[typeof t.toPrimitive]&&!!n[typeof t.toStringTag]}},64:e=>{"use strict";e.exports=function(e){return!!e&&("symbol"==typeof e||!!e.constructor&&"Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag])}},573:(e,t,r)=>{"use strict";var o=r(296),n=Object.create,i=Object.defineProperty,a=Object.prototype,s=n(null);e.exports=function(e){for(var t,r,n=0;s[e+(n||"")];)++n;return s[e+=n||""]=!0,i(a,t="@@"+e,o.gs(null,(function(e){r||(r=!0,i(this,t,o(e)),r=!1)}))),t}},572:(e,t,r)=>{"use strict";var o=r(296),n=r(119).Symbol;e.exports=function(e){return Object.defineProperties(e,{hasInstance:o("",n&&n.hasInstance||e("hasInstance")),isConcatSpreadable:o("",n&&n.isConcatSpreadable||e("isConcatSpreadable")),iterator:o("",n&&n.iterator||e("iterator")),match:o("",n&&n.match||e("match")),replace:o("",n&&n.replace||e("replace")),search:o("",n&&n.search||e("search")),species:o("",n&&n.species||e("species")),split:o("",n&&n.split||e("split")),toPrimitive:o("",n&&n.toPrimitive||e("toPrimitive")),toStringTag:o("",n&&n.toStringTag||e("toStringTag")),unscopables:o("",n&&n.unscopables||e("unscopables"))})}},781:(e,t,r)=>{"use strict";var o=r(296),n=r(11),i=Object.create(null);e.exports=function(e){return Object.defineProperties(e,{for:o((function(t){return i[t]?i[t]:i[t]=e(String(t))})),keyFor:o((function(e){var t;for(t in n(e),i)if(i[t]===e)return t}))})}},798:(e,t,r)=>{"use strict";var o,n,i,a=r(296),s=r(11),u=r(119).Symbol,c=r(573),l=r(572),f=r(781),d=Object.create,p=Object.defineProperties,m=Object.defineProperty;if("function"==typeof u)try{String(u()),i=!0}catch(e){}else u=null;n=function(e){if(this instanceof n)throw new TypeError("Symbol is not a constructor");return o(e)},e.exports=o=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return i?u(t):(r=d(n.prototype),t=void 0===t?"":String(t),p(r,{__description__:a("",t),__name__:a("",c(t))}))},l(o),f(o),p(n.prototype,{constructor:a(o),toString:a("",(function(){return this.__name__}))}),p(o.prototype,{toString:a((function(){return"Symbol ("+s(this).__description__+")"})),valueOf:a((function(){return s(this)}))}),m(o.prototype,o.toPrimitive,a("",(function(){var e=s(this);return"symbol"==typeof e?e:e.toString()}))),m(o.prototype,o.toStringTag,a("c","Symbol")),m(n.prototype,o.toStringTag,a("c",o.prototype[o.toStringTag])),m(n.prototype,o.toPrimitive,a("c",o.prototype[o.toPrimitive]))},11:(e,t,r)=>{"use strict";var o=r(64);e.exports=function(e){if(!o(e))throw new TypeError(e+" is not a symbol");return e}},308:e=>{var t=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw new Error("Unable to resolve global `this`")};e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return t()}try{return __global__||t()}finally{delete Object.prototype.__global__}}()},119:(e,t,r)=>{"use strict";e.exports=r(801)()?globalThis:r(308)},801:e=>{"use strict";e.exports=function(){return"object"==typeof globalThis&&!!globalThis&&globalThis.Array===Array}},525:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var c in i=Object(arguments[u]))r.call(i,c)&&(s[c]=i[c]);if(t){a=t(i);for(var l=0;l<a.length;l++)o.call(i,a[l])&&(s[a[l]]=i[a[l]])}}return s}},656:(e,t,r)=>{"use strict";var o;(o="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)||"undefined"!=typeof navigator&&"ReactNative"===navigator.product?r.g:self).Proxy||(o.Proxy=r(659)(),o.Proxy.revocable=o.Proxy.revocable)},659:e=>{e.exports=function(){let e,t=null;function r(e){return!!e&&("object"==typeof e||"function"==typeof e)}function o(e){if(null!==e&&!r(e))throw new TypeError("Object prototype may only be an Object or null: "+e)}const n=Object,i=Boolean(n.create)||!({__proto__:null}instanceof n),a=n.create||(i?function(e){return o(e),{__proto__:e}}:function(e){if(o(e),null===e)throw new SyntaxError("Native Object.create is required to create objects with null prototype");var t=function(){};return t.prototype=e,new t}),s=function(){return null},u=n.getPrototypeOf||([].__proto__===Array.prototype?function(e){const t=e.__proto__;return r(t)?t:null}:s);return e=function(c,l){if(void 0===(this&&this instanceof e?this.constructor:void 0))throw new TypeError("Constructor Proxy requires 'new'");if(!r(c)||!r(l))throw new TypeError("Cannot create proxy with a non-object as target or handler");let f=function(){};t=function(){c=null,f=function(e){throw new TypeError(`Cannot perform '${e}' on a proxy that has been revoked`)}},setTimeout((function(){t=null}),0);const d=l;l={get:null,set:null,apply:null,construct:null};for(let e in d){if(!(e in l))throw new TypeError(`Proxy polyfill does not support trap '${e}'`);l[e]=d[e]}"function"==typeof d&&(l.apply=d.apply.bind(d));const p=u(c);let m,y=!1,b=!1;"function"==typeof c?(m=function(){const e=this&&this.constructor===m,t=Array.prototype.slice.call(arguments);return f(e?"construct":"apply"),e&&l.construct?l.construct.call(this,c,t):!e&&l.apply?l.apply(c,this,t):e?(t.unshift(c),new(c.bind.apply(c,t))):c.apply(this,t)},y=!0):c instanceof Array?(m=[],b=!0):m=i||null!==p?a(p):{};const _=l.get?function(e){return f("get"),l.get(this,e,m)}:function(e){return f("get"),this[e]},v=l.set?function(e,t){f("set"),l.set(this,e,t,m)}:function(e,t){f("set"),this[e]=t},h=n.getOwnPropertyNames(c),g={};h.forEach((function(e){if((y||b)&&e in m)return;const t=n.getOwnPropertyDescriptor(c,e),r={enumerable:Boolean(t.enumerable),get:_.bind(c,e),set:v.bind(c,e)};n.defineProperty(m,e,r),g[e]=!0}));let S=!0;if(y||b){const e=n.setPrototypeOf||([].__proto__===Array.prototype?function(e,t){return o(t),e.__proto__=t,e}:s);p&&e(m,p)||(S=!1)}if(l.get||!S)for(let e in c)g[e]||n.defineProperty(m,e,{get:_.bind(c,e)});return n.seal(c),n.seal(m),m},e.revocable=function(r,o){return{proxy:new e(r,o),revoke:t}},e}},535:(e,t,r)=>{"use strict";var o=r(525),n=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,u=60112;t.Suspense=60113;var c=60115,l=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;n=f("react.element"),i=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),s=f("react.context"),u=f("react.forward_ref"),t.Suspense=f("react.suspense"),c=f("react.memo"),l=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y={};function b(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||m}function _(){}function v(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||m}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=b.prototype;var h=v.prototype=new _;h.constructor=v,o(h,b.prototype),h.isPureReactComponent=!0;var g={current:null},S=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function w(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,o)&&!C.hasOwnProperty(o)&&(i[o]=t[o]);var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){for(var c=Array(u),l=0;l<u;l++)c[l]=arguments[l+2];i.children=c}if(e&&e.defaultProps)for(o in u=e.defaultProps)void 0===i[o]&&(i[o]=u[o]);return{$$typeof:n,type:e,key:a,ref:s,props:i,_owner:g.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var P=/\/+/g;function j(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function E(e,t,r,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case i:u=!0}}if(u)return a=a(u=e),e=""===o?"."+j(u,0):o,Array.isArray(a)?(r="",null!=e&&(r=e.replace(P,"$&/")+"/"),E(a,t,r,"",(function(e){return e}))):null!=a&&(O(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,r+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+e)),t.push(a)),1;if(u=0,o=""===o?".":o+":",Array.isArray(e))for(var c=0;c<e.length;c++){var l=o+j(s=e[c],c);u+=E(s,t,r,l,a)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),c=0;!(s=e.next()).done;)u+=E(s=s.value,t,r,l=o+j(s,c++),a);else if("object"===s)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function x(e,t,r){if(null==e)return e;var o=[],n=0;return E(e,o,"","",(function(e){return t.call(r,e,n++)})),o}function B(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var T={current:null};function D(){var e=T.current;if(null===e)throw Error(p(321));return e}var A={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:g,IsSomeRendererActing:{current:!1},assign:o};t.Children={map:x,forEach:function(e,t,r){x(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return x(e,(function(){t++})),t},toArray:function(e){return x(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error(p(143));return e}},t.Component=b,t.PureComponent=v,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,t.cloneElement=function(e,t,r){if(null==e)throw Error(p(267,e));var i=o({},e.props),a=e.key,s=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,u=g.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in t)S.call(t,l)&&!C.hasOwnProperty(l)&&(i[l]=void 0===t[l]&&void 0!==c?c[l]:t[l])}var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){c=Array(l);for(var f=0;f<l;f++)c[f]=arguments[f+2];i.children=c}return{$$typeof:n,type:e.type,key:a,ref:s,props:i,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=w,t.createFactory=function(e){var t=w.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:l,_payload:{_status:-1,_result:e},_init:B}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return D().useCallback(e,t)},t.useContext=function(e,t){return D().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return D().useEffect(e,t)},t.useImperativeHandle=function(e,t,r){return D().useImperativeHandle(e,t,r)},t.useLayoutEffect=function(e,t){return D().useLayoutEffect(e,t)},t.useMemo=function(e,t){return D().useMemo(e,t)},t.useReducer=function(e,t,r){return D().useReducer(e,t,r)},t.useRef=function(e){return D().useRef(e)},t.useState=function(e){return D().useState(e)},t.version="17.0.2"},378:(e,t,r)=>{"use strict";e.exports=r(535)},14:function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,n)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getControlKey=t.Launcher=t.initProxy=t.init=void 0;var s=i(r(599));t.Launcher=s.default,Object.defineProperty(t,"getControlKey",{enumerable:!0,get:function(){return s.getControlKey}});var u=r(956);Object.defineProperty(t,"init",{enumerable:!0,get:function(){return a(u).default}});var c=r(737);Object.defineProperty(t,"initProxy",{enumerable:!0,get:function(){return c.initProxySDK}})},956:function(e,t,r){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),r(656),r(992),r(769);var n=r(737),i=r(207),a=function(e,t){if("complete"===document.readyState){var r=function(e,t){var r,o=t.apiOrigin||"https://api.commandbar.com",n=[],i=localStorage.getItem("commandbar.lc");if(i&&i.includes("api=local")&&(o="http://localhost:8000"),i&&i.includes("api=preview_")){var a=null===(r=/api=preview_([^;$]+)/.exec(i))||void 0===r?void 0:r[1];o="https://".concat(a,".commandbar.xyz:8000")}var s=o+"/latest/"+e;return i&&n.push("lc="+i),t.nonce&&n.push("nonce="+encodeURIComponent(t.nonce)),t.silentMode&&n.push("silent=true"),t.cdnOrigin&&n.push("cdn="+encodeURIComponent(t.cdnOrigin)),n.push("version=2"),s+"?"+n.join("&")}(e,t),o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src=r,document.head.appendChild(o)}else window.addEventListener("load",a.bind(null,e,t),{capture:!1,once:!0})},s={debug:!1,silentMode:!1};t.default=function(e,t){var r;void 0===t&&(t=s);var u=o(o({},s),t);e?(null===(r=(0,n.getProxySDK)()[i._configuration])||void 0===r?void 0:r.uuid)?console.warn("CommandBar init was called more than once. Skipping the redundant initialization..."):(u.debug&&console.log("CommandBar init...",{environment:t.environment,version:t.version}),(0,n.getProxySDK)()[i._configuration]={api:u.apiOrigin,cdn:u.cdnOrigin,uuid:e,environment:u.environment,version:u.version,config:u.config,nonce:u.nonce,silent:u.silentMode},a(e,u)):console.error("No org specified for CommandBar.init")}},343:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_META_ATTRIBUTES=t.DEFAULT_INSTANCE_ATTRIBUTES=t.PRODUCTS=t.ASYNC_METHODS=t.ASYNC_METHODS_SNIPPET=void 0,t.ASYNC_METHODS_SNIPPET=["addCommand","boot","addEventSubscriber","addRecordAction","setFormFactor"],t.ASYNC_METHODS=["addCommand","boot","addEventSubscriber","addEventHandler","addRecordAction","setFormFactor"],t.PRODUCTS=["spotlight","nudges","checklists","help_hub"],t.DEFAULT_INSTANCE_ATTRIBUTES={canOpenEditor:!0,formFactor:{type:"modal"},products:["spotlight","nudges","checklists","help_hub"]},t.DEFAULT_META_ATTRIBUTES={}},737:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initProxySDK=t.getProxySDK=void 0;var o=r(314),n=r(343),i=r(207);function a(){var e,t,r,o,a,s,u=window.CommandBar,c=window.CommandBar;Array.isArray(null==u?void 0:u.q)||"string"==typeof(null==u?void 0:u.uid)?(o=null==u?void 0:u.uid,a=null==u?void 0:u.q,s=null==u?void 0:u.api):(o=null===(t=null==c?void 0:c[i._configuration])||void 0===t?void 0:t.uuid,a=null==c?void 0:c[i._queue],s=null===(r=null==c?void 0:c[i._configuration])||void 0===r?void 0:r.api);var l=((e={})[i._configuration]={uuid:"string"==typeof o?o:"",api:"string"==typeof s?s:void 0},e[i._disposed]=!1,e[i._isProxy]=!0,e[i._queue]=Array.isArray(a)?a:[],e[i._unwrap]=function(){return l},e[i._eventSubscriptions]=void 0,e[i._sentry]=void 0,e),f=l;Object.assign(l,{shareCallbacks:function(){return{}},shareContext:function(){return{}}}),window.CommandBar=new Proxy(l,{get:function(e,t){return t in f?f[t]:"then"!==t?n.ASYNC_METHODS_SNIPPET.includes(t)?function(){var e=Array.prototype.slice.call(arguments);return new Promise((function(r,o){e.unshift(t,r,o),l[i._queue].push(e)}))}:function(){var e=Array.prototype.slice.call(arguments);e.unshift(t),l[i._queue].push(e)}:void 0}})}t.getProxySDK=function(){var e=window.CommandBar;return((0,o.isDisposed)(e)||"boolean"!=typeof e[i._isProxy])&&a(),window.CommandBar[i._unwrap]()},t.initProxySDK=a},207:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._fingerprint=t._user=t._unwrap=t._state=t._showMessage=t._showGuide=t._shareProgrammaticCommands=t._shareContextSettings=t._shareConfig=t._setEditorVisible=t._setTestMode=t._setPreviewMode=t._setDashboard=t._sentry=t._search=t._report=t._reloadChecklists=t._previewChecklist=t._stopNudgeDebug=t._stopChecklistPreview=t._closeNudgeMocks=t._showNudgeStepMock=t._getDebugSnapshot=t._startNudgeDebug=t._stopRecommendationSetPreview=t._previewCopilotSettings=t._previewRecommendationSet=t._reloadHelpHub=t._reloadNudges=t._reloadPlaceholders=t._reloadOrganization=t._reloadCommands=t._reload=t._queue=t._programmaticTheme=t._perf=t._getEditorPreviewDevice=t._updateEditorPreviewDevice=t._shareEditorRouteWithBar=t._onEditorPathChange=t._loadEditor=t._isProxy=t._instanceAttributes=t._disposed=t._dispose=t._dispatch=t._configUser=t._configure=t._configuration=t._analytics=void 0,t._getActiveChat=t._setActiveChat=t._showWidgetTableau=t._setThemeV2=t._shareTrackedEvents=t._stopDebug=t._startDebug=t._updateEditorRoute=t._metaAttributes=t._eventSubscriptions=t._userProperties=void 0,t._analytics=Symbol.for("CommandBar::analytics"),t._configuration=Symbol.for("CommandBar::configuration"),t._configure=Symbol.for("CommandBar::configure"),t._configUser=Symbol.for("CommandBar::configUser"),t._dispatch=Symbol.for("CommandBar::dispatch"),t._dispose=Symbol.for("CommandBar::dispose"),t._disposed=Symbol.for("CommandBar::disposed"),t._instanceAttributes=Symbol.for("CommandBar::instanceAttributes"),t._isProxy=Symbol.for("CommandBar::isProxy"),t._loadEditor=Symbol.for("CommandBar::loadEditor"),t._onEditorPathChange=Symbol.for("CommandBar::onEditorPathChange"),t._shareEditorRouteWithBar=Symbol.for("CommandBar::shareEditorRouteWithBar"),t._updateEditorPreviewDevice=Symbol.for("CommandBar::updateEditorPreviewDevice"),t._getEditorPreviewDevice=Symbol.for("CommandBar::getEditorPreviewDevice"),t._perf=Symbol.for("CommandBar::perf"),t._programmaticTheme=Symbol.for("CommandBar::programmaticTheme"),t._queue=Symbol.for("CommandBar::queue"),t._reload=Symbol.for("CommandBar::reload"),t._reloadCommands=Symbol.for("CommandBar::reloadCommands"),t._reloadOrganization=Symbol.for("CommandBar::reloadOrganization"),t._reloadPlaceholders=Symbol.for("CommandBar::reloadPlaceholders"),t._reloadNudges=Symbol.for("CommandBar::reloadNudges"),t._reloadHelpHub=Symbol.for("CommandBar::reloadHelpHub"),t._previewRecommendationSet=Symbol.for("CommandBar::previewRecommendationSet"),t._previewCopilotSettings=Symbol.for("CommandBar::previewCopilotSettings"),t._stopRecommendationSetPreview=Symbol.for("CommandBar::stopRecommendationSetPreview"),t._startNudgeDebug=Symbol.for("CommandBar::startNudgeDebug"),t._getDebugSnapshot=Symbol.for("CommandBar::getDebugSnapshot"),t._showNudgeStepMock=Symbol.for("CommandBar::showNudgeStepMock"),t._closeNudgeMocks=Symbol.for("CommandBar::closeNudgeMocks"),t._stopChecklistPreview=Symbol.for("CommandBar::stopChecklistPreview"),t._stopNudgeDebug=Symbol.for("CommandBar::stopNudgeDebug"),t._previewChecklist=Symbol.for("CommandBar::previewChecklist"),t._reloadChecklists=Symbol.for("CommandBar::reloadChecklists"),t._report=Symbol.for("CommandBar::report"),t._search=Symbol.for("CommandBar::search"),t._sentry=Symbol.for("CommandBar::sentry"),t._setDashboard=Symbol.for("CommandBar::setDashboard"),t._setPreviewMode=Symbol.for("CommandBar::setPreviewMode"),t._setTestMode=Symbol.for("CommandBar::setTestMode"),t._setEditorVisible=Symbol.for("CommandBar::setEditorVisible"),t._shareConfig=Symbol.for("CommandBar::shareConfig"),t._shareContextSettings=Symbol.for("CommandBar::shareContextSettings"),t._shareProgrammaticCommands=Symbol.for("CommandBar::shareProgrammaticCommands"),t._showGuide=Symbol.for("CommandBar::showGuide"),t._showMessage=Symbol.for("CommandBar::showMessage"),t._state=Symbol.for("CommandBar::state"),t._unwrap=Symbol.for("CommandBar::unwrap"),t._user=Symbol.for("CommandBar::user"),t._fingerprint=Symbol.for("CommandBar::fingerprint"),t._userProperties=Symbol.for("CommandBar::userProperties"),t._eventSubscriptions=Symbol.for("CommandBar::eventSubscriptions"),t._metaAttributes=Symbol.for("CommandBar::metaAttributes"),t._updateEditorRoute=Symbol.for("CommandBar::updateEditorRoute"),t._startDebug=Symbol.for("CommandBar::startDebug"),t._stopDebug=Symbol.for("CommandBar::stopDebug"),t._shareTrackedEvents=Symbol.for("CommandBar::shareTrackedEvents"),t._setThemeV2=Symbol.for("CommandBar::setThemeV2"),t._showWidgetTableau=Symbol.for("CommandBar::showWidgetTableau"),t._setActiveChat=Symbol.for("CommandBar::setActiveChat"),t._getActiveChat=Symbol.for("CommandBar::getActiveChat")},314:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dispose=t.isDisposed=t.isDisposable=void 0;var o=r(207),n=function(e){return void 0!==e&&void 0!==e.dispose},i=function(e){return void 0!==e&&void 0!==e[o._dispose]};t.isDisposable=function(e){return void 0===e||n(e)||i(e)},t.isDisposed=function(e){return void 0===e||n(e)&&!0===e._disposed||i(e)&&!0===e[o._disposed]},t.dispose=function(e){void 0!==e&&(i(e)?e[o._dispose]():e.dispose())}}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,r),i.exports}return r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(14)})()));
|
@@ -3,7 +3,7 @@ import { IRecordSettings } from '../middleware/IRecordSettings';
|
|
3
3
|
import { DataRowMetadata } from '../middleware/detailPreview';
|
4
4
|
import { AddContextOptions, ArgumentOptions, DataRow, RecordOptions } from './AddContextOptions';
|
5
5
|
import type { DetailPreviewType, IChecklist, ICommandCategoryType, INudgeType, ISkinType } from '../middleware/types';
|
6
|
-
import type { EventHandler, EventSubscriber } from '
|
6
|
+
import type { EventHandler, EventSubscriber } from '../../../commandbar/src/shared/services/analytics/EventHandler';
|
7
7
|
export type { DataRow } from './AddContextOptions';
|
8
8
|
export type { DataRowMetadata } from '../middleware/types';
|
9
9
|
/**
|
@@ -5,9 +5,9 @@ import { _analytics, _configuration, _configure, _configUser, _dispose, _dispose
|
|
5
5
|
import { SDKConfig } from './SDKConfig';
|
6
6
|
import { IChecklist, ICommandType, IConfigType, ICopilotSettingsPreviewType, INudgeType, IRecommendationSet, IRecordSettingsByContextKey, IThemeV2Type } from '../middleware/types';
|
7
7
|
import { DeviceType } from '../util/operatingSystem';
|
8
|
-
import type { EVENT_NAME } from '
|
9
|
-
import type { EventSubscriber } from '
|
10
|
-
import type { AnalyticsV2 } from '
|
8
|
+
import type { EVENT_NAME } from '../../../commandbar/src/shared/services/analytics/types';
|
9
|
+
import type { EventSubscriber } from '../../../commandbar/src/shared/services/analytics/EventHandler';
|
10
|
+
import type { AnalyticsV2 } from '../../../commandbar/src/shared/services/analytics/v2/client';
|
11
11
|
export type { SDKConfig } from './SDKConfig';
|
12
12
|
export declare const _reloadTargets: string[];
|
13
13
|
export interface CommandBarInternalSDK {
|
@@ -180,6 +180,7 @@ declare const OrganizationAdditionalV: t.IntersectionC<[t.TypeC<{
|
|
180
180
|
type: t.LiteralC<"open_copilot">;
|
181
181
|
}>]>;
|
182
182
|
}>>;
|
183
|
+
helphub_search_action: t.UnionC<[t.LiteralC<"search">, t.LiteralC<"ask">]>;
|
183
184
|
copilot_negative_feedback_fallback_enabled: t.BooleanC;
|
184
185
|
copilot_negative_feedback_fallback_message: t.UnionC<[t.StringC, t.NullC]>;
|
185
186
|
copilot_negative_feedback_fallback_actions: t.ArrayC<t.TypeC<{
|
@@ -298,6 +299,10 @@ declare const OrganizationAdditionalV: t.IntersectionC<[t.TypeC<{
|
|
298
299
|
webhook_shared_secret: t.StringC;
|
299
300
|
switchboard_id: t.StringC;
|
300
301
|
}>;
|
302
|
+
freshchat: t.PartialC<{
|
303
|
+
topic_name: t.UnionC<[t.StringC, t.NullC]>;
|
304
|
+
conversation_property_name: t.UnionC<[t.StringC, t.NullC]>;
|
305
|
+
}>;
|
301
306
|
}>;
|
302
307
|
copilot_enabled: t.BooleanC;
|
303
308
|
user_property_targeting: t.BooleanC;
|
@@ -507,6 +512,7 @@ export declare const OrganizationV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
507
512
|
type: t.LiteralC<"open_copilot">;
|
508
513
|
}>]>;
|
509
514
|
}>>;
|
515
|
+
helphub_search_action: t.UnionC<[t.LiteralC<"search">, t.LiteralC<"ask">]>;
|
510
516
|
copilot_negative_feedback_fallback_enabled: t.BooleanC;
|
511
517
|
copilot_negative_feedback_fallback_message: t.UnionC<[t.StringC, t.NullC]>;
|
512
518
|
copilot_negative_feedback_fallback_actions: t.ArrayC<t.TypeC<{
|
@@ -625,6 +631,10 @@ export declare const OrganizationV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
625
631
|
webhook_shared_secret: t.StringC;
|
626
632
|
switchboard_id: t.StringC;
|
627
633
|
}>;
|
634
|
+
freshchat: t.PartialC<{
|
635
|
+
topic_name: t.UnionC<[t.StringC, t.NullC]>;
|
636
|
+
conversation_property_name: t.UnionC<[t.StringC, t.NullC]>;
|
637
|
+
}>;
|
628
638
|
}>;
|
629
639
|
copilot_enabled: t.BooleanC;
|
630
640
|
user_property_targeting: t.BooleanC;
|
@@ -12,6 +12,7 @@ export declare const APIV: t.TypeC<{
|
|
12
12
|
require_confirmation: t.BooleanC;
|
13
13
|
confirm_cta: t.StringC;
|
14
14
|
cancel_cta: t.StringC;
|
15
|
+
workflows_only: t.BooleanC;
|
15
16
|
parameters: t.ArrayC<t.TypeC<{
|
16
17
|
archived: t.BooleanC;
|
17
18
|
name: t.StringC;
|
@@ -34,6 +35,7 @@ export declare class API {
|
|
34
35
|
require_confirmation: boolean;
|
35
36
|
confirm_cta: string;
|
36
37
|
cancel_cta: string;
|
38
|
+
workflows_only: boolean;
|
37
39
|
parameters: {
|
38
40
|
archived: boolean;
|
39
41
|
name: string;
|
@@ -55,6 +57,7 @@ export declare class API {
|
|
55
57
|
require_confirmation: boolean;
|
56
58
|
confirm_cta: string;
|
57
59
|
cancel_cta: string;
|
60
|
+
workflows_only: boolean;
|
58
61
|
parameters: {
|
59
62
|
archived: boolean;
|
60
63
|
name: string;
|
@@ -75,6 +78,7 @@ export declare class API {
|
|
75
78
|
require_confirmation: boolean;
|
76
79
|
confirm_cta: string;
|
77
80
|
cancel_cta: string;
|
81
|
+
workflows_only: boolean;
|
78
82
|
parameters: {
|
79
83
|
archived: boolean;
|
80
84
|
name: string;
|
@@ -96,6 +100,7 @@ export declare class API {
|
|
96
100
|
require_confirmation: boolean;
|
97
101
|
confirm_cta: string;
|
98
102
|
cancel_cta: string;
|
103
|
+
workflows_only: boolean;
|
99
104
|
parameters: {
|
100
105
|
archived: boolean;
|
101
106
|
name: string;
|
@@ -116,6 +121,7 @@ export declare class API {
|
|
116
121
|
require_confirmation: boolean;
|
117
122
|
confirm_cta: string;
|
118
123
|
cancel_cta: string;
|
124
|
+
workflows_only: boolean;
|
119
125
|
parameters: {
|
120
126
|
archived: boolean;
|
121
127
|
name: string;
|
@@ -138,6 +144,7 @@ export declare class API {
|
|
138
144
|
require_confirmation: boolean;
|
139
145
|
confirm_cta: string;
|
140
146
|
cancel_cta: string;
|
147
|
+
workflows_only: boolean;
|
141
148
|
parameters: {
|
142
149
|
archived: boolean;
|
143
150
|
name: string;
|
@@ -162,6 +169,7 @@ export declare class API {
|
|
162
169
|
require_confirmation: boolean;
|
163
170
|
confirm_cta: string;
|
164
171
|
cancel_cta: string;
|
172
|
+
workflows_only: boolean;
|
165
173
|
parameters: {
|
166
174
|
archived: boolean;
|
167
175
|
name: string;
|
@@ -393,6 +393,7 @@ export declare const ChecklistV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
393
393
|
copilot_cta_label: t.StringC;
|
394
394
|
copilot_description: t.StringC;
|
395
395
|
editor_tags: t.ArrayC<t.StringC>;
|
396
|
+
custom_theme: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
396
397
|
}>]>;
|
397
398
|
export declare class Checklist {
|
398
399
|
static decode: (data: any) => {
|
@@ -557,6 +558,7 @@ export declare class Checklist {
|
|
557
558
|
copilot_cta_label: string;
|
558
559
|
copilot_description: string;
|
559
560
|
editor_tags: string[];
|
561
|
+
custom_theme: string | null | undefined;
|
560
562
|
};
|
561
563
|
static create: (object: {
|
562
564
|
id: number;
|
@@ -720,6 +722,7 @@ export declare class Checklist {
|
|
720
722
|
copilot_cta_label: string;
|
721
723
|
copilot_description: string;
|
722
724
|
editor_tags: string[];
|
725
|
+
custom_theme: string | null | undefined;
|
723
726
|
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
724
727
|
id: number;
|
725
728
|
title: string;
|
@@ -882,6 +885,7 @@ export declare class Checklist {
|
|
882
885
|
copilot_cta_label: string;
|
883
886
|
copilot_description: string;
|
884
887
|
editor_tags: string[];
|
888
|
+
custom_theme: string | null | undefined;
|
885
889
|
}>;
|
886
890
|
static update: (object: {
|
887
891
|
id: number;
|
@@ -1045,6 +1049,7 @@ export declare class Checklist {
|
|
1045
1049
|
copilot_cta_label: string;
|
1046
1050
|
copilot_description: string;
|
1047
1051
|
editor_tags: string[];
|
1052
|
+
custom_theme: string | null | undefined;
|
1048
1053
|
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
1049
1054
|
id: number;
|
1050
1055
|
title: string;
|
@@ -1207,6 +1212,7 @@ export declare class Checklist {
|
|
1207
1212
|
copilot_cta_label: string;
|
1208
1213
|
copilot_description: string;
|
1209
1214
|
editor_tags: string[];
|
1215
|
+
custom_theme: string | null | undefined;
|
1210
1216
|
}>;
|
1211
1217
|
static delete: (id: string | number, params?: Record<string, string> | undefined, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
|
1212
1218
|
static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
|
@@ -1371,6 +1377,7 @@ export declare class Checklist {
|
|
1371
1377
|
copilot_cta_label: string;
|
1372
1378
|
copilot_description: string;
|
1373
1379
|
editor_tags: string[];
|
1380
|
+
custom_theme: string | null | undefined;
|
1374
1381
|
})[]>;
|
1375
1382
|
static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
|
1376
1383
|
onSuccess?: (() => void) | undefined;
|
@@ -1537,5 +1544,6 @@ export declare class Checklist {
|
|
1537
1544
|
copilot_cta_label: string;
|
1538
1545
|
copilot_description: string;
|
1539
1546
|
editor_tags: string[];
|
1547
|
+
custom_theme: string | null | undefined;
|
1540
1548
|
}>;
|
1541
1549
|
}
|
@@ -102,7 +102,7 @@ export declare const DecideResponseV: t.UnionC<[t.TypeC<{
|
|
102
102
|
recommendation_sets: t.UnionC<[t.RecordC<t.UnionC<[t.StringC, t.NumberC]>, t.UnionC<[t.BooleanC, t.RecordC<t.StringC, t.AnyC>, t.UndefinedC, t.NullC]>>, t.UndefinedC, t.NullC]>;
|
103
103
|
commands: t.UnionC<[t.RecordC<t.UnionC<[t.StringC, t.NumberC]>, t.UnionC<[t.BooleanC, t.RecordC<t.StringC, t.AnyC>, t.UndefinedC, t.NullC]>>, t.UndefinedC, t.NullC]>;
|
104
104
|
}>, t.UndefinedC, t.NullC]>;
|
105
|
-
export declare const
|
105
|
+
export declare const addDeviceProperties: (properties: UserProperties) => UserProperties;
|
106
106
|
export declare const EndUser: {
|
107
107
|
preferences: (_identifier: string | null | undefined, _hmac: string) => Promise<never>;
|
108
108
|
decide: (orgId: string | number, distinctId: string | null | undefined, options: {
|
@@ -362,6 +362,7 @@ export declare const ExperienceTemplateV: t.TypeC<{
|
|
362
362
|
type: t.UnionC<[t.LiteralC<"announcement">, t.LiteralC<"product_tour">, t.LiteralC<"survey">, t.NullC]>;
|
363
363
|
editor_tags: t.ArrayC<t.StringC>;
|
364
364
|
preview_url: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
365
|
+
custom_theme: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
365
366
|
}>]>;
|
366
367
|
}>;
|
367
368
|
export declare class ExperienceTemplate {
|
@@ -728,6 +729,7 @@ export declare class ExperienceTemplate {
|
|
728
729
|
type: "announcement" | "product_tour" | "survey" | null;
|
729
730
|
editor_tags: string[];
|
730
731
|
preview_url: string | null | undefined;
|
732
|
+
custom_theme: string | null | undefined;
|
731
733
|
};
|
732
734
|
};
|
733
735
|
static create: (object: {
|
@@ -1093,6 +1095,7 @@ export declare class ExperienceTemplate {
|
|
1093
1095
|
type: "announcement" | "product_tour" | "survey" | null;
|
1094
1096
|
editor_tags: string[];
|
1095
1097
|
preview_url: string | null | undefined;
|
1098
|
+
custom_theme: string | null | undefined;
|
1096
1099
|
};
|
1097
1100
|
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
1098
1101
|
id: number;
|
@@ -1457,6 +1460,7 @@ export declare class ExperienceTemplate {
|
|
1457
1460
|
type: "announcement" | "product_tour" | "survey" | null;
|
1458
1461
|
editor_tags: string[];
|
1459
1462
|
preview_url: string | null | undefined;
|
1463
|
+
custom_theme: string | null | undefined;
|
1460
1464
|
};
|
1461
1465
|
}>;
|
1462
1466
|
static update: (object: {
|
@@ -1822,6 +1826,7 @@ export declare class ExperienceTemplate {
|
|
1822
1826
|
type: "announcement" | "product_tour" | "survey" | null;
|
1823
1827
|
editor_tags: string[];
|
1824
1828
|
preview_url: string | null | undefined;
|
1829
|
+
custom_theme: string | null | undefined;
|
1825
1830
|
};
|
1826
1831
|
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
1827
1832
|
id: number;
|
@@ -2186,6 +2191,7 @@ export declare class ExperienceTemplate {
|
|
2186
2191
|
type: "announcement" | "product_tour" | "survey" | null;
|
2187
2192
|
editor_tags: string[];
|
2188
2193
|
preview_url: string | null | undefined;
|
2194
|
+
custom_theme: string | null | undefined;
|
2189
2195
|
};
|
2190
2196
|
}>;
|
2191
2197
|
static delete: (id: string | number, params?: Record<string, string> | undefined, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
|
@@ -2552,6 +2558,7 @@ export declare class ExperienceTemplate {
|
|
2552
2558
|
type: "announcement" | "product_tour" | "survey" | null;
|
2553
2559
|
editor_tags: string[];
|
2554
2560
|
preview_url: string | null | undefined;
|
2561
|
+
custom_theme: string | null | undefined;
|
2555
2562
|
};
|
2556
2563
|
}[]>;
|
2557
2564
|
static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
|
@@ -2920,6 +2927,7 @@ export declare class ExperienceTemplate {
|
|
2920
2927
|
type: "announcement" | "product_tour" | "survey" | null;
|
2921
2928
|
editor_tags: string[];
|
2922
2929
|
preview_url: string | null | undefined;
|
2930
|
+
custom_theme: string | null | undefined;
|
2923
2931
|
};
|
2924
2932
|
}>;
|
2925
2933
|
}
|
@@ -23,11 +23,12 @@ export type Flags = {
|
|
23
23
|
'release-preview-v-2': boolean;
|
24
24
|
'show-chat-debug-panel': boolean;
|
25
25
|
'segment-webhook-destination': boolean;
|
26
|
-
'role-based-acces-control': boolean;
|
27
26
|
'show-zendesk-integration-v-2-modal': boolean;
|
28
27
|
'amplitude-audience-integration': boolean;
|
29
28
|
'zendesk-inline-handoff': boolean;
|
30
29
|
'release-workflows-frontend': boolean;
|
30
|
+
'release-audiences-ui-v-2': boolean;
|
31
|
+
'workflow-flexibility': boolean;
|
31
32
|
};
|
32
33
|
export declare const defaultFlags: Flags;
|
33
34
|
export declare const fetchFlags: (orgID: string) => Promise<Flags>;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { DeviceType } from '../util/operatingSystem';
|
2
2
|
import * as t from 'io-ts';
|
3
3
|
import { IHelpHubLauncherSettingsType, IOrganizationType } from './types';
|
4
|
+
export declare const HelpHubSearchActionsV: t.UnionC<[t.LiteralC<"search">, t.LiteralC<"ask">]>;
|
4
5
|
export declare const HelpHubLauncherPositionsV: t.UnionC<[t.LiteralC<"topRight">, t.LiteralC<"topLeft">, t.LiteralC<"bottomRight">, t.LiteralC<"bottomLeft">]>;
|
5
6
|
export declare const HelpHubLauncherTypesV: t.UnionC<[t.LiteralC<"bookOpen">, t.LiteralC<"graduationHat">, t.LiteralC<"bookClosed">, t.LiteralC<"bookmark">, t.LiteralC<"chatCircle">, t.LiteralC<"askAI">, t.LiteralC<"custom">, t.LiteralC<"none">]>;
|
6
7
|
export declare const HelpHubLauncherSettingsV: t.TypeC<{
|
@@ -504,6 +504,7 @@ export declare const NamedRuleBaseV: t.TypeC<{
|
|
504
504
|
id: t.UnionC<[t.NumberC, t.StringC]>;
|
505
505
|
name: t.StringC;
|
506
506
|
expression: t.Type<RuleExpression, RuleExpression, unknown>;
|
507
|
+
created: t.UnionC<[t.StringC, t.UndefinedC]>;
|
507
508
|
}>;
|
508
509
|
declare const NamedRuleAdditionalV: t.TypeC<{
|
509
510
|
is_audience: t.BooleanC;
|
@@ -513,6 +514,7 @@ export declare const NamedRuleV: t.IntersectionC<[t.TypeC<{
|
|
513
514
|
id: t.UnionC<[t.NumberC, t.StringC]>;
|
514
515
|
name: t.StringC;
|
515
516
|
expression: t.Type<RuleExpression, RuleExpression, unknown>;
|
517
|
+
created: t.UnionC<[t.StringC, t.UndefinedC]>;
|
516
518
|
}>, t.TypeC<{
|
517
519
|
is_audience: t.BooleanC;
|
518
520
|
}>]>;
|
@@ -1199,6 +1199,7 @@ export declare const NudgeV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
1199
1199
|
type: t.UnionC<[t.LiteralC<"announcement">, t.LiteralC<"product_tour">, t.LiteralC<"survey">, t.NullC]>;
|
1200
1200
|
editor_tags: t.ArrayC<t.StringC>;
|
1201
1201
|
preview_url: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
1202
|
+
custom_theme: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
1202
1203
|
}>]>;
|
1203
1204
|
export declare const OldNudgeBaseV: t.IntersectionC<[t.TypeC<{
|
1204
1205
|
id: t.NumberC;
|
@@ -1694,6 +1695,7 @@ export declare class Nudge {
|
|
1694
1695
|
type: "announcement" | "product_tour" | "survey" | null;
|
1695
1696
|
editor_tags: string[];
|
1696
1697
|
preview_url: string | null | undefined;
|
1698
|
+
custom_theme: string | null | undefined;
|
1697
1699
|
};
|
1698
1700
|
static create: (object: {
|
1699
1701
|
slug: string;
|
@@ -2055,6 +2057,7 @@ export declare class Nudge {
|
|
2055
2057
|
type: "announcement" | "product_tour" | "survey" | null;
|
2056
2058
|
editor_tags: string[];
|
2057
2059
|
preview_url: string | null | undefined;
|
2060
|
+
custom_theme: string | null | undefined;
|
2058
2061
|
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
2059
2062
|
slug: string;
|
2060
2063
|
id: string | number;
|
@@ -2415,6 +2418,7 @@ export declare class Nudge {
|
|
2415
2418
|
type: "announcement" | "product_tour" | "survey" | null;
|
2416
2419
|
editor_tags: string[];
|
2417
2420
|
preview_url: string | null | undefined;
|
2421
|
+
custom_theme: string | null | undefined;
|
2418
2422
|
}>;
|
2419
2423
|
static update: (object: {
|
2420
2424
|
slug: string;
|
@@ -2776,6 +2780,7 @@ export declare class Nudge {
|
|
2776
2780
|
type: "announcement" | "product_tour" | "survey" | null;
|
2777
2781
|
editor_tags: string[];
|
2778
2782
|
preview_url: string | null | undefined;
|
2783
|
+
custom_theme: string | null | undefined;
|
2779
2784
|
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
2780
2785
|
slug: string;
|
2781
2786
|
id: string | number;
|
@@ -3136,6 +3141,7 @@ export declare class Nudge {
|
|
3136
3141
|
type: "announcement" | "product_tour" | "survey" | null;
|
3137
3142
|
editor_tags: string[];
|
3138
3143
|
preview_url: string | null | undefined;
|
3144
|
+
custom_theme: string | null | undefined;
|
3139
3145
|
}>;
|
3140
3146
|
static delete: (id: string | number, params?: Record<string, string> | undefined, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
|
3141
3147
|
static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
|
@@ -3498,6 +3504,7 @@ export declare class Nudge {
|
|
3498
3504
|
type: "announcement" | "product_tour" | "survey" | null;
|
3499
3505
|
editor_tags: string[];
|
3500
3506
|
preview_url: string | null | undefined;
|
3507
|
+
custom_theme: string | null | undefined;
|
3501
3508
|
})[]>;
|
3502
3509
|
static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
|
3503
3510
|
onSuccess?: (() => void) | undefined;
|
@@ -3862,6 +3869,7 @@ export declare class Nudge {
|
|
3862
3869
|
type: "announcement" | "product_tour" | "survey" | null;
|
3863
3870
|
editor_tags: string[];
|
3864
3871
|
preview_url: string | null | undefined;
|
3872
|
+
custom_theme: string | null | undefined;
|
3865
3873
|
}>;
|
3866
3874
|
/**
|
3867
3875
|
* Returns true if the nudge is new (not yet saved to the backend)
|
@@ -219,6 +219,7 @@ export declare const read: (arg0: string, params?: Record<string, string> | unde
|
|
219
219
|
type: "no_action";
|
220
220
|
};
|
221
221
|
}[];
|
222
|
+
helphub_search_action: "search" | "ask";
|
222
223
|
copilot_negative_feedback_fallback_enabled: boolean;
|
223
224
|
copilot_negative_feedback_fallback_message: string | null;
|
224
225
|
copilot_negative_feedback_fallback_actions: {
|
@@ -347,6 +348,10 @@ export declare const read: (arg0: string, params?: Record<string, string> | unde
|
|
347
348
|
webhook_shared_secret?: string | undefined;
|
348
349
|
switchboard_id?: string | undefined;
|
349
350
|
} | undefined;
|
351
|
+
freshchat?: {
|
352
|
+
topic_name?: string | null | undefined;
|
353
|
+
conversation_property_name?: string | null | undefined;
|
354
|
+
} | undefined;
|
350
355
|
};
|
351
356
|
copilot_enabled: boolean;
|
352
357
|
user_property_targeting: boolean;
|
@@ -570,6 +575,7 @@ export declare const update: (object: {
|
|
570
575
|
type: "no_action";
|
571
576
|
};
|
572
577
|
}[];
|
578
|
+
helphub_search_action: "search" | "ask";
|
573
579
|
copilot_negative_feedback_fallback_enabled: boolean;
|
574
580
|
copilot_negative_feedback_fallback_message: string | null;
|
575
581
|
copilot_negative_feedback_fallback_actions: {
|
@@ -698,6 +704,10 @@ export declare const update: (object: {
|
|
698
704
|
webhook_shared_secret?: string | undefined;
|
699
705
|
switchboard_id?: string | undefined;
|
700
706
|
} | undefined;
|
707
|
+
freshchat?: {
|
708
|
+
topic_name?: string | null | undefined;
|
709
|
+
conversation_property_name?: string | null | undefined;
|
710
|
+
} | undefined;
|
701
711
|
};
|
702
712
|
copilot_enabled: boolean;
|
703
713
|
user_property_targeting: boolean;
|
@@ -920,6 +930,7 @@ export declare const update: (object: {
|
|
920
930
|
type: "no_action";
|
921
931
|
};
|
922
932
|
}[];
|
933
|
+
helphub_search_action: "search" | "ask";
|
923
934
|
copilot_negative_feedback_fallback_enabled: boolean;
|
924
935
|
copilot_negative_feedback_fallback_message: string | null;
|
925
936
|
copilot_negative_feedback_fallback_actions: {
|
@@ -1048,6 +1059,10 @@ export declare const update: (object: {
|
|
1048
1059
|
webhook_shared_secret?: string | undefined;
|
1049
1060
|
switchboard_id?: string | undefined;
|
1050
1061
|
} | undefined;
|
1062
|
+
freshchat?: {
|
1063
|
+
topic_name?: string | null | undefined;
|
1064
|
+
conversation_property_name?: string | null | undefined;
|
1065
|
+
} | undefined;
|
1051
1066
|
};
|
1052
1067
|
copilot_enabled: boolean;
|
1053
1068
|
user_property_targeting: boolean;
|
@@ -3402,6 +3417,7 @@ export declare const listRules: (orgUID: string) => Promise<({
|
|
3402
3417
|
id: string | number;
|
3403
3418
|
name: string;
|
3404
3419
|
expression: import("./helpers/rules").RuleExpression;
|
3420
|
+
created: string | undefined;
|
3405
3421
|
} & {
|
3406
3422
|
is_audience: boolean;
|
3407
3423
|
})[]>;
|
@@ -3644,6 +3660,7 @@ export declare const decode: (data: any) => {
|
|
3644
3660
|
type: "no_action";
|
3645
3661
|
};
|
3646
3662
|
}[];
|
3663
|
+
helphub_search_action: "search" | "ask";
|
3647
3664
|
copilot_negative_feedback_fallback_enabled: boolean;
|
3648
3665
|
copilot_negative_feedback_fallback_message: string | null;
|
3649
3666
|
copilot_negative_feedback_fallback_actions: {
|
@@ -3772,6 +3789,10 @@ export declare const decode: (data: any) => {
|
|
3772
3789
|
webhook_shared_secret?: string | undefined;
|
3773
3790
|
switchboard_id?: string | undefined;
|
3774
3791
|
} | undefined;
|
3792
|
+
freshchat?: {
|
3793
|
+
topic_name?: string | null | undefined;
|
3794
|
+
conversation_property_name?: string | null | undefined;
|
3795
|
+
} | undefined;
|
3775
3796
|
};
|
3776
3797
|
copilot_enabled: boolean;
|
3777
3798
|
user_property_targeting: boolean;
|
@@ -117,6 +117,7 @@ export declare const OrganizationSettingsV: t.TypeC<{
|
|
117
117
|
type: t.LiteralC<"open_copilot">;
|
118
118
|
}>]>;
|
119
119
|
}>>;
|
120
|
+
helphub_search_action: t.UnionC<[t.LiteralC<"search">, t.LiteralC<"ask">]>;
|
120
121
|
copilot_negative_feedback_fallback_enabled: t.BooleanC;
|
121
122
|
copilot_negative_feedback_fallback_message: t.UnionC<[t.StringC, t.NullC]>;
|
122
123
|
copilot_negative_feedback_fallback_actions: t.ArrayC<t.TypeC<{
|
@@ -307,6 +308,7 @@ export declare const read: (params?: Record<string, string> | undefined, callbac
|
|
307
308
|
type: "no_action";
|
308
309
|
};
|
309
310
|
}[];
|
311
|
+
helphub_search_action: "search" | "ask";
|
310
312
|
copilot_negative_feedback_fallback_enabled: boolean;
|
311
313
|
copilot_negative_feedback_fallback_message: string | null;
|
312
314
|
copilot_negative_feedback_fallback_actions: {
|
@@ -491,6 +493,7 @@ export declare const update: (object: {
|
|
491
493
|
type: "no_action";
|
492
494
|
};
|
493
495
|
}[] | undefined;
|
496
|
+
helphub_search_action?: "search" | "ask" | undefined;
|
494
497
|
copilot_negative_feedback_fallback_enabled?: boolean | undefined;
|
495
498
|
copilot_negative_feedback_fallback_message?: string | null | undefined;
|
496
499
|
copilot_negative_feedback_fallback_actions?: {
|
@@ -677,6 +680,7 @@ export declare const update: (object: {
|
|
677
680
|
type: "no_action";
|
678
681
|
};
|
679
682
|
}[];
|
683
|
+
helphub_search_action: "search" | "ask";
|
680
684
|
copilot_negative_feedback_fallback_enabled: boolean;
|
681
685
|
copilot_negative_feedback_fallback_message: string | null;
|
682
686
|
copilot_negative_feedback_fallback_actions: {
|
@@ -21,6 +21,7 @@ export declare const ThemeV2V: t.UnionC<[t.TypeC<{
|
|
21
21
|
}>, t.NullC, t.UndefinedC]>;
|
22
22
|
export declare const ThemeV: t.TypeC<{
|
23
23
|
id: t.StringC;
|
24
|
+
uuid: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
24
25
|
slug: t.StringC;
|
25
26
|
name: t.StringC;
|
26
27
|
default: t.BooleanC;
|
@@ -94,6 +95,7 @@ export declare const ThemePatchV: t.PartialC<{
|
|
94
95
|
export declare class Theme {
|
95
96
|
static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
96
97
|
id: string;
|
98
|
+
uuid: string | null | undefined;
|
97
99
|
slug: string;
|
98
100
|
name: string;
|
99
101
|
default: boolean;
|
@@ -165,6 +167,7 @@ export declare class Theme {
|
|
165
167
|
onError?: ((err: string) => void) | undefined;
|
166
168
|
} | undefined) => Promise<{
|
167
169
|
id: string;
|
170
|
+
uuid: string | null | undefined;
|
168
171
|
slug: string;
|
169
172
|
name: string;
|
170
173
|
default: boolean;
|
@@ -233,6 +236,7 @@ export declare class Theme {
|
|
233
236
|
}>;
|
234
237
|
static update: (theme: t.TypeOf<typeof ThemePatchV>) => Promise<{
|
235
238
|
id: string;
|
239
|
+
uuid: string | null | undefined;
|
236
240
|
slug: string;
|
237
241
|
name: string;
|
238
242
|
default: boolean;
|
@@ -368,6 +372,7 @@ export declare class Theme {
|
|
368
372
|
archived?: boolean | undefined;
|
369
373
|
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
370
374
|
id: string;
|
375
|
+
uuid: string | null | undefined;
|
371
376
|
slug: string;
|
372
377
|
name: string;
|
373
378
|
default: boolean;
|
@@ -435,4 +440,73 @@ export declare class Theme {
|
|
435
440
|
archived: boolean;
|
436
441
|
}>;
|
437
442
|
static delete: (id: string | number, params?: Record<string, string> | undefined, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
|
443
|
+
static decode: (data: any) => {
|
444
|
+
id: string;
|
445
|
+
uuid: string | null | undefined;
|
446
|
+
slug: string;
|
447
|
+
name: string;
|
448
|
+
default: boolean;
|
449
|
+
themeV2: {
|
450
|
+
light_mode: {
|
451
|
+
var_defaults: {
|
452
|
+
[x: string]: string | number;
|
453
|
+
};
|
454
|
+
var_overrides: {
|
455
|
+
[x: string]: string | number;
|
456
|
+
};
|
457
|
+
component_overrides: {
|
458
|
+
[x: string]: any;
|
459
|
+
};
|
460
|
+
mobile_overrides: {
|
461
|
+
[x: string]: any;
|
462
|
+
};
|
463
|
+
};
|
464
|
+
dark_mode: {
|
465
|
+
var_defaults: {
|
466
|
+
[x: string]: string | number;
|
467
|
+
};
|
468
|
+
var_overrides: {
|
469
|
+
[x: string]: string | number;
|
470
|
+
};
|
471
|
+
component_overrides: {
|
472
|
+
[x: string]: any;
|
473
|
+
};
|
474
|
+
mobile_overrides: {
|
475
|
+
[x: string]: any;
|
476
|
+
};
|
477
|
+
};
|
478
|
+
} | null | undefined;
|
479
|
+
themeV2_draft: {
|
480
|
+
light_mode: {
|
481
|
+
var_defaults: {
|
482
|
+
[x: string]: string | number;
|
483
|
+
};
|
484
|
+
var_overrides: {
|
485
|
+
[x: string]: string | number;
|
486
|
+
};
|
487
|
+
component_overrides: {
|
488
|
+
[x: string]: any;
|
489
|
+
};
|
490
|
+
mobile_overrides: {
|
491
|
+
[x: string]: any;
|
492
|
+
};
|
493
|
+
};
|
494
|
+
dark_mode: {
|
495
|
+
var_defaults: {
|
496
|
+
[x: string]: string | number;
|
497
|
+
};
|
498
|
+
var_overrides: {
|
499
|
+
[x: string]: string | number;
|
500
|
+
};
|
501
|
+
component_overrides: {
|
502
|
+
[x: string]: any;
|
503
|
+
};
|
504
|
+
mobile_overrides: {
|
505
|
+
[x: string]: any;
|
506
|
+
};
|
507
|
+
};
|
508
|
+
} | null | undefined;
|
509
|
+
organization: string;
|
510
|
+
archived: boolean;
|
511
|
+
};
|
438
512
|
}
|
@@ -34,7 +34,7 @@ import { BillingProfileV, UsageV } from './billing';
|
|
34
34
|
import { UserMessageV, AIMessageV, AIMessageExtraV, MessageV, AIAnswerPayloadV, AIAnswerV, ContinuationsPayloadV, ContinuationV, CreateAnswerFeedbackPayloadV, QuestionSuggestionsPayloadV, QuestionSuggestionsV, ExperienceV, CreateChatPayloadV, ChatV, CopilotSettingsPreviewV, HandoffPayloadV, ExternalChatPayloadV, ExternalChatHistoryV } from './chat';
|
35
35
|
import { HelpDocHitV, SearchHelpDocsPayloadV, SearchHelpDocsResponseV } from './helpDocsSearch';
|
36
36
|
import { ExperienceHitV, ExperienceTypeOptions, SearchExperiencesPayloadV, SearchExperiencesResponseV } from './experiencesSearch';
|
37
|
-
import { HelpHubLauncherSettingsV } from './helpHub';
|
37
|
+
import { HelpHubLauncherSettingsV, HelpHubSearchActionsV } from './helpHub';
|
38
38
|
import { EntityChangeV } from './entityChanges';
|
39
39
|
import { Flags } from './flags';
|
40
40
|
import { CopilotPersonalityAdjectiveV, CopilotPersonalityResponseFormatV, CopilotPersonalityResponseLengthV, CopilotPersonalityV } from './helpers/copilotPersonality';
|
@@ -74,6 +74,7 @@ export type IHelpDocsSyncType = t.TypeOf<typeof HelpDocsSyncV> & unknown;
|
|
74
74
|
export type IHelpDocsSyncLogMessageType = t.TypeOf<typeof HelpDocSyncLogMessageV> & unknown;
|
75
75
|
export type IHelpDocsIntegrationType = t.TypeOf<typeof HelpDocsIntegrationV> & unknown;
|
76
76
|
export type IHelpHubLauncherSettingsType = t.TypeOf<typeof HelpHubLauncherSettingsV> & unknown;
|
77
|
+
export type IHelpHubSearchActionsType = t.TypeOf<typeof HelpHubSearchActionsV> & unknown;
|
77
78
|
export type IOrganizationType = t.TypeOf<typeof OrganizationV> & unknown;
|
78
79
|
export type IOrganizationStatusType = t.TypeOf<typeof OrganizationStatusV> & unknown;
|
79
80
|
export type IInternalSettingsType = t.TypeOf<typeof InternalSettingsV> & unknown;
|
@@ -262,6 +263,7 @@ export type IConfigEndpointResponse = {
|
|
262
263
|
latest_foobar_version?: string;
|
263
264
|
};
|
264
265
|
localized_messages: LocalizedMessages;
|
266
|
+
themes?: IThemeType[];
|
265
267
|
};
|
266
268
|
export type IConfigType = {
|
267
269
|
commands: ICommandType[];
|
@@ -279,6 +281,7 @@ export type IConfigType = {
|
|
279
281
|
};
|
280
282
|
flags: Flags;
|
281
283
|
localized_messages: LocalizedMessages;
|
284
|
+
themes: IThemeType[];
|
282
285
|
};
|
283
286
|
export type { IRecordSettings } from './IRecordSettings';
|
284
287
|
export type IRecordSettingsByContextKey = t.TypeOf<typeof RecordSettingsByContextKeyV> & unknown;
|
@@ -6,6 +6,8 @@ export declare const WorkflowV: t.TypeC<{
|
|
6
6
|
title: t.StringC;
|
7
7
|
prompt: t.StringC;
|
8
8
|
trigger: t.AnyC;
|
9
|
+
allow_docs_search: t.BooleanC;
|
10
|
+
automatic_handoff: t.BooleanC;
|
9
11
|
}>;
|
10
12
|
export declare class Workflow {
|
11
13
|
static decode: (data: any) => {
|
@@ -15,6 +17,8 @@ export declare class Workflow {
|
|
15
17
|
title: string;
|
16
18
|
prompt: string;
|
17
19
|
trigger: any;
|
20
|
+
allow_docs_search: boolean;
|
21
|
+
automatic_handoff: boolean;
|
18
22
|
};
|
19
23
|
static create: (object: {
|
20
24
|
id: number;
|
@@ -23,6 +27,8 @@ export declare class Workflow {
|
|
23
27
|
title: string;
|
24
28
|
prompt: string;
|
25
29
|
trigger: any;
|
30
|
+
allow_docs_search: boolean;
|
31
|
+
automatic_handoff: boolean;
|
26
32
|
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
27
33
|
id: number;
|
28
34
|
archived: boolean;
|
@@ -30,6 +36,8 @@ export declare class Workflow {
|
|
30
36
|
title: string;
|
31
37
|
prompt: string;
|
32
38
|
trigger: any;
|
39
|
+
allow_docs_search: boolean;
|
40
|
+
automatic_handoff: boolean;
|
33
41
|
}>;
|
34
42
|
static update: (object: {
|
35
43
|
id: number;
|
@@ -38,6 +46,8 @@ export declare class Workflow {
|
|
38
46
|
title: string;
|
39
47
|
prompt: string;
|
40
48
|
trigger: any;
|
49
|
+
allow_docs_search: boolean;
|
50
|
+
automatic_handoff: boolean;
|
41
51
|
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
42
52
|
id: number;
|
43
53
|
archived: boolean;
|
@@ -45,6 +55,8 @@ export declare class Workflow {
|
|
45
55
|
title: string;
|
46
56
|
prompt: string;
|
47
57
|
trigger: any;
|
58
|
+
allow_docs_search: boolean;
|
59
|
+
automatic_handoff: boolean;
|
48
60
|
}>;
|
49
61
|
static delete: (id: string | number, params?: Record<string, string> | undefined, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
|
50
62
|
static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
@@ -54,6 +66,8 @@ export declare class Workflow {
|
|
54
66
|
title: string;
|
55
67
|
prompt: string;
|
56
68
|
trigger: any;
|
69
|
+
allow_docs_search: boolean;
|
70
|
+
automatic_handoff: boolean;
|
57
71
|
}[]>;
|
58
72
|
static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
|
59
73
|
onSuccess?: (() => void) | undefined;
|
@@ -65,5 +79,7 @@ export declare class Workflow {
|
|
65
79
|
title: string;
|
66
80
|
prompt: string;
|
67
81
|
trigger: any;
|
82
|
+
allow_docs_search: boolean;
|
83
|
+
automatic_handoff: boolean;
|
68
84
|
}>;
|
69
85
|
}
|
@@ -9,13 +9,13 @@ interface Props {
|
|
9
9
|
children: React.ReactNode;
|
10
10
|
}
|
11
11
|
interface State {
|
12
|
-
|
12
|
+
error: boolean;
|
13
13
|
}
|
14
14
|
export declare class SentryErrorBoundary extends React.Component<Props, State> {
|
15
15
|
constructor(props: Props);
|
16
16
|
captureRejection: (ev: PromiseRejectionEvent) => void;
|
17
17
|
static getDerivedStateFromError(_error: Error): {
|
18
|
-
|
18
|
+
error: boolean;
|
19
19
|
};
|
20
20
|
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
|
21
21
|
render(): React.ReactNode;
|
package/package.json
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "commandbar",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.12.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",
|
7
7
|
"sideEffects": false,
|
8
8
|
"scripts": {
|
9
9
|
"clean": "rimraf build",
|
10
|
-
"build": "NODE_ENV=production webpack build && tsc",
|
10
|
+
"build": "NODE_ENV=production webpack build && tsc && tsc-alias",
|
11
11
|
"minify-snippet": "tsx scripts/minify-snippet.ts",
|
12
12
|
"prepublishOnly": "yarn run clean && yarn run build",
|
13
13
|
"test": "jest --runInBand",
|
@@ -26,6 +26,8 @@
|
|
26
26
|
"@types/jest": "^29.5.3",
|
27
27
|
"jest": "^29.7.0",
|
28
28
|
"rimraf": "3.0.2",
|
29
|
+
"tsc-alias": "^1.8.8",
|
30
|
+
"tsconfig-paths-webpack-plugin": "^4.1.0",
|
29
31
|
"tsx": "^4.9.3",
|
30
32
|
"typescript": "5.1.5",
|
31
33
|
"webpack": "^5.74.0"
|
package/src/index.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import Launcher, { getControlKey } from 'commandbar-launcher';
|
2
|
-
import type { CommandBarClientSDK } from '@commandbar/internal/
|
2
|
+
import type { CommandBarClientSDK } from '@commandbar/internal/client/CommandBarClientSDK';
|
3
3
|
|
4
4
|
export { default as init } from './init';
|
5
|
-
export { initProxySDK as initProxy } from '@commandbar/internal/
|
5
|
+
export { initProxySDK as initProxy } from '@commandbar/internal/client/proxy';
|
6
6
|
export { CommandBarClientSDK };
|
7
7
|
export { Launcher, getControlKey };
|
8
8
|
|
package/src/init.ts
CHANGED
@@ -10,10 +10,14 @@ const getSrc = (org: string, opts: IInitOptions) => {
|
|
10
10
|
const params = [];
|
11
11
|
|
12
12
|
const lc = localStorage.getItem('commandbar.lc');
|
13
|
-
if (lc && lc.includes('local')) {
|
13
|
+
if (lc && lc.includes('api=local')) {
|
14
14
|
// for debugging purposes
|
15
15
|
origin = 'http://localhost:8000';
|
16
16
|
}
|
17
|
+
if (lc && lc.includes('api=preview_')) {
|
18
|
+
const branchIdentifier = /api=preview_([^;$]+)/.exec(lc)?.[1];
|
19
|
+
origin = `https://${branchIdentifier}.commandbar.xyz:8000`;
|
20
|
+
}
|
17
21
|
|
18
22
|
let src = origin + '/latest/' + org;
|
19
23
|
|
package/src/snippet.ts
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
/* eslint-disable prefer-rest-params */
|
3
3
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-inferrable-types */
|
5
|
-
|
5
|
+
const org = '<org_id>';
|
6
6
|
let api = 'https://api.commandbar.com';
|
7
7
|
let cdn: string | undefined = undefined;
|
8
8
|
|
@@ -38,6 +38,11 @@ function bootstrap() {
|
|
38
38
|
api = 'http://localhost:8000';
|
39
39
|
cdn = undefined;
|
40
40
|
}
|
41
|
+
if (lc && lc.includes('api=preview_')) {
|
42
|
+
const branchIdentifier = /api=preview_([^;$]+)/.exec(lc)?.[1];
|
43
|
+
api = `https://${branchIdentifier}.commandbar.xyz:8000`;
|
44
|
+
cdn = undefined;
|
45
|
+
}
|
41
46
|
|
42
47
|
const proxy = Object.assign(
|
43
48
|
{
|