@mongodb-js/compass-web 0.26.2 → 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,11 @@
1
+ /*!
2
+ * clipboard.js v2.0.10
3
+ * https://clipboardjs.com/
4
+ *
5
+ * Licensed MIT © Zeno Rocha
6
+ */
7
+
8
+ /*!
9
+ * focus-trap 6.9.4
10
+ * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
11
+ */
@@ -88,6 +88,10 @@ declare interface AsyncStatus {
88
88
  message?: string;
89
89
  }
90
90
 
91
+ declare const ATLAS_CLOUD_FEATURE_FLAGS: "DATA_EXPLORER_COMPASS_WEB_ENABLE_DATA_MODELING"[];
92
+
93
+ export declare type AtlasCloudFeatureFlags = Record<(typeof ATLAS_CLOUD_FEATURE_FLAGS)[number], boolean>;
94
+
91
95
  /**
92
96
  * Atlas metadata for clusters, refer to the backend implementation to see how
93
97
  * the values are derived
@@ -257,7 +261,7 @@ export declare const CompassExperimentationProvider: React_2.FC<{
257
261
  }>;
258
262
 
259
263
  /** @public */
260
- export declare const CompassWeb: ({ appName, orgId, projectId, darkMode, initialAutoconnectId, initialWorkspace, onActiveWorkspaceTabChange, initialPreferences, onLog, onDebug, onTrack, onOpenConnectViaModal, onFailToLoadConnections, onBeforeUnloadCallbackRequest, }: CompassWebProps) => React_2.JSX.Element;
264
+ export declare const CompassWeb: ({ appName, orgId, projectId, darkMode, initialAutoconnectId, initialWorkspace, onActiveWorkspaceTabChange, initialPreferences, atlasCloudFeatureFlags, onLog, onDebug, onTrack, onOpenConnectViaModal, onFailToLoadConnections, onBeforeUnloadCallbackRequest, }: CompassWebProps) => React_2.JSX.Element;
261
265
 
262
266
  /** @public */
263
267
  export declare type CompassWebProps = {
@@ -304,6 +308,12 @@ export declare type CompassWebProps = {
304
308
  * Set of initial preferences to override default values
305
309
  */
306
310
  initialPreferences?: Partial<AllPreferences>;
311
+ /**
312
+ * A subset of Atlas Cloud feature flags that maps to Compass feature flag
313
+ * preferences. These flags have any effect ONLY if they were defined as
314
+ * mapped for some Compass preferences feature flags
315
+ */
316
+ atlasCloudFeatureFlags?: Partial<AtlasCloudFeatureFlags>;
307
317
  /**
308
318
  * Callback prop called every time any code inside Compass logs something
309
319
  */
@@ -966,26 +976,141 @@ declare enum ExperimentViewedEventName {
966
976
  EXPERIMENT_GHOSTVIEWED = "Experiment GhostViewed"
967
977
  }
968
978
 
969
- declare type FeatureFlags = {
970
- enableOidc: boolean;
971
- newExplainPlan: boolean;
972
- showInsights: boolean;
973
- enableExportSchema: boolean;
974
- enableRenameCollectionModal: boolean;
975
- enableProxySupport: boolean;
976
- enableRollingIndexes: boolean;
977
- showDisabledConnections: boolean;
978
- enableGlobalWrites: boolean;
979
- enableDataModeling: boolean;
980
- enableIndexesGuidanceExp: boolean;
981
- showIndexesGuidanceVariant: boolean;
982
- enableContextMenus: boolean;
983
- enableSearchActivationProgramP1: boolean;
984
- enableUnauthenticatedGenAI: boolean;
985
- enableAIAssistant: boolean;
986
- enablePerformanceInsightsEntrypoints: boolean;
987
- enableAutomaticRelationshipInference: boolean;
988
- };
979
+ declare const FEATURE_FLAG_DEFINITIONS: readonly [{
980
+ readonly name: "enableOidc";
981
+ readonly stage: "released";
982
+ readonly atlasCloudFeatureFlagName: null;
983
+ readonly description: {
984
+ readonly short: "Enable OIDC Authentication";
985
+ };
986
+ }, {
987
+ readonly name: "newExplainPlan";
988
+ readonly stage: "released";
989
+ readonly atlasCloudFeatureFlagName: null;
990
+ readonly description: {
991
+ readonly short: "Access explain plan from query bar";
992
+ readonly long: "Explain plan is now accessible right from the query bar. To view a query’s execution plan, click “Explain” as you would on an aggregation pipeline.";
993
+ };
994
+ }, {
995
+ readonly name: "showInsights";
996
+ readonly stage: "released";
997
+ readonly atlasCloudFeatureFlagName: null;
998
+ readonly description: {
999
+ readonly short: "Show performance insights";
1000
+ readonly long: "Surface visual signals in the Compass interface to highlight potential performance issues and anti-patterns.";
1001
+ };
1002
+ }, {
1003
+ readonly name: "enableRenameCollectionModal";
1004
+ readonly stage: "released";
1005
+ readonly atlasCloudFeatureFlagName: null;
1006
+ readonly description: {
1007
+ readonly short: "Enables renaming a collection";
1008
+ readonly long: "Allows users to rename a collection from the sidebar";
1009
+ };
1010
+ }, {
1011
+ readonly name: "enableProxySupport";
1012
+ readonly stage: "released";
1013
+ readonly atlasCloudFeatureFlagName: null;
1014
+ readonly description: {
1015
+ readonly short: "Enables support for explicit proxy configuration.";
1016
+ readonly long: "Allows users to specify proxy configuration for the entire Compass application.";
1017
+ };
1018
+ }, {
1019
+ readonly name: "showDisabledConnections";
1020
+ readonly stage: "released";
1021
+ readonly atlasCloudFeatureFlagName: null;
1022
+ readonly description: {
1023
+ readonly short: "Show clusters that are not in a \"connectable\" state in Atlas Cloud";
1024
+ };
1025
+ }, {
1026
+ readonly name: "enableRollingIndexes";
1027
+ readonly stage: "released";
1028
+ readonly atlasCloudFeatureFlagName: null;
1029
+ readonly description: {
1030
+ readonly short: "Enable creating indexes with the rolling build in Atlas Cloud";
1031
+ };
1032
+ }, {
1033
+ readonly name: "enableGlobalWrites";
1034
+ readonly stage: "released";
1035
+ readonly atlasCloudFeatureFlagName: null;
1036
+ readonly description: {
1037
+ readonly short: "Enable Global Writes tab in Atlas Cloud";
1038
+ };
1039
+ }, {
1040
+ readonly name: "enableExportSchema";
1041
+ readonly stage: "released";
1042
+ readonly atlasCloudFeatureFlagName: null;
1043
+ readonly description: {
1044
+ readonly short: "Enable schema export";
1045
+ };
1046
+ }, {
1047
+ readonly name: "enableDataModeling";
1048
+ readonly stage: "development";
1049
+ readonly atlasCloudFeatureFlagName: "DATA_EXPLORER_COMPASS_WEB_ENABLE_DATA_MODELING";
1050
+ readonly description: {
1051
+ readonly short: "Design, Visualize, and Evolve your Data Model";
1052
+ };
1053
+ }, {
1054
+ readonly name: "enableIndexesGuidanceExp";
1055
+ readonly stage: "development";
1056
+ readonly atlasCloudFeatureFlagName: null;
1057
+ readonly description: {
1058
+ readonly short: "Enable Indexes Guidance Experiment";
1059
+ };
1060
+ }, {
1061
+ readonly name: "showIndexesGuidanceVariant";
1062
+ readonly stage: "development";
1063
+ readonly atlasCloudFeatureFlagName: null;
1064
+ readonly description: {
1065
+ readonly short: "Used to check if user is in the Indexes Guidance Experiment Variant";
1066
+ };
1067
+ }, {
1068
+ readonly name: "enableContextMenus";
1069
+ readonly stage: "released";
1070
+ readonly atlasCloudFeatureFlagName: null;
1071
+ readonly description: {
1072
+ readonly short: "Enable context (right-click) menus";
1073
+ };
1074
+ }, {
1075
+ readonly name: "enableUnauthenticatedGenAI";
1076
+ readonly stage: "released";
1077
+ readonly atlasCloudFeatureFlagName: null;
1078
+ readonly description: {
1079
+ readonly short: "Enable GenAI for unauthenticated users";
1080
+ };
1081
+ }, {
1082
+ readonly name: "enableSearchActivationProgramP1";
1083
+ readonly stage: "development";
1084
+ readonly atlasCloudFeatureFlagName: null;
1085
+ readonly description: {
1086
+ readonly short: "Enable interface to view and modify search indexes";
1087
+ };
1088
+ }, {
1089
+ readonly name: "enableAIAssistant";
1090
+ readonly stage: "released";
1091
+ readonly atlasCloudFeatureFlagName: null;
1092
+ readonly description: {
1093
+ readonly short: "Enable AI Assistant";
1094
+ };
1095
+ }, {
1096
+ readonly name: "enablePerformanceInsightsEntrypoints";
1097
+ readonly stage: "development";
1098
+ readonly atlasCloudFeatureFlagName: null;
1099
+ readonly description: {
1100
+ readonly short: "Enable the performance insights AI Assistant entrypoints";
1101
+ };
1102
+ }, {
1103
+ readonly name: "enableAutomaticRelationshipInference";
1104
+ readonly stage: "released";
1105
+ readonly atlasCloudFeatureFlagName: null;
1106
+ readonly description: {
1107
+ readonly short: "Enable automatic relationship inference during data model generation";
1108
+ };
1109
+ }];
1110
+
1111
+ declare type FeatureFlagDefinitions = typeof FEATURE_FLAG_DEFINITIONS;
1112
+
1113
+ declare type FeatureFlags = Record<FeatureFlagDefinitions[number]['name'], boolean>;
989
1114
 
990
1115
  declare type GetAssignmentFn = (experimentName: ExperimentTestName, trackIsInSample: boolean, options?: types.GetAssignmentOptions<types.TypeData>) => Promise<types.SDKAssignment<ExperimentTestName, string> | null>;
991
1116