# @atlaskit/tmp-editor-statsig

> Temp plugin to ease use of statsig feature flags until platform feature flags are available

Latest version **200.0.0** (published 2026-09-18) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @atlaskit/tmp-editor-statsig
pnpm add @atlaskit/tmp-editor-statsig
yarn add @atlaskit/tmp-editor-statsig
bun add @atlaskit/tmp-editor-statsig
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 200.0.0 |
| Published | 2026-09-18 |
| First published | 2024-06-19 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 607.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Atlassian Pty Ltd |
| Maintainers | atlassianartifactteam |

## Links

- npm: https://www.npmjs.com/package/@atlaskit/tmp-editor-statsig
- Repository: https://bitbucket.org/atlassian/atlassian-frontend-monorepo
- Homepage: https://bitbucket.org/atlassian/atlassian-frontend-monorepo#readme
- Issues: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/issues
- npm.io page: https://npm.io/package/@atlaskit/tmp-editor-statsig

## Dependencies (4)

- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.0.0
- [@atlaskit/react-ufo](https://npm.io/package/@atlaskit/react-ufo.md) ^7.13.0
- [@atlaskit/feature-gate-js-client](https://npm.io/package/@atlaskit/feature-gate-js-client.md) ^6.0.0
- [@atlaskit/platform-feature-flags](https://npm.io/package/@atlaskit/platform-feature-flags.md) ^2.2.0

## Recent versions

- 200.0.0 (latest) — 2026-09-18
- 199.0.0 — 2026-09-17
- 198.0.0 — 2026-09-16
- 197.0.0 — 2026-09-16
- 196.0.0 — 2026-09-15
- 195.0.0 — 2026-09-15
- 194.0.0 — 2026-09-15
- 193.0.0 — 2026-09-14
- 192.0.0 — 2026-09-14
- 191.0.0 — 2026-09-14
- 190.0.0 — 2026-09-14
- 189.0.0 — 2026-09-14
- 188.0.0 — 2026-09-11
- 187.0.0 — 2026-09-10
- 186.0.0 — 2026-09-10
- … 806 more at https://npm.io/package/@atlaskit/tmp-editor-statsig/versions

## README

# @atlaskit/tmp-editor-statsig

Temp plugin to ease use of statsig feature flags until platform feature flags are available
Temp plugin to ease use of statsig experiment until a platform solution is available.

**Warning:** This is a temporary solution and will be removed once there is a platform solution for statsig experiments.

**Warning:** This requires per product setup via the \`setupEditorExperiments\` api (products without this setup will receive the
default value setup for experiments).

## Usage

### Experiments

All experiments must be registered in the \`editorExperimentsConfig\` object in the experiments.ts file.

Once they are registered, they can be accessed using the \`editorExperiment\` function from \`@atlaskit/tmp-editor-statsig/experiments\`.

#### Boolean experiments

```tsx
import { editorExperiment } from '@atlaskit/editor-statsig-tmp/experiments';

if (editorExperiment('editor_inline_comments_on_inline_nodes', true)) {
	// do something
} else {
 	// do something else
}
```

#### Multivariate experiments

```tsx
import { editorExperiment } from '@atlaskit/editor-statsig-tmp/experiments';

switch (true) {
	case editorExperiment('editor_new_control_variants', 'variant-one'): {
		// do something for variant one
		return
	}
	case editorExperiment('editor_new_control_variants', 'variant-two'): {
		// do something for variant two
		return
	}
	case editorExperiment('editor_new_control_variants', 'variant-three'): {
		// do something for variant three
		return
	}
}
`}


### Testing experiments

#### Atlaskit examples

Not yet supported.

#### Jest tests
##### Boolean experiments

```tsx
import { eeTest } from '@atlaskit/tmp-editor-statsig/editor-experiments-test-utils';

eeTest('example-boolean', {
	true: () => {
		expect(editorExperiment('example-boolean', true)).toBe(true);
	},
	false: () => {
		expect(editorExperiment('example-boolean', false)).toBe(false);
	},
});
```

##### Multivariate experiments

```tsx
import { eeTest } from '@atlaskit/tmp-editor-statsig/editor-experiments-test-utils';

eeTest('example-multivariate', {
	one: () => {
		expect(editorExperiment('example-boolean')).toBe('variant-one');
	},
	two: () => {
		expect(editorExperiment('example-boolean')).toBe('variant-two');
	},
	three: () => {
		expect(editorExperiment('example-boolean')).toBe('variant-three');
	},
});
```

#### Playwright tests

Editor Experiments are setup similar to platformFeatureFlags.

```tsx
test.use({
	adf: exampleAdf,
	platformFeatureFlags: {
		// ...
	},
	editorExperiments: {
		'example-boolean': true,
		'example-multivariate': 'variant',
	},
});
```

## Configuration

```tsx
import { setupEditorExperiments } from '@atlaskit/tmp-editor-statsig/experiments';

// Example confluence setup
setupEditorExperiments('confluence');

// Example dev util setup -- takes overrides as a second param (and otherwise defaults all experiments to their default values)
setupEditorExperiments('test', { 'example-boolean': true });
```tsx


## Usage

Detailed docs and example usage can be found
[here](https://atlaskit.atlassian.com/packages/editor/tmp-editor-feature-gate-js-client).

---
_Source: https://npm.io/package/@atlaskit/tmp-editor-statsig · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
