@mongodb-js/compass-web 0.31.0 → 0.32.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.
@@ -1,13 +1,12 @@
1
1
  [
2
2
  "compass-web.mjs",
3
3
  "index-bde52cb3.0f5ab0c9a2dfc578bd9d.mjs",
4
- "273.f8171afff21603205990.mjs",
5
- "423.45723618046344488182.mjs",
6
- "10.1f1a54d3a40efd8c2017.mjs",
4
+ "651.0fd082f957775274f3cb.mjs",
5
+ "955.d2cd8c12c1697a9c2d41.mjs",
6
+ "638.dc747e993cad73ab20a0.mjs",
7
+ "170.0c7c13457f8ab6403681.mjs",
7
8
  "17.362fcb811ee2ff871d32.mjs",
8
9
  "427.ea0869d385dd7ebc1ee3.mjs",
9
10
  "752.be311c1a6bd153169544.mjs",
10
- "887.a7a72716c079e9aa117e.mjs",
11
- "414.1038db81de0771ae4f6c.mjs",
12
- "276.30ea2a26f486be6e78b1.mjs"
11
+ "285.2ddf9e15aaf11bb22b0e.mjs"
13
12
  ]
@@ -45,7 +45,7 @@ declare type AssignByPointsOptions<LoggerTeam> = BasicAPICallingFunctionOptions<
45
45
  useV3Assignment?: boolean;
46
46
  };
47
47
 
48
- declare type AssignExperimentFn = (experimentName: ExperimentTestName_2, options?: types.AssignOptions<string>) => Promise<types.AsyncStatus | null>;
48
+ declare type AssignExperimentFn = (experimentName: ExperimentTestName, options?: types.AssignOptions<string>) => Promise<types.AsyncStatus | null>;
49
49
 
50
50
  /**
51
51
  * Entity assignment data. Used in {@link SDKAssignment}, {@link SDKGhostAssignment}, and {@link SDKGenericAssignment}
@@ -1017,20 +1017,22 @@ declare interface ExperimentSDKContextType<T extends TypeData> {
1017
1017
  */
1018
1018
  declare type ExperimentSDKProviderProps<T extends TypeData> = React.PropsWithChildren<ExperimentSDKContextType<T>>;
1019
1019
 
1020
- export declare const ExperimentTestGroup: {
1020
+ export declare type ExperimentTestGroup = (typeof ExperimentTestGroups)[keyof typeof ExperimentTestGroups];
1021
+
1022
+ export declare const ExperimentTestGroups: {
1021
1023
  readonly mockDataGeneratorVariant: "mockDataGeneratorVariant";
1022
1024
  readonly mockDataGeneratorControl: "mockDataGeneratorControl";
1023
1025
  readonly atlasSkillsVariant: "atlasSkillsExperimentVariant";
1024
1026
  readonly atlasSkillsControl: "atlasSkillsExperimentControl";
1025
1027
  };
1026
1028
 
1027
- export declare const ExperimentTestName: {
1029
+ export declare type ExperimentTestName = (typeof ExperimentTestNames)[keyof typeof ExperimentTestNames];
1030
+
1031
+ export declare const ExperimentTestNames: {
1028
1032
  readonly mockDataGenerator: "MOCK_DATA_GENERATOR_20251001";
1029
1033
  readonly atlasSkills: "ATLAS_SKILLS_EXPERIMENT_20251007";
1030
1034
  };
1031
1035
 
1032
- declare type ExperimentTestName_2 = (typeof ExperimentTestName)[keyof typeof ExperimentTestName];
1033
-
1034
1036
  declare enum ExperimentViewedEventName {
1035
1037
  EXPERIMENT_VIEWED = "Experiment Viewed",
1036
1038
  EXPERIMENT_GHOSTVIEWED = "Experiment GhostViewed"
@@ -1145,13 +1147,6 @@ declare const FEATURE_FLAG_DEFINITIONS: readonly [{
1145
1147
  readonly description: {
1146
1148
  readonly short: "Enable AI Assistant";
1147
1149
  };
1148
- }, {
1149
- readonly name: "enablePerformanceInsightsEntrypoints";
1150
- readonly stage: "development";
1151
- readonly atlasCloudFeatureFlagName: null;
1152
- readonly description: {
1153
- readonly short: "Enable the performance insights AI Assistant entrypoints";
1154
- };
1155
1150
  }, {
1156
1151
  readonly name: "enableToolCalling";
1157
1152
  readonly stage: "development";
@@ -1186,7 +1181,7 @@ declare type FeatureFlagDefinitions = typeof FEATURE_FLAG_DEFINITIONS;
1186
1181
 
1187
1182
  declare type FeatureFlags = Record<FeatureFlagDefinitions[number]['name'], boolean>;
1188
1183
 
1189
- declare type GetAssignmentFn = (experimentName: ExperimentTestName_2, trackIsInSample: boolean, options?: types.GetAssignmentOptions<types.TypeData>) => Promise<types.SDKAssignment<ExperimentTestName_2, string> | null>;
1184
+ declare type GetAssignmentFn = (experimentName: ExperimentTestName, trackIsInSample: boolean, options?: types.GetAssignmentOptions<types.TypeData>) => Promise<types.SDKAssignment<ExperimentTestName, string> | null>;
1190
1185
 
1191
1186
  /**
1192
1187
  * Represents additional options for ExperimentSDK.getAssignments
@@ -1804,7 +1799,7 @@ declare interface Tracker<ExperimentViewedProps> {
1804
1799
  }
1805
1800
  }
1806
1801
 
1807
- declare type UseAssignmentHook = (experimentName: ExperimentTestName_2, trackIsInSample: boolean, options?: typesReact.UseAssignmentOptions<types.TypeData>) => typesReact.UseAssignmentResponse<types.TypeData>;
1802
+ declare type UseAssignmentHook = (experimentName: ExperimentTestName, trackIsInSample: boolean, options?: typesReact.UseAssignmentOptions<types.TypeData>) => typesReact.UseAssignmentResponse<types.TypeData>;
1808
1803
 
1809
1804
  /**
1810
1805
  * Additional options the useAssignment hook can take beyond the {@link GetAssignmentOptions} options.
@@ -1870,7 +1865,7 @@ declare interface Tracker<ExperimentViewedProps> {
1870
1865
 
1871
1866
  declare type UserPreferences = UserConfigurablePreferences & InternalUserPreferences & AtlasOrgPreferences & AtlasProjectPreferences;
1872
1867
 
1873
- declare type UseTrackInSampleHook = (experimentName: ExperimentTestName_2, shouldFireEvent?: boolean, customProperties?: types.TypeData['experimentViewedProps'], team?: types.TypeData['loggerTeam']) => typesReact.BasicHookResponse;
1868
+ declare type UseTrackInSampleHook = (experimentName: ExperimentTestName, shouldFireEvent?: boolean, customProperties?: types.TypeData['experimentViewedProps'], team?: types.TypeData['loggerTeam']) => typesReact.BasicHookResponse;
1874
1869
 
1875
1870
  /**
1876
1871
  * Config object passed into the {@link useTrackIsInSample} hook.