@atlaskit/tmp-editor-statsig 2.0.1 → 2.1.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/editor-statsig-tmp
2
2
 
3
+ ## 2.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#136054](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/136054)
8
+ [`9887c32fede77`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9887c32fede77) -
9
+ EDF-1449 Fix floating toolbar experiment
10
+
3
11
  ## 2.0.1
4
12
 
5
13
  ### Patch Changes
@@ -63,9 +63,9 @@ var editorExperimentsConfig = exports.editorExperimentsConfig = {
63
63
  productKeys: {
64
64
  confluence: 'platform_editor_ai_condensed_floating_toobar'
65
65
  },
66
- param: 'isEnabled',
67
- typeGuard: isBoolean,
68
- defaultValue: false
66
+ param: 'cohort',
67
+ typeGuard: oneOf(['control', 'dropdown', 'editor_ai_button']),
68
+ defaultValue: 'control'
69
69
  },
70
70
  // Added 2024-08-27
71
71
  'dnd-input-performance-optimisation': {
@@ -57,9 +57,9 @@ export const editorExperimentsConfig = {
57
57
  productKeys: {
58
58
  confluence: 'platform_editor_ai_condensed_floating_toobar'
59
59
  },
60
- param: 'isEnabled',
61
- typeGuard: isBoolean,
62
- defaultValue: false
60
+ param: 'cohort',
61
+ typeGuard: oneOf(['control', 'dropdown', 'editor_ai_button']),
62
+ defaultValue: 'control'
63
63
  },
64
64
  // Added 2024-08-27
65
65
  'dnd-input-performance-optimisation': {
@@ -57,9 +57,9 @@ export var editorExperimentsConfig = {
57
57
  productKeys: {
58
58
  confluence: 'platform_editor_ai_condensed_floating_toobar'
59
59
  },
60
- param: 'isEnabled',
61
- typeGuard: isBoolean,
62
- defaultValue: false
60
+ param: 'cohort',
61
+ typeGuard: oneOf(['control', 'dropdown', 'editor_ai_button']),
62
+ defaultValue: 'control'
63
63
  },
64
64
  // Added 2024-08-27
65
65
  'dnd-input-performance-optimisation': {
@@ -44,8 +44,8 @@ export declare const editorExperimentsConfig: {
44
44
  confluence: string;
45
45
  };
46
46
  param: string;
47
- typeGuard: typeof isBoolean;
48
- defaultValue: boolean;
47
+ typeGuard: (value: unknown) => value is "control" | "dropdown" | "editor_ai_button";
48
+ defaultValue: "control" | "dropdown" | "editor_ai_button";
49
49
  };
50
50
  'dnd-input-performance-optimisation': {
51
51
  productKeys: {
@@ -7,7 +7,7 @@ export declare let _overrides: Partial<{
7
7
  'example-multivariate': "one" | "two" | "three";
8
8
  'test-new-experiments-package': boolean;
9
9
  'basic-text-transformations': boolean;
10
- 'platform-editor-ai-condensed-floating-toobar': boolean;
10
+ 'platform-editor-ai-condensed-floating-toobar': "control" | "dropdown" | "editor_ai_button";
11
11
  'dnd-input-performance-optimisation': boolean;
12
12
  'element-level-templates': boolean;
13
13
  'nested-dnd': boolean;
@@ -44,8 +44,8 @@ export declare const editorExperimentsConfig: {
44
44
  confluence: string;
45
45
  };
46
46
  param: string;
47
- typeGuard: typeof isBoolean;
48
- defaultValue: boolean;
47
+ typeGuard: (value: unknown) => value is "control" | "dropdown" | "editor_ai_button";
48
+ defaultValue: "control" | "dropdown" | "editor_ai_button";
49
49
  };
50
50
  'dnd-input-performance-optimisation': {
51
51
  productKeys: {
@@ -7,7 +7,7 @@ export declare let _overrides: Partial<{
7
7
  'example-multivariate': "one" | "two" | "three";
8
8
  'test-new-experiments-package': boolean;
9
9
  'basic-text-transformations': boolean;
10
- 'platform-editor-ai-condensed-floating-toobar': boolean;
10
+ 'platform-editor-ai-condensed-floating-toobar': "control" | "dropdown" | "editor_ai_button";
11
11
  'dnd-input-performance-optimisation': boolean;
12
12
  'element-level-templates': boolean;
13
13
  'nested-dnd': boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tmp-editor-statsig",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "description": "Temp plugin to ease use of statsig feature flags until platform feature flags are available",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",