New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

commandbar

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commandbar - npm Package Compare versions

Comparing version 1.7.2 to 1.7.3

build/internal/src/middleware/checklist.d.ts

2

build/commandbar-js/src/index.js
/*! For license information please see index.js.LICENSE.txt */
!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:()=>d,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)};function u(e){return e&&e.map((function(e,t){return o.createElement(e.tag,s({key:t},e.attr),u(e.child))}))}function c(e){return function(t){return o.createElement(l,s({attr:s({},e.attr)},t),u(e.child))}}function l(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,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}(e,["attr","title"]);return o.createElement("svg",s({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,u,{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 f(e){return c({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 d=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(f,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(102),n=r(307),i=r(339),a=r(957),s=r(246);(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}},817:e=>{"use strict";e.exports=function(){}},339:(e,t,r)=>{"use strict";e.exports=r(994)()?Object.assign:r(963)},994: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")}},963:(e,t,r)=>{"use strict";var o=r(450),n=r(836),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}},349:(e,t,r)=>{"use strict";var o=r(817)();e.exports=function(e){return e!==o&&null!==e}},450:(e,t,r)=>{"use strict";e.exports=r(446)()?Object.keys:r(177)},446:e=>{"use strict";e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}},177:(e,t,r)=>{"use strict";var o=r(349),n=Object.keys;e.exports=function(e){return n(o(e)?Object(e):e)}},957:(e,t,r)=>{"use strict";var o=r(349),n=Array.prototype.forEach,i=Object.create,a=function(e,t){var r;for(r in e)t[r]=e[r]};e.exports=function(e){var t=i(null);return n.call(arguments,(function(e){o(e)&&a(Object(e),t)})),t}},836:(e,t,r)=>{"use strict";var o=r(349);e.exports=function(e){if(!o(e))throw new TypeError("Cannot use null or undefined");return e}},246:(e,t,r)=>{"use strict";e.exports=r(711)()?String.prototype.contains:r(370)},711:e=>{"use strict";var t="razdwatrzy";e.exports=function(){return"function"==typeof t.contains&&!0===t.contains("dwa")&&!1===t.contains("foo")}},370:e=>{"use strict";var t=String.prototype.indexOf;e.exports=function(e){return t.call(this,e,arguments[1])>-1}},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),p=Object.create,d=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=p(n.prototype),t=void 0===t?"":String(t),d(r,{__description__:a("",t),__name__:a("",c(t))}))},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 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;function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}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,i){for(var a,s,u=n(e),c=1;c<arguments.length;c++){for(var l in a=Object(arguments[c]))r.call(a,l)&&(u[l]=a[l]);if(t){s=t(a);for(var f=0;f<s.length;f++)o.call(a,s[f])&&(u[s[f]]=a[s[f]])}}return u}},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 p=l;l={get:null,set:null,apply:null,construct:null};for(let e in p){if(!(e in l))throw new TypeError(`Proxy polyfill does not support trap '${e}'`);l[e]=p[e]}"function"==typeof p&&(l.apply=p.apply.bind(p));const d=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!==d?a(d):{};const v=l.get?function(e){return f("get"),l.get(this,e,m)}:function(e){return f("get"),this[e]},_=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:v.bind(c,e),set:_.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);d&&e(m,d)||(S=!1)}if(l.get||!S)for(let e in c)g[e]||n.defineProperty(m,e,{get:v.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 p="function"==typeof Symbol&&Symbol.iterator;function d(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 v(){}function _(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(d(85));this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=b.prototype;var h=_.prototype=new v;h.constructor=_,o(h,b.prototype),h.isPureReactComponent=!0;var g={current:null},S=Object.prototype.hasOwnProperty,w={key:!0,ref:!0,__self:!0,__source:!0};function C(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)&&!w.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 j=/\/+/g;function P(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 x(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?"."+P(u,0):o,Array.isArray(a)?(r="",null!=e&&(r=e.replace(j,"$&/")+"/"),x(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(j,"$&/")+"/")+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+P(s=e[c],c);u+=x(s,t,r,l,a)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),c=0;!(s=e.next()).done;)u+=x(s=s.value,t,r,l=o+P(s,c++),a);else if("object"===s)throw t=""+e,Error(d(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function E(e,t,r){if(null==e)return e;var o=[],n=0;return x(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 A(){var e=T.current;if(null===e)throw Error(d(321));return e}var M={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:g,IsSomeRendererActing:{current:!1},assign:o};t.Children={map:E,forEach:function(e,t,r){E(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return E(e,(function(){t++})),t},toArray:function(e){return E(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error(d(143));return e}},t.Component=b,t.PureComponent=_,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,t.cloneElement=function(e,t,r){if(null==e)throw Error(d(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)&&!w.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=C,t.createFactory=function(e){var t=C.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 A().useCallback(e,t)},t.useContext=function(e,t){return A().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return A().useEffect(e,t)},t.useImperativeHandle=function(e,t,r){return A().useImperativeHandle(e,t,r)},t.useLayoutEffect=function(e,t){return A().useLayoutEffect(e,t)},t.useMemo=function(e,t){return A().useMemo(e,t)},t.useReducer=function(e,t,r){return A().useReducer(e,t,r)},t.useRef=function(e){return A().useRef(e)},t.useState=function(e){return A().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.CommandBarClientSDK=t.snippet=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(343);Object.defineProperty(t,"CommandBarClientSDK",{enumerable:!0,get:function(){return u.CommandBarClientSDK}});var c=r(956);Object.defineProperty(t,"init",{enumerable:!0,get:function(){return a(c).default}});var l=r(737);Object.defineProperty(t,"initProxy",{enumerable:!0,get:function(){return l.initProxySDK}});var f=r(890);Object.defineProperty(t,"snippet",{enumerable:!0,get:function(){return f.snippet}})},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){if("complete"===document.readyState){var t=function(e){var t="https://api.commandbar.com",r=[],o=localStorage.getItem("commandbar.lc");o&&o.includes("local")&&(t="http://localhost:8000");var n=t+"/latest/"+e;return o&&r.push("lc="+o),r.push("version=2"),n+"?"+r.join("&")}(e),r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src=t,document.head.appendChild(r)}else window.addEventListener("load",a.bind(null,e),{capture:!1,once:!0})},s={debug:!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]={uuid:e,environment:t.environment,version:t.version,config:t.config},a(e)):console.error("No org specified for CommandBar.init")}},890:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.snippet=void 0;var o=r(207);t.snippet=function(e){var t=["Object.assign","Symbol","Symbol.for"].join("%2C"),r=window;function n(e,t){void 0===t&&(t=!1),"complete"!==document.readyState&&window.addEventListener("load",n.bind(null,e,t),{capture:!1,once:!0});var r=document.createElement("script");r.type="text/javascript",r.async=t,r.src=e,document.head.appendChild(r)}function i(){var t;if(void 0===r.CommandBar){delete r.__CommandBarBootstrap__;var i=Symbol.for("CommandBar::configuration"),a=Symbol.for("CommandBar::orgConfig"),s=Symbol.for("CommandBar::disposed"),u=Symbol.for("CommandBar::isProxy"),c=Symbol.for("CommandBar::queue"),l=Symbol.for("CommandBar::unwrap"),f=[],p=localStorage.getItem("commandbar.lc"),d=p&&p.includes("local")?"http://localhost:8000":"https://api.commandbar.com",m=Object.assign(((t={})[i]={uuid:e},t[a]={},t[s]=!1,t[u]=!0,t[c]=new Array,t[l]=function(){return m},t[o._eventSubscriptions]=void 0,t),r.CommandBar),y=["addCommand","boot","addEventSubscriber","addRecordAction","setFormFactor"],b=m;Object.assign(m,{shareCallbacks:function(){return{}},shareContext:function(){return{}}}),r.CommandBar=new Proxy(m,{get:function(e,t){return t in b?m[t]:y.includes(t)?function(){var e=Array.prototype.slice.call(arguments);return new Promise((function(r,o){e.unshift(t,r,o),m[c].push(e)}))}:function(){var e=Array.prototype.slice.call(arguments);e.unshift(t),m[c].push(e)}}}),null!==p&&f.push("lc=".concat(p)),f.push("version=2"),n("".concat(d,"/latest/").concat(e,"?").concat(f.join("&")),!0)}}void 0===Object.assign||"undefined"==typeof Symbol||void 0===Symbol.for?(r.__CommandBarBootstrap__=i,n("https://polyfill.io/v3/polyfill.min.js?version=3.101.0&callback=__CommandBarBootstrap__&features="+t)):i()}},343:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_META_ATTRIBUTES=t.DEFAULT_INSTANCE_ATTRIBUTES=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.DEFAULT_INSTANCE_ATTRIBUTES={canOpenEditor:!0,formFactor:{type:"modal"}},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=window.CommandBar,s=window.CommandBar;Array.isArray(null==a?void 0:a.q)||"string"==typeof(null==a?void 0:a.uid)?(r=null==a?void 0:a.uid,o=null==a?void 0:a.q):(r=null===(t=null==s?void 0:s[i._configuration])||void 0===t?void 0:t.uuid,o=null==s?void 0:s[i._queue]);var u=((e={})[i._configuration]={uuid:"string"==typeof r?r:""},e[i._disposed]=!1,e[i._isProxy]=!0,e[i._queue]=Array.isArray(o)?o:[],e[i._unwrap]=function(){return u},e[i._eventSubscriptions]=void 0,e),c=u;Object.assign(u,{shareCallbacks:function(){return{}},shareContext:function(){return{}}}),window.CommandBar=new Proxy(u,{get:function(e,t){return t in c?c[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),u[i._queue].push(e)}))}:function(){var e=Array.prototype.slice.call(arguments);e.unshift(t),u[i._queue].push(e)}}})}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._metaAttributes=t._eventSubscriptions=t._userAttributes=t._user=t._unwrap=t._state=t._showMessage=t._showGuide=t._shareProgrammaticCommands=t._shareContextSettings=t._setEditorVisible=t._setTestMode=t._setPreviewMode=t._setDashboard=t._search=t._reporter=t._report=t._reloadNudges=t._reloadPlaceholders=t._reloadOrganization=t._reloadCommands=t._queue=t._programmaticTheme=t._perf=t._orgConfig=t._loadEditor=t._isProxy=t._instanceAttributes=t._disposed=t._dispose=t._dispatch=t._configUser=t._configure=t._configuration=t._access=void 0,t._access=Symbol.for("CommandBar::access"),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._orgConfig=Symbol.for("CommandBar::orgConfig"),t._perf=Symbol.for("CommandBar::perf"),t._programmaticTheme=Symbol.for("CommandBar::programmaticTheme"),t._queue=Symbol.for("CommandBar::queue"),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._report=Symbol.for("CommandBar::report"),t._reporter=Symbol.for("CommandBar::reporter"),t._search=Symbol.for("CommandBar::search"),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._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._userAttributes=Symbol.for("CommandBar::userAttributes"),t._eventSubscriptions=Symbol.for("CommandBar::eventSubscriptions"),t._metaAttributes=Symbol.for("CommandBar::metaAttributes")},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())}},111:(e,t,r)=>{"use strict";var o=r(666);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)}},617:(e,t,r)=>{"use strict";var o=r(102),n={object:!0,function:!0,undefined:!0};e.exports=function(e){return!!o(e)&&hasOwnProperty.call(n,typeof e)}},307:(e,t,r)=>{"use strict";var o=r(111),n=/^\s*class[\s{/}]/,i=Function.prototype.toString;e.exports=function(e){return!!o(e)&&!n.test(i.call(e))}},666:(e,t,r)=>{"use strict";var o=r(617);e.exports=function(e){if(!o(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}},102:e=>{"use strict";e.exports=function(e){return null!=e}}},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)})()));
!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:()=>d,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)};function u(e){return e&&e.map((function(e,t){return o.createElement(e.tag,s({key:t},e.attr),u(e.child))}))}function c(e){return function(t){return o.createElement(l,s({attr:s({},e.attr)},t),u(e.child))}}function l(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,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}(e,["attr","title"]);return o.createElement("svg",s({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,u,{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 f(e){return c({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 d=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(f,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(102),n=r(307),i=r(339),a=r(957),s=r(246);(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}},817:e=>{"use strict";e.exports=function(){}},339:(e,t,r)=>{"use strict";e.exports=r(994)()?Object.assign:r(963)},994: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")}},963:(e,t,r)=>{"use strict";var o=r(450),n=r(836),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}},349:(e,t,r)=>{"use strict";var o=r(817)();e.exports=function(e){return e!==o&&null!==e}},450:(e,t,r)=>{"use strict";e.exports=r(446)()?Object.keys:r(177)},446:e=>{"use strict";e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}},177:(e,t,r)=>{"use strict";var o=r(349),n=Object.keys;e.exports=function(e){return n(o(e)?Object(e):e)}},957:(e,t,r)=>{"use strict";var o=r(349),n=Array.prototype.forEach,i=Object.create,a=function(e,t){var r;for(r in e)t[r]=e[r]};e.exports=function(e){var t=i(null);return n.call(arguments,(function(e){o(e)&&a(Object(e),t)})),t}},836:(e,t,r)=>{"use strict";var o=r(349);e.exports=function(e){if(!o(e))throw new TypeError("Cannot use null or undefined");return e}},246:(e,t,r)=>{"use strict";e.exports=r(711)()?String.prototype.contains:r(370)},711:e=>{"use strict";var t="razdwatrzy";e.exports=function(){return"function"==typeof t.contains&&!0===t.contains("dwa")&&!1===t.contains("foo")}},370:e=>{"use strict";var t=String.prototype.indexOf;e.exports=function(e){return t.call(this,e,arguments[1])>-1}},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),p=Object.create,d=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=p(n.prototype),t=void 0===t?"":String(t),d(r,{__description__:a("",t),__name__:a("",c(t))}))},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 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;function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}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,i){for(var a,s,u=n(e),c=1;c<arguments.length;c++){for(var l in a=Object(arguments[c]))r.call(a,l)&&(u[l]=a[l]);if(t){s=t(a);for(var f=0;f<s.length;f++)o.call(a,s[f])&&(u[s[f]]=a[s[f]])}}return u}},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 p=l;l={get:null,set:null,apply:null,construct:null};for(let e in p){if(!(e in l))throw new TypeError(`Proxy polyfill does not support trap '${e}'`);l[e]=p[e]}"function"==typeof p&&(l.apply=p.apply.bind(p));const d=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!==d?a(d):{};const v=l.get?function(e){return f("get"),l.get(this,e,m)}:function(e){return f("get"),this[e]},_=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:v.bind(c,e),set:_.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);d&&e(m,d)||(S=!1)}if(l.get||!S)for(let e in c)g[e]||n.defineProperty(m,e,{get:v.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 p="function"==typeof Symbol&&Symbol.iterator;function d(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 v(){}function _(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(d(85));this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=b.prototype;var h=_.prototype=new v;h.constructor=_,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 x(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,"$&/")+"/"),x(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+=x(s,t,r,l,a)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),c=0;!(s=e.next()).done;)u+=x(s=s.value,t,r,l=o+j(s,c++),a);else if("object"===s)throw t=""+e,Error(d(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function E(e,t,r){if(null==e)return e;var o=[],n=0;return x(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 A(){var e=T.current;if(null===e)throw Error(d(321));return e}var k={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:g,IsSomeRendererActing:{current:!1},assign:o};t.Children={map:E,forEach:function(e,t,r){E(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return E(e,(function(){t++})),t},toArray:function(e){return E(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error(d(143));return e}},t.Component=b,t.PureComponent=_,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=k,t.cloneElement=function(e,t,r){if(null==e)throw Error(d(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 A().useCallback(e,t)},t.useContext=function(e,t){return A().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return A().useEffect(e,t)},t.useImperativeHandle=function(e,t,r){return A().useImperativeHandle(e,t,r)},t.useLayoutEffect=function(e,t){return A().useLayoutEffect(e,t)},t.useMemo=function(e,t){return A().useMemo(e,t)},t.useReducer=function(e,t,r){return A().useReducer(e,t,r)},t.useRef=function(e){return A().useRef(e)},t.useState=function(e){return A().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.CommandBarClientSDK=t.snippet=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(343);Object.defineProperty(t,"CommandBarClientSDK",{enumerable:!0,get:function(){return u.CommandBarClientSDK}});var c=r(956);Object.defineProperty(t,"init",{enumerable:!0,get:function(){return a(c).default}});var l=r(737);Object.defineProperty(t,"initProxy",{enumerable:!0,get:function(){return l.initProxySDK}});var f=r(890);Object.defineProperty(t,"snippet",{enumerable:!0,get:function(){return f.snippet}})},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){if("complete"===document.readyState){var t=function(e){var t="https://api.commandbar.com",r=[],o=localStorage.getItem("commandbar.lc");o&&o.includes("local")&&(t="http://localhost:8000");var n=t+"/latest/"+e;return o&&r.push("lc="+o),r.push("version=2"),n+"?"+r.join("&")}(e),r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src=t,document.head.appendChild(r)}else window.addEventListener("load",a.bind(null,e),{capture:!1,once:!0})},s={debug:!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]={uuid:e,environment:t.environment,version:t.version,config:t.config},a(e)):console.error("No org specified for CommandBar.init")}},890:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.snippet=void 0;var o=r(207);t.snippet=function(e){var t=["Object.assign","Symbol","Symbol.for"].join("%2C"),r=window;function n(e,t){void 0===t&&(t=!1),"complete"!==document.readyState&&window.addEventListener("load",n.bind(null,e,t),{capture:!1,once:!0});var r=document.createElement("script");r.type="text/javascript",r.async=t,r.src=e,document.head.appendChild(r)}function i(){var t;if(void 0===r.CommandBar){delete r.__CommandBarBootstrap__;var i=Symbol.for("CommandBar::configuration"),a=Symbol.for("CommandBar::orgConfig"),s=Symbol.for("CommandBar::disposed"),u=Symbol.for("CommandBar::isProxy"),c=Symbol.for("CommandBar::queue"),l=Symbol.for("CommandBar::unwrap"),f=[],p=localStorage.getItem("commandbar.lc"),d=p&&p.includes("local")?"http://localhost:8000":"https://api.commandbar.com",m=Object.assign(((t={})[i]={uuid:e},t[a]={},t[s]=!1,t[u]=!0,t[c]=new Array,t[l]=function(){return m},t[o._eventSubscriptions]=void 0,t),r.CommandBar),y=["addCommand","boot","addEventSubscriber","addRecordAction","setFormFactor"],b=m;Object.assign(m,{shareCallbacks:function(){return{}},shareContext:function(){return{}}}),r.CommandBar=new Proxy(m,{get:function(e,t){return t in b?m[t]:y.includes(t)?function(){var e=Array.prototype.slice.call(arguments);return new Promise((function(r,o){e.unshift(t,r,o),m[c].push(e)}))}:function(){var e=Array.prototype.slice.call(arguments);e.unshift(t),m[c].push(e)}}}),null!==p&&f.push("lc=".concat(p)),f.push("version=2"),n("".concat(d,"/latest/").concat(e,"?").concat(f.join("&")),!0)}}void 0===Object.assign||"undefined"==typeof Symbol||void 0===Symbol.for?(r.__CommandBarBootstrap__=i,n("https://polyfill.io/v3/polyfill.min.js?version=3.101.0&callback=__CommandBarBootstrap__&features="+t)):i()}},343:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_META_ATTRIBUTES=t.DEFAULT_INSTANCE_ATTRIBUTES=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.DEFAULT_INSTANCE_ATTRIBUTES={canOpenEditor:!0,formFactor:{type:"modal"},products:["bar","questlists","nudges"]},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=window.CommandBar,s=window.CommandBar;Array.isArray(null==a?void 0:a.q)||"string"==typeof(null==a?void 0:a.uid)?(r=null==a?void 0:a.uid,o=null==a?void 0:a.q):(r=null===(t=null==s?void 0:s[i._configuration])||void 0===t?void 0:t.uuid,o=null==s?void 0:s[i._queue]);var u=((e={})[i._configuration]={uuid:"string"==typeof r?r:""},e[i._disposed]=!1,e[i._isProxy]=!0,e[i._queue]=Array.isArray(o)?o:[],e[i._unwrap]=function(){return u},e[i._eventSubscriptions]=void 0,e),c=u;Object.assign(u,{shareCallbacks:function(){return{}},shareContext:function(){return{}}}),window.CommandBar=new Proxy(u,{get:function(e,t){return t in c?c[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),u[i._queue].push(e)}))}:function(){var e=Array.prototype.slice.call(arguments);e.unshift(t),u[i._queue].push(e)}}})}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._metaAttributes=t._eventSubscriptions=t._userAttributes=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._search=t._reporter=t._report=t._reloadChecklists=t._previewChecklist=t._stopNudgePreview=t._stopChecklistPreview=t._previewNudge=t._reloadNudges=t._reloadPlaceholders=t._reloadOrganization=t._reloadCommands=t._queue=t._programmaticTheme=t._perf=t._orgConfig=t._loadEditor=t._isProxy=t._instanceAttributes=t._disposed=t._dispose=t._dispatch=t._configUser=t._configure=t._configuration=t._access=void 0,t._access=Symbol.for("CommandBar::access"),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._orgConfig=Symbol.for("CommandBar::orgConfig"),t._perf=Symbol.for("CommandBar::perf"),t._programmaticTheme=Symbol.for("CommandBar::programmaticTheme"),t._queue=Symbol.for("CommandBar::queue"),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._previewNudge=Symbol.for("CommandBar::previewNudge"),t._stopChecklistPreview=Symbol.for("CommandBar::stopChecklistPreview"),t._stopNudgePreview=Symbol.for("CommandBar::stopNudgePreview"),t._previewChecklist=Symbol.for("CommandBar::previewChecklist"),t._reloadChecklists=Symbol.for("CommandBar::reloadChecklists"),t._report=Symbol.for("CommandBar::report"),t._reporter=Symbol.for("CommandBar::reporter"),t._search=Symbol.for("CommandBar::search"),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._userAttributes=Symbol.for("CommandBar::userAttributes"),t._eventSubscriptions=Symbol.for("CommandBar::eventSubscriptions"),t._metaAttributes=Symbol.for("CommandBar::metaAttributes")},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())}},111:(e,t,r)=>{"use strict";var o=r(666);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)}},617:(e,t,r)=>{"use strict";var o=r(102),n={object:!0,function:!0,undefined:!0};e.exports=function(e){return!!o(e)&&hasOwnProperty.call(n,typeof e)}},307:(e,t,r)=>{"use strict";var o=r(111),n=/^\s*class[\s{/}]/,i=Function.prototype.toString;e.exports=function(e){return!!o(e)&&!n.test(i.call(e))}},666:(e,t,r)=>{"use strict";var o=r(617);e.exports=function(e){if(!o(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}},102:e=>{"use strict";e.exports=function(e){return null!=e}}},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)})()));

@@ -10,3 +10,3 @@ import 'proxy-polyfill';

*
* @param {string} org Your organization ID, which can be found [here](https://app.commandbar.com/docs/getting-started/installation#step-1:-install-commandbar).
* @param {string} org Your organization ID, which can be found [here](https://commandbar.com/docs/dev/installation).
* @param {IInitOptions} [opts] Additional options to use for initialization: `debug` will enable additional logging, `environment` specifies the environment to load config from

@@ -13,0 +13,0 @@ * output.

@@ -17,8 +17,3 @@ import { DetailPreviewType } from '../middleware/detailPreview';

} | string;
export interface SearchResultsPaginated {
pagination: unknown;
data: DataRow[];
}
export declare type SearchFunction = (input: string) => DataRow[] | Promise<DataRow[]>;
export declare type SearchFunctionPaginated = (input: string, pagination?: unknown) => SearchResultsPaginated | Promise<SearchResultsPaginated>;
export declare type MultiSearchFunction = (input: string) => {

@@ -46,2 +41,4 @@ [key: string]: DataRow[];

showInDefaultEmptyState?: boolean;
/** Option list limit: During quickFind, set a limit on the amount of options that can be shown in the category */
maxOptionsCount?: number;
/** Sort key */

@@ -88,3 +85,3 @@ categorySortKey?: number;

*/
searchFunction?: SearchFunction | SearchFunctionPaginated;
searchFunction?: SearchFunction;
sortFunction?: (a: DataRow, b: DataRow) => number;

@@ -114,3 +111,3 @@ };

})[];
onInputChange?: SearchFunction | SearchFunctionPaginated;
onInputChange?: SearchFunction;
}

@@ -125,2 +122,4 @@ export interface RecordOptions extends ArgumentOptions {

showInDefaultEmptyState?: boolean;
/** Option list limit: During quickFind, set a limit on the amount of options that can be shown in the category */
maxOptionsCount?: number;
/** Sort key */

@@ -127,0 +126,0 @@ categorySortKey?: number;

@@ -1,1 +0,1 @@

export declare type EVENT_NAME = 'Identify' | 'New session' | 'End session' | 'Load Performance' | 'New search' | 'Exited' | 'Search input' | 'Onboarding tooltip shown' | 'Tooltip shown' | 'Onboarding started' | 'Onboarding exited' | 'Onboarding completed' | 'Abandoned search' | 'No results for query' | 'Command suggestion' | 'Command execution' | 'Unavailable shortcut' | 'Clicked branding' | 'Survey response' | 'Client-Error' | 'Internal-Error' | 'Internal-Event' | 'User changed shortcut' | 'Nudge shown' | 'Nudge clicked';
export declare type EVENT_NAME = 'Identify' | 'New session' | 'End session' | 'Load Performance' | 'New search' | 'Exited' | 'Search input' | 'Onboarding tooltip shown' | 'Tooltip shown' | 'Onboarding started' | 'Onboarding exited' | 'Onboarding completed' | 'Abandoned search' | 'No results for query' | 'Command suggestion' | 'Command execution' | 'Unavailable shortcut' | 'Clicked branding' | 'Survey response' | 'Client-Error' | 'Internal-Error' | 'Internal-Event' | 'User changed shortcut' | 'Preview shown' | 'Next step selected' | 'Preview link opened' | 'Preview engagement' | 'Nudge shown' | 'Nudge clicked' | 'Questlist shown' | 'Questlist engagement' | 'Questlist item engagement';

@@ -33,2 +33,3 @@ import { AddContextOptions, ArgumentOptions, DataRow, RecordOptions } from './AddContextOptions';

customShortcut: string | undefined;
callbackKey: string | undefined;
};

@@ -41,5 +42,6 @@ export declare type UserAttributes = Record<string, unknown>;

type: 'inline';
rootElement: string;
rootElement: string | HTMLElement;
};
export declare type FormFactorConfig = ModalFormFactor | InlineFormFactor;
export declare type ProductConfig = Array<'bar' | 'nudges' | 'questlists'>;
export declare type FormFactor = Pick<FormFactorConfig, 'type'>;

@@ -50,2 +52,3 @@ export declare type InstanceAttributes = {

formFactor: FormFactorConfig;
products: ProductConfig;
};

@@ -70,11 +73,2 @@ export declare type MetaAttributes = {

};
export declare type NudgeHandler = ({ slug, title, content, onClick, timeout, cta, is_live, }: {
slug: string;
title: string;
content: string;
onClick: () => void;
timeout: number | null;
cta?: string | undefined;
is_live: boolean;
}) => void;
export declare type CommandBarClientSDK = Readonly<{

@@ -170,16 +164,2 @@ /**

/**
* Captures Nudges to be handled by your code. Nudges are a way to send a messages to the user.
* They are defined in the editor with a trigger and conditions. When the trigger occurs, and the conditions are met,
* the nudgeHandler is called with the nudge information.
*
* You can handle this as you would other in-app messages / notifications / toasts.
*
* @param nudgeHandler A function for handling nudges. It is passed an object with the following properties:
* * `slug`: The slug of the nudge
* * `content`: The content of the nudge
* * `onClick`: The default on click behavior for the nudge. E.g., if a nudge is defined in the editor
* to execute a command on click, then calling `onClick` will execute that command.
**/
addNudgeHandler(nudgeHandler: NudgeHandler): void;
/**
* Add a record action for a key

@@ -224,3 +204,3 @@ *

/**
* Sets a router function that link command can use to update the page's URL without triggering a reload. To lean more about using `addRouter` see [Adding a router](https://app.commandbar.com/docs/commands/actions/link#link-types).
* Sets a router function that link command can use to update the page's URL without triggering a reload. To lean more about using `addRouter` see [Adding a router](https://app.commandbar.com/docs/dev/router).
*

@@ -253,3 +233,2 @@ * @param routerFn The router function. It should accept the following arguments:

setFormFactor(formFactorConfig: FormFactorConfig): Promise<void>;
clearActiveObject(contextKey: string): void;
close(): void;

@@ -278,2 +257,3 @@ /**

* * `category`: The category id of the command. Only provided if the command has a category
* * `callbackKey`: The command's callback key, if the command has one
* * `shortcut_mac`: Default shortcut set for macOS

@@ -297,5 +277,13 @@ * * `shortcut_win`:Default shortcut set for Windows and Linux devices

open(input?: string, options?: {
categoryFilter?: number;
categoryFilter?: number | string;
}): void;
/**
* Open the in-app Editor
*/
openEditor(): void;
/**
* Open the Help Hub.
*/
openHelpHub(): void;
/**
* Removes the callback function referenced by `callbackKey` from CommandBar.

@@ -318,3 +306,3 @@ *

* key was a depencdency will become unavailable. To learn more about availability, see
* [When are commands available to users?](https://app.commandbar.com/docs/commands/availability#when-are-commands-available-to-users?)
* [When are commands available to users?](https://app.commandbar.com/docs/commands/availability)
*

@@ -324,3 +312,2 @@ * @param keyToRemove Context key to remove

removeContext(keyToRemove: string): void;
setActiveObject(contextKey: string, objectLabel: string | string[], categoryName?: string): void;
/**

@@ -380,2 +367,4 @@ * Overrides certain components with provided options. Ask the CommandBar team if you're interested in this feature.

};
/** Returns whether or not the end user is successfully verified using HMAC */
isUserVerified(): boolean;
/**

@@ -382,0 +371,0 @@ * Make CommandBar unavailable to the user. Does nothing unless `.boot` has been called. `shutdown` is typically used

import { CommandBarClientSDK, InstanceAttributes, MetaAttributes, Metadata } from './CommandBarClientSDK';
import { EVENT_NAME } from './AnalyticsEventTypes';
import { SentryReporter } from './SentryReporter';
import { _access, _configuration, _configure, _configUser, _dispose, _disposed, _eventSubscriptions, _userAttributes, _isProxy, _loadEditor, _orgConfig, _perf, _programmaticTheme, _reloadCommands, _reloadOrganization, _reloadPlaceholders, _reloadNudges, _report, _reporter, _search, _setDashboard, _setPreviewMode, _setTestMode, _showGuide, _showMessage, _user, _instanceAttributes, _setEditorVisible, _shareContextSettings, _shareProgrammaticCommands, _metaAttributes } from './symbols';
import { _access, _configuration, _configure, _configUser, _dispose, _disposed, _eventSubscriptions, _userAttributes, _isProxy, _loadEditor, _orgConfig, _perf, _programmaticTheme, _reloadCommands, _reloadOrganization, _reloadPlaceholders, _reloadNudges, _previewNudge, _stopChecklistPreview, _stopNudgePreview, _reloadChecklists, _report, _reporter, _search, _setDashboard, _setPreviewMode, _setTestMode, _showGuide, _showMessage, _user, _instanceAttributes, _setEditorVisible, _shareConfig, _shareContextSettings, _shareProgrammaticCommands, _metaAttributes, _previewChecklist } from './symbols';
import { SDKConfig } from './SDKConfig';
import { ICommandType, IResourceSettingsByContextKey } from '../middleware/types';
import { IChecklist, ICommandType, INudgeType, IResourceSettingsByContextKey } from '../middleware/types';
import { OrgConfig } from './OrgConfig';

@@ -34,2 +34,15 @@ import { EventSubscriber } from './EventHandler';

readonly [_reloadNudges]: () => void;
readonly [_previewNudge]: (data: {
nudge: INudgeType;
step: number;
}) => void;
readonly [_stopChecklistPreview]: () => void;
readonly [_stopNudgePreview]: (data: {
index?: number;
}) => void;
readonly [_previewChecklist]: (data: {
checklist: IChecklist;
clearData?: boolean;
}) => void;
readonly [_reloadChecklists]: () => void;
/** @deprecated */

@@ -46,2 +59,3 @@ readonly [_report]: (event: EVENT_NAME, data?: Metadata) => void;

};
readonly [_shareConfig]: () => any;
readonly [_shareProgrammaticCommands]: () => ICommandType[];

@@ -48,0 +62,0 @@ /** @deprecated */

@@ -37,10 +37,38 @@ interface EventCommandDetailsBase {

}
export interface NudgeEvent {
export declare type ReportingPreviewEngagementType = 'scrolled' | 'clicked_link' | 'watched_video';
export declare type ChecklistEngagementType = 'expanded' | 'collapsed' | 'dismissed';
export declare type ChecklistItemEngagementType = 'expanded' | 'completed' | 'cta_clicked' | 'skipped';
export declare type EngagementType = ChecklistEngagementType | ChecklistItemEngagementType;
export declare type PushTrigger = {
type: 'when_conditions_pass';
} | {
type: 'on_command_execution';
meta: {
command: string;
};
} | {
type: 'on_event';
meta: {
event: string;
};
};
export interface ChecklistEvent {
type: 'questlist_shown' | 'questlist_engagement';
id: number;
slug: string;
frequency_limit: 'no_limit' | 'once_per_session' | 'once_per_user' | 'until_interaction';
trigger: {
type: 'when_conditions_pass';
trigger: PushTrigger;
title: string;
total_items: number;
completed_items: number;
}
export interface ChecklistItemEvent {
type: 'questlist_item_engagement';
id: number;
checklist_id: number;
title: string;
cta?: string;
goal: {
type: 'page_visited';
value: string;
} | {
type: 'on_command_execution';
type: 'command_executed';
meta: {

@@ -50,14 +78,47 @@ command: string;

} | {
type: 'on_event';
meta: {
event: string;
};
type: 'element_clicked';
value: string;
} | {
type: 'conditions_met';
} | {
type: 'cta_clicked';
} | {
type: 'event_tracked';
event: string;
};
on_select: {
type: 'execute_command';
meta: {
command: string;
};
completed: boolean;
}
export interface PreviewEvent {
type: 'preview_shown' | 'next_step_selected' | 'preview_link_opened' | 'preview_engagement';
preview_type?: 'html' | 'markdown' | 'plaintext' | 'react' | 'video' | 'component';
form_factor?: 'inline' | 'popover';
time_shown?: number;
engagement?: ReportingPreviewEngagementType;
source?: {
command?: string;
record?: string;
};
id?: string;
}
export interface NudgeEvent {
type: 'nudge_seen' | 'nudge_clicked';
id: string;
slug: string;
template_source: string;
frequency_limit: 'no_limit' | 'once_per_session' | 'once_per_user' | 'until_interaction';
trigger: PushTrigger;
step: {
id: number;
title: string;
} | undefined;
}
export declare type ExecutionEventSource = {
type: 'bar';
} | {
type: 'nudge';
id: number | string;
} | {
type: 'questlist';
id: number;
};
export interface CommandExecutionEvent {

@@ -68,2 +129,4 @@ type: 'command_execution';

category?: string | number | null;
/** The text of the category */
categoryText?: string;
/**

@@ -78,2 +141,4 @@ * The unique id of the command. For commands defined via the Editor, the value will be a number. For programmatic

source: string;
/** The source of the command execution. */
eventSource: ExecutionEventSource;
/** DEPRECATED. The text input.*/

@@ -89,3 +154,3 @@ ['inputText[*]']: string;

previousCommands?: string[];
/** Command types, as defined at: https://www.commandbar.com/docs/commands/types/overview */
/** Command types, as defined at: https://www.commandbar.com/docs/commands/overview */
commandType?: 'admin' | 'link' | 'script' | 'clickByXpath' | 'clickBySelector' | 'click' | 'callback' | 'builtin' | 'webhook' | 'request' | 'video' | 'helpdoc' | 'appcues';

@@ -92,0 +157,0 @@ /** Selected arguments */

@@ -20,1 +20,2 @@ import { CommandBarClientSDK } from './CommandBarClientSDK';

export declare function getClientSDK(): CommandBarClientSDK;
export declare const SDK_INTERNAL_PREFIX = "__commandbar_INTERNAL_";

@@ -19,2 +19,7 @@ export declare const _access: unique symbol;

export declare const _reloadNudges: unique symbol;
export declare const _previewNudge: unique symbol;
export declare const _stopChecklistPreview: unique symbol;
export declare const _stopNudgePreview: unique symbol;
export declare const _previewChecklist: unique symbol;
export declare const _reloadChecklists: unique symbol;
export declare const _report: unique symbol;

@@ -27,2 +32,3 @@ export declare const _reporter: unique symbol;

export declare const _setEditorVisible: unique symbol;
export declare const _shareConfig: unique symbol;
export declare const _shareContextSettings: unique symbol;

@@ -29,0 +35,0 @@ export declare const _shareProgrammaticCommands: unique symbol;

@@ -11,11 +11,13 @@ import * as t from 'io-ts';

hoverTooltip: t.BooleanC;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>, t.IntersectionC<[t.TypeC<{
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"link">;
value: t.StringC;
}>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
}>, t.PartialC<{
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
object: t.StringC;
hoverTooltip: t.BooleanC;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>, t.IntersectionC<[t.TypeC<{

@@ -28,3 +30,3 @@ type: t.LiteralC<"webhook">;

hoverTooltip: t.BooleanC;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>, t.IntersectionC<[t.TypeC<{

@@ -37,3 +39,3 @@ type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>;

hoverTooltip: t.BooleanC;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>, t.IntersectionC<[t.TypeC<{

@@ -55,3 +57,3 @@ type: t.LiteralC<"request">;

hoverTooltip: t.BooleanC;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>, t.IntersectionC<[t.TypeC<{

@@ -64,11 +66,13 @@ type: t.LiteralC<"appcues">;

hoverTooltip: t.BooleanC;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>, t.IntersectionC<[t.TypeC<{
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"helpdoc">;
value: t.StringC;
}>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
}>, t.PartialC<{
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.LiteralC<"help_explorer">, t.UndefinedC]>;
}>]>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
object: t.StringC;
hoverTooltip: t.BooleanC;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>]>;

@@ -96,7 +100,2 @@ text: t.StringC;

label_field: t.StringC;
availability_condition: t.ArrayC<t.TypeC<{
field: t.StringC;
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
value: t.UnionC<[t.StringC, t.UndefinedC]>;
}>>;
loaded: t.ArrayC<t.AnyC>;

@@ -120,7 +119,2 @@ allow_create: t.BooleanC;

label_field: t.StringC;
availability_condition: t.ArrayC<t.TypeC<{
field: t.StringC;
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
value: t.UnionC<[t.StringC, t.UndefinedC]>;
}>>;
loaded: t.ArrayC<t.AnyC>;

@@ -142,7 +136,2 @@ allow_create: t.BooleanC;

label_field: t.StringC;
availability_condition: t.ArrayC<t.TypeC<{
field: t.StringC;
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
value: t.UnionC<[t.StringC, t.UndefinedC]>;
}>>;
loaded: t.ArrayC<t.AnyC>;

@@ -165,7 +154,2 @@ dateTimeArgumentTypeId: t.NumberC;

label_field: t.StringC;
availability_condition: t.ArrayC<t.TypeC<{
field: t.StringC;
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
value: t.UnionC<[t.StringC, t.UndefinedC]>;
}>>;
loaded: t.ArrayC<t.AnyC>;

@@ -187,7 +171,2 @@ allow_create: t.BooleanC;

label_field: t.StringC;
availability_condition: t.ArrayC<t.TypeC<{
field: t.StringC;
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
value: t.UnionC<[t.StringC, t.UndefinedC]>;
}>>;
loaded: t.ArrayC<t.AnyC>;

@@ -215,7 +194,2 @@ allow_create: t.BooleanC;

label_field: t.StringC;
availability_condition: t.ArrayC<t.TypeC<{
field: t.StringC;
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
value: t.UnionC<[t.StringC, t.UndefinedC]>;
}>>;
loaded: t.ArrayC<t.AnyC>;

@@ -247,3 +221,3 @@ allow_create: t.BooleanC;

availability_rules: t.ArrayC<t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"event_count">]>;
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">]>;
operator: t.KeyofC<{

@@ -254,7 +228,7 @@ includes: null;

is: null;
isTruthy: null;
isFalsy: null;
isNot: null;
isTrue: null;
isFalse: null;
isTruthy: null;
isFalsy: null;
doesNotInclude: null;

@@ -264,2 +238,4 @@ matchesRegex: null;

isLessThan: null;
isBefore: null;
isAfter: null;
isDefined: null;

@@ -269,2 +245,3 @@ isNotDefined: null;

idOnPage: null;
selectorOnPage: null;
}>;

@@ -275,2 +252,3 @@ }>, t.PartialC<{

reason: t.StringC;
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
}>]>>;

@@ -284,4 +262,5 @@ recommend_rules: t.ArrayC<t.UnionC<[t.IntersectionC<[t.TypeC<{

reason: t.UnionC<[t.UndefinedC, t.NullC]>;
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
}>]>, t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"event_count">]>;
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">]>;
operator: t.KeyofC<{

@@ -292,7 +271,7 @@ includes: null;

is: null;
isTruthy: null;
isFalsy: null;
isNot: null;
isTrue: null;
isFalse: null;
isTruthy: null;
isFalsy: null;
doesNotInclude: null;

@@ -302,2 +281,4 @@ matchesRegex: null;

isLessThan: null;
isBefore: null;
isAfter: null;
isDefined: null;

@@ -307,2 +288,3 @@ isNotDefined: null;

idOnPage: null;
selectorOnPage: null;
}>;

@@ -313,2 +295,3 @@ }>, t.PartialC<{

reason: t.StringC;
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
}>]>]>>;

@@ -315,0 +298,0 @@ availability_expression: t.ArrayC<t.Type<import("./helpers/rules").RuleExpression, import("./helpers/rules").RuleExpression, unknown>>;

/*******************************************************************************/
import * as t from 'io-ts';
import { IEditorCommandType } from './types';
export declare const DetailPreviewObjectV: t.IntersectionC<[t.TypeC<{

@@ -22,1 +23,3 @@ type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"react">, t.LiteralC<"video">, t.LiteralC<"component">]>;

export declare const getFirstDetail: (detail?: DetailPreviewType | null | undefined) => DetailPreviewObjectType | null;
/** `true` iff the help document's body should also be used as the 'preview' for this command */
export declare const shouldUseHelpDoc: (command: IEditorCommandType) => boolean;

@@ -21,7 +21,2 @@ /*******************************************************************************/

label_field: t.StringC;
availability_condition: t.ArrayC<t.TypeC<{
field: t.StringC;
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
value: t.UnionC<[t.StringC, t.UndefinedC]>;
}>>;
loaded: t.ArrayC<t.AnyC>;

@@ -46,7 +41,2 @@ allow_create: t.BooleanC;

label_field: t.StringC;
availability_condition: t.ArrayC<t.TypeC<{
field: t.StringC;
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
value: t.UnionC<[t.StringC, t.UndefinedC]>;
}>>;
loaded: t.ArrayC<t.AnyC>;

@@ -82,7 +72,2 @@ allow_create: t.BooleanC;

label_field: t.StringC;
availability_condition: t.ArrayC<t.TypeC<{
field: t.StringC;
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
value: t.UnionC<[t.StringC, t.UndefinedC]>;
}>>;
loaded: t.ArrayC<t.AnyC>;

@@ -105,7 +90,2 @@ allow_create: t.BooleanC;

label_field: t.StringC;
availability_condition: t.ArrayC<t.TypeC<{
field: t.StringC;
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
value: t.UnionC<[t.StringC, t.UndefinedC]>;
}>>;
loaded: t.ArrayC<t.AnyC>;

@@ -129,7 +109,2 @@ dateTimeArgumentTypeId: t.NumberC;

label_field: t.StringC;
availability_condition: t.ArrayC<t.TypeC<{
field: t.StringC;
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
value: t.UnionC<[t.StringC, t.UndefinedC]>;
}>>;
loaded: t.ArrayC<t.AnyC>;

@@ -152,7 +127,2 @@ allow_create: t.BooleanC;

label_field: t.StringC;
availability_condition: t.ArrayC<t.TypeC<{
field: t.StringC;
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
value: t.UnionC<[t.StringC, t.UndefinedC]>;
}>>;
loaded: t.ArrayC<t.AnyC>;

@@ -175,7 +145,2 @@ allow_create: t.BooleanC;

label_field: t.StringC;
availability_condition: t.ArrayC<t.TypeC<{
field: t.StringC;
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
value: t.UnionC<[t.StringC, t.UndefinedC]>;
}>>;
loaded: t.ArrayC<t.AnyC>;

@@ -199,7 +164,2 @@ allow_create: t.BooleanC;

label_field: t.StringC;
availability_condition: t.ArrayC<t.TypeC<{
field: t.StringC;
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
value: t.UnionC<[t.StringC, t.UndefinedC]>;
}>>;
loaded: t.ArrayC<t.AnyC>;

@@ -221,7 +181,2 @@ allow_create: t.BooleanC;

label_field: t.StringC;
availability_condition: t.ArrayC<t.TypeC<{
field: t.StringC;
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
value: t.UnionC<[t.StringC, t.UndefinedC]>;
}>>;
loaded: t.ArrayC<t.AnyC>;

@@ -244,7 +199,2 @@ dateTimeArgumentTypeId: t.NumberC;

label_field: t.StringC;
availability_condition: t.ArrayC<t.TypeC<{
field: t.StringC;
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
value: t.UnionC<[t.StringC, t.UndefinedC]>;
}>>;
loaded: t.ArrayC<t.AnyC>;

@@ -266,7 +216,2 @@ allow_create: t.BooleanC;

label_field: t.StringC;
availability_condition: t.ArrayC<t.TypeC<{
field: t.StringC;
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
value: t.UnionC<[t.StringC, t.UndefinedC]>;
}>>;
loaded: t.ArrayC<t.AnyC>;

@@ -294,7 +239,2 @@ allow_create: t.BooleanC;

label_field: t.StringC;
availability_condition: t.ArrayC<t.TypeC<{
field: t.StringC;
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
value: t.UnionC<[t.StringC, t.UndefinedC]>;
}>>;
loaded: t.ArrayC<t.AnyC>;

@@ -317,7 +257,2 @@ allow_create: t.BooleanC;

label_field: t.StringC;
availability_condition: t.ArrayC<t.TypeC<{
field: t.StringC;
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
value: t.UnionC<[t.StringC, t.UndefinedC]>;
}>>;
loaded: t.ArrayC<t.AnyC>;

@@ -341,7 +276,2 @@ allow_create: t.BooleanC;

label_field: t.StringC;
availability_condition: t.ArrayC<t.TypeC<{
field: t.StringC;
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
value: t.UnionC<[t.StringC, t.UndefinedC]>;
}>>;
loaded: t.ArrayC<t.AnyC>;

@@ -363,7 +293,2 @@ allow_create: t.BooleanC;

label_field: t.StringC;
availability_condition: t.ArrayC<t.TypeC<{
field: t.StringC;
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
value: t.UnionC<[t.StringC, t.UndefinedC]>;
}>>;
loaded: t.ArrayC<t.AnyC>;

@@ -386,7 +311,2 @@ dateTimeArgumentTypeId: t.NumberC;

label_field: t.StringC;
availability_condition: t.ArrayC<t.TypeC<{
field: t.StringC;
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
value: t.UnionC<[t.StringC, t.UndefinedC]>;
}>>;
loaded: t.ArrayC<t.AnyC>;

@@ -408,7 +328,2 @@ allow_create: t.BooleanC;

label_field: t.StringC;
availability_condition: t.ArrayC<t.TypeC<{
field: t.StringC;
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
value: t.UnionC<[t.StringC, t.UndefinedC]>;
}>>;
loaded: t.ArrayC<t.AnyC>;

@@ -436,7 +351,2 @@ allow_create: t.BooleanC;

label_field: t.StringC;
availability_condition: t.ArrayC<t.TypeC<{
field: t.StringC;
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
value: t.UnionC<[t.StringC, t.UndefinedC]>;
}>>;
loaded: t.ArrayC<t.AnyC>;

@@ -462,7 +372,2 @@ allow_create: t.BooleanC;

label_field: t.StringC;
availability_condition: t.ArrayC<t.TypeC<{
field: t.StringC;
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
value: t.UnionC<[t.StringC, t.UndefinedC]>;
}>>;
loaded: t.ArrayC<t.AnyC>;

@@ -486,7 +391,2 @@ allow_create: t.BooleanC;

label_field: t.StringC;
availability_condition: t.ArrayC<t.TypeC<{
field: t.StringC;
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
value: t.UnionC<[t.StringC, t.UndefinedC]>;
}>>;
loaded: t.ArrayC<t.AnyC>;

@@ -508,7 +408,2 @@ allow_create: t.BooleanC;

label_field: t.StringC;
availability_condition: t.ArrayC<t.TypeC<{
field: t.StringC;
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
value: t.UnionC<[t.StringC, t.UndefinedC]>;
}>>;
loaded: t.ArrayC<t.AnyC>;

@@ -531,7 +426,2 @@ dateTimeArgumentTypeId: t.NumberC;

label_field: t.StringC;
availability_condition: t.ArrayC<t.TypeC<{
field: t.StringC;
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
value: t.UnionC<[t.StringC, t.UndefinedC]>;
}>>;
loaded: t.ArrayC<t.AnyC>;

@@ -553,7 +443,2 @@ allow_create: t.BooleanC;

label_field: t.StringC;
availability_condition: t.ArrayC<t.TypeC<{
field: t.StringC;
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
value: t.UnionC<[t.StringC, t.UndefinedC]>;
}>>;
loaded: t.ArrayC<t.AnyC>;

@@ -581,7 +466,2 @@ allow_create: t.BooleanC;

label_field: t.StringC;
availability_condition: t.ArrayC<t.TypeC<{
field: t.StringC;
operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
value: t.UnionC<[t.StringC, t.UndefinedC]>;
}>>;
loaded: t.ArrayC<t.AnyC>;

@@ -588,0 +468,0 @@ allow_create: t.BooleanC;

@@ -8,6 +8,7 @@ /*******************************************************************************/

hoverTooltip: t.BooleanC;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>;
export declare const AdminTemplateV: t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"admin">;
/*******************************************************************************/
value: t.StringC;

@@ -18,3 +19,3 @@ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{

hoverTooltip: t.BooleanC;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>;

@@ -28,12 +29,14 @@ export declare const CallbackTemplateV: t.IntersectionC<[t.TypeC<{

hoverTooltip: t.BooleanC;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>;
export declare const LinkTemplateV: t.IntersectionC<[t.TypeC<{
export declare const LinkTemplateV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"link">;
value: t.StringC;
}>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
}>, t.PartialC<{
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
object: t.StringC;
hoverTooltip: t.BooleanC;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>;

@@ -47,3 +50,3 @@ export declare const ClickTemplateV: t.IntersectionC<[t.TypeC<{

hoverTooltip: t.BooleanC;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>;

@@ -57,3 +60,3 @@ export declare const BuiltInTemplateV: t.IntersectionC<[t.TypeC<{

hoverTooltip: t.BooleanC;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>;

@@ -67,6 +70,6 @@ export declare const WebhookTemplateV: t.IntersectionC<[t.TypeC<{

hoverTooltip: t.BooleanC;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>;
export declare const AppCuesTemplateV: t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"appcues">;
export declare const ScriptTemplateV: t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"script">;
value: t.StringC;

@@ -77,7 +80,16 @@ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{

hoverTooltip: t.BooleanC;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>;
export declare const ScriptTemplateV: t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"script">;
value: t.StringC;
export declare const RequestTemplateV: t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"request">;
value: t.IntersectionC<[t.TypeC<{
method: t.UnionC<[t.LiteralC<"get">, t.LiteralC<"delete">, t.LiteralC<"head">, t.LiteralC<"options">, t.LiteralC<"post">, t.LiteralC<"put">, t.LiteralC<"patch">]>;
url: t.StringC;
}>, t.PartialC<{
headers: t.UnknownRecordC;
body: t.UnknownRecordC;
onSend: t.StringC;
onSuccess: t.StringC;
onError: t.StringC;
}>]>;
}>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{

@@ -87,6 +99,6 @@ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;

hoverTooltip: t.BooleanC;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>;
export declare const VideoTemplateV: t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"video">;
export declare const AppcuesTemplateV: t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"appcues">;
value: t.StringC;

@@ -97,6 +109,6 @@ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{

hoverTooltip: t.BooleanC;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>;
export declare const HelpDocTemplateV: t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"helpdoc">;
export declare const VideoTemplateV: t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"video">;
value: t.StringC;

@@ -107,34 +119,18 @@ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{

hoverTooltip: t.BooleanC;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>;
export declare const RequestV: t.IntersectionC<[t.TypeC<{
method: t.UnionC<[t.LiteralC<"get">, t.LiteralC<"delete">, t.LiteralC<"head">, t.LiteralC<"options">, t.LiteralC<"post">, t.LiteralC<"put">, t.LiteralC<"patch">]>;
url: t.StringC;
export declare const HelpDocTemplateV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"helpdoc">;
value: t.StringC;
}>, t.PartialC<{
headers: t.UnknownRecordC;
body: t.UnknownRecordC;
onSend: t.StringC;
onSuccess: t.StringC;
onError: t.StringC;
}>]>;
export declare const RequestTemplateV: t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"request">;
value: t.IntersectionC<[t.TypeC<{
method: t.UnionC<[t.LiteralC<"get">, t.LiteralC<"delete">, t.LiteralC<"head">, t.LiteralC<"options">, t.LiteralC<"post">, t.LiteralC<"put">, t.LiteralC<"patch">]>;
url: t.StringC;
}>, t.PartialC<{
headers: t.UnknownRecordC;
body: t.UnknownRecordC;
onSend: t.StringC;
onSuccess: t.StringC;
onError: t.StringC;
}>]>;
}>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.LiteralC<"help_explorer">, t.UndefinedC]>;
}>]>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
object: t.StringC;
hoverTooltip: t.BooleanC;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>;
export declare const TemplateV: t.UnionC<[t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"admin">;
/*******************************************************************************/
value: t.StringC;

@@ -145,3 +141,3 @@ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{

hoverTooltip: t.BooleanC;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>, t.IntersectionC<[t.TypeC<{

@@ -154,11 +150,13 @@ type: t.LiteralC<"callback">;

hoverTooltip: t.BooleanC;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>, t.IntersectionC<[t.TypeC<{
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"link">;
value: t.StringC;
}>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
}>, t.PartialC<{
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
object: t.StringC;
hoverTooltip: t.BooleanC;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>, t.IntersectionC<[t.TypeC<{

@@ -171,3 +169,3 @@ type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>;

hoverTooltip: t.BooleanC;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>, t.IntersectionC<[t.TypeC<{

@@ -180,3 +178,3 @@ type: t.LiteralC<"builtin">;

hoverTooltip: t.BooleanC;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>, t.IntersectionC<[t.TypeC<{

@@ -189,3 +187,3 @@ type: t.LiteralC<"webhook">;

hoverTooltip: t.BooleanC;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>, t.IntersectionC<[t.TypeC<{

@@ -198,3 +196,3 @@ type: t.LiteralC<"script">;

hoverTooltip: t.BooleanC;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>, t.IntersectionC<[t.TypeC<{

@@ -216,3 +214,3 @@ type: t.LiteralC<"request">;

hoverTooltip: t.BooleanC;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>, t.IntersectionC<[t.TypeC<{

@@ -225,3 +223,3 @@ type: t.LiteralC<"appcues">;

hoverTooltip: t.BooleanC;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>, t.IntersectionC<[t.TypeC<{

@@ -234,11 +232,13 @@ type: t.LiteralC<"video">;

hoverTooltip: t.BooleanC;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>, t.IntersectionC<[t.TypeC<{
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"helpdoc">;
value: t.StringC;
}>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
}>, t.PartialC<{
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.LiteralC<"help_explorer">, t.UndefinedC]>;
}>]>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
object: t.StringC;
hoverTooltip: t.BooleanC;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>]>;

@@ -10,2 +10,3 @@ import * as t from 'io-ts';

hmac: t.UnionC<[t.StringC, t.UndefinedC]>;
identifier: t.StringC;
}>;
import * as t from 'io-ts';
export declare const operators: readonly ["is", "isNot", "isTrue", "isFalse", "isTruthy", "isFalsy", "startsWith", "endsWith", "includes", "doesNotInclude", "matchesRegex", "isGreaterThan", "isLessThan", "isDefined", "isNotDefined", "classnameOnPage", "idOnPage"];
export declare const operators: readonly ["is", "isNot", "isTrue", "isFalse", "isTruthy", "isFalsy", "startsWith", "endsWith", "includes", "doesNotInclude", "matchesRegex", "isGreaterThan", "isLessThan", "isBefore", "isAfter", "isDefined", "isNotDefined", "classnameOnPage", "idOnPage", "selectorOnPage"];
declare const OperatorV: t.KeyofC<{

@@ -8,7 +8,7 @@ includes: null;

is: null;
isTruthy: null;
isFalsy: null;
isNot: null;
isTrue: null;
isFalse: null;
isTruthy: null;
isFalsy: null;
doesNotInclude: null;

@@ -18,2 +18,4 @@ matchesRegex: null;

isLessThan: null;
isBefore: null;
isAfter: null;
isDefined: null;

@@ -23,5 +25,6 @@ isNotDefined: null;

idOnPage: null;
selectorOnPage: null;
}>;
export declare const ConditionV: t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"event_count">]>;
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">]>;
operator: t.KeyofC<{

@@ -32,7 +35,7 @@ includes: null;

is: null;
isTruthy: null;
isFalsy: null;
isNot: null;
isTrue: null;
isFalse: null;
isTruthy: null;
isFalsy: null;
doesNotInclude: null;

@@ -42,2 +45,4 @@ matchesRegex: null;

isLessThan: null;
isBefore: null;
isAfter: null;
isDefined: null;

@@ -47,2 +52,3 @@ isNotDefined: null;

idOnPage: null;
selectorOnPage: null;
}>;

@@ -53,2 +59,3 @@ }>, t.PartialC<{

reason: t.StringC;
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
}>]>;

@@ -85,3 +92,3 @@ export declare const getConditions: (expr: RuleExpression) => ExpressionCondition[];

type: t.LiteralC<"named_rule">;
rule_id: t.NumberC;
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
}>, t.PartialC<{

@@ -97,5 +104,6 @@ reason: t.StringC;

reason: t.UnionC<[t.UndefinedC, t.NullC]>;
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
}>]>;
export declare const AvailabilityRuleV: t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"event_count">]>;
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">]>;
operator: t.KeyofC<{

@@ -106,7 +114,7 @@ includes: null;

is: null;
isTruthy: null;
isFalsy: null;
isNot: null;
isTrue: null;
isFalse: null;
isTruthy: null;
isFalsy: null;
doesNotInclude: null;

@@ -116,2 +124,4 @@ matchesRegex: null;

isLessThan: null;
isBefore: null;
isAfter: null;
isDefined: null;

@@ -121,2 +131,3 @@ isNotDefined: null;

idOnPage: null;
selectorOnPage: null;
}>;

@@ -127,2 +138,3 @@ }>, t.PartialC<{

reason: t.StringC;
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
}>]>;

@@ -136,4 +148,5 @@ export declare const RecommendationRuleV: t.UnionC<[t.IntersectionC<[t.TypeC<{

reason: t.UnionC<[t.UndefinedC, t.NullC]>;
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
}>]>, t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"event_count">]>;
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">]>;
operator: t.KeyofC<{

@@ -144,7 +157,7 @@ includes: null;

is: null;
isTruthy: null;
isFalsy: null;
isNot: null;
isTrue: null;
isFalse: null;
isTruthy: null;
isFalsy: null;
doesNotInclude: null;

@@ -154,2 +167,4 @@ matchesRegex: null;

isLessThan: null;
isBefore: null;
isAfter: null;
isDefined: null;

@@ -159,2 +174,3 @@ isNotDefined: null;

idOnPage: null;
selectorOnPage: null;
}>;

@@ -165,5 +181,6 @@ }>, t.PartialC<{

reason: t.StringC;
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
}>]>]>;
export declare const EditorAvailabilityRuleV: t.UnionC<[t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"event_count">]>;
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">]>;
operator: t.KeyofC<{

@@ -174,7 +191,7 @@ includes: null;

is: null;
isTruthy: null;
isFalsy: null;
isNot: null;
isTrue: null;
isFalse: null;
isTruthy: null;
isFalsy: null;
doesNotInclude: null;

@@ -184,2 +201,4 @@ matchesRegex: null;

isLessThan: null;
isBefore: null;
isAfter: null;
isDefined: null;

@@ -189,2 +208,3 @@ isNotDefined: null;

idOnPage: null;
selectorOnPage: null;
}>;

@@ -195,5 +215,6 @@ }>, t.PartialC<{

reason: t.StringC;
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
}>]>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"named_rule">;
rule_id: t.NumberC;
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
}>, t.PartialC<{

@@ -209,4 +230,5 @@ reason: t.StringC;

reason: t.UnionC<[t.UndefinedC, t.NullC]>;
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
}>]>, t.IntersectionC<[t.TypeC<{
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"event_count">]>;
type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">]>;
operator: t.KeyofC<{

@@ -217,7 +239,7 @@ includes: null;

is: null;
isTruthy: null;
isFalsy: null;
isNot: null;
isTrue: null;
isFalse: null;
isTruthy: null;
isFalsy: null;
doesNotInclude: null;

@@ -227,2 +249,4 @@ matchesRegex: null;

isLessThan: null;
isBefore: null;
isAfter: null;
isDefined: null;

@@ -232,2 +256,3 @@ isNotDefined: null;

idOnPage: null;
selectorOnPage: null;
}>;

@@ -238,5 +263,6 @@ }>, t.PartialC<{

reason: t.StringC;
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
}>]>]>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"named_rule">;
rule_id: t.NumberC;
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
}>, t.PartialC<{

@@ -246,3 +272,3 @@ reason: t.StringC;

export declare const NamedRuleV: t.TypeC<{
id: t.NumberC;
id: t.UnionC<[t.NumberC, t.StringC]>;
name: t.StringC;

@@ -249,0 +275,0 @@ expression: t.Type<RuleExpression, RuleExpression, unknown>;

@@ -21,21 +21,2 @@ import * as t from 'io-ts';

} & {})[]>;
static revert: (object: {
id: number;
organization: string;
changed_by: string;
description: string;
created: string;
sha1: string;
version_num: number;
} & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined, urlArgs?: {
[arg: string]: string;
} | undefined) => Promise<{
id: number;
organization: string;
changed_by: string;
description: string;
created: string;
sha1: string;
version_num: number;
} & {}>;
}
import * as t from 'io-ts';
export declare const NudgeV: t.IntersectionC<[t.TypeC<{
export declare const NudgeContentMarkdownBlockV: t.TypeC<{
type: t.LiteralC<"markdown">;
meta: t.TypeC<{
value: t.StringC;
}>;
}>;
export declare const NudgeContentImageBlockV: t.TypeC<{
type: t.LiteralC<"image">;
meta: t.TypeC<{
src: t.StringC;
file_name: t.StringC;
size: t.StringC;
}>;
}>;
export declare const NudgeContentVideoBlockV: t.TypeC<{
type: t.LiteralC<"video">;
meta: t.UnionC<[t.TypeC<{
type: t.LiteralC<"url">;
src: t.StringC;
}>, t.TypeC<{
type: t.LiteralC<"command">;
command: t.StringC;
}>]>;
}>;
export declare const NudgeContentHelpDocBlockV: t.TypeC<{
type: t.LiteralC<"help_doc_command">;
meta: t.TypeC<{
command: t.StringC;
}>;
}>;
export declare const NudgeContentButtonBlockV: t.TypeC<{
type: t.LiteralC<"button">;
meta: t.UnionC<[t.PartialC<{
label: t.StringC;
action: t.UnionC<[t.TypeC<{
type: t.LiteralC<"execute_command">;
meta: t.TypeC<{
command: t.StringC;
}>;
}>, t.TypeC<{
type: t.LiteralC<"no_action">;
}>, t.TypeC<{
type: t.LiteralC<"click">;
value: t.StringC;
}>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"link">;
value: t.StringC;
}>, t.PartialC<{
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>;
}>, t.NullC]>;
}>;
export declare const NudgeContentBlockV: t.UnionC<[t.TypeC<{
type: t.LiteralC<"markdown">;
meta: t.TypeC<{
value: t.StringC;
}>;
}>, t.TypeC<{
type: t.LiteralC<"image">;
meta: t.TypeC<{
src: t.StringC;
file_name: t.StringC;
size: t.StringC;
}>;
}>, t.TypeC<{
type: t.LiteralC<"video">;
meta: t.UnionC<[t.TypeC<{
type: t.LiteralC<"url">;
src: t.StringC;
}>, t.TypeC<{
type: t.LiteralC<"command">;
command: t.StringC;
}>]>;
}>, t.TypeC<{
type: t.LiteralC<"help_doc_command">;
meta: t.TypeC<{
command: t.StringC;
}>;
}>, t.TypeC<{
type: t.LiteralC<"button">;
meta: t.UnionC<[t.PartialC<{
label: t.StringC;
action: t.UnionC<[t.TypeC<{
type: t.LiteralC<"execute_command">;
meta: t.TypeC<{
command: t.StringC;
}>;
}>, t.TypeC<{
type: t.LiteralC<"no_action">;
}>, t.TypeC<{
type: t.LiteralC<"click">;
value: t.StringC;
}>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"link">;
value: t.StringC;
}>, t.PartialC<{
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>;
}>, t.NullC]>;
}>]>;
export declare const NudgeStepV: t.IntersectionC<[t.TypeC<{
id: t.NumberC;
title: t.StringC;
content: t.ArrayC<t.UnionC<[t.TypeC<{
type: t.LiteralC<"markdown">;
meta: t.TypeC<{
value: t.StringC;
}>;
}>, t.TypeC<{
type: t.LiteralC<"image">;
meta: t.TypeC<{
src: t.StringC;
file_name: t.StringC;
size: t.StringC;
}>;
}>, t.TypeC<{
type: t.LiteralC<"video">;
meta: t.UnionC<[t.TypeC<{
type: t.LiteralC<"url">;
src: t.StringC;
}>, t.TypeC<{
type: t.LiteralC<"command">;
command: t.StringC;
}>]>;
}>, t.TypeC<{
type: t.LiteralC<"help_doc_command">;
meta: t.TypeC<{
command: t.StringC;
}>;
}>, t.TypeC<{
type: t.LiteralC<"button">;
meta: t.UnionC<[t.PartialC<{
label: t.StringC;
action: t.UnionC<[t.TypeC<{
type: t.LiteralC<"execute_command">;
meta: t.TypeC<{
command: t.StringC;
}>;
}>, t.TypeC<{
type: t.LiteralC<"no_action">;
}>, t.TypeC<{
type: t.LiteralC<"click">;
value: t.StringC;
}>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"link">;
value: t.StringC;
}>, t.PartialC<{
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>;
}>, t.NullC]>;
}>]>>;
is_live: t.BooleanC;
}>, t.TypeC<{
form_factor: t.UnionC<[t.TypeC<{
type: t.LiteralC<"modal">;
}>, t.TypeC<{
type: t.LiteralC<"popover">;
position: t.UnionC<[t.LiteralC<"top-left">, t.LiteralC<"top-right">, t.LiteralC<"bottom-right">, t.LiteralC<"bottom-left">, t.LiteralC<"center">]>;
}>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"pin">;
anchor: t.StringC;
}>, t.PartialC<{
is_open_by_default: t.BooleanC;
offset: t.TypeC<{
x: t.StringC;
y: t.StringC;
}>;
}>]>]>;
}>]>;
export declare const NudgeV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
slug: t.StringC;
id: t.UnionC<[t.NumberC, t.StringC]>;
organization: t.StringC;
show_expression: t.Type<import("./helpers/rules").RuleExpression, import("./helpers/rules").RuleExpression, unknown>;
trigger: t.UnionC<[t.TypeC<{
type: t.LiteralC<"when_conditions_pass">;
}>, t.TypeC<{
type: t.LiteralC<"on_command_execution">;
meta: t.TypeC<{
command: t.StringC;
}>;
}>, t.TypeC<{
type: t.LiteralC<"on_event">;
meta: t.TypeC<{
event: t.StringC;
}>;
}>]>;
frequency_limit: t.UnionC<[t.LiteralC<"no_limit">, t.LiteralC<"once_per_session">, t.LiteralC<"once_per_user">, t.LiteralC<"until_interaction">]>;
steps: t.ArrayC<t.IntersectionC<[t.TypeC<{
id: t.NumberC;
title: t.StringC;
content: t.ArrayC<t.UnionC<[t.TypeC<{
type: t.LiteralC<"markdown">;
meta: t.TypeC<{
value: t.StringC;
}>;
}>, t.TypeC<{
type: t.LiteralC<"image">;
meta: t.TypeC<{
src: t.StringC;
file_name: t.StringC;
size: t.StringC;
}>;
}>, t.TypeC<{
type: t.LiteralC<"video">;
meta: t.UnionC<[t.TypeC<{
type: t.LiteralC<"url">;
src: t.StringC;
}>, t.TypeC<{
type: t.LiteralC<"command">;
command: t.StringC;
}>]>;
}>, t.TypeC<{
type: t.LiteralC<"help_doc_command">;
meta: t.TypeC<{
command: t.StringC;
}>;
}>, t.TypeC<{
type: t.LiteralC<"button">;
meta: t.UnionC<[t.PartialC<{
label: t.StringC;
action: t.UnionC<[t.TypeC<{
type: t.LiteralC<"execute_command">;
meta: t.TypeC<{
command: t.StringC;
}>;
}>, t.TypeC<{
type: t.LiteralC<"no_action">;
}>, t.TypeC<{
type: t.LiteralC<"click">;
value: t.StringC;
}>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"link">;
value: t.StringC;
}>, t.PartialC<{
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
}>]>]>;
}>, t.NullC]>;
}>]>>;
is_live: t.BooleanC;
}>, t.TypeC<{
form_factor: t.UnionC<[t.TypeC<{
type: t.LiteralC<"modal">;
}>, t.TypeC<{
type: t.LiteralC<"popover">;
position: t.UnionC<[t.LiteralC<"top-left">, t.LiteralC<"top-right">, t.LiteralC<"bottom-right">, t.LiteralC<"bottom-left">, t.LiteralC<"center">]>;
}>, t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"pin">;
anchor: t.StringC;
}>, t.PartialC<{
is_open_by_default: t.BooleanC;
offset: t.TypeC<{
x: t.StringC;
y: t.StringC;
}>;
}>]>]>;
}>]>>;
is_live: t.BooleanC;
}>, t.PartialC<{
old_nudge_id: t.UnionC<[t.NumberC, t.NullC]>;
archived: t.BooleanC;
}>]>, t.TypeC<{
template_source: t.StringC;
}>]>;
export declare const OldNudgeBaseV: t.IntersectionC<[t.TypeC<{
id: t.NumberC;
organization: t.StringC;
slug: t.StringC;

@@ -21,3 +285,5 @@ content: t.StringC;

}>]>;
on_select: t.TypeC<{
on_select: t.UnionC<[t.TypeC<{
type: t.LiteralC<"no_action">;
}>, t.TypeC<{
type: t.LiteralC<"execute_command">;

@@ -27,3 +293,3 @@ meta: t.TypeC<{

}>;
}>;
}>]>;
timeout_ms: t.UnionC<[t.NumberC, t.NullC]>;

@@ -33,11 +299,99 @@ frequency_limit: t.UnionC<[t.LiteralC<"no_limit">, t.LiteralC<"once_per_session">, t.LiteralC<"once_per_user">, t.LiteralC<"until_interaction">]>;

title: t.StringC;
html: t.StringC;
cta: t.StringC;
is_live: t.BooleanC;
media: t.UnionC<[t.TypeC<{
type: t.LiteralC<"image">;
meta: t.TypeC<{
src: t.StringC;
file_name: t.StringC;
size: t.StringC;
}>;
}>, t.TypeC<{
type: t.LiteralC<"help_doc_command">;
meta: t.TypeC<{
command: t.StringC;
}>;
}>, t.NullC]>;
is_html_override: t.BooleanC;
call_custom_handler: t.BooleanC;
}>]>;
export declare const OldNudgeAdditionalV: t.TypeC<{
form_factor: t.UnionC<[t.TypeC<{
type: t.LiteralC<"modal">;
}>, t.TypeC<{
type: t.LiteralC<"popover">;
position: t.UnionC<[t.LiteralC<"top-left">, t.LiteralC<"top-right">, t.LiteralC<"bottom-right">, t.LiteralC<"bottom-left">, t.LiteralC<"center">]>;
}>, t.TypeC<{
type: t.LiteralC<"pin">;
anchor: t.StringC;
}>]>;
template_source: t.StringC;
}>;
export declare const OldNudgeV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
id: t.NumberC;
organization: t.StringC;
slug: t.StringC;
content: t.StringC;
show_expression: t.Type<import("./helpers/rules").RuleExpression, import("./helpers/rules").RuleExpression, unknown>;
trigger: t.UnionC<[t.TypeC<{
type: t.LiteralC<"when_conditions_pass">;
}>, t.TypeC<{
type: t.LiteralC<"on_command_execution">;
meta: t.TypeC<{
command: t.StringC;
}>;
}>, t.TypeC<{
type: t.LiteralC<"on_event">;
meta: t.TypeC<{
event: t.StringC;
}>;
}>]>;
on_select: t.UnionC<[t.TypeC<{
type: t.LiteralC<"no_action">;
}>, t.TypeC<{
type: t.LiteralC<"execute_command">;
meta: t.TypeC<{
command: t.StringC;
}>;
}>]>;
timeout_ms: t.UnionC<[t.NumberC, t.NullC]>;
frequency_limit: t.UnionC<[t.LiteralC<"no_limit">, t.LiteralC<"once_per_session">, t.LiteralC<"once_per_user">, t.LiteralC<"until_interaction">]>;
}>, t.PartialC<{
title: t.StringC;
html: t.StringC;
cta: t.StringC;
is_live: t.BooleanC;
media: t.UnionC<[t.TypeC<{
type: t.LiteralC<"image">;
meta: t.TypeC<{
src: t.StringC;
file_name: t.StringC;
size: t.StringC;
}>;
}>, t.TypeC<{
type: t.LiteralC<"help_doc_command">;
meta: t.TypeC<{
command: t.StringC;
}>;
}>, t.NullC]>;
is_html_override: t.BooleanC;
call_custom_handler: t.BooleanC;
}>]>, t.TypeC<{
form_factor: t.UnionC<[t.TypeC<{
type: t.LiteralC<"modal">;
}>, t.TypeC<{
type: t.LiteralC<"popover">;
position: t.UnionC<[t.LiteralC<"top-left">, t.LiteralC<"top-right">, t.LiteralC<"bottom-right">, t.LiteralC<"bottom-left">, t.LiteralC<"center">]>;
}>, t.TypeC<{
type: t.LiteralC<"pin">;
anchor: t.StringC;
}>]>;
template_source: t.StringC;
}>]>;
export declare class Nudge {
static decode: (data: any) => {
id: number;
slug: string;
id: string | number;
organization: string;
slug: string;
content: string;
show_expression: import("./helpers/rules").RuleExpression;

@@ -57,20 +411,83 @@ trigger: {

};
on_select: {
type: "execute_command";
meta: {
command: string;
};
};
timeout_ms: number | null;
frequency_limit: "no_limit" | "once_per_session" | "once_per_user" | "until_interaction";
steps: ({
id: number;
title: string;
content: ({
type: "markdown";
meta: {
value: string;
};
} | {
type: "image";
meta: {
src: string;
file_name: string;
size: string;
};
} | {
type: "video";
meta: {
type: "url";
src: string;
} | {
type: "command";
command: string;
};
} | {
type: "help_doc_command";
meta: {
command: string;
};
} | {
type: "button";
meta: {
label?: string | undefined;
action?: {
type: "execute_command";
meta: {
command: string;
};
} | {
type: "no_action";
} | {
type: "click";
value: string;
} | ({
type: "link";
value: string;
} & {
operation?: "self" | "router" | "blank" | undefined;
}) | undefined;
} | null;
})[];
is_live: boolean;
} & {
form_factor: {
type: "modal";
} | {
type: "popover";
position: "center" | "top-left" | "top-right" | "bottom-right" | "bottom-left";
} | ({
type: "pin";
anchor: string;
} & {
is_open_by_default?: boolean | undefined;
offset?: {
x: string;
y: string;
} | undefined;
});
})[];
is_live: boolean;
} & {
title?: string | undefined;
cta?: string | undefined;
is_live?: boolean | undefined;
old_nudge_id?: number | null | undefined;
archived?: boolean | undefined;
} & {
template_source: string;
};
static create: (object: {
id: number;
slug: string;
id: string | number;
organization: string;
slug: string;
content: string;
show_expression: import("./helpers/rules").RuleExpression;

@@ -90,19 +507,82 @@ trigger: {

};
on_select: {
type: "execute_command";
meta: {
command: string;
};
};
timeout_ms: number | null;
frequency_limit: "no_limit" | "once_per_session" | "once_per_user" | "until_interaction";
steps: ({
id: number;
title: string;
content: ({
type: "markdown";
meta: {
value: string;
};
} | {
type: "image";
meta: {
src: string;
file_name: string;
size: string;
};
} | {
type: "video";
meta: {
type: "url";
src: string;
} | {
type: "command";
command: string;
};
} | {
type: "help_doc_command";
meta: {
command: string;
};
} | {
type: "button";
meta: {
label?: string | undefined;
action?: {
type: "execute_command";
meta: {
command: string;
};
} | {
type: "no_action";
} | {
type: "click";
value: string;
} | ({
type: "link";
value: string;
} & {
operation?: "self" | "router" | "blank" | undefined;
}) | undefined;
} | null;
})[];
is_live: boolean;
} & {
form_factor: {
type: "modal";
} | {
type: "popover";
position: "center" | "top-left" | "top-right" | "bottom-right" | "bottom-left";
} | ({
type: "pin";
anchor: string;
} & {
is_open_by_default?: boolean | undefined;
offset?: {
x: string;
y: string;
} | undefined;
});
})[];
is_live: boolean;
} & {
title?: string | undefined;
cta?: string | undefined;
is_live?: boolean | undefined;
old_nudge_id?: number | null | undefined;
archived?: boolean | undefined;
} & {
template_source: string;
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
id: number;
slug: string;
id: string | number;
organization: string;
slug: string;
content: string;
show_expression: import("./helpers/rules").RuleExpression;

@@ -122,20 +602,83 @@ trigger: {

};
on_select: {
type: "execute_command";
meta: {
command: string;
};
};
timeout_ms: number | null;
frequency_limit: "no_limit" | "once_per_session" | "once_per_user" | "until_interaction";
steps: ({
id: number;
title: string;
content: ({
type: "markdown";
meta: {
value: string;
};
} | {
type: "image";
meta: {
src: string;
file_name: string;
size: string;
};
} | {
type: "video";
meta: {
type: "url";
src: string;
} | {
type: "command";
command: string;
};
} | {
type: "help_doc_command";
meta: {
command: string;
};
} | {
type: "button";
meta: {
label?: string | undefined;
action?: {
type: "execute_command";
meta: {
command: string;
};
} | {
type: "no_action";
} | {
type: "click";
value: string;
} | ({
type: "link";
value: string;
} & {
operation?: "self" | "router" | "blank" | undefined;
}) | undefined;
} | null;
})[];
is_live: boolean;
} & {
form_factor: {
type: "modal";
} | {
type: "popover";
position: "center" | "top-left" | "top-right" | "bottom-right" | "bottom-left";
} | ({
type: "pin";
anchor: string;
} & {
is_open_by_default?: boolean | undefined;
offset?: {
x: string;
y: string;
} | undefined;
});
})[];
is_live: boolean;
} & {
title?: string | undefined;
cta?: string | undefined;
is_live?: boolean | undefined;
old_nudge_id?: number | null | undefined;
archived?: boolean | undefined;
} & {
template_source: string;
}>;
static update: (object: {
id: number;
slug: string;
id: string | number;
organization: string;
slug: string;
content: string;
show_expression: import("./helpers/rules").RuleExpression;

@@ -155,19 +698,82 @@ trigger: {

};
on_select: {
type: "execute_command";
meta: {
command: string;
};
};
timeout_ms: number | null;
frequency_limit: "no_limit" | "once_per_session" | "once_per_user" | "until_interaction";
steps: ({
id: number;
title: string;
content: ({
type: "markdown";
meta: {
value: string;
};
} | {
type: "image";
meta: {
src: string;
file_name: string;
size: string;
};
} | {
type: "video";
meta: {
type: "url";
src: string;
} | {
type: "command";
command: string;
};
} | {
type: "help_doc_command";
meta: {
command: string;
};
} | {
type: "button";
meta: {
label?: string | undefined;
action?: {
type: "execute_command";
meta: {
command: string;
};
} | {
type: "no_action";
} | {
type: "click";
value: string;
} | ({
type: "link";
value: string;
} & {
operation?: "self" | "router" | "blank" | undefined;
}) | undefined;
} | null;
})[];
is_live: boolean;
} & {
form_factor: {
type: "modal";
} | {
type: "popover";
position: "center" | "top-left" | "top-right" | "bottom-right" | "bottom-left";
} | ({
type: "pin";
anchor: string;
} & {
is_open_by_default?: boolean | undefined;
offset?: {
x: string;
y: string;
} | undefined;
});
})[];
is_live: boolean;
} & {
title?: string | undefined;
cta?: string | undefined;
is_live?: boolean | undefined;
old_nudge_id?: number | null | undefined;
archived?: boolean | undefined;
} & {
template_source: string;
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
id: number;
slug: string;
id: string | number;
organization: string;
slug: string;
content: string;
show_expression: import("./helpers/rules").RuleExpression;

@@ -187,21 +793,84 @@ trigger: {

};
on_select: {
type: "execute_command";
meta: {
command: string;
};
};
timeout_ms: number | null;
frequency_limit: "no_limit" | "once_per_session" | "once_per_user" | "until_interaction";
steps: ({
id: number;
title: string;
content: ({
type: "markdown";
meta: {
value: string;
};
} | {
type: "image";
meta: {
src: string;
file_name: string;
size: string;
};
} | {
type: "video";
meta: {
type: "url";
src: string;
} | {
type: "command";
command: string;
};
} | {
type: "help_doc_command";
meta: {
command: string;
};
} | {
type: "button";
meta: {
label?: string | undefined;
action?: {
type: "execute_command";
meta: {
command: string;
};
} | {
type: "no_action";
} | {
type: "click";
value: string;
} | ({
type: "link";
value: string;
} & {
operation?: "self" | "router" | "blank" | undefined;
}) | undefined;
} | null;
})[];
is_live: boolean;
} & {
form_factor: {
type: "modal";
} | {
type: "popover";
position: "center" | "top-left" | "top-right" | "bottom-right" | "bottom-left";
} | ({
type: "pin";
anchor: string;
} & {
is_open_by_default?: boolean | undefined;
offset?: {
x: string;
y: string;
} | undefined;
});
})[];
is_live: boolean;
} & {
title?: string | undefined;
cta?: string | undefined;
is_live?: boolean | undefined;
old_nudge_id?: number | null | undefined;
archived?: boolean | undefined;
} & {
template_source: string;
}>;
static delete: (id: string | number, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
id: number;
slug: string;
id: string | number;
organization: string;
slug: string;
content: string;
show_expression: import("./helpers/rules").RuleExpression;

@@ -221,14 +890,78 @@ trigger: {

};
on_select: {
type: "execute_command";
meta: {
command: string;
};
};
timeout_ms: number | null;
frequency_limit: "no_limit" | "once_per_session" | "once_per_user" | "until_interaction";
steps: ({
id: number;
title: string;
content: ({
type: "markdown";
meta: {
value: string;
};
} | {
type: "image";
meta: {
src: string;
file_name: string;
size: string;
};
} | {
type: "video";
meta: {
type: "url";
src: string;
} | {
type: "command";
command: string;
};
} | {
type: "help_doc_command";
meta: {
command: string;
};
} | {
type: "button";
meta: {
label?: string | undefined;
action?: {
type: "execute_command";
meta: {
command: string;
};
} | {
type: "no_action";
} | {
type: "click";
value: string;
} | ({
type: "link";
value: string;
} & {
operation?: "self" | "router" | "blank" | undefined;
}) | undefined;
} | null;
})[];
is_live: boolean;
} & {
form_factor: {
type: "modal";
} | {
type: "popover";
position: "center" | "top-left" | "top-right" | "bottom-right" | "bottom-left";
} | ({
type: "pin";
anchor: string;
} & {
is_open_by_default?: boolean | undefined;
offset?: {
x: string;
y: string;
} | undefined;
});
})[];
is_live: boolean;
} & {
title?: string | undefined;
cta?: string | undefined;
is_live?: boolean | undefined;
old_nudge_id?: number | null | undefined;
archived?: boolean | undefined;
} & {
template_source: string;
})[]>;

@@ -239,6 +972,5 @@ static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {

} | undefined) => Promise<{
id: number;
slug: string;
id: string | number;
organization: string;
slug: string;
content: string;
show_expression: import("./helpers/rules").RuleExpression;

@@ -258,15 +990,79 @@ trigger: {

};
on_select: {
type: "execute_command";
meta: {
command: string;
};
};
timeout_ms: number | null;
frequency_limit: "no_limit" | "once_per_session" | "once_per_user" | "until_interaction";
steps: ({
id: number;
title: string;
content: ({
type: "markdown";
meta: {
value: string;
};
} | {
type: "image";
meta: {
src: string;
file_name: string;
size: string;
};
} | {
type: "video";
meta: {
type: "url";
src: string;
} | {
type: "command";
command: string;
};
} | {
type: "help_doc_command";
meta: {
command: string;
};
} | {
type: "button";
meta: {
label?: string | undefined;
action?: {
type: "execute_command";
meta: {
command: string;
};
} | {
type: "no_action";
} | {
type: "click";
value: string;
} | ({
type: "link";
value: string;
} & {
operation?: "self" | "router" | "blank" | undefined;
}) | undefined;
} | null;
})[];
is_live: boolean;
} & {
form_factor: {
type: "modal";
} | {
type: "popover";
position: "center" | "top-left" | "top-right" | "bottom-right" | "bottom-left";
} | ({
type: "pin";
anchor: string;
} & {
is_open_by_default?: boolean | undefined;
offset?: {
x: string;
y: string;
} | undefined;
});
})[];
is_live: boolean;
} & {
title?: string | undefined;
cta?: string | undefined;
is_live?: boolean | undefined;
old_nudge_id?: number | null | undefined;
archived?: boolean | undefined;
} & {
template_source: string;
}>;
}

@@ -26,3 +26,3 @@ import * as t from 'io-ts';

skins_limit: t.NumberC;
skins_field_set: t.UnionC<[t.LiteralC<"pro">, t.LiteralC<"basic">]>;
skins_field_set: t.UnionC<[t.LiteralC<"pro">, t.LiteralC<"basic">, t.LiteralC<"none">]>;
show_countdown_banner: t.BooleanC;

@@ -34,2 +34,3 @@ can_install_foobar: t.BooleanC;

in_bar_feedback: t.BooleanC;
force_end_user_identity_verification: t.BooleanC;
summon_hotkey_override: t.UnionC<[t.StringC, t.NullC]>;

@@ -48,2 +49,5 @@ end_user_shortcuts_enabled: t.BooleanC;

recommended_sort_key: t.UnionC<[t.NumberC, t.NullC]>;
num_live_commands: t.NumberC;
help_center_sync: t.UnionC<[t.LiteralC<"upload-once">, t.LiteralC<"manual">, t.LiteralC<"automatic">]>;
show_suggested_synonyms: t.BooleanC;
}>;

@@ -90,2 +94,3 @@ export declare class Organization {

sortFunction?: any;
hasSearchFunction?: boolean | undefined;
default_command_id?: string | number | undefined;

@@ -126,2 +131,3 @@ render_as?: "grid" | "list" | undefined;

end_user_hotkeys: boolean | undefined;
force_end_user_identity_verification: boolean;
end_user_shortcuts_enabled: boolean;

@@ -141,2 +147,3 @@ end_user_recents_enabled: boolean;

recommended_sort_key: number | null;
show_suggested_synonyms: boolean;
has_hotloaded_help_docs: boolean;

@@ -180,2 +187,3 @@ }>;

sortFunction?: any;
hasSearchFunction?: boolean | undefined;
default_command_id?: string | number | undefined;

@@ -216,2 +224,3 @@ render_as?: "grid" | "list" | undefined;

end_user_hotkeys: boolean | undefined;
force_end_user_identity_verification: boolean;
end_user_shortcuts_enabled: boolean;

@@ -231,2 +240,3 @@ end_user_recents_enabled: boolean;

recommended_sort_key: number | null;
show_suggested_synonyms: boolean;
has_hotloaded_help_docs: boolean;

@@ -269,2 +279,3 @@ }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{

sortFunction?: any;
hasSearchFunction?: boolean | undefined;
default_command_id?: string | number | undefined;

@@ -305,2 +316,3 @@ render_as?: "grid" | "list" | undefined;

end_user_hotkeys: boolean | undefined;
force_end_user_identity_verification: boolean;
end_user_shortcuts_enabled: boolean;

@@ -320,2 +332,3 @@ end_user_recents_enabled: boolean;

recommended_sort_key: number | null;
show_suggested_synonyms: boolean;
has_hotloaded_help_docs: boolean;

@@ -334,3 +347,3 @@ }>;

hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | undefined;
operation?: "self" | "router" | "blank" | "help_explorer" | undefined;
}) | ({

@@ -343,6 +356,8 @@ type: "callback";

hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | undefined;
operation?: "self" | "router" | "blank" | "help_explorer" | undefined;
}) | ({
type: "link";
value: string;
} & {
operation?: "self" | "router" | "blank" | undefined;
} & {} & {

@@ -352,3 +367,3 @@ commandType?: "object" | "help" | "independent" | undefined;

hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | undefined;
operation?: "self" | "router" | "blank" | "help_explorer" | undefined;
}) | ({

@@ -361,3 +376,3 @@ type: "click" | "clickByXpath" | "clickBySelector";

hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | undefined;
operation?: "self" | "router" | "blank" | "help_explorer" | undefined;
}) | ({

@@ -370,3 +385,3 @@ type: "builtin";

hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | undefined;
operation?: "self" | "router" | "blank" | "help_explorer" | undefined;
}) | ({

@@ -379,3 +394,3 @@ type: "webhook";

hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | undefined;
operation?: "self" | "router" | "blank" | "help_explorer" | undefined;
}) | ({

@@ -388,3 +403,3 @@ type: "script";

hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | undefined;
operation?: "self" | "router" | "blank" | "help_explorer" | undefined;
}) | ({

@@ -410,3 +425,3 @@ type: "request";

hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | undefined;
operation?: "self" | "router" | "blank" | "help_explorer" | undefined;
}) | ({

@@ -419,3 +434,3 @@ type: "appcues";

hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | undefined;
operation?: "self" | "router" | "blank" | "help_explorer" | undefined;
}) | ({

@@ -428,6 +443,8 @@ type: "video";

hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | undefined;
operation?: "self" | "router" | "blank" | "help_explorer" | undefined;
}) | ({
type: "helpdoc";
value: string;
} & {
operation?: "self" | "router" | "blank" | "help_explorer" | undefined;
} & {} & {

@@ -437,3 +454,3 @@ commandType?: "object" | "help" | "independent" | undefined;

hoverTooltip?: boolean | undefined;
operation?: "self" | "router" | "blank" | undefined;
operation?: "self" | "router" | "blank" | "help_explorer" | undefined;
});

@@ -460,7 +477,2 @@ } & {

label_field?: string | undefined;
availability_condition?: {
field: string;
operator: "==" | "!=" | "isTruthy" | "isFalsy";
value: string | undefined;
}[] | undefined;
loaded?: any[] | undefined;

@@ -486,7 +498,2 @@ allow_create?: boolean | undefined;

label_field?: string | undefined;
availability_condition?: {
field: string;
operator: "==" | "!=" | "isTruthy" | "isFalsy";
value: string | undefined;
}[] | undefined;
loaded?: any[] | undefined;

@@ -508,7 +515,2 @@ allow_create?: boolean | undefined;

label_field?: string | undefined;
availability_condition?: {
field: string;
operator: "==" | "!=" | "isTruthy" | "isFalsy";
value: string | undefined;
}[] | undefined;
loaded?: any[] | undefined;

@@ -531,7 +533,2 @@ dateTimeArgumentTypeId?: number | undefined;

label_field?: string | undefined;
availability_condition?: {
field: string;
operator: "==" | "!=" | "isTruthy" | "isFalsy";
value: string | undefined;
}[] | undefined;
loaded?: any[] | undefined;

@@ -553,7 +550,2 @@ allow_create?: boolean | undefined;

label_field?: string | undefined;
availability_condition?: {
field: string;
operator: "==" | "!=" | "isTruthy" | "isFalsy";
value: string | undefined;
}[] | undefined;
loaded?: any[] | undefined;

@@ -581,7 +573,2 @@ allow_create?: boolean | undefined;

label_field?: string | undefined;
availability_condition?: {
field: string;
operator: "==" | "!=" | "isTruthy" | "isFalsy";
value: string | undefined;
}[] | undefined;
loaded?: any[] | undefined;

@@ -596,4 +583,4 @@ allow_create?: boolean | undefined;

availability_rules: ({
type: "url" | "element" | "context" | "event_count";
operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
type: "url" | "element" | "context" | "executions" | "shortcuts" | "last_seen" | "first_seen" | "sessions" | "opens" | "deadends";
operator: "includes" | "endsWith" | "startsWith" | "is" | "isNot" | "isTrue" | "isFalse" | "isTruthy" | "isFalsy" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isBefore" | "isAfter" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage" | "selectorOnPage";
} & {

@@ -603,5 +590,6 @@ field?: string | undefined;

reason?: string | undefined;
rule_id?: string | number | undefined;
})[] | (({
type: "url" | "element" | "context" | "event_count";
operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
type: "url" | "element" | "context" | "executions" | "shortcuts" | "last_seen" | "first_seen" | "sessions" | "opens" | "deadends";
operator: "includes" | "endsWith" | "startsWith" | "is" | "isNot" | "isTrue" | "isFalse" | "isTruthy" | "isFalsy" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isBefore" | "isAfter" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage" | "selectorOnPage";
} & {

@@ -611,5 +599,6 @@ field?: string | undefined;

reason?: string | undefined;
rule_id?: string | number | undefined;
}) | ({
type: "named_rule";
rule_id: number;
rule_id: string | number;
} & {

@@ -619,4 +608,4 @@ reason?: string | undefined;

recommend_rules: (({
type: "url" | "element" | "context" | "event_count";
operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
type: "url" | "element" | "context" | "executions" | "shortcuts" | "last_seen" | "first_seen" | "sessions" | "opens" | "deadends";
operator: "includes" | "endsWith" | "startsWith" | "is" | "isNot" | "isTrue" | "isFalse" | "isTruthy" | "isFalsy" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isBefore" | "isAfter" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage" | "selectorOnPage";
} & {

@@ -626,2 +615,3 @@ field?: string | undefined;

reason?: string | undefined;
rule_id?: string | number | undefined;
}) | ({

@@ -634,5 +624,6 @@ type: "always";

reason?: null | undefined;
rule_id?: string | number | undefined;
}))[] | (({
type: "url" | "element" | "context" | "event_count";
operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
type: "url" | "element" | "context" | "executions" | "shortcuts" | "last_seen" | "first_seen" | "sessions" | "opens" | "deadends";
operator: "includes" | "endsWith" | "startsWith" | "is" | "isNot" | "isTrue" | "isFalse" | "isTruthy" | "isFalsy" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isBefore" | "isAfter" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage" | "selectorOnPage";
} & {

@@ -642,2 +633,3 @@ field?: string | undefined;

reason?: string | undefined;
rule_id?: string | number | undefined;
}) | ({

@@ -650,5 +642,6 @@ type: "always";

reason?: null | undefined;
rule_id?: string | number | undefined;
}) | ({
type: "named_rule";
rule_id: number;
rule_id: string | number;
} & {

@@ -702,2 +695,7 @@ reason?: string | undefined;

next_steps: (string | number)[];
generated_tags: {
automated?: string[] | null | undefined;
manual?: string[] | null | undefined;
deny?: string[] | null | undefined;
};
} & {

@@ -752,3 +750,3 @@ third_party_source?: string | null | undefined;

static listRules: (orgUID: string) => Promise<{
id: number;
id: string | number;
name: string;

@@ -765,2 +763,3 @@ expression: import("./helpers/rules").RuleExpression;

hmac: string | undefined;
identifier: string;
}>;

@@ -816,3 +815,3 @@ static readHealth: (arg0: string, urlArgs?: {

skins_limit: number;
skins_field_set: "basic" | "pro";
skins_field_set: "basic" | "none" | "pro";
show_countdown_banner: boolean;

@@ -824,2 +823,3 @@ can_install_foobar: boolean;

in_bar_feedback: boolean;
force_end_user_identity_verification: boolean;
summon_hotkey_override: string | null;

@@ -838,2 +838,5 @@ end_user_shortcuts_enabled: boolean;

recommended_sort_key: number | null;
num_live_commands: number;
help_center_sync: "manual" | "upload-once" | "automatic";
show_suggested_synonyms: boolean;
}>;

@@ -849,3 +852,3 @@ static updateSetting: (object: {

skins_limit?: number | undefined;
skins_field_set?: "basic" | "pro" | undefined;
skins_field_set?: "basic" | "none" | "pro" | undefined;
show_countdown_banner?: boolean | undefined;

@@ -857,2 +860,3 @@ can_install_foobar?: boolean | undefined;

in_bar_feedback?: boolean | undefined;
force_end_user_identity_verification?: boolean | undefined;
summon_hotkey_override?: string | null | undefined;

@@ -871,2 +875,5 @@ end_user_shortcuts_enabled?: boolean | undefined;

recommended_sort_key?: number | null | undefined;
num_live_commands?: number | undefined;
help_center_sync?: "manual" | "upload-once" | "automatic" | undefined;
show_suggested_synonyms?: boolean | undefined;
}, params?: Record<string, string> | undefined, callbacks?: {

@@ -884,3 +891,3 @@ onSuccess?: (() => void) | undefined;

skins_limit: number;
skins_field_set: "basic" | "pro";
skins_field_set: "basic" | "none" | "pro";
show_countdown_banner: boolean;

@@ -892,2 +899,3 @@ can_install_foobar: boolean;

in_bar_feedback: boolean;
force_end_user_identity_verification: boolean;
summon_hotkey_override: string | null;

@@ -906,3 +914,23 @@ end_user_shortcuts_enabled: boolean;

recommended_sort_key: number | null;
num_live_commands: number;
help_center_sync: "manual" | "upload-once" | "automatic";
show_suggested_synonyms: boolean;
}>;
static readDashboardFlags: (params?: Record<string, string> | undefined, callbacks?: {
onSuccess?: (() => void) | undefined;
onError?: ((err: string) => void) | undefined;
} | undefined) => Promise<{
show_onboarding: boolean;
show_appsumo_onboarding: boolean;
}>;
static updateDashboardFlags: (object: {
show_onboarding?: boolean | undefined;
show_appsumo_onboarding?: boolean | undefined;
}, params?: Record<string, string> | undefined, callbacks?: {
onSuccess?: (() => void) | undefined;
onError?: ((err: string) => void) | undefined;
} | undefined) => Promise<{
show_onboarding: boolean;
show_appsumo_onboarding: boolean;
}>;
static decode: (data: any) => {

@@ -944,2 +972,3 @@ id: string | number;

sortFunction?: any;
hasSearchFunction?: boolean | undefined;
default_command_id?: string | number | undefined;

@@ -980,2 +1009,3 @@ render_as?: "grid" | "list" | undefined;

end_user_hotkeys: boolean | undefined;
force_end_user_identity_verification: boolean;
end_user_shortcuts_enabled: boolean;

@@ -995,4 +1025,6 @@ end_user_recents_enabled: boolean;

recommended_sort_key: number | null;
show_suggested_synonyms: boolean;
has_hotloaded_help_docs: boolean;
};
static unknownOrganization: import("./OrganizationV").IOrganizationType;
}

@@ -33,2 +33,3 @@ import * as t from 'io-ts';

sortFunction: t.AnyC;
hasSearchFunction: t.BooleanC;
default_command_id: t.UnionC<[t.NumberC, t.StringC, t.UndefinedC]>;

@@ -68,2 +69,3 @@ render_as: t.UnionC<[t.LiteralC<"list">, t.LiteralC<"grid">]>;

end_user_hotkeys: t.UnionC<[t.UndefinedC, t.BooleanC]>;
force_end_user_identity_verification: t.BooleanC;
end_user_shortcuts_enabled: t.BooleanC;

@@ -83,2 +85,3 @@ end_user_recents_enabled: t.BooleanC;

recommended_sort_key: t.UnionC<[t.NumberC, t.NullC]>;
show_suggested_synonyms: t.BooleanC;
has_hotloaded_help_docs: t.BooleanC;

@@ -122,2 +125,3 @@ }>;

sortFunction: t.AnyC;
hasSearchFunction: t.BooleanC;
default_command_id: t.UnionC<[t.NumberC, t.StringC, t.UndefinedC]>;

@@ -157,2 +161,3 @@ render_as: t.UnionC<[t.LiteralC<"list">, t.LiteralC<"grid">]>;

end_user_hotkeys: t.UnionC<[t.UndefinedC, t.BooleanC]>;
force_end_user_identity_verification: t.BooleanC;
end_user_shortcuts_enabled: t.BooleanC;

@@ -172,5 +177,7 @@ end_user_recents_enabled: t.BooleanC;

recommended_sort_key: t.UnionC<[t.NumberC, t.NullC]>;
show_suggested_synonyms: t.BooleanC;
has_hotloaded_help_docs: t.BooleanC;
}>]>;
export declare type IOrganizationType = t.TypeOf<typeof OrganizationV> & unknown;
export declare const unknownOrganization: IOrganizationType;
export {};

@@ -25,2 +25,3 @@ import * as t from 'io-ts';

sortFunction: t.AnyC;
hasSearchFunction: t.BooleanC;
default_command_id: t.UnionC<[t.NumberC, t.StringC, t.UndefinedC]>;

@@ -68,2 +69,3 @@ render_as: t.UnionC<[t.LiteralC<"list">, t.LiteralC<"grid">]>;

sortFunction: t.AnyC;
hasSearchFunction: t.BooleanC;
default_command_id: t.UnionC<[t.NumberC, t.StringC, t.UndefinedC]>;

@@ -70,0 +72,0 @@ render_as: t.UnionC<[t.LiteralC<"list">, t.LiteralC<"grid">]>;

@@ -11,2 +11,3 @@ import * as t from 'io-ts';

logo: t.UnionC<[t.StringC, t.NullC]>;
frozen: t.BooleanC;
}>]>;

@@ -22,2 +23,6 @@ export declare const SkinPatchV: t.PartialC<{

}>;
export declare const SkinPatchMetadataV: t.PartialC<{
name: t.StringC;
slug: t.StringC;
}>;
export declare class Skin {

@@ -33,2 +38,3 @@ static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({

logo?: string | null | undefined;
frozen?: boolean | undefined;
})[]>;

@@ -47,4 +53,5 @@ static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {

logo?: string | null | undefined;
frozen?: boolean | undefined;
}>;
static update: (object: {
static update: (skin: t.TypeOf<typeof SkinPatchV>) => Promise<{
id: string;

@@ -58,3 +65,5 @@ slug: string;

logo?: string | null | undefined;
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
frozen?: boolean | undefined;
}>;
static updateMetadata: (slug: string, metadata: t.TypeOf<typeof SkinPatchMetadataV>) => Promise<{
id: string;

@@ -68,2 +77,3 @@ slug: string;

logo?: string | null | undefined;
frozen?: boolean | undefined;
}>;

@@ -87,4 +97,5 @@ static create: (object: {

logo?: string | null | undefined;
frozen?: boolean | undefined;
}>;
static delete: (id: string | number, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
}

@@ -7,3 +7,4 @@ /*******************************************************************************/

import { OptionGroupRenderAsV } from './helpers/optionGroup';
import { TemplateV, TemplateOptionsV, RequestTemplateV, RequestV } from './helpers/commandTemplate';
import { TemplateV, TemplateOptionsV, RequestTemplateV } from './helpers/commandTemplate';
import { RequestV } from './helpers/actions';
import { CommandCategoryV } from './commandCategory';

@@ -23,5 +24,7 @@ import { OrganizationStatusV, KeyEventV, ResourceSettingsByContextKeyV, InternalSettingsV, OrganizationSettingsV } from './organization';

import { EnvironmentV } from './environment';
import { NudgeV } from './nudge';
import { NudgeContentBlockV, NudgeContentButtonBlockV, NudgeContentHelpDocBlockV, NudgeContentImageBlockV, NudgeContentMarkdownBlockV, NudgeContentVideoBlockV, NudgeStepV, NudgeV, OldNudgeV } from './nudge';
import { TabV } from './tab';
import { RuleExpressionAndV, RuleExpressionOrV, RuleExpressionV } from './helpers/rules';
import { ChecklistItemV, ChecklistV } from './checklist';
import { DashboardFlagsV } from './dashboardFlags';
/*******************************************************************************/

@@ -51,2 +54,3 @@ export declare type IInitOptions = {

export declare type IInternalSettingsType = t.TypeOf<typeof InternalSettingsV> & unknown;
export declare type IDashboardFlagsType = t.TypeOf<typeof DashboardFlagsV> & unknown;
export declare type ISkinType = t.TypeOf<typeof SkinV> & unknown;

@@ -86,8 +90,18 @@ export declare type IProfileType = t.TypeOf<typeof ProfileV> & unknown;

export declare type OptionGroupRenderAsType = t.TypeOf<typeof OptionGroupRenderAsV> & unknown;
export declare type IOldNudgeType = t.TypeOf<typeof OldNudgeV> & unknown;
export declare type INudgeType = t.TypeOf<typeof NudgeV> & unknown;
export interface INudgeClientType {
export declare type INudgeStepType = t.TypeOf<typeof NudgeStepV> & unknown;
export declare type INudgeStepContentBlockType = t.TypeOf<typeof NudgeContentBlockV> & unknown;
export declare type INudgeStepContentMarkdownBlockType = t.TypeOf<typeof NudgeContentMarkdownBlockV> & unknown;
export declare type INudgeStepContentImageBlockType = t.TypeOf<typeof NudgeContentImageBlockV> & unknown;
export declare type INudgeStepContentVideoBlockType = t.TypeOf<typeof NudgeContentVideoBlockV> & unknown;
export declare type INudgeStepContentHelpDocBlockType = t.TypeOf<typeof NudgeContentHelpDocBlockV> & unknown;
export declare type INudgeStepContentButtonBlockType = t.TypeOf<typeof NudgeContentButtonBlockV> & unknown;
export declare type INudgeClientType = {
nudge: INudgeType;
passedConditionsInLastEvaluation: boolean;
lastTriggeredTs?: number;
}
};
export declare type IChecklist = t.TypeOf<typeof ChecklistV> & unknown;
export declare type IChecklistItem = t.TypeOf<typeof ChecklistItemV> & unknown;
export interface ICommandInput {

@@ -108,8 +122,10 @@ text: string;

}
export interface EventWithTimestamp {
eventName: string;
properties: {
[prop: string]: any;
};
timestamp: number;
export interface IEndUserAnalytics {
num_command_executions: number;
num_shortcut_command_executions: number;
num_sessions: number;
num_opens: number;
num_deadends: number;
first_seen_at: string;
last_seen_at: string;
}

@@ -131,4 +147,6 @@ export interface ICallbackMap {

placeholders?: any[];
nudges?: INudgeType[];
nudges?: IOldNudgeType[];
nudges_v2?: INudgeType[];
tabs?: ITabType[];
checklists?: IChecklist[];
};

@@ -135,0 +153,0 @@ export type { IResourceSettings } from './IResourceSettings';

@@ -8,2 +8,3 @@ import * as t from 'io-ts';

organization: t.StringC;
organization_name: t.StringC;
api_token: t.UnionC<[t.StringC, t.NullC]>;

@@ -14,3 +15,3 @@ profile: t.NumberC;

}>, t.PartialC<{
atlas_hash: t.StringC;
intercom_hash: t.StringC;
}>]>;
declare const LocalStorage: {
set: (label: string, value: string | boolean | number) => string | number | boolean;
get: (label: string, defaultValue: string | boolean | number) => string | number | boolean;
get: (label: string, defaultValue: string | boolean | number, prefixOverride?: string | undefined) => string | number | boolean;
remove: (label: string) => void;
};
export default LocalStorage;
{
"name": "commandbar",
"version": "1.7.2",
"version": "1.7.3",
"description": "Javascript Utility for CommandBar",

@@ -23,4 +23,3 @@ "main": "build/commandbar-js/src/index.js",

"fp-ts": "2.10.5",
"io-ts": "^2.2.14",
"react-hot-toast": "^2.3.0"
"io-ts": "^2.2.14"
},

@@ -27,0 +26,0 @@ "devDependencies": {

@@ -54,3 +54,3 @@ import 'proxy-polyfill';

*
* @param {string} org Your organization ID, which can be found [here](https://app.commandbar.com/docs/getting-started/installation#step-1:-install-commandbar).
* @param {string} org Your organization ID, which can be found [here](https://commandbar.com/docs/dev/installation).
* @param {IInitOptions} [opts] Additional options to use for initialization: `debug` will enable additional logging, `environment` specifies the environment to load config from

@@ -57,0 +57,0 @@ * output.

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc