@equinor/cpl-feature-flag-react 2.0.10 → 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/dist/index.js CHANGED
@@ -193,7 +193,7 @@ function DevPanelPure({
193
193
  return Object.keys(featureFlagConfig);
194
194
  }, [featureFlagConfig]);
195
195
  const currentEnvironment = useCurrentEnvironment();
196
- if (!currentEnvironment || currentEnvironment !== "dev") {
196
+ if (!currentEnvironment || !["dev", "local"].includes(currentEnvironment)) {
197
197
  return null;
198
198
  }
199
199
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_eds_core_react2.EdsProvider, { density: "compact", children: [
package/dist/index.mjs CHANGED
@@ -157,7 +157,7 @@ function DevPanelPure({
157
157
  return Object.keys(featureFlagConfig);
158
158
  }, [featureFlagConfig]);
159
159
  const currentEnvironment = useCurrentEnvironment();
160
- if (!currentEnvironment || currentEnvironment !== "dev") {
160
+ if (!currentEnvironment || !["dev", "local"].includes(currentEnvironment)) {
161
161
  return null;
162
162
  }
163
163
  return /* @__PURE__ */ jsx3(Fragment, { children: /* @__PURE__ */ jsxs(EdsProvider, { density: "compact", children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/cpl-feature-flag-react",
3
- "version": "2.0.10",
3
+ "version": "2.1.0",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",