commandbar 1.8.5 → 1.8.7
Sign up to get free protection for your applications and to get access to all the features.
- package/build/commandbar-js/src/index.js +1 -1
- package/build/internal/src/client/AddContextOptions.d.ts +141 -0
- package/build/internal/src/client/AnalyticsEventTypes.d.ts +1 -0
- package/build/internal/src/client/CommandBarClientSDK.d.ts +403 -0
- package/build/internal/src/client/CommandBarProxySDK.d.ts +49 -0
- package/build/internal/src/client/CommandBarSDK.d.ts +79 -0
- package/build/internal/src/client/EventHandler.d.ts +282 -0
- package/build/internal/src/client/OrgConfig.d.ts +5 -0
- package/build/internal/src/client/SDKConfig.d.ts +13 -0
- package/build/internal/src/client/SentryReporter.d.ts +63 -0
- package/build/internal/src/client/globals.d.ts +20 -0
- package/build/internal/src/client/proxy.d.ts +15 -0
- package/build/internal/src/client/symbols.d.ts +50 -0
- package/build/internal/src/middleware/CommandFromClientV.d.ts +283 -0
- package/build/internal/src/middleware/ICommandFromClientType.d.ts +5 -0
- package/build/internal/src/middleware/IResourceSettings.d.ts +3 -0
- package/build/internal/src/middleware/OrganizationV.d.ts +329 -0
- package/build/internal/src/middleware/ResourceSettingsV.d.ts +119 -0
- package/build/internal/src/middleware/additionalResource.d.ts +302 -0
- package/build/internal/src/middleware/billing.d.ts +41 -0
- package/build/internal/src/middleware/chatAnalytics.d.ts +2601 -0
- package/build/internal/src/middleware/checklist.d.ts +1014 -0
- package/build/internal/src/middleware/command.d.ts +8908 -0
- package/build/internal/src/middleware/commandCategory.d.ts +192 -0
- package/build/internal/src/middleware/confetti.d.ts +16 -0
- package/build/internal/src/middleware/context.d.ts +40 -0
- package/build/internal/src/middleware/dashboardFlags.d.ts +9 -0
- package/build/internal/src/middleware/detailPreview.d.ts +24 -0
- package/build/internal/src/middleware/environment.d.ts +11 -0
- package/build/internal/src/middleware/generics.d.ts +42 -0
- package/build/internal/src/middleware/guide.d.ts +37 -0
- package/build/internal/src/middleware/helpDocsIntegration.d.ts +72 -0
- package/build/internal/src/middleware/helpDocsSync.d.ts +63 -0
- package/build/internal/src/middleware/helpers/actions.d.ts +184 -0
- package/build/internal/src/middleware/helpers/argument.d.ts +318 -0
- package/build/internal/src/middleware/helpers/audience.d.ts +15 -0
- package/build/internal/src/middleware/helpers/commandTemplate.d.ts +252 -0
- package/build/internal/src/middleware/helpers/endUser.d.ts +11 -0
- package/build/internal/src/middleware/helpers/frequencyLimit.d.ts +2 -0
- package/build/internal/src/middleware/helpers/goals.d.ts +26 -0
- package/build/internal/src/middleware/helpers/optionGroup.d.ts +2 -0
- package/build/internal/src/middleware/helpers/pushTrigger.d.ts +26 -0
- package/build/internal/src/middleware/helpers/rules.d.ts +289 -0
- package/build/internal/src/middleware/helpers/tags.d.ts +7 -0
- package/build/internal/src/middleware/historyEvent.d.ts +21 -0
- package/build/internal/src/middleware/network.d.ts +3 -0
- package/build/internal/src/middleware/nudge.d.ts +1669 -0
- package/build/internal/src/middleware/organization.d.ts +1540 -0
- package/build/internal/src/middleware/organizationSettings.d.ts +330 -0
- package/build/internal/src/middleware/placeholder.d.ts +47 -0
- package/build/internal/src/middleware/profile.d.ts +11 -0
- package/build/internal/src/middleware/qaPair.d.ts +676 -0
- package/build/internal/src/middleware/recommendationSet.d.ts +1199 -0
- package/build/internal/src/middleware/releases.d.ts +261 -0
- package/build/internal/src/middleware/skin.d.ts +102 -0
- package/build/internal/src/middleware/tab.d.ts +27 -0
- package/build/internal/src/middleware/types.d.ts +218 -0
- package/build/internal/src/middleware/user.d.ts +15 -0
- package/build/internal/src/middleware/utils.d.ts +11 -0
- package/build/internal/src/util/Disposable.d.ts +17 -0
- package/build/internal/src/util/LocalStorage.d.ts +6 -0
- package/build/internal/src/util/Logger.d.ts +18 -0
- package/build/internal/src/util/dispatchCustomEvent.d.ts +12 -0
- package/build/internal/src/util/integrations.d.ts +1 -0
- package/package.json +3 -3
- package/jest.config.js +0 -4
- package/scripts/minify-snippet.ts +0 -36
- package/scripts/watch.ts +0 -5
- package/src/commandbar-launcher.d.ts +0 -7
- package/test/init.test.ts +0 -3
- package/tsconfig.json +0 -24
- package/webpack.config.js +0 -35
@@ -0,0 +1,12 @@
|
|
1
|
+
export type TUpdateEditorRouteDetails = {
|
2
|
+
type: 'nudge';
|
3
|
+
nudgeId: string | number;
|
4
|
+
stepId: string | number;
|
5
|
+
} | {
|
6
|
+
type: 'checklist';
|
7
|
+
checklistId: string | number;
|
8
|
+
} | {
|
9
|
+
type: 'theme';
|
10
|
+
route_replacement: string;
|
11
|
+
};
|
12
|
+
export declare function dispatchCustomEvent<T>(eventType: string, detail: T, canBubble?: boolean, cancelable?: boolean): CustomEvent<T>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const getTypeString: (integrationName?: string) => string | undefined;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "commandbar",
|
3
|
-
"version": "1.8.
|
3
|
+
"version": "1.8.7",
|
4
4
|
"description": "Javascript Utility for CommandBar",
|
5
5
|
"main": "build/commandbar-js/src/index.js",
|
6
6
|
"types": "build/commandbar-js/src/index.d.ts",
|
@@ -18,13 +18,13 @@
|
|
18
18
|
"author": "",
|
19
19
|
"license": "ISC",
|
20
20
|
"dependencies": {
|
21
|
-
"commandbar-launcher": "^1.1.
|
21
|
+
"commandbar-launcher": "^1.1.10",
|
22
22
|
"fp-ts": "2.10.5",
|
23
23
|
"io-ts": "^2.2.14"
|
24
24
|
},
|
25
25
|
"devDependencies": {
|
26
26
|
"rimraf": "3.0.2",
|
27
|
-
"typescript": "5.
|
27
|
+
"typescript": "5.1.5",
|
28
28
|
"webpack": "^5.74.0"
|
29
29
|
}
|
30
30
|
}
|
package/jest.config.js
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ts-node
|
2
|
-
|
3
|
-
import * as ts from 'typescript';
|
4
|
-
import { snippet } from '../src/snippet';
|
5
|
-
import { minify } from 'terser';
|
6
|
-
|
7
|
-
const result = ts.transpileModule(snippet.toString(), {
|
8
|
-
compilerOptions: {
|
9
|
-
alwaysStrict: false,
|
10
|
-
declaration: false,
|
11
|
-
lib: ['DOM', 'ES2015'],
|
12
|
-
module: ts.ModuleKind.None,
|
13
|
-
noEmitOnError: true,
|
14
|
-
removeComments: true,
|
15
|
-
sourceMap: false,
|
16
|
-
strict: true,
|
17
|
-
target: ts.ScriptTarget.ES5,
|
18
|
-
},
|
19
|
-
});
|
20
|
-
|
21
|
-
if (result.diagnostics && result.diagnostics.length > 0) {
|
22
|
-
result.diagnostics?.forEach((d) => console.error(d.messageText));
|
23
|
-
process.exit(1);
|
24
|
-
}
|
25
|
-
|
26
|
-
const lines = result.outputText.split('\n');
|
27
|
-
const transpiled = ["var org = '<org_id>';"].concat(lines.slice(1, lines.length - 2)).join('\n');
|
28
|
-
|
29
|
-
minify(transpiled, { mangle: { toplevel: true } })
|
30
|
-
.then((result) => {
|
31
|
-
console.log(result.code);
|
32
|
-
})
|
33
|
-
.catch((err) => {
|
34
|
-
console.error(err);
|
35
|
-
process.exit(1);
|
36
|
-
});
|
package/scripts/watch.ts
DELETED
package/test/init.test.ts
DELETED
package/tsconfig.json
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"include": ["./src"],
|
3
|
-
"compilerOptions": {
|
4
|
-
"declaration": true,
|
5
|
-
"declarationMap": false,
|
6
|
-
"emitDeclarationOnly": true,
|
7
|
-
"module": "CommonJS",
|
8
|
-
"outDir": "build",
|
9
|
-
"rootDir": "..",
|
10
|
-
"sourceMap": true,
|
11
|
-
"target": "es5",
|
12
|
-
"lib": ["dom", "esnext"],
|
13
|
-
|
14
|
-
"strict": true,
|
15
|
-
|
16
|
-
"esModuleInterop": true,
|
17
|
-
"moduleResolution": "node",
|
18
|
-
|
19
|
-
"forceConsistentCasingInFileNames": true,
|
20
|
-
"stripInternal": true, // https://www.typescriptlang.org/tsconfig#stripInternal
|
21
|
-
"types": ["node"],
|
22
|
-
"jsx": "react"
|
23
|
-
}
|
24
|
-
}
|
package/webpack.config.js
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
const path = require('path');
|
2
|
-
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
|
3
|
-
|
4
|
-
module.exports = {
|
5
|
-
mode: 'production',
|
6
|
-
entry: path.resolve(__dirname, 'src', 'index.ts'),
|
7
|
-
output: {
|
8
|
-
path: path.resolve(__dirname, 'build', 'commandbar-js', 'src'),
|
9
|
-
filename: 'index.js',
|
10
|
-
library: {
|
11
|
-
type: 'umd',
|
12
|
-
name: 'commandbar',
|
13
|
-
},
|
14
|
-
globalObject: 'this',
|
15
|
-
},
|
16
|
-
module: {
|
17
|
-
rules: [
|
18
|
-
{
|
19
|
-
test: /\.tsx?$/,
|
20
|
-
loader: 'ts-loader',
|
21
|
-
options: {
|
22
|
-
transpileOnly: true,
|
23
|
-
},
|
24
|
-
},
|
25
|
-
],
|
26
|
-
},
|
27
|
-
resolve: {
|
28
|
-
extensions: ['.ts', '.js', '.json', '.tsx'],
|
29
|
-
},
|
30
|
-
stats: 'minimal',
|
31
|
-
plugins: [process.env.ENABLE_STATSFILE_GENERATION && new BundleAnalyzerPlugin({
|
32
|
-
analyzerMode: 'disabled',
|
33
|
-
generateStatsFile: true
|
34
|
-
})].filter(Boolean),
|
35
|
-
};
|