commandbar 1.6.11 → 1.6.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/commandbar-js/src/index.js +1 -1
- package/build/internal/src/client/CommandBarClientSDK.d.ts +28 -4
- package/build/internal/src/client/CommandBarProxySDK.d.ts +4 -4
- package/build/internal/src/client/CommandBarSDK.d.ts +2 -6
- package/build/internal/src/client/EventHandler.d.ts +1 -1
- package/build/internal/src/client/OrgConfig.d.ts +5 -0
- package/build/internal/src/middleware/CommandFromClientV.d.ts +1 -0
- package/build/internal/src/middleware/OrganizationV.d.ts +16 -0
- package/build/internal/src/middleware/ResourceSettingsV.d.ts +4 -0
- package/build/internal/src/middleware/command.d.ts +67 -12
- package/build/internal/src/middleware/commandCategory.d.ts +16 -0
- package/build/internal/src/middleware/generics.d.ts +10 -10
- package/build/internal/src/middleware/organization.d.ts +63 -0
- package/build/internal/src/middleware/releases.d.ts +1 -1
- package/build/internal/src/middleware/types.d.ts +1 -0
- package/build/internal/src/middleware/user.d.ts +3 -1
- package/package.json +2 -4
- package/src/init.ts +6 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.commandbar=r():t.commandbar=r()}(this,(function(){return(()=>{var t={296:(t,r,e)=>{"use strict";var o=e(102),n=e(307),i=e(339),a=e(957),s=e(246),c=t.exports=function(t,r){var e,n,c,u,l;return arguments.length<2||"string"!=typeof t?(u=r,r=t,t=null):u=arguments[2],o(t)?(e=s.call(t,"c"),n=s.call(t,"e"),c=s.call(t,"w")):(e=c=!0,n=!1),l={value:r,configurable:e,enumerable:n,writable:c},u?i(a(u),l):l};c.gs=function(t,r,e){var c,u,l,f;return"string"!=typeof t?(l=e,e=r,r=t,t=null):l=arguments[3],o(r)?n(r)?o(e)?n(e)||(l=e,e=void 0):e=void 0:(l=r,r=e=void 0):r=void 0,o(t)?(c=s.call(t,"c"),u=s.call(t,"e")):(c=!0,u=!1),f={get:r,set:e,configurable:c,enumerable:u},l?i(a(l),f):f}},817:t=>{"use strict";t.exports=function(){}},339:(t,r,e)=>{"use strict";t.exports=e(994)()?Object.assign:e(963)},994:t=>{"use strict";t.exports=function(){var t,r=Object.assign;return"function"==typeof r&&(r(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}},963:(t,r,e)=>{"use strict";var o=e(450),n=e(836),i=Math.max;t.exports=function(t,r){var e,a,s,c=i(arguments.length,2);for(t=Object(n(t)),s=function(o){try{t[o]=r[o]}catch(t){e||(e=t)}},a=1;a<c;++a)o(r=arguments[a]).forEach(s);if(void 0!==e)throw e;return t}},349:(t,r,e)=>{"use strict";var o=e(817)();t.exports=function(t){return t!==o&&null!==t}},450:(t,r,e)=>{"use strict";t.exports=e(446)()?Object.keys:e(177)},446:t=>{"use strict";t.exports=function(){try{return Object.keys("primitive"),!0}catch(t){return!1}}},177:(t,r,e)=>{"use strict";var o=e(349),n=Object.keys;t.exports=function(t){return n(o(t)?Object(t):t)}},957:(t,r,e)=>{"use strict";var o=e(349),n=Array.prototype.forEach,i=Object.create,a=function(t,r){var e;for(e in t)r[e]=t[e]};t.exports=function(t){var r=i(null);return n.call(arguments,(function(t){o(t)&&a(Object(t),r)})),r}},836:(t,r,e)=>{"use strict";var o=e(349);t.exports=function(t){if(!o(t))throw new TypeError("Cannot use null or undefined");return t}},246:(t,r,e)=>{"use strict";t.exports=e(711)()?String.prototype.contains:e(370)},711:t=>{"use strict";var r="razdwatrzy";t.exports=function(){return"function"==typeof r.contains&&!0===r.contains("dwa")&&!1===r.contains("foo")}},370:t=>{"use strict";var r=String.prototype.indexOf;t.exports=function(t){return r.call(this,t,arguments[1])>-1}},992:(t,r,e)=>{"use strict";e(98).polyfill()},98:t=>{"use strict";function r(t,r){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var e=Object(t),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 c=i[a],u=Object.getOwnPropertyDescriptor(n,c);void 0!==u&&u.enumerable&&(e[c]=n[c])}}return e}t.exports={assign:r,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:r})}}},769:(t,r,e)=>{"use strict";e(614)()||Object.defineProperty(e(119),"Symbol",{value:e(798),configurable:!0,enumerable:!1,writable:!0})},614:(t,r,e)=>{"use strict";var o=e(119),n={object:!0,symbol:!0};t.exports=function(){var t,r=o.Symbol;if("function"!=typeof r)return!1;t=r("test symbol");try{String(t)}catch(t){return!1}return!!n[typeof r.iterator]&&!!n[typeof r.toPrimitive]&&!!n[typeof r.toStringTag]}},64:t=>{"use strict";t.exports=function(t){return!!t&&("symbol"==typeof t||!!t.constructor&&"Symbol"===t.constructor.name&&"Symbol"===t[t.constructor.toStringTag])}},573:(t,r,e)=>{"use strict";var o=e(296),n=Object.create,i=Object.defineProperty,a=Object.prototype,s=n(null);t.exports=function(t){for(var r,e,n=0;s[t+(n||"")];)++n;return s[t+=n||""]=!0,i(a,r="@@"+t,o.gs(null,(function(t){e||(e=!0,i(this,r,o(t)),e=!1)}))),r}},572:(t,r,e)=>{"use strict";var o=e(296),n=e(119).Symbol;t.exports=function(t){return Object.defineProperties(t,{hasInstance:o("",n&&n.hasInstance||t("hasInstance")),isConcatSpreadable:o("",n&&n.isConcatSpreadable||t("isConcatSpreadable")),iterator:o("",n&&n.iterator||t("iterator")),match:o("",n&&n.match||t("match")),replace:o("",n&&n.replace||t("replace")),search:o("",n&&n.search||t("search")),species:o("",n&&n.species||t("species")),split:o("",n&&n.split||t("split")),toPrimitive:o("",n&&n.toPrimitive||t("toPrimitive")),toStringTag:o("",n&&n.toStringTag||t("toStringTag")),unscopables:o("",n&&n.unscopables||t("unscopables"))})}},781:(t,r,e)=>{"use strict";var o=e(296),n=e(11),i=Object.create(null);t.exports=function(t){return Object.defineProperties(t,{for:o((function(r){return i[r]?i[r]:i[r]=t(String(r))})),keyFor:o((function(t){var r;for(r in n(t),i)if(i[r]===t)return r}))})}},798:(t,r,e)=>{"use strict";var o,n,i,a=e(296),s=e(11),c=e(119).Symbol,u=e(573),l=e(572),f=e(781),p=Object.create,d=Object.defineProperties,m=Object.defineProperty;if("function"==typeof c)try{String(c()),i=!0}catch(t){}else c=null;n=function(t){if(this instanceof n)throw new TypeError("Symbol is not a constructor");return o(t)},t.exports=o=function t(r){var e;if(this instanceof t)throw new TypeError("Symbol is not a constructor");return i?c(r):(e=p(n.prototype),r=void 0===r?"":String(r),d(e,{__description__:a("",r),__name__:a("",u(r))}))},l(o),f(o),d(n.prototype,{constructor:a(o),toString:a("",(function(){return this.__name__}))}),d(o.prototype,{toString:a((function(){return"Symbol ("+s(this).__description__+")"})),valueOf:a((function(){return s(this)}))}),m(o.prototype,o.toPrimitive,a("",(function(){var t=s(this);return"symbol"==typeof t?t:t.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:(t,r,e)=>{"use strict";var o=e(64);t.exports=function(t){if(!o(t))throw new TypeError(t+" is not a symbol");return t}},308:t=>{var r=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw new Error("Unable to resolve global `this`")};t.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(t){return r()}try{return __global__||r()}finally{delete Object.prototype.__global__}}()},119:(t,r,e)=>{"use strict";t.exports=e(801)()?globalThis:e(308)},801:t=>{"use strict";t.exports=function(){return"object"==typeof globalThis&&!!globalThis&&globalThis.Array===Array}},656:(t,r,e)=>{"use strict";var o;(o="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)||"undefined"!=typeof navigator&&"ReactNative"===navigator.product?e.g:self).Proxy||(o.Proxy=e(659)(),o.Proxy.revocable=o.Proxy.revocable)},659:t=>{t.exports=function(){let t,r=null;function e(t){return!!t&&("object"==typeof t||"function"==typeof t)}function o(t){if(null!==t&&!e(t))throw new TypeError("Object prototype may only be an Object or null: "+t)}const n=Object,i=Boolean(n.create)||!({__proto__:null}instanceof n),a=n.create||(i?function(t){return o(t),{__proto__:t}}:function(t){if(o(t),null===t)throw new SyntaxError("Native Object.create is required to create objects with null prototype");var r=function(){};return r.prototype=t,new r}),s=function(){return null},c=n.getPrototypeOf||([].__proto__===Array.prototype?function(t){const r=t.__proto__;return e(r)?r:null}:s);return t=function(u,l){if(void 0===(this&&this instanceof t?this.constructor:void 0))throw new TypeError("Constructor Proxy requires 'new'");if(!e(u)||!e(l))throw new TypeError("Cannot create proxy with a non-object as target or handler");let f=function(){};r=function(){u=null,f=function(t){throw new TypeError(`Cannot perform '${t}' on a proxy that has been revoked`)}},setTimeout((function(){r=null}),0);const p=l;l={get:null,set:null,apply:null,construct:null};for(let t in p){if(!(t in l))throw new TypeError(`Proxy polyfill does not support trap '${t}'`);l[t]=p[t]}"function"==typeof p&&(l.apply=p.apply.bind(p));const d=c(u);let m,y=!1,b=!1;"function"==typeof u?(m=function(){const t=this&&this.constructor===m,r=Array.prototype.slice.call(arguments);return f(t?"construct":"apply"),t&&l.construct?l.construct.call(this,u,r):!t&&l.apply?l.apply(u,this,r):t?(r.unshift(u),new(u.bind.apply(u,r))):u.apply(this,r)},y=!0):u instanceof Array?(m=[],b=!0):m=i||null!==d?a(d):{};const _=l.get?function(t){return f("get"),l.get(this,t,m)}:function(t){return f("get"),this[t]},v=l.set?function(t,r){f("set"),l.set(this,t,r,m)}:function(t,r){f("set"),this[t]=r},h=n.getOwnPropertyNames(u),g={};h.forEach((function(t){if((y||b)&&t in m)return;const r=n.getOwnPropertyDescriptor(u,t),e={enumerable:Boolean(r.enumerable),get:_.bind(u,t),set:v.bind(u,t)};n.defineProperty(m,t,e),g[t]=!0}));let S=!0;if(y||b){const t=n.setPrototypeOf||([].__proto__===Array.prototype?function(t,r){return o(r),t.__proto__=r,t}:s);d&&t(m,d)||(S=!1)}if(l.get||!S)for(let t in u)g[t]||n.defineProperty(m,t,{get:_.bind(u,t)});return n.seal(u),n.seal(m),m},t.revocable=function(e,o){return{proxy:new t(e,o),revoke:r}},t}},14:function(t,r,e){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.CommandBarClientSDK=r.snippet=r.initProxy=r.init=void 0;var n=e(343);Object.defineProperty(r,"CommandBarClientSDK",{enumerable:!0,get:function(){return n.CommandBarClientSDK}});var i=e(956);Object.defineProperty(r,"init",{enumerable:!0,get:function(){return o(i).default}});var a=e(737);Object.defineProperty(r,"initProxy",{enumerable:!0,get:function(){return a.initProxySDK}});var s=e(890);Object.defineProperty(r,"snippet",{enumerable:!0,get:function(){return s.snippet}})},956:function(t,r,e){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var r,e=1,o=arguments.length;e<o;e++)for(var n in r=arguments[e])Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n]);return t},o.apply(this,arguments)};Object.defineProperty(r,"__esModule",{value:!0}),e(656),e(992),e(769);var n=e(737),i=e(207),a=function(t){if("complete"===document.readyState){var r=function(t){var r="https://api.commandbar.com",e=[],o=localStorage.getItem("commandbar.lc");o&&o.includes("local")?r="http://localhost:8000":o||"10d7dc04"!==t||(r="https://api-cu.commandbar.com");var n=r+"/latest/"+t;return o&&e.push("lc="+o),e.push("version=2"),n+"?"+e.join("&")}(t),e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src=r,document.head.appendChild(e)}else window.addEventListener("load",a.bind(null,t),{capture:!1,once:!0})},s={debug:!1};r.default=function(t,r){void 0===r&&(r=s);var e=o(o({},s),r);t?(e.debug&&console.log("CommandBar init...",{environment:r.environment,version:r.version}),(0,n.getProxySDK)()[i._configuration]={uuid:t,environment:r.environment,version:r.version,config:r.config},a(t)):console.error("No org specified for CommandBar.init")}},890:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.snippet=void 0,r.snippet=function(t){var r=["Object.assign","Symbol","Symbol.for"].join("%2C"),e=window;function o(t,r){void 0===r&&(r=!1),"complete"!==document.readyState&&window.addEventListener("load",o.bind(null,t,r),{capture:!1,once:!0});var e=document.createElement("script");e.type="text/javascript",e.async=r,e.src=t,document.head.appendChild(e)}function n(){var r;if(void 0===e.CommandBar){delete e.__CommandBarBootstrap__;var n=Symbol.for("CommandBar::configuration"),i=Symbol.for("CommandBar::orgConfig"),a=Symbol.for("CommandBar::disposed"),s=Symbol.for("CommandBar::isProxy"),c=Symbol.for("CommandBar::queue"),u=Symbol.for("CommandBar::unwrap"),l=[],f=localStorage.getItem("commandbar.lc"),p=f&&f.includes("local")?"http://localhost:8000":"https://api.commandbar.com",d=Object.assign(((r={})[n]={uuid:t},r[i]={},r[a]=!1,r[s]=!0,r[c]=new Array,r[u]=function(){return d},r),e.CommandBar),m=["addCommand","boot"],y=d;Object.assign(d,{shareCallbacks:function(){return{}},shareContext:function(){return{}}}),e.CommandBar=new Proxy(d,{get:function(t,r){return r in y?d[r]:m.includes(r)?function(){var t=Array.prototype.slice.call(arguments);return new Promise((function(e,o){t.unshift(r,e,o),d[c].push(t)}))}:function(){var t=Array.prototype.slice.call(arguments);t.unshift(r),d[c].push(t)}}}),null!==f&&l.push("lc=".concat(f)),l.push("version=2"),o("".concat(p,"/latest/").concat(t,"?").concat(l.join("&")),!0)}}void 0===Object.assign||"undefined"==typeof Symbol||void 0===Symbol.for?(e.__CommandBarBootstrap__=n,o("https://polyfill.io/v3/polyfill.min.js?version=3.101.0&callback=__CommandBarBootstrap__&features="+r)):n()}},343:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ASYNC_METHODS=void 0,r.ASYNC_METHODS=["addCommand","boot"]},737:(t,r,e)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.initProxySDK=r.getProxySDK=void 0;var o=e(314),n=e(343),i=e(207);function a(){var t,r,e,o,a=window.CommandBar,s=window.CommandBar;Array.isArray(null==a?void 0:a.q)||"string"==typeof(null==a?void 0:a.uid)?(e=null==a?void 0:a.uid,o=null==a?void 0:a.q):(e=null===(r=null==s?void 0:s[i._configuration])||void 0===r?void 0:r.uuid,o=null==s?void 0:s[i._queue]);var c=((t={})[i._configuration]={uuid:"string"==typeof e?e:""},t[i._disposed]=!1,t[i._isProxy]=!0,t[i._queue]=Array.isArray(o)?o:[],t[i._unwrap]=function(){return c},t),u=c;Object.assign(c,{shareCallbacks:function(){return{}},shareContext:function(){return{}}}),window.CommandBar=new Proxy(c,{get:function(t,r){return r in u?u[r]:n.ASYNC_METHODS.includes(r)?function(){var t=Array.prototype.slice.call(arguments);return new Promise((function(e,o){t.unshift(r,e,o),c[i._queue].push(t)}))}:function(){var t=Array.prototype.slice.call(arguments);t.unshift(r),c[i._queue].push(t)}}})}r.getProxySDK=function(){var t=window.CommandBar;return((0,o.isDisposed)(t)||"boolean"!=typeof t[i._isProxy])&&a(),window.CommandBar[i._unwrap]()},r.initProxySDK=a},207:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r._userAttributes=r._user=r._unwrap=r._state=r._showMessage=r._showGuide=r._shareProgrammaticCommands=r._shareContextSettings=r._setEditorVisible=r._setTestMode=r._setPreviewMode=r._setDashboard=r._search=r._reporter=r._report=r._reloadPlaceholders=r._reloadOrganization=r._reloadCommands=r._queue=r._programmaticTheme=r._perf=r._orgConfig=r._loadEditor=r._isProxy=r._instanceAttributes=r._disposed=r._dispose=r._dispatch=r._configUser=r._configure=r._configuration=r._access=void 0,r._access=Symbol.for("CommandBar::access"),r._configuration=Symbol.for("CommandBar::configuration"),r._configure=Symbol.for("CommandBar::configure"),r._configUser=Symbol.for("CommandBar::configUser"),r._dispatch=Symbol.for("CommandBar::dispatch"),r._dispose=Symbol.for("CommandBar::dispose"),r._disposed=Symbol.for("CommandBar::disposed"),r._instanceAttributes=Symbol.for("CommandBar::instanceAttributes"),r._isProxy=Symbol.for("CommandBar::isProxy"),r._loadEditor=Symbol.for("CommandBar::loadEditor"),r._orgConfig=Symbol.for("CommandBar::orgConfig"),r._perf=Symbol.for("CommandBar::perf"),r._programmaticTheme=Symbol.for("CommandBar::programmaticTheme"),r._queue=Symbol.for("CommandBar::queue"),r._reloadCommands=Symbol.for("CommandBar::reloadCommands"),r._reloadOrganization=Symbol.for("CommandBar::reloadOrganization"),r._reloadPlaceholders=Symbol.for("CommandBar::reloadPlaceholders"),r._report=Symbol.for("CommandBar::report"),r._reporter=Symbol.for("CommandBar::reporter"),r._search=Symbol.for("CommandBar::search"),r._setDashboard=Symbol.for("CommandBar::setDashboard"),r._setPreviewMode=Symbol.for("CommandBar::setPreviewMode"),r._setTestMode=Symbol.for("CommandBar::setTestMode"),r._setEditorVisible=Symbol.for("CommandBar::setEditorVisible"),r._shareContextSettings=Symbol.for("CommandBar::shareContextSettings"),r._shareProgrammaticCommands=Symbol.for("CommandBar::shareProgrammaticCommands"),r._showGuide=Symbol.for("CommandBar::showGuide"),r._showMessage=Symbol.for("CommandBar::showMessage"),r._state=Symbol.for("CommandBar::state"),r._unwrap=Symbol.for("CommandBar::unwrap"),r._user=Symbol.for("CommandBar::user"),r._userAttributes=Symbol.for("CommandBar::userAttributes")},314:(t,r,e)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.dispose=r.isDisposed=r.isDisposable=void 0;var o=e(207),n=function(t){return void 0!==t&&void 0!==t.dispose},i=function(t){return void 0!==t&&void 0!==t[o._dispose]};r.isDisposable=function(t){return void 0===t||n(t)||i(t)},r.isDisposed=function(t){return void 0===t||n(t)&&!0===t._disposed||i(t)&&!0===t[o._disposed]},r.dispose=function(t){void 0!==t&&(i(t)?t[o._dispose]():t.dispose())}},111:(t,r,e)=>{"use strict";var o=e(666);t.exports=function(t){if("function"!=typeof t)return!1;if(!hasOwnProperty.call(t,"length"))return!1;try{if("number"!=typeof t.length)return!1;if("function"!=typeof t.call)return!1;if("function"!=typeof t.apply)return!1}catch(t){return!1}return!o(t)}},617:(t,r,e)=>{"use strict";var o=e(102),n={object:!0,function:!0,undefined:!0};t.exports=function(t){return!!o(t)&&hasOwnProperty.call(n,typeof t)}},307:(t,r,e)=>{"use strict";var o=e(111),n=/^\s*class[\s{/}]/,i=Function.prototype.toString;t.exports=function(t){return!!o(t)&&!n.test(i.call(t))}},666:(t,r,e)=>{"use strict";var o=e(617);t.exports=function(t){if(!o(t))return!1;try{return!!t.constructor&&t.constructor.prototype===t}catch(t){return!1}}},102:t=>{"use strict";t.exports=function(t){return null!=t}}},r={};function e(o){var n=r[o];if(void 0!==n)return n.exports;var i=r[o]={exports:{}};return t[o].call(i.exports,i,i.exports,e),i.exports}return e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),e(14)})()}));
|
|
1
|
+
!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.commandbar=r():t.commandbar=r()}(this,(function(){return(()=>{var t={296:(t,r,e)=>{"use strict";var o=e(102),n=e(307),i=e(339),a=e(957),s=e(246),c=t.exports=function(t,r){var e,n,c,u,l;return arguments.length<2||"string"!=typeof t?(u=r,r=t,t=null):u=arguments[2],o(t)?(e=s.call(t,"c"),n=s.call(t,"e"),c=s.call(t,"w")):(e=c=!0,n=!1),l={value:r,configurable:e,enumerable:n,writable:c},u?i(a(u),l):l};c.gs=function(t,r,e){var c,u,l,f;return"string"!=typeof t?(l=e,e=r,r=t,t=null):l=arguments[3],o(r)?n(r)?o(e)?n(e)||(l=e,e=void 0):e=void 0:(l=r,r=e=void 0):r=void 0,o(t)?(c=s.call(t,"c"),u=s.call(t,"e")):(c=!0,u=!1),f={get:r,set:e,configurable:c,enumerable:u},l?i(a(l),f):f}},817:t=>{"use strict";t.exports=function(){}},339:(t,r,e)=>{"use strict";t.exports=e(994)()?Object.assign:e(963)},994:t=>{"use strict";t.exports=function(){var t,r=Object.assign;return"function"==typeof r&&(r(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}},963:(t,r,e)=>{"use strict";var o=e(450),n=e(836),i=Math.max;t.exports=function(t,r){var e,a,s,c=i(arguments.length,2);for(t=Object(n(t)),s=function(o){try{t[o]=r[o]}catch(t){e||(e=t)}},a=1;a<c;++a)o(r=arguments[a]).forEach(s);if(void 0!==e)throw e;return t}},349:(t,r,e)=>{"use strict";var o=e(817)();t.exports=function(t){return t!==o&&null!==t}},450:(t,r,e)=>{"use strict";t.exports=e(446)()?Object.keys:e(177)},446:t=>{"use strict";t.exports=function(){try{return Object.keys("primitive"),!0}catch(t){return!1}}},177:(t,r,e)=>{"use strict";var o=e(349),n=Object.keys;t.exports=function(t){return n(o(t)?Object(t):t)}},957:(t,r,e)=>{"use strict";var o=e(349),n=Array.prototype.forEach,i=Object.create,a=function(t,r){var e;for(e in t)r[e]=t[e]};t.exports=function(t){var r=i(null);return n.call(arguments,(function(t){o(t)&&a(Object(t),r)})),r}},836:(t,r,e)=>{"use strict";var o=e(349);t.exports=function(t){if(!o(t))throw new TypeError("Cannot use null or undefined");return t}},246:(t,r,e)=>{"use strict";t.exports=e(711)()?String.prototype.contains:e(370)},711:t=>{"use strict";var r="razdwatrzy";t.exports=function(){return"function"==typeof r.contains&&!0===r.contains("dwa")&&!1===r.contains("foo")}},370:t=>{"use strict";var r=String.prototype.indexOf;t.exports=function(t){return r.call(this,t,arguments[1])>-1}},992:(t,r,e)=>{"use strict";e(98).polyfill()},98:t=>{"use strict";function r(t,r){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var e=Object(t),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 c=i[a],u=Object.getOwnPropertyDescriptor(n,c);void 0!==u&&u.enumerable&&(e[c]=n[c])}}return e}t.exports={assign:r,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:r})}}},769:(t,r,e)=>{"use strict";e(614)()||Object.defineProperty(e(119),"Symbol",{value:e(798),configurable:!0,enumerable:!1,writable:!0})},614:(t,r,e)=>{"use strict";var o=e(119),n={object:!0,symbol:!0};t.exports=function(){var t,r=o.Symbol;if("function"!=typeof r)return!1;t=r("test symbol");try{String(t)}catch(t){return!1}return!!n[typeof r.iterator]&&!!n[typeof r.toPrimitive]&&!!n[typeof r.toStringTag]}},64:t=>{"use strict";t.exports=function(t){return!!t&&("symbol"==typeof t||!!t.constructor&&"Symbol"===t.constructor.name&&"Symbol"===t[t.constructor.toStringTag])}},573:(t,r,e)=>{"use strict";var o=e(296),n=Object.create,i=Object.defineProperty,a=Object.prototype,s=n(null);t.exports=function(t){for(var r,e,n=0;s[t+(n||"")];)++n;return s[t+=n||""]=!0,i(a,r="@@"+t,o.gs(null,(function(t){e||(e=!0,i(this,r,o(t)),e=!1)}))),r}},572:(t,r,e)=>{"use strict";var o=e(296),n=e(119).Symbol;t.exports=function(t){return Object.defineProperties(t,{hasInstance:o("",n&&n.hasInstance||t("hasInstance")),isConcatSpreadable:o("",n&&n.isConcatSpreadable||t("isConcatSpreadable")),iterator:o("",n&&n.iterator||t("iterator")),match:o("",n&&n.match||t("match")),replace:o("",n&&n.replace||t("replace")),search:o("",n&&n.search||t("search")),species:o("",n&&n.species||t("species")),split:o("",n&&n.split||t("split")),toPrimitive:o("",n&&n.toPrimitive||t("toPrimitive")),toStringTag:o("",n&&n.toStringTag||t("toStringTag")),unscopables:o("",n&&n.unscopables||t("unscopables"))})}},781:(t,r,e)=>{"use strict";var o=e(296),n=e(11),i=Object.create(null);t.exports=function(t){return Object.defineProperties(t,{for:o((function(r){return i[r]?i[r]:i[r]=t(String(r))})),keyFor:o((function(t){var r;for(r in n(t),i)if(i[r]===t)return r}))})}},798:(t,r,e)=>{"use strict";var o,n,i,a=e(296),s=e(11),c=e(119).Symbol,u=e(573),l=e(572),f=e(781),p=Object.create,d=Object.defineProperties,m=Object.defineProperty;if("function"==typeof c)try{String(c()),i=!0}catch(t){}else c=null;n=function(t){if(this instanceof n)throw new TypeError("Symbol is not a constructor");return o(t)},t.exports=o=function t(r){var e;if(this instanceof t)throw new TypeError("Symbol is not a constructor");return i?c(r):(e=p(n.prototype),r=void 0===r?"":String(r),d(e,{__description__:a("",r),__name__:a("",u(r))}))},l(o),f(o),d(n.prototype,{constructor:a(o),toString:a("",(function(){return this.__name__}))}),d(o.prototype,{toString:a((function(){return"Symbol ("+s(this).__description__+")"})),valueOf:a((function(){return s(this)}))}),m(o.prototype,o.toPrimitive,a("",(function(){var t=s(this);return"symbol"==typeof t?t:t.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:(t,r,e)=>{"use strict";var o=e(64);t.exports=function(t){if(!o(t))throw new TypeError(t+" is not a symbol");return t}},308:t=>{var r=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw new Error("Unable to resolve global `this`")};t.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(t){return r()}try{return __global__||r()}finally{delete Object.prototype.__global__}}()},119:(t,r,e)=>{"use strict";t.exports=e(801)()?globalThis:e(308)},801:t=>{"use strict";t.exports=function(){return"object"==typeof globalThis&&!!globalThis&&globalThis.Array===Array}},656:(t,r,e)=>{"use strict";var o;(o="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)||"undefined"!=typeof navigator&&"ReactNative"===navigator.product?e.g:self).Proxy||(o.Proxy=e(659)(),o.Proxy.revocable=o.Proxy.revocable)},659:t=>{t.exports=function(){let t,r=null;function e(t){return!!t&&("object"==typeof t||"function"==typeof t)}function o(t){if(null!==t&&!e(t))throw new TypeError("Object prototype may only be an Object or null: "+t)}const n=Object,i=Boolean(n.create)||!({__proto__:null}instanceof n),a=n.create||(i?function(t){return o(t),{__proto__:t}}:function(t){if(o(t),null===t)throw new SyntaxError("Native Object.create is required to create objects with null prototype");var r=function(){};return r.prototype=t,new r}),s=function(){return null},c=n.getPrototypeOf||([].__proto__===Array.prototype?function(t){const r=t.__proto__;return e(r)?r:null}:s);return t=function(u,l){if(void 0===(this&&this instanceof t?this.constructor:void 0))throw new TypeError("Constructor Proxy requires 'new'");if(!e(u)||!e(l))throw new TypeError("Cannot create proxy with a non-object as target or handler");let f=function(){};r=function(){u=null,f=function(t){throw new TypeError(`Cannot perform '${t}' on a proxy that has been revoked`)}},setTimeout((function(){r=null}),0);const p=l;l={get:null,set:null,apply:null,construct:null};for(let t in p){if(!(t in l))throw new TypeError(`Proxy polyfill does not support trap '${t}'`);l[t]=p[t]}"function"==typeof p&&(l.apply=p.apply.bind(p));const d=c(u);let m,y=!1,b=!1;"function"==typeof u?(m=function(){const t=this&&this.constructor===m,r=Array.prototype.slice.call(arguments);return f(t?"construct":"apply"),t&&l.construct?l.construct.call(this,u,r):!t&&l.apply?l.apply(u,this,r):t?(r.unshift(u),new(u.bind.apply(u,r))):u.apply(this,r)},y=!0):u instanceof Array?(m=[],b=!0):m=i||null!==d?a(d):{};const _=l.get?function(t){return f("get"),l.get(this,t,m)}:function(t){return f("get"),this[t]},v=l.set?function(t,r){f("set"),l.set(this,t,r,m)}:function(t,r){f("set"),this[t]=r},g=n.getOwnPropertyNames(u),h={};g.forEach((function(t){if((y||b)&&t in m)return;const r=n.getOwnPropertyDescriptor(u,t),e={enumerable:Boolean(r.enumerable),get:_.bind(u,t),set:v.bind(u,t)};n.defineProperty(m,t,e),h[t]=!0}));let S=!0;if(y||b){const t=n.setPrototypeOf||([].__proto__===Array.prototype?function(t,r){return o(r),t.__proto__=r,t}:s);d&&t(m,d)||(S=!1)}if(l.get||!S)for(let t in u)h[t]||n.defineProperty(m,t,{get:_.bind(u,t)});return n.seal(u),n.seal(m),m},t.revocable=function(e,o){return{proxy:new t(e,o),revoke:r}},t}},14:function(t,r,e){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.CommandBarClientSDK=r.snippet=r.initProxy=r.init=void 0;var n=e(343);Object.defineProperty(r,"CommandBarClientSDK",{enumerable:!0,get:function(){return n.CommandBarClientSDK}});var i=e(956);Object.defineProperty(r,"init",{enumerable:!0,get:function(){return o(i).default}});var a=e(737);Object.defineProperty(r,"initProxy",{enumerable:!0,get:function(){return a.initProxySDK}});var s=e(890);Object.defineProperty(r,"snippet",{enumerable:!0,get:function(){return s.snippet}})},956:function(t,r,e){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var r,e=1,o=arguments.length;e<o;e++)for(var n in r=arguments[e])Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n]);return t},o.apply(this,arguments)};Object.defineProperty(r,"__esModule",{value:!0}),e(656),e(992),e(769);var n=e(737),i=e(207),a=function(t){if("complete"===document.readyState){var r=function(t){var r="https://api.commandbar.com",e=[],o=localStorage.getItem("commandbar.lc");o&&o.includes("local")&&(r="http://localhost:8000");var n=r+"/latest/"+t;return o&&e.push("lc="+o),e.push("version=2"),n+"?"+e.join("&")}(t),e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src=r,document.head.appendChild(e)}else window.addEventListener("load",a.bind(null,t),{capture:!1,once:!0})},s={debug:!1};r.default=function(t,r){var e;void 0===r&&(r=s);var c=o(o({},s),r);t?(null===(e=(0,n.getProxySDK)()[i._configuration])||void 0===e?void 0:e.uuid)?console.warn("CommandBar init was called more than once. Skipping the redundant initialization..."):(c.debug&&console.log("CommandBar init...",{environment:r.environment,version:r.version}),(0,n.getProxySDK)()[i._configuration]={uuid:t,environment:r.environment,version:r.version,config:r.config},a(t)):console.error("No org specified for CommandBar.init")}},890:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.snippet=void 0,r.snippet=function(t){var r=["Object.assign","Symbol","Symbol.for"].join("%2C"),e=window;function o(t,r){void 0===r&&(r=!1),"complete"!==document.readyState&&window.addEventListener("load",o.bind(null,t,r),{capture:!1,once:!0});var e=document.createElement("script");e.type="text/javascript",e.async=r,e.src=t,document.head.appendChild(e)}function n(){var r;if(void 0===e.CommandBar){delete e.__CommandBarBootstrap__;var n=Symbol.for("CommandBar::configuration"),i=Symbol.for("CommandBar::orgConfig"),a=Symbol.for("CommandBar::disposed"),s=Symbol.for("CommandBar::isProxy"),c=Symbol.for("CommandBar::queue"),u=Symbol.for("CommandBar::unwrap"),l=[],f=localStorage.getItem("commandbar.lc"),p=f&&f.includes("local")?"http://localhost:8000":"https://api.commandbar.com",d=Object.assign(((r={})[n]={uuid:t},r[i]={},r[a]=!1,r[s]=!0,r[c]=new Array,r[u]=function(){return d},r),e.CommandBar),m=["addCommand","boot"],y=d;Object.assign(d,{shareCallbacks:function(){return{}},shareContext:function(){return{}}}),e.CommandBar=new Proxy(d,{get:function(t,r){return r in y?d[r]:m.includes(r)?function(){var t=Array.prototype.slice.call(arguments);return new Promise((function(e,o){t.unshift(r,e,o),d[c].push(t)}))}:function(){var t=Array.prototype.slice.call(arguments);t.unshift(r),d[c].push(t)}}}),null!==f&&l.push("lc=".concat(f)),l.push("version=2"),o("".concat(p,"/latest/").concat(t,"?").concat(l.join("&")),!0)}}void 0===Object.assign||"undefined"==typeof Symbol||void 0===Symbol.for?(e.__CommandBarBootstrap__=n,o("https://polyfill.io/v3/polyfill.min.js?version=3.101.0&callback=__CommandBarBootstrap__&features="+r)):n()}},343:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DEFAULT_INSTANCE_ATTRIBUTES=r.ASYNC_METHODS=void 0,r.ASYNC_METHODS=["addCommand","boot"],r.DEFAULT_INSTANCE_ATTRIBUTES={canOpenEditor:!0,formFactor:{type:"modal"}}},737:(t,r,e)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.initProxySDK=r.getProxySDK=void 0;var o=e(314),n=e(343),i=e(207);function a(){var t,r,e,o,a=window.CommandBar,s=window.CommandBar;Array.isArray(null==a?void 0:a.q)||"string"==typeof(null==a?void 0:a.uid)?(e=null==a?void 0:a.uid,o=null==a?void 0:a.q):(e=null===(r=null==s?void 0:s[i._configuration])||void 0===r?void 0:r.uuid,o=null==s?void 0:s[i._queue]);var c=((t={})[i._configuration]={uuid:"string"==typeof e?e:""},t[i._disposed]=!1,t[i._isProxy]=!0,t[i._queue]=Array.isArray(o)?o:[],t[i._unwrap]=function(){return c},t),u=c;Object.assign(c,{shareCallbacks:function(){return{}},shareContext:function(){return{}}}),window.CommandBar=new Proxy(c,{get:function(t,r){return r in u?u[r]:n.ASYNC_METHODS.includes(r)?function(){var t=Array.prototype.slice.call(arguments);return new Promise((function(e,o){t.unshift(r,e,o),c[i._queue].push(t)}))}:function(){var t=Array.prototype.slice.call(arguments);t.unshift(r),c[i._queue].push(t)}}})}r.getProxySDK=function(){var t=window.CommandBar;return((0,o.isDisposed)(t)||"boolean"!=typeof t[i._isProxy])&&a(),window.CommandBar[i._unwrap]()},r.initProxySDK=a},207:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r._userAttributes=r._user=r._unwrap=r._state=r._showMessage=r._showGuide=r._shareProgrammaticCommands=r._shareContextSettings=r._setEditorVisible=r._setTestMode=r._setPreviewMode=r._setDashboard=r._search=r._reporter=r._report=r._reloadPlaceholders=r._reloadOrganization=r._reloadCommands=r._queue=r._programmaticTheme=r._perf=r._orgConfig=r._loadEditor=r._isProxy=r._instanceAttributes=r._disposed=r._dispose=r._dispatch=r._configUser=r._configure=r._configuration=r._access=void 0,r._access=Symbol.for("CommandBar::access"),r._configuration=Symbol.for("CommandBar::configuration"),r._configure=Symbol.for("CommandBar::configure"),r._configUser=Symbol.for("CommandBar::configUser"),r._dispatch=Symbol.for("CommandBar::dispatch"),r._dispose=Symbol.for("CommandBar::dispose"),r._disposed=Symbol.for("CommandBar::disposed"),r._instanceAttributes=Symbol.for("CommandBar::instanceAttributes"),r._isProxy=Symbol.for("CommandBar::isProxy"),r._loadEditor=Symbol.for("CommandBar::loadEditor"),r._orgConfig=Symbol.for("CommandBar::orgConfig"),r._perf=Symbol.for("CommandBar::perf"),r._programmaticTheme=Symbol.for("CommandBar::programmaticTheme"),r._queue=Symbol.for("CommandBar::queue"),r._reloadCommands=Symbol.for("CommandBar::reloadCommands"),r._reloadOrganization=Symbol.for("CommandBar::reloadOrganization"),r._reloadPlaceholders=Symbol.for("CommandBar::reloadPlaceholders"),r._report=Symbol.for("CommandBar::report"),r._reporter=Symbol.for("CommandBar::reporter"),r._search=Symbol.for("CommandBar::search"),r._setDashboard=Symbol.for("CommandBar::setDashboard"),r._setPreviewMode=Symbol.for("CommandBar::setPreviewMode"),r._setTestMode=Symbol.for("CommandBar::setTestMode"),r._setEditorVisible=Symbol.for("CommandBar::setEditorVisible"),r._shareContextSettings=Symbol.for("CommandBar::shareContextSettings"),r._shareProgrammaticCommands=Symbol.for("CommandBar::shareProgrammaticCommands"),r._showGuide=Symbol.for("CommandBar::showGuide"),r._showMessage=Symbol.for("CommandBar::showMessage"),r._state=Symbol.for("CommandBar::state"),r._unwrap=Symbol.for("CommandBar::unwrap"),r._user=Symbol.for("CommandBar::user"),r._userAttributes=Symbol.for("CommandBar::userAttributes")},314:(t,r,e)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.dispose=r.isDisposed=r.isDisposable=void 0;var o=e(207),n=function(t){return void 0!==t&&void 0!==t.dispose},i=function(t){return void 0!==t&&void 0!==t[o._dispose]};r.isDisposable=function(t){return void 0===t||n(t)||i(t)},r.isDisposed=function(t){return void 0===t||n(t)&&!0===t._disposed||i(t)&&!0===t[o._disposed]},r.dispose=function(t){void 0!==t&&(i(t)?t[o._dispose]():t.dispose())}},111:(t,r,e)=>{"use strict";var o=e(666);t.exports=function(t){if("function"!=typeof t)return!1;if(!hasOwnProperty.call(t,"length"))return!1;try{if("number"!=typeof t.length)return!1;if("function"!=typeof t.call)return!1;if("function"!=typeof t.apply)return!1}catch(t){return!1}return!o(t)}},617:(t,r,e)=>{"use strict";var o=e(102),n={object:!0,function:!0,undefined:!0};t.exports=function(t){return!!o(t)&&hasOwnProperty.call(n,typeof t)}},307:(t,r,e)=>{"use strict";var o=e(111),n=/^\s*class[\s{/}]/,i=Function.prototype.toString;t.exports=function(t){return!!o(t)&&!n.test(i.call(t))}},666:(t,r,e)=>{"use strict";var o=e(617);t.exports=function(t){if(!o(t))return!1;try{return!!t.constructor&&t.constructor.prototype===t}catch(t){return!1}}},102:t=>{"use strict";t.exports=function(t){return null!=t}}},r={};function e(o){var n=r[o];if(void 0!==n)return n.exports;var i=r[o]={exports:{}};return t[o].call(i.exports,i,i.exports,e),i.exports}return e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),e(14)})()}));
|
|
@@ -2,7 +2,7 @@ import { AddContextOptions, ArgumentOptions, DataRow, RecordOptions } from './Ad
|
|
|
2
2
|
import { EventHandler } from './EventHandler';
|
|
3
3
|
import { ICommandFromClientType } from '../middleware/ICommandFromClientType';
|
|
4
4
|
import { IResourceSettings } from '../middleware/IResourceSettings';
|
|
5
|
-
import { ICommandCategoryType, DetailPreviewType, DataRowMedata } from '../middleware/types';
|
|
5
|
+
import { ICommandCategoryType, DetailPreviewType, DataRowMedata, ISkinType } from '../middleware/types';
|
|
6
6
|
export type { DataRow } from './AddContextOptions';
|
|
7
7
|
export type { DataRowMedata } from '../middleware/types';
|
|
8
8
|
export declare const ASYNC_METHODS: Array<keyof CommandBarClientSDK>;
|
|
@@ -26,10 +26,21 @@ export declare type CommandDetails = {
|
|
|
26
26
|
customShortcut: string | undefined;
|
|
27
27
|
};
|
|
28
28
|
export declare type UserAttributes = Record<string, unknown>;
|
|
29
|
+
export declare type ModalFormFactor = {
|
|
30
|
+
type: 'modal';
|
|
31
|
+
};
|
|
32
|
+
export declare type InlineFormFactor = {
|
|
33
|
+
type: 'inline';
|
|
34
|
+
rootElement: string;
|
|
35
|
+
};
|
|
36
|
+
export declare type FormFactorConfig = ModalFormFactor | InlineFormFactor;
|
|
37
|
+
export declare type FormFactor = Pick<FormFactorConfig, 'type'>;
|
|
29
38
|
export declare type InstanceAttributes = {
|
|
30
|
-
canOpenEditor
|
|
39
|
+
canOpenEditor: boolean;
|
|
31
40
|
hmac?: string;
|
|
41
|
+
formFactor: FormFactorConfig;
|
|
32
42
|
};
|
|
43
|
+
export declare const DEFAULT_INSTANCE_ATTRIBUTES: InstanceAttributes;
|
|
33
44
|
export declare type CallbackFunction<T, U = Metadata> = (args: T, context: U) => void;
|
|
34
45
|
export declare type ContextLoader = (chosenValues?: undefined | Record<string, unknown[]>) => unknown;
|
|
35
46
|
export declare type RecordsOrArgumentListLoader = (chosenValues?: undefined | Record<string, unknown[]>) => DataRow[];
|
|
@@ -170,11 +181,17 @@ export declare type CommandBarClientSDK = Readonly<{
|
|
|
170
181
|
* filter on these attributes from the analytics page in your dashboard. In addition, events passed to a supplied
|
|
171
182
|
* event handler will include metadata you provide via `boot`.
|
|
172
183
|
*/
|
|
173
|
-
boot(id: string, userAttributes?: UserAttributes, instanceAttributes?: InstanceAttributes): Promise<void>;
|
|
184
|
+
boot(id: string, userAttributes?: UserAttributes, instanceAttributes?: Partial<InstanceAttributes>): Promise<void>;
|
|
174
185
|
/**
|
|
175
186
|
* @deprecated Passing an object to boot will be deprecated in a future version of CommandBar.
|
|
176
187
|
*/
|
|
177
188
|
boot(opts: BootOptions): Promise<void>;
|
|
189
|
+
/**
|
|
190
|
+
* Changes the Bar form factor; can be set to either Modal (the default) or Inline.
|
|
191
|
+
*
|
|
192
|
+
* @param formFactorConfig either {type: 'modal'} or {type: 'inline', rootElement: (id of an element on the page) or an HTMLElement}
|
|
193
|
+
*/
|
|
194
|
+
setFormFactor(formFactorConfig: FormFactorConfig): Promise<void>;
|
|
178
195
|
clearActiveObject(contextKey: string): void;
|
|
179
196
|
close(): void;
|
|
180
197
|
/**
|
|
@@ -274,7 +291,7 @@ export declare type CommandBarClientSDK = Readonly<{
|
|
|
274
291
|
* @param theme A hex color. Using 'light' or 'dark' will trigger CommandBar's default light or dark theme.
|
|
275
292
|
* @param [primaryColor] A hex color.
|
|
276
293
|
*/
|
|
277
|
-
setTheme(theme: string | 'light' | 'dark', primaryColor?: string): void;
|
|
294
|
+
setTheme(theme: string | 'light' | 'dark' | Pick<ISkinType, 'logo' | 'skin'>, primaryColor?: string): void;
|
|
278
295
|
/**
|
|
279
296
|
* Returns dictionary representing the current callbacks currently stored within CommandBar. The keys represent
|
|
280
297
|
* callback keys, and the values are the supplied functions.
|
|
@@ -282,6 +299,13 @@ export declare type CommandBarClientSDK = Readonly<{
|
|
|
282
299
|
shareCallbacks(): Record<string, CallbackFunction<unknown>>;
|
|
283
300
|
/** Returns the key value dictionary representing the current state of context */
|
|
284
301
|
shareContext(): Metadata;
|
|
302
|
+
/**
|
|
303
|
+
* Get information about the current status of CommandBar
|
|
304
|
+
*/
|
|
305
|
+
shareState(): {
|
|
306
|
+
isBooted: boolean;
|
|
307
|
+
currentInput: string;
|
|
308
|
+
};
|
|
285
309
|
/**
|
|
286
310
|
* Make CommandBar unavailable to the user. Does nothing unless `.boot` has been called. `shutdown` is typically used
|
|
287
311
|
* to make CommandBar unavailable after logout.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SDKConfig
|
|
1
|
+
import { OrgConfig } from './OrgConfig';
|
|
2
|
+
import { SDKConfig } from './CommandBarSDK';
|
|
3
3
|
import { _configuration, _disposed, _isProxy, _queue, _reporter, _unwrap, _orgConfig } from './symbols';
|
|
4
4
|
/**
|
|
5
5
|
* A proxy object that absorbs function calls into a queue that can be later consumed. The queue contains the name of
|
|
@@ -11,7 +11,7 @@ import { _configuration, _disposed, _isProxy, _queue, _reporter, _unwrap, _orgCo
|
|
|
11
11
|
export declare type CommandBarProxySDK = CommandBarProxyGlobal & Record<string, Function> & {
|
|
12
12
|
[_configuration]?: Function | Partial<SDKConfig>;
|
|
13
13
|
[_orgConfig]?: Function | OrgConfig;
|
|
14
|
-
[_reporter]?: Function |
|
|
14
|
+
[_reporter]?: Function | any;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* The global SDK object, which is usually hidden behind a Proxy at `window.CommandBar`. Use
|
|
@@ -42,7 +42,7 @@ export interface CommandBarProxyGlobal {
|
|
|
42
42
|
[_unwrap]: () => CommandBarProxyGlobal;
|
|
43
43
|
[_configuration]?: Partial<SDKConfig>;
|
|
44
44
|
[_orgConfig]?: OrgConfig;
|
|
45
|
-
[_reporter]?:
|
|
45
|
+
[_reporter]?: any;
|
|
46
46
|
}
|
|
47
47
|
/** Tests if the given object is a "proxy" SDK object that has not yet been upgraded to a client SDK object. */
|
|
48
48
|
export declare function isProxySDK(x: unknown): x is CommandBarProxySDK;
|
|
@@ -4,15 +4,11 @@ import { SentryReporter } from './SentryReporter';
|
|
|
4
4
|
import { _access, _configuration, _configure, _configUser, _dispose, _disposed, _userAttributes, _isProxy, _loadEditor, _orgConfig, _perf, _programmaticTheme, _reloadCommands, _reloadOrganization, _reloadPlaceholders, _report, _reporter, _search, _setDashboard, _setPreviewMode, _setTestMode, _showGuide, _showMessage, _user, _instanceAttributes, _setEditorVisible, _shareContextSettings, _shareProgrammaticCommands } from './symbols';
|
|
5
5
|
import { SDKConfig } from './SDKConfig';
|
|
6
6
|
import { ICommandType, IResourceSettingsByContextKey } from '../middleware/types';
|
|
7
|
-
|
|
8
|
-
name?: string;
|
|
9
|
-
silent?: boolean;
|
|
10
|
-
eventAttributeBlockList?: string[];
|
|
11
|
-
}
|
|
7
|
+
import { OrgConfig } from './OrgConfig';
|
|
12
8
|
export type { SDKConfig } from './SDKConfig';
|
|
13
9
|
export interface CommandBarSDK extends CommandBarClientSDK {
|
|
14
10
|
[_access]: string | undefined;
|
|
15
|
-
[_instanceAttributes]: InstanceAttributes
|
|
11
|
+
[_instanceAttributes]: InstanceAttributes;
|
|
16
12
|
[_perf]: boolean;
|
|
17
13
|
[_programmaticTheme]: string | undefined;
|
|
18
14
|
[_reporter]: SentryReporter | undefined;
|
|
@@ -28,7 +28,7 @@ export interface ClosedEvent {
|
|
|
28
28
|
export interface CommandExecutionEvent {
|
|
29
29
|
/** Event data passed for `command_execution` events. */
|
|
30
30
|
/** The category id of the command. Only provided if the command has a category. */
|
|
31
|
-
category?: number | null;
|
|
31
|
+
category?: string | number | null;
|
|
32
32
|
/**
|
|
33
33
|
* The unique id of the command. For commands defined via the Editor, the value will be a number. For programmatic
|
|
34
34
|
* commands, the `name` (string) provided will be used.
|
|
@@ -67,6 +67,7 @@ export declare const CommandFromClientV: t.IntersectionC<[t.TypeC<{
|
|
|
67
67
|
hotkey_win: t.StringC;
|
|
68
68
|
tags: t.ArrayC<t.StringC>;
|
|
69
69
|
explanation: t.StringC;
|
|
70
|
+
heading: t.StringC;
|
|
70
71
|
sort_key: t.UnionC<[t.NumberC, t.NullC]>;
|
|
71
72
|
arguments: t.RecordC<t.StringC, t.UnionC<[t.IntersectionC<[t.TypeC<{
|
|
72
73
|
type: t.LiteralC<"context">;
|
|
@@ -33,6 +33,8 @@ declare const OrganizationAdditionalV: t.TypeC<{
|
|
|
33
33
|
show_with_no_results: t.BooleanC;
|
|
34
34
|
search_tab_enabled: t.BooleanC;
|
|
35
35
|
search_tab_name: t.UnionC<[t.StringC, t.NullC]>;
|
|
36
|
+
slash_filter_enabled: t.BooleanC;
|
|
37
|
+
slash_filter_keyword: t.UnionC<[t.StringC, t.NullC]>;
|
|
36
38
|
search_tab_instruction: t.UnionC<[t.StringC, t.NullC]>;
|
|
37
39
|
setting_pin_to_bottom: t.BooleanC;
|
|
38
40
|
track_recents: t.BooleanC;
|
|
@@ -54,6 +56,12 @@ declare const OrganizationAdditionalV: t.TypeC<{
|
|
|
54
56
|
releases_enabled: t.BooleanC;
|
|
55
57
|
fallback_commands: t.ArrayC<t.NumberC>;
|
|
56
58
|
tab_direction: t.UnionC<[t.LiteralC<"horizontal">, t.LiteralC<"vertical">]>;
|
|
59
|
+
recommended_tab_enabled: t.BooleanC;
|
|
60
|
+
recents_tab_enabled: t.BooleanC;
|
|
61
|
+
recommended_tab_instruction: t.StringC;
|
|
62
|
+
recents_tab_instruction: t.StringC;
|
|
63
|
+
hotload_help_docs: t.BooleanC;
|
|
64
|
+
slash_filters_enabled: t.BooleanC;
|
|
57
65
|
}>;
|
|
58
66
|
export declare const defaults: t.TypeOf<typeof OrganizationAdditionalV>;
|
|
59
67
|
export declare const OrganizationV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
@@ -94,6 +102,8 @@ export declare const OrganizationV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
|
94
102
|
show_with_no_results: t.BooleanC;
|
|
95
103
|
search_tab_enabled: t.BooleanC;
|
|
96
104
|
search_tab_name: t.UnionC<[t.StringC, t.NullC]>;
|
|
105
|
+
slash_filter_enabled: t.BooleanC;
|
|
106
|
+
slash_filter_keyword: t.UnionC<[t.StringC, t.NullC]>;
|
|
97
107
|
search_tab_instruction: t.UnionC<[t.StringC, t.NullC]>;
|
|
98
108
|
setting_pin_to_bottom: t.BooleanC;
|
|
99
109
|
track_recents: t.BooleanC;
|
|
@@ -115,6 +125,12 @@ export declare const OrganizationV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
|
115
125
|
releases_enabled: t.BooleanC;
|
|
116
126
|
fallback_commands: t.ArrayC<t.NumberC>;
|
|
117
127
|
tab_direction: t.UnionC<[t.LiteralC<"horizontal">, t.LiteralC<"vertical">]>;
|
|
128
|
+
recommended_tab_enabled: t.BooleanC;
|
|
129
|
+
recents_tab_enabled: t.BooleanC;
|
|
130
|
+
recommended_tab_instruction: t.StringC;
|
|
131
|
+
recents_tab_instruction: t.StringC;
|
|
132
|
+
hotload_help_docs: t.BooleanC;
|
|
133
|
+
slash_filters_enabled: t.BooleanC;
|
|
118
134
|
}>]>;
|
|
119
135
|
export declare type IOrganizationType = t.TypeOf<typeof OrganizationV>;
|
|
120
136
|
export {};
|
|
@@ -25,6 +25,8 @@ export declare const ResourceSettingsV: t.PartialC<{
|
|
|
25
25
|
show_with_no_results: t.BooleanC;
|
|
26
26
|
search_tab_enabled: t.BooleanC;
|
|
27
27
|
search_tab_name: t.UnionC<[t.StringC, t.NullC]>;
|
|
28
|
+
slash_filter_enabled: t.BooleanC;
|
|
29
|
+
slash_filter_keyword: t.UnionC<[t.StringC, t.NullC]>;
|
|
28
30
|
search_tab_instruction: t.UnionC<[t.StringC, t.NullC]>;
|
|
29
31
|
setting_pin_to_bottom: t.BooleanC;
|
|
30
32
|
track_recents: t.BooleanC;
|
|
@@ -51,6 +53,8 @@ export declare const ResourceSettingsByContextKeyV: t.RecordC<t.StringC, t.Parti
|
|
|
51
53
|
show_with_no_results: t.BooleanC;
|
|
52
54
|
search_tab_enabled: t.BooleanC;
|
|
53
55
|
search_tab_name: t.UnionC<[t.StringC, t.NullC]>;
|
|
56
|
+
slash_filter_enabled: t.BooleanC;
|
|
57
|
+
slash_filter_keyword: t.UnionC<[t.StringC, t.NullC]>;
|
|
54
58
|
search_tab_instruction: t.UnionC<[t.StringC, t.NullC]>;
|
|
55
59
|
setting_pin_to_bottom: t.BooleanC;
|
|
56
60
|
track_recents: t.BooleanC;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import * as t from 'io-ts';
|
|
3
3
|
import { GenericBatchRequest } from './generics';
|
|
4
4
|
export { CommandFromClientV } from './CommandFromClientV';
|
|
5
|
-
declare const HelpSyncCommandAdditionalV: t.
|
|
6
|
-
third_party_source: t.StringC
|
|
7
|
-
third_party_id: t.StringC
|
|
5
|
+
declare const HelpSyncCommandAdditionalV: t.PartialC<{
|
|
6
|
+
third_party_source: t.UnionC<[t.StringC, t.NullC]>;
|
|
7
|
+
third_party_id: t.UnionC<[t.StringC, t.NullC]>;
|
|
8
8
|
}>;
|
|
9
9
|
export declare const helpSyncDefaults: t.TypeOf<typeof HelpSyncCommandAdditionalV>;
|
|
10
10
|
export declare const CommandV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
@@ -262,6 +262,7 @@ export declare const CommandV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
|
262
262
|
confirm: t.StringC;
|
|
263
263
|
shortcut: t.ArrayC<t.StringC>;
|
|
264
264
|
explanation: t.StringC;
|
|
265
|
+
heading: t.StringC;
|
|
265
266
|
is_live: t.BooleanC;
|
|
266
267
|
category: t.UnionC<[t.NumberC, t.NullC]>;
|
|
267
268
|
sort_key: t.UnionC<[t.NumberC, t.NullC]>;
|
|
@@ -615,6 +616,7 @@ export declare const EditorCommandV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
|
615
616
|
confirm: t.StringC;
|
|
616
617
|
shortcut: t.ArrayC<t.StringC>;
|
|
617
618
|
explanation: t.StringC;
|
|
619
|
+
heading: t.StringC;
|
|
618
620
|
is_live: t.BooleanC;
|
|
619
621
|
category: t.UnionC<[t.NumberC, t.NullC]>;
|
|
620
622
|
sort_key: t.UnionC<[t.NumberC, t.NullC]>;
|
|
@@ -645,6 +647,9 @@ export declare const EditorCommandV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
|
645
647
|
type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"react">, t.LiteralC<"video">, t.NullC]>;
|
|
646
648
|
value: t.StringC;
|
|
647
649
|
}>]>>]>;
|
|
650
|
+
}>, t.PartialC<{
|
|
651
|
+
third_party_source: t.UnionC<[t.StringC, t.NullC]>;
|
|
652
|
+
third_party_id: t.UnionC<[t.StringC, t.NullC]>;
|
|
648
653
|
}>]>;
|
|
649
654
|
export declare const BatchOperationV: t.UnionC<[t.TypeC<{
|
|
650
655
|
op: t.LiteralC<"update">;
|
|
@@ -980,6 +985,7 @@ export declare const BatchEditorCommandResponseV: t.TypeC<{
|
|
|
980
985
|
confirm: t.StringC;
|
|
981
986
|
shortcut: t.ArrayC<t.StringC>;
|
|
982
987
|
explanation: t.StringC;
|
|
988
|
+
heading: t.StringC;
|
|
983
989
|
is_live: t.BooleanC;
|
|
984
990
|
category: t.UnionC<[t.NumberC, t.NullC]>;
|
|
985
991
|
sort_key: t.UnionC<[t.NumberC, t.NullC]>;
|
|
@@ -1010,6 +1016,9 @@ export declare const BatchEditorCommandResponseV: t.TypeC<{
|
|
|
1010
1016
|
type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"react">, t.LiteralC<"video">, t.NullC]>;
|
|
1011
1017
|
value: t.StringC;
|
|
1012
1018
|
}>]>>]>;
|
|
1019
|
+
}>, t.PartialC<{
|
|
1020
|
+
third_party_source: t.UnionC<[t.StringC, t.NullC]>;
|
|
1021
|
+
third_party_id: t.UnionC<[t.StringC, t.NullC]>;
|
|
1013
1022
|
}>]>>;
|
|
1014
1023
|
}>;
|
|
1015
1024
|
export declare class Command {
|
|
@@ -1271,6 +1280,7 @@ export declare class Command {
|
|
|
1271
1280
|
confirm: string;
|
|
1272
1281
|
shortcut: string[];
|
|
1273
1282
|
explanation: string;
|
|
1283
|
+
heading: string;
|
|
1274
1284
|
is_live: boolean;
|
|
1275
1285
|
category: number | null;
|
|
1276
1286
|
sort_key: number | null;
|
|
@@ -1301,6 +1311,9 @@ export declare class Command {
|
|
|
1301
1311
|
type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
|
|
1302
1312
|
value: string;
|
|
1303
1313
|
})[] | null;
|
|
1314
|
+
} & {
|
|
1315
|
+
third_party_source?: string | null | undefined;
|
|
1316
|
+
third_party_id?: string | null | undefined;
|
|
1304
1317
|
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
|
1305
1318
|
id: number;
|
|
1306
1319
|
organization: string | number;
|
|
@@ -1559,6 +1572,7 @@ export declare class Command {
|
|
|
1559
1572
|
confirm: string;
|
|
1560
1573
|
shortcut: string[];
|
|
1561
1574
|
explanation: string;
|
|
1575
|
+
heading: string;
|
|
1562
1576
|
is_live: boolean;
|
|
1563
1577
|
category: number | null;
|
|
1564
1578
|
sort_key: number | null;
|
|
@@ -1589,6 +1603,9 @@ export declare class Command {
|
|
|
1589
1603
|
type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
|
|
1590
1604
|
value: string;
|
|
1591
1605
|
})[] | null;
|
|
1606
|
+
} & {
|
|
1607
|
+
third_party_source?: string | null | undefined;
|
|
1608
|
+
third_party_id?: string | null | undefined;
|
|
1592
1609
|
}>;
|
|
1593
1610
|
static update: (object: {
|
|
1594
1611
|
id: number;
|
|
@@ -1848,6 +1865,7 @@ export declare class Command {
|
|
|
1848
1865
|
confirm: string;
|
|
1849
1866
|
shortcut: string[];
|
|
1850
1867
|
explanation: string;
|
|
1868
|
+
heading: string;
|
|
1851
1869
|
is_live: boolean;
|
|
1852
1870
|
category: number | null;
|
|
1853
1871
|
sort_key: number | null;
|
|
@@ -1878,6 +1896,9 @@ export declare class Command {
|
|
|
1878
1896
|
type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
|
|
1879
1897
|
value: string;
|
|
1880
1898
|
})[] | null;
|
|
1899
|
+
} & {
|
|
1900
|
+
third_party_source?: string | null | undefined;
|
|
1901
|
+
third_party_id?: string | null | undefined;
|
|
1881
1902
|
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
|
1882
1903
|
id: number;
|
|
1883
1904
|
organization: string | number;
|
|
@@ -2136,6 +2157,7 @@ export declare class Command {
|
|
|
2136
2157
|
confirm: string;
|
|
2137
2158
|
shortcut: string[];
|
|
2138
2159
|
explanation: string;
|
|
2160
|
+
heading: string;
|
|
2139
2161
|
is_live: boolean;
|
|
2140
2162
|
category: number | null;
|
|
2141
2163
|
sort_key: number | null;
|
|
@@ -2166,6 +2188,9 @@ export declare class Command {
|
|
|
2166
2188
|
type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
|
|
2167
2189
|
value: string;
|
|
2168
2190
|
})[] | null;
|
|
2191
|
+
} & {
|
|
2192
|
+
third_party_source?: string | null | undefined;
|
|
2193
|
+
third_party_id?: string | null | undefined;
|
|
2169
2194
|
}>;
|
|
2170
2195
|
static delete: (id: string | number, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
|
|
2171
2196
|
static batch: (request: t.TypeOf<typeof GenericBatchRequest>) => Promise<{
|
|
@@ -2427,6 +2452,7 @@ export declare class Command {
|
|
|
2427
2452
|
confirm: string;
|
|
2428
2453
|
shortcut: string[];
|
|
2429
2454
|
explanation: string;
|
|
2455
|
+
heading: string;
|
|
2430
2456
|
is_live: boolean;
|
|
2431
2457
|
category: number | null;
|
|
2432
2458
|
sort_key: number | null;
|
|
@@ -2457,6 +2483,9 @@ export declare class Command {
|
|
|
2457
2483
|
type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
|
|
2458
2484
|
value: string;
|
|
2459
2485
|
})[] | null;
|
|
2486
|
+
} & {
|
|
2487
|
+
third_party_source?: string | null | undefined;
|
|
2488
|
+
third_party_id?: string | null | undefined;
|
|
2460
2489
|
})[];
|
|
2461
2490
|
}>;
|
|
2462
2491
|
static validateFromClient: (data: any) => Promise<{
|
|
@@ -2531,6 +2560,7 @@ export declare class Command {
|
|
|
2531
2560
|
hotkey_win?: string | undefined;
|
|
2532
2561
|
tags?: string[] | undefined;
|
|
2533
2562
|
explanation?: string | undefined;
|
|
2563
|
+
heading?: string | undefined;
|
|
2534
2564
|
sort_key?: number | null | undefined;
|
|
2535
2565
|
arguments?: {
|
|
2536
2566
|
[x: string]: ({
|
|
@@ -2909,6 +2939,7 @@ export declare class Command {
|
|
|
2909
2939
|
confirm: string;
|
|
2910
2940
|
shortcut: string[];
|
|
2911
2941
|
explanation: string;
|
|
2942
|
+
heading: string;
|
|
2912
2943
|
is_live: boolean;
|
|
2913
2944
|
category: number | null;
|
|
2914
2945
|
sort_key: number | null;
|
|
@@ -3198,6 +3229,7 @@ export declare class Command {
|
|
|
3198
3229
|
confirm: string;
|
|
3199
3230
|
shortcut: string[];
|
|
3200
3231
|
explanation: string;
|
|
3232
|
+
heading: string;
|
|
3201
3233
|
is_live: boolean;
|
|
3202
3234
|
category: number | null;
|
|
3203
3235
|
sort_key: number | null;
|
|
@@ -3228,6 +3260,9 @@ export declare class Command {
|
|
|
3228
3260
|
type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
|
|
3229
3261
|
value: string;
|
|
3230
3262
|
})[] | null;
|
|
3263
|
+
} & {
|
|
3264
|
+
third_party_source?: string | null | undefined;
|
|
3265
|
+
third_party_id?: string | null | undefined;
|
|
3231
3266
|
};
|
|
3232
3267
|
static createWithoutThrottle: (object: {
|
|
3233
3268
|
id: number;
|
|
@@ -3487,6 +3522,7 @@ export declare class Command {
|
|
|
3487
3522
|
confirm: string;
|
|
3488
3523
|
shortcut: string[];
|
|
3489
3524
|
explanation: string;
|
|
3525
|
+
heading: string;
|
|
3490
3526
|
is_live: boolean;
|
|
3491
3527
|
category: number | null;
|
|
3492
3528
|
sort_key: number | null;
|
|
@@ -3517,6 +3553,9 @@ export declare class Command {
|
|
|
3517
3553
|
type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
|
|
3518
3554
|
value: string;
|
|
3519
3555
|
})[] | null;
|
|
3556
|
+
} & {
|
|
3557
|
+
third_party_source?: string | null | undefined;
|
|
3558
|
+
third_party_id?: string | null | undefined;
|
|
3520
3559
|
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
|
3521
3560
|
id: number;
|
|
3522
3561
|
organization: string | number;
|
|
@@ -3775,6 +3814,7 @@ export declare class Command {
|
|
|
3775
3814
|
confirm: string;
|
|
3776
3815
|
shortcut: string[];
|
|
3777
3816
|
explanation: string;
|
|
3817
|
+
heading: string;
|
|
3778
3818
|
is_live: boolean;
|
|
3779
3819
|
category: number | null;
|
|
3780
3820
|
sort_key: number | null;
|
|
@@ -3805,6 +3845,9 @@ export declare class Command {
|
|
|
3805
3845
|
type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
|
|
3806
3846
|
value: string;
|
|
3807
3847
|
})[] | null;
|
|
3848
|
+
} & {
|
|
3849
|
+
third_party_source?: string | null | undefined;
|
|
3850
|
+
third_party_id?: string | null | undefined;
|
|
3808
3851
|
}>;
|
|
3809
3852
|
static updateWithoutThrottle: (object: {
|
|
3810
3853
|
id: number;
|
|
@@ -4064,6 +4107,7 @@ export declare class Command {
|
|
|
4064
4107
|
confirm: string;
|
|
4065
4108
|
shortcut: string[];
|
|
4066
4109
|
explanation: string;
|
|
4110
|
+
heading: string;
|
|
4067
4111
|
is_live: boolean;
|
|
4068
4112
|
category: number | null;
|
|
4069
4113
|
sort_key: number | null;
|
|
@@ -4094,6 +4138,9 @@ export declare class Command {
|
|
|
4094
4138
|
type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
|
|
4095
4139
|
value: string;
|
|
4096
4140
|
})[] | null;
|
|
4141
|
+
} & {
|
|
4142
|
+
third_party_source?: string | null | undefined;
|
|
4143
|
+
third_party_id?: string | null | undefined;
|
|
4097
4144
|
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
|
4098
4145
|
id: number;
|
|
4099
4146
|
organization: string | number;
|
|
@@ -4352,6 +4399,7 @@ export declare class Command {
|
|
|
4352
4399
|
confirm: string;
|
|
4353
4400
|
shortcut: string[];
|
|
4354
4401
|
explanation: string;
|
|
4402
|
+
heading: string;
|
|
4355
4403
|
is_live: boolean;
|
|
4356
4404
|
category: number | null;
|
|
4357
4405
|
sort_key: number | null;
|
|
@@ -4382,6 +4430,9 @@ export declare class Command {
|
|
|
4382
4430
|
type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
|
|
4383
4431
|
value: string;
|
|
4384
4432
|
})[] | null;
|
|
4433
|
+
} & {
|
|
4434
|
+
third_party_source?: string | null | undefined;
|
|
4435
|
+
third_party_id?: string | null | undefined;
|
|
4385
4436
|
}>;
|
|
4386
4437
|
static deleteWithoutThrottle: (id: string | number, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
|
|
4387
4438
|
static commandUID: (cmd: t.TypeOf<typeof CommandV> | t.TypeOf<typeof EditorCommandV>) => string;
|
|
@@ -4644,6 +4695,7 @@ export declare const HelpSyncCommandV: t.IntersectionC<[t.IntersectionC<[t.TypeC
|
|
|
4644
4695
|
confirm: t.StringC;
|
|
4645
4696
|
shortcut: t.ArrayC<t.StringC>;
|
|
4646
4697
|
explanation: t.StringC;
|
|
4698
|
+
heading: t.StringC;
|
|
4647
4699
|
is_live: t.BooleanC;
|
|
4648
4700
|
category: t.UnionC<[t.NumberC, t.NullC]>;
|
|
4649
4701
|
sort_key: t.UnionC<[t.NumberC, t.NullC]>;
|
|
@@ -4674,9 +4726,9 @@ export declare const HelpSyncCommandV: t.IntersectionC<[t.IntersectionC<[t.TypeC
|
|
|
4674
4726
|
type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"react">, t.LiteralC<"video">, t.NullC]>;
|
|
4675
4727
|
value: t.StringC;
|
|
4676
4728
|
}>]>>]>;
|
|
4677
|
-
}>, t.
|
|
4678
|
-
third_party_source: t.StringC
|
|
4679
|
-
third_party_id: t.StringC
|
|
4729
|
+
}>, t.PartialC<{
|
|
4730
|
+
third_party_source: t.UnionC<[t.StringC, t.NullC]>;
|
|
4731
|
+
third_party_id: t.UnionC<[t.StringC, t.NullC]>;
|
|
4680
4732
|
}>]>;
|
|
4681
4733
|
export declare class HelpSyncCommand {
|
|
4682
4734
|
static listHelpCenter: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
|
|
@@ -4906,6 +4958,7 @@ export declare class HelpSyncCommand {
|
|
|
4906
4958
|
confirm: string;
|
|
4907
4959
|
shortcut: string[];
|
|
4908
4960
|
explanation: string;
|
|
4961
|
+
heading: string;
|
|
4909
4962
|
is_live: boolean;
|
|
4910
4963
|
category: number | null;
|
|
4911
4964
|
sort_key: number | null;
|
|
@@ -4937,8 +4990,8 @@ export declare class HelpSyncCommand {
|
|
|
4937
4990
|
value: string;
|
|
4938
4991
|
})[] | null;
|
|
4939
4992
|
} & {
|
|
4940
|
-
third_party_source
|
|
4941
|
-
third_party_id
|
|
4993
|
+
third_party_source?: string | null | undefined;
|
|
4994
|
+
third_party_id?: string | null | undefined;
|
|
4942
4995
|
})[]>;
|
|
4943
4996
|
static updateWithoutThrottle: (object: {
|
|
4944
4997
|
id: number;
|
|
@@ -5167,6 +5220,7 @@ export declare class HelpSyncCommand {
|
|
|
5167
5220
|
confirm: string;
|
|
5168
5221
|
shortcut: string[];
|
|
5169
5222
|
explanation: string;
|
|
5223
|
+
heading: string;
|
|
5170
5224
|
is_live: boolean;
|
|
5171
5225
|
category: number | null;
|
|
5172
5226
|
sort_key: number | null;
|
|
@@ -5198,8 +5252,8 @@ export declare class HelpSyncCommand {
|
|
|
5198
5252
|
value: string;
|
|
5199
5253
|
})[] | null;
|
|
5200
5254
|
} & {
|
|
5201
|
-
third_party_source
|
|
5202
|
-
third_party_id
|
|
5255
|
+
third_party_source?: string | null | undefined;
|
|
5256
|
+
third_party_id?: string | null | undefined;
|
|
5203
5257
|
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
|
5204
5258
|
id: number;
|
|
5205
5259
|
organization: string | number;
|
|
@@ -5427,6 +5481,7 @@ export declare class HelpSyncCommand {
|
|
|
5427
5481
|
confirm: string;
|
|
5428
5482
|
shortcut: string[];
|
|
5429
5483
|
explanation: string;
|
|
5484
|
+
heading: string;
|
|
5430
5485
|
is_live: boolean;
|
|
5431
5486
|
category: number | null;
|
|
5432
5487
|
sort_key: number | null;
|
|
@@ -5458,7 +5513,7 @@ export declare class HelpSyncCommand {
|
|
|
5458
5513
|
value: string;
|
|
5459
5514
|
})[] | null;
|
|
5460
5515
|
} & {
|
|
5461
|
-
third_party_source
|
|
5462
|
-
third_party_id
|
|
5516
|
+
third_party_source?: string | null | undefined;
|
|
5517
|
+
third_party_id?: string | null | undefined;
|
|
5463
5518
|
}>;
|
|
5464
5519
|
}
|
|
@@ -14,6 +14,8 @@ export declare const CommandCategoryV: t.IntersectionC<[t.IntersectionC<[t.TypeC
|
|
|
14
14
|
setting_pin_to_bottom: t.BooleanC;
|
|
15
15
|
search_tab_enabled: t.BooleanC;
|
|
16
16
|
search_tab_name: t.StringC;
|
|
17
|
+
slash_filter_enabled: t.BooleanC;
|
|
18
|
+
slash_filter_keyword: t.UnionC<[t.StringC, t.NullC]>;
|
|
17
19
|
search_tab_instruction: t.StringC;
|
|
18
20
|
track_recents: t.BooleanC;
|
|
19
21
|
}>]>;
|
|
@@ -31,6 +33,8 @@ export declare const BatchEditorCategoryResponseV: t.TypeC<{
|
|
|
31
33
|
setting_pin_to_bottom: t.BooleanC;
|
|
32
34
|
search_tab_enabled: t.BooleanC;
|
|
33
35
|
search_tab_name: t.StringC;
|
|
36
|
+
slash_filter_enabled: t.BooleanC;
|
|
37
|
+
slash_filter_keyword: t.UnionC<[t.StringC, t.NullC]>;
|
|
34
38
|
search_tab_instruction: t.StringC;
|
|
35
39
|
track_recents: t.BooleanC;
|
|
36
40
|
}>]>>;
|
|
@@ -49,6 +53,8 @@ export declare class CommandCategory {
|
|
|
49
53
|
setting_pin_to_bottom: boolean;
|
|
50
54
|
search_tab_enabled: boolean;
|
|
51
55
|
search_tab_name: string;
|
|
56
|
+
slash_filter_enabled: boolean;
|
|
57
|
+
slash_filter_keyword: string | null;
|
|
52
58
|
search_tab_instruction: string;
|
|
53
59
|
track_recents: boolean;
|
|
54
60
|
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
|
@@ -64,6 +70,8 @@ export declare class CommandCategory {
|
|
|
64
70
|
setting_pin_to_bottom: boolean;
|
|
65
71
|
search_tab_enabled: boolean;
|
|
66
72
|
search_tab_name: string;
|
|
73
|
+
slash_filter_enabled: boolean;
|
|
74
|
+
slash_filter_keyword: string | null;
|
|
67
75
|
search_tab_instruction: string;
|
|
68
76
|
track_recents: boolean;
|
|
69
77
|
}>;
|
|
@@ -80,6 +88,8 @@ export declare class CommandCategory {
|
|
|
80
88
|
setting_pin_to_bottom: boolean;
|
|
81
89
|
search_tab_enabled: boolean;
|
|
82
90
|
search_tab_name: string;
|
|
91
|
+
slash_filter_enabled: boolean;
|
|
92
|
+
slash_filter_keyword: string | null;
|
|
83
93
|
search_tab_instruction: string;
|
|
84
94
|
track_recents: boolean;
|
|
85
95
|
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
|
@@ -95,6 +105,8 @@ export declare class CommandCategory {
|
|
|
95
105
|
setting_pin_to_bottom: boolean;
|
|
96
106
|
search_tab_enabled: boolean;
|
|
97
107
|
search_tab_name: string;
|
|
108
|
+
slash_filter_enabled: boolean;
|
|
109
|
+
slash_filter_keyword: string | null;
|
|
98
110
|
search_tab_instruction: string;
|
|
99
111
|
track_recents: boolean;
|
|
100
112
|
}>;
|
|
@@ -112,6 +124,8 @@ export declare class CommandCategory {
|
|
|
112
124
|
setting_pin_to_bottom: boolean;
|
|
113
125
|
search_tab_enabled: boolean;
|
|
114
126
|
search_tab_name: string;
|
|
127
|
+
slash_filter_enabled: boolean;
|
|
128
|
+
slash_filter_keyword: string | null;
|
|
115
129
|
search_tab_instruction: string;
|
|
116
130
|
track_recents: boolean;
|
|
117
131
|
};
|
|
@@ -129,6 +143,8 @@ export declare class CommandCategory {
|
|
|
129
143
|
setting_pin_to_bottom: boolean;
|
|
130
144
|
search_tab_enabled: boolean;
|
|
131
145
|
search_tab_name: string;
|
|
146
|
+
slash_filter_enabled: boolean;
|
|
147
|
+
slash_filter_keyword: string | null;
|
|
132
148
|
search_tab_instruction: string;
|
|
133
149
|
track_recents: boolean;
|
|
134
150
|
})[];
|
|
@@ -9,31 +9,31 @@ export declare const GenericBatchRequest: t.TypeC<{
|
|
|
9
9
|
batch: t.ArrayC<t.UnknownC>;
|
|
10
10
|
note: t.StringC;
|
|
11
11
|
}>;
|
|
12
|
-
declare function createObject<T, Q, O, I>(output: t.Type<T, O, I
|
|
13
|
-
declare function readObject<T, O, I>(arg: t.Type<T, O, I
|
|
12
|
+
declare function createObject<T, Q, O, I>(output: t.Type<T, O, I> & t.HasProps, input: t.Type<Q, O, I> & t.HasProps, url: string, params?: Record<string, string>): (object: Q, onSuccess?: () => void, onError?: (err: string) => void) => Promise<T>;
|
|
13
|
+
declare function readObject<T, O, I>(arg: t.Type<T, O, I> & t.HasProps, url: string): (arg0: string, params?: Record<string, string>, callbacks?: {
|
|
14
14
|
onSuccess?: () => void;
|
|
15
15
|
onError?: (err: string) => void;
|
|
16
16
|
}) => Promise<T>;
|
|
17
|
-
declare function listObject<T, O, I>(arg: t.Type<T, O, I
|
|
18
|
-
declare function updateObject<T, O, I, Q extends GenericObjectType>(output: t.Type<T, O, I
|
|
19
|
-
declare function deleteObject<T, O, I>(arg: t.Type<T, O, I
|
|
20
|
-
declare function readObjectDetail<T, O, I>(arg: t.Type<T, O, I
|
|
17
|
+
declare function listObject<T, O, I>(arg: t.Type<T, O, I> & t.HasProps, obj: string): (onSuccess?: () => void, onError?: (err: string) => void) => Promise<T[]>;
|
|
18
|
+
declare function updateObject<T, O, I, Q extends GenericObjectType>(output: t.Type<T, O, I> & t.HasProps, input: t.Type<Q, O, I> & t.HasProps, url: string, params?: Record<string, string>): (object: Q, onSuccess?: () => void, onError?: (err: string) => void) => Promise<T>;
|
|
19
|
+
declare function deleteObject<T, O, I>(arg: t.Type<T, O, I> & t.HasProps, url: string, params?: Record<string, string>): (id: number | string, onSuccess?: () => void, onError?: (err: string) => void) => Promise<void>;
|
|
20
|
+
declare function readObjectDetail<T, O, I>(arg: t.Type<T, O, I> & t.HasProps, url: string, detail: string): (arg0: string, urlArgs?: {
|
|
21
21
|
[arg: string]: string;
|
|
22
22
|
}, onSuccess?: () => void, onError?: (err: string) => void) => Promise<T>;
|
|
23
|
-
declare function updateObjectDetail<T, O, I, J, K, Q extends GenericObjectType>(output: t.Type<T, O, I
|
|
23
|
+
declare function updateObjectDetail<T, O, I, J, K, Q extends GenericObjectType>(output: t.Type<T, O, I> & t.HasProps, input: t.Type<Q, K, J> & t.HasProps, url: string, detail: string): (object: Q, urlArgs?: {
|
|
24
24
|
[arg: string]: string;
|
|
25
25
|
}, onSuccess?: () => void, onError?: (err: string) => void) => Promise<T>;
|
|
26
|
-
declare function createObjectDetail<T, O, I, J, K, Q extends GenericObjectType>(output: t.Type<T, O, I
|
|
26
|
+
declare function createObjectDetail<T, O, I, J, K, Q extends GenericObjectType>(output: t.Type<T, O, I> & t.HasProps, input: t.Type<Q, K, J> & t.HasProps, url: string, detail: string): (object: Q, onSuccess?: () => void, onError?: (err: string) => void, urlArgs?: {
|
|
27
27
|
[arg: string]: string;
|
|
28
28
|
}) => Promise<T>;
|
|
29
29
|
declare function loadIDList(ids: number[], klass: any, method?: string, urlArgs?: {
|
|
30
30
|
[arg: string]: string;
|
|
31
31
|
}): Promise<any[]>;
|
|
32
|
-
declare function read<T, O, I>(output: t.Type<T, O, I
|
|
32
|
+
declare function read<T, O, I>(output: t.Type<T, O, I> & t.HasProps, url: string): (params?: Record<string, string>, callbacks?: {
|
|
33
33
|
onSuccess?: () => void;
|
|
34
34
|
onError?: (err: string) => void;
|
|
35
35
|
}) => Promise<T>;
|
|
36
|
-
declare function update<T, O, I, Q>(output: t.Type<T, O, I
|
|
36
|
+
declare function update<T, O, I, Q>(output: t.Type<T, O, I> & t.HasProps, input: t.Type<Q, O, I> & t.HasProps, url: string): (object: Q, params?: Record<string, string>, callbacks?: {
|
|
37
37
|
onSuccess?: () => void;
|
|
38
38
|
onError?: (err: string) => void;
|
|
39
39
|
}) => Promise<T>;
|
|
@@ -34,6 +34,13 @@ export declare const OrganizationSettingsV: t.TypeC<{
|
|
|
34
34
|
end_user_shortcuts_enabled: t.BooleanC;
|
|
35
35
|
fallback_commands: t.ArrayC<t.NumberC>;
|
|
36
36
|
end_user_recents_enabled: t.BooleanC;
|
|
37
|
+
tab_direction: t.UnionC<[t.LiteralC<"horizontal">, t.LiteralC<"vertical">]>;
|
|
38
|
+
recommended_tab_enabled: t.BooleanC;
|
|
39
|
+
recents_tab_enabled: t.BooleanC;
|
|
40
|
+
recommended_tab_instruction: t.StringC;
|
|
41
|
+
recents_tab_instruction: t.StringC;
|
|
42
|
+
hotload_help_docs: t.BooleanC;
|
|
43
|
+
slash_filters_enabled: t.BooleanC;
|
|
37
44
|
}>;
|
|
38
45
|
export declare class Organization {
|
|
39
46
|
static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
|
|
@@ -78,6 +85,8 @@ export declare class Organization {
|
|
|
78
85
|
show_with_no_results?: boolean | undefined;
|
|
79
86
|
search_tab_enabled?: boolean | undefined;
|
|
80
87
|
search_tab_name?: string | null | undefined;
|
|
88
|
+
slash_filter_enabled?: boolean | undefined;
|
|
89
|
+
slash_filter_keyword?: string | null | undefined;
|
|
81
90
|
search_tab_instruction?: string | null | undefined;
|
|
82
91
|
setting_pin_to_bottom?: boolean | undefined;
|
|
83
92
|
track_recents?: boolean | undefined;
|
|
@@ -100,6 +109,12 @@ export declare class Organization {
|
|
|
100
109
|
releases_enabled: boolean;
|
|
101
110
|
fallback_commands: number[];
|
|
102
111
|
tab_direction: "horizontal" | "vertical";
|
|
112
|
+
recommended_tab_enabled: boolean;
|
|
113
|
+
recents_tab_enabled: boolean;
|
|
114
|
+
recommended_tab_instruction: string;
|
|
115
|
+
recents_tab_instruction: string;
|
|
116
|
+
hotload_help_docs: boolean;
|
|
117
|
+
slash_filters_enabled: boolean;
|
|
103
118
|
}>;
|
|
104
119
|
static update: (object: {
|
|
105
120
|
id: string | number;
|
|
@@ -140,6 +155,8 @@ export declare class Organization {
|
|
|
140
155
|
show_with_no_results?: boolean | undefined;
|
|
141
156
|
search_tab_enabled?: boolean | undefined;
|
|
142
157
|
search_tab_name?: string | null | undefined;
|
|
158
|
+
slash_filter_enabled?: boolean | undefined;
|
|
159
|
+
slash_filter_keyword?: string | null | undefined;
|
|
143
160
|
search_tab_instruction?: string | null | undefined;
|
|
144
161
|
setting_pin_to_bottom?: boolean | undefined;
|
|
145
162
|
track_recents?: boolean | undefined;
|
|
@@ -162,6 +179,12 @@ export declare class Organization {
|
|
|
162
179
|
releases_enabled: boolean;
|
|
163
180
|
fallback_commands: number[];
|
|
164
181
|
tab_direction: "horizontal" | "vertical";
|
|
182
|
+
recommended_tab_enabled: boolean;
|
|
183
|
+
recents_tab_enabled: boolean;
|
|
184
|
+
recommended_tab_instruction: string;
|
|
185
|
+
recents_tab_instruction: string;
|
|
186
|
+
hotload_help_docs: boolean;
|
|
187
|
+
slash_filters_enabled: boolean;
|
|
165
188
|
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
|
166
189
|
id: string | number;
|
|
167
190
|
name: string;
|
|
@@ -201,6 +224,8 @@ export declare class Organization {
|
|
|
201
224
|
show_with_no_results?: boolean | undefined;
|
|
202
225
|
search_tab_enabled?: boolean | undefined;
|
|
203
226
|
search_tab_name?: string | null | undefined;
|
|
227
|
+
slash_filter_enabled?: boolean | undefined;
|
|
228
|
+
slash_filter_keyword?: string | null | undefined;
|
|
204
229
|
search_tab_instruction?: string | null | undefined;
|
|
205
230
|
setting_pin_to_bottom?: boolean | undefined;
|
|
206
231
|
track_recents?: boolean | undefined;
|
|
@@ -223,6 +248,12 @@ export declare class Organization {
|
|
|
223
248
|
releases_enabled: boolean;
|
|
224
249
|
fallback_commands: number[];
|
|
225
250
|
tab_direction: "horizontal" | "vertical";
|
|
251
|
+
recommended_tab_enabled: boolean;
|
|
252
|
+
recents_tab_enabled: boolean;
|
|
253
|
+
recommended_tab_instruction: string;
|
|
254
|
+
recents_tab_instruction: string;
|
|
255
|
+
hotload_help_docs: boolean;
|
|
256
|
+
slash_filters_enabled: boolean;
|
|
226
257
|
}>;
|
|
227
258
|
static listCommands: (orgUID: string) => Promise<({
|
|
228
259
|
id: number;
|
|
@@ -451,6 +482,7 @@ export declare class Organization {
|
|
|
451
482
|
confirm: string;
|
|
452
483
|
shortcut: string[];
|
|
453
484
|
explanation: string;
|
|
485
|
+
heading: string;
|
|
454
486
|
is_live: boolean;
|
|
455
487
|
category: number | null;
|
|
456
488
|
sort_key: number | null;
|
|
@@ -495,6 +527,8 @@ export declare class Organization {
|
|
|
495
527
|
setting_pin_to_bottom: boolean;
|
|
496
528
|
search_tab_enabled: boolean;
|
|
497
529
|
search_tab_name: string;
|
|
530
|
+
slash_filter_enabled: boolean;
|
|
531
|
+
slash_filter_keyword: string | null;
|
|
498
532
|
search_tab_instruction: string;
|
|
499
533
|
track_recents: boolean;
|
|
500
534
|
})[]>;
|
|
@@ -600,6 +634,13 @@ export declare class Organization {
|
|
|
600
634
|
end_user_shortcuts_enabled: boolean;
|
|
601
635
|
fallback_commands: number[];
|
|
602
636
|
end_user_recents_enabled: boolean;
|
|
637
|
+
tab_direction: "horizontal" | "vertical";
|
|
638
|
+
recommended_tab_enabled: boolean;
|
|
639
|
+
recents_tab_enabled: boolean;
|
|
640
|
+
recommended_tab_instruction: string;
|
|
641
|
+
recents_tab_instruction: string;
|
|
642
|
+
hotload_help_docs: boolean;
|
|
643
|
+
slash_filters_enabled: boolean;
|
|
603
644
|
}>;
|
|
604
645
|
static updateSetting: (object: {
|
|
605
646
|
end_user_limit?: number | undefined;
|
|
@@ -621,6 +662,13 @@ export declare class Organization {
|
|
|
621
662
|
end_user_shortcuts_enabled?: boolean | undefined;
|
|
622
663
|
fallback_commands?: number[] | undefined;
|
|
623
664
|
end_user_recents_enabled?: boolean | undefined;
|
|
665
|
+
tab_direction?: "horizontal" | "vertical" | undefined;
|
|
666
|
+
recommended_tab_enabled?: boolean | undefined;
|
|
667
|
+
recents_tab_enabled?: boolean | undefined;
|
|
668
|
+
recommended_tab_instruction?: string | undefined;
|
|
669
|
+
recents_tab_instruction?: string | undefined;
|
|
670
|
+
hotload_help_docs?: boolean | undefined;
|
|
671
|
+
slash_filters_enabled?: boolean | undefined;
|
|
624
672
|
}, params?: Record<string, string> | undefined, callbacks?: {
|
|
625
673
|
onSuccess?: (() => void) | undefined;
|
|
626
674
|
onError?: ((err: string) => void) | undefined;
|
|
@@ -644,6 +692,13 @@ export declare class Organization {
|
|
|
644
692
|
end_user_shortcuts_enabled: boolean;
|
|
645
693
|
fallback_commands: number[];
|
|
646
694
|
end_user_recents_enabled: boolean;
|
|
695
|
+
tab_direction: "horizontal" | "vertical";
|
|
696
|
+
recommended_tab_enabled: boolean;
|
|
697
|
+
recents_tab_enabled: boolean;
|
|
698
|
+
recommended_tab_instruction: string;
|
|
699
|
+
recents_tab_instruction: string;
|
|
700
|
+
hotload_help_docs: boolean;
|
|
701
|
+
slash_filters_enabled: boolean;
|
|
647
702
|
}>;
|
|
648
703
|
static decode: (data: any) => {
|
|
649
704
|
id: string | number;
|
|
@@ -684,6 +739,8 @@ export declare class Organization {
|
|
|
684
739
|
show_with_no_results?: boolean | undefined;
|
|
685
740
|
search_tab_enabled?: boolean | undefined;
|
|
686
741
|
search_tab_name?: string | null | undefined;
|
|
742
|
+
slash_filter_enabled?: boolean | undefined;
|
|
743
|
+
slash_filter_keyword?: string | null | undefined;
|
|
687
744
|
search_tab_instruction?: string | null | undefined;
|
|
688
745
|
setting_pin_to_bottom?: boolean | undefined;
|
|
689
746
|
track_recents?: boolean | undefined;
|
|
@@ -706,5 +763,11 @@ export declare class Organization {
|
|
|
706
763
|
releases_enabled: boolean;
|
|
707
764
|
fallback_commands: number[];
|
|
708
765
|
tab_direction: "horizontal" | "vertical";
|
|
766
|
+
recommended_tab_enabled: boolean;
|
|
767
|
+
recents_tab_enabled: boolean;
|
|
768
|
+
recommended_tab_instruction: string;
|
|
769
|
+
recents_tab_instruction: string;
|
|
770
|
+
hotload_help_docs: boolean;
|
|
771
|
+
slash_filters_enabled: boolean;
|
|
709
772
|
};
|
|
710
773
|
}
|
|
@@ -224,7 +224,7 @@ export declare class Releases {
|
|
|
224
224
|
tags: string[];
|
|
225
225
|
};
|
|
226
226
|
}>;
|
|
227
|
-
static readDiff: (fromId: string, toId: string) => Promise<
|
|
227
|
+
static readDiff: (fromId: string, toId: string) => Promise<unknown>;
|
|
228
228
|
static promoteReleaseStep: (releaseStepId: number) => Promise<any>;
|
|
229
229
|
static promoteReleaseToFirstEnv: (releaseId: number) => Promise<{
|
|
230
230
|
created_by: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "commandbar",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.12",
|
|
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",
|
|
@@ -22,7 +22,5 @@
|
|
|
22
22
|
"io-ts": "2.2.13"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {},
|
|
25
|
-
"peerDependencies": {
|
|
26
|
-
"@sentry/react": "6.19.7"
|
|
27
|
-
}
|
|
25
|
+
"peerDependencies": {}
|
|
28
26
|
}
|
package/src/init.ts
CHANGED
|
@@ -20,8 +20,6 @@ const getSrc = (org: string) => {
|
|
|
20
20
|
if (lc && lc.includes('local')) {
|
|
21
21
|
// for debugging purposes
|
|
22
22
|
origin = 'http://localhost:8000';
|
|
23
|
-
} else if (!lc && org === '10d7dc04') {
|
|
24
|
-
origin = 'https://api-cu.commandbar.com';
|
|
25
23
|
}
|
|
26
24
|
|
|
27
25
|
let src = origin + '/latest/' + org;
|
|
@@ -72,6 +70,12 @@ const init = (org: string, opts: IInitOptions = DEFAULT_OPTS) => {
|
|
|
72
70
|
return;
|
|
73
71
|
}
|
|
74
72
|
|
|
73
|
+
// Do nothing if CommandBar SDK has already been initialized
|
|
74
|
+
if (!!getProxySDK()[_configuration]?.uuid) {
|
|
75
|
+
console.warn('CommandBar init was called more than once. Skipping the redundant initialization...');
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
|
|
75
79
|
config.debug && console.log('CommandBar init...', { environment: opts.environment, version: opts.version });
|
|
76
80
|
|
|
77
81
|
getProxySDK()[_configuration] = {
|