commandbar 1.8.4 → 1.8.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. package/build/commandbar-js/src/index.js +1 -1
  2. package/build/internal/src/client/AddContextOptions.d.ts +141 -0
  3. package/build/internal/src/client/AnalyticsEventTypes.d.ts +1 -0
  4. package/build/internal/src/client/CommandBarClientSDK.d.ts +403 -0
  5. package/build/internal/src/client/CommandBarProxySDK.d.ts +49 -0
  6. package/build/internal/src/client/CommandBarSDK.d.ts +79 -0
  7. package/build/internal/src/client/EventHandler.d.ts +282 -0
  8. package/build/internal/src/client/OrgConfig.d.ts +5 -0
  9. package/build/internal/src/client/SDKConfig.d.ts +13 -0
  10. package/build/internal/src/client/SentryReporter.d.ts +63 -0
  11. package/build/internal/src/client/globals.d.ts +20 -0
  12. package/build/internal/src/client/proxy.d.ts +15 -0
  13. package/build/internal/src/client/symbols.d.ts +50 -0
  14. package/build/internal/src/middleware/CommandFromClientV.d.ts +283 -0
  15. package/build/internal/src/middleware/ICommandFromClientType.d.ts +5 -0
  16. package/build/internal/src/middleware/IResourceSettings.d.ts +3 -0
  17. package/build/internal/src/middleware/OrganizationV.d.ts +329 -0
  18. package/build/internal/src/middleware/ResourceSettingsV.d.ts +119 -0
  19. package/build/internal/src/middleware/additionalResource.d.ts +302 -0
  20. package/build/internal/src/middleware/billing.d.ts +41 -0
  21. package/build/internal/src/middleware/chatAnalytics.d.ts +2601 -0
  22. package/build/internal/src/middleware/checklist.d.ts +1014 -0
  23. package/build/internal/src/middleware/command.d.ts +8908 -0
  24. package/build/internal/src/middleware/commandCategory.d.ts +192 -0
  25. package/build/internal/src/middleware/confetti.d.ts +16 -0
  26. package/build/internal/src/middleware/context.d.ts +40 -0
  27. package/build/internal/src/middleware/dashboardFlags.d.ts +9 -0
  28. package/build/internal/src/middleware/detailPreview.d.ts +24 -0
  29. package/build/internal/src/middleware/environment.d.ts +11 -0
  30. package/build/internal/src/middleware/generics.d.ts +42 -0
  31. package/build/internal/src/middleware/guide.d.ts +37 -0
  32. package/build/internal/src/middleware/helpDocsIntegration.d.ts +72 -0
  33. package/build/internal/src/middleware/helpDocsSync.d.ts +63 -0
  34. package/build/internal/src/middleware/helpers/actions.d.ts +184 -0
  35. package/build/internal/src/middleware/helpers/argument.d.ts +318 -0
  36. package/build/internal/src/middleware/helpers/audience.d.ts +15 -0
  37. package/build/internal/src/middleware/helpers/commandTemplate.d.ts +252 -0
  38. package/build/internal/src/middleware/helpers/endUser.d.ts +11 -0
  39. package/build/internal/src/middleware/helpers/frequencyLimit.d.ts +2 -0
  40. package/build/internal/src/middleware/helpers/goals.d.ts +26 -0
  41. package/build/internal/src/middleware/helpers/optionGroup.d.ts +2 -0
  42. package/build/internal/src/middleware/helpers/pushTrigger.d.ts +26 -0
  43. package/build/internal/src/middleware/helpers/rules.d.ts +289 -0
  44. package/build/internal/src/middleware/helpers/tags.d.ts +7 -0
  45. package/build/internal/src/middleware/historyEvent.d.ts +21 -0
  46. package/build/internal/src/middleware/network.d.ts +3 -0
  47. package/build/internal/src/middleware/nudge.d.ts +1669 -0
  48. package/build/internal/src/middleware/organization.d.ts +1540 -0
  49. package/build/internal/src/middleware/organizationSettings.d.ts +330 -0
  50. package/build/internal/src/middleware/placeholder.d.ts +47 -0
  51. package/build/internal/src/middleware/profile.d.ts +11 -0
  52. package/build/internal/src/middleware/qaPair.d.ts +676 -0
  53. package/build/internal/src/middleware/recommendationSet.d.ts +1199 -0
  54. package/build/internal/src/middleware/releases.d.ts +261 -0
  55. package/build/internal/src/middleware/skin.d.ts +102 -0
  56. package/build/internal/src/middleware/tab.d.ts +27 -0
  57. package/build/internal/src/middleware/types.d.ts +218 -0
  58. package/build/internal/src/middleware/user.d.ts +15 -0
  59. package/build/internal/src/middleware/utils.d.ts +11 -0
  60. package/build/internal/src/util/Disposable.d.ts +17 -0
  61. package/build/internal/src/util/LocalStorage.d.ts +6 -0
  62. package/build/internal/src/util/Logger.d.ts +18 -0
  63. package/build/internal/src/util/dispatchCustomEvent.d.ts +12 -0
  64. package/build/internal/src/util/integrations.d.ts +1 -0
  65. package/package.json +2 -2
  66. package/jest.config.js +0 -4
  67. package/scripts/minify-snippet.ts +0 -36
  68. package/scripts/watch.ts +0 -5
  69. package/test/init.test.ts +0 -3
  70. package/tsconfig.json +0 -24
  71. 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.4",
3
+ "version": "1.8.6",
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",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "devDependencies": {
26
26
  "rimraf": "3.0.2",
27
- "typescript": "5.0.4",
27
+ "typescript": "5.1.5",
28
28
  "webpack": "^5.74.0"
29
29
  }
30
30
  }
package/jest.config.js DELETED
@@ -1,4 +0,0 @@
1
- module.exports = {
2
- preset: 'ts-jest',
3
- testEnvironment: 'jsdom',
4
- }
@@ -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
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env ts-node
2
-
3
- import orchestrate from '../../scripts/util/orchestrate';
4
-
5
- orchestrate([['webpack watch', 'tsc -w']], { killOthers: ['failure', 'success'] });
package/test/init.test.ts DELETED
@@ -1,3 +0,0 @@
1
- test('Test', async () => {
2
- expect(true).toEqual(true);
3
- });
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
- };