@intlayer/editor 8.6.1 → 8.6.3

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.
@@ -4,7 +4,8 @@ let _intlayer_config_built = require("@intlayer/config/built");
4
4
  _intlayer_config_built = require_runtime.__toESM(_intlayer_config_built);
5
5
 
6
6
  //#region src/isEnabled.ts
7
- const isEnabled = process.env.INTLAYER_EDITOR_ENABLED !== "false" && _intlayer_config_built.default.editor?.enabled && typeof window !== "undefined" && window.self !== window.top;
7
+ const TREE_SHAKE_EDITOR = process.env["INTLAYER_EDITOR_ENABLED"] === "false";
8
+ const isEnabled = !TREE_SHAKE_EDITOR && _intlayer_config_built.default.editor?.enabled && typeof window !== "undefined" && window.self !== window.top;
8
9
 
9
10
  //#endregion
10
11
  exports.isEnabled = isEnabled;
@@ -1 +1 @@
1
- {"version":3,"file":"isEnabled.cjs","names":["configuration"],"sources":["../../src/isEnabled.ts"],"sourcesContent":["import configuration from '@intlayer/config/built';\n\nexport const isEnabled =\n process.env.INTLAYER_EDITOR_ENABLED !== 'false' && // Allow purging a build time using bundler + env var\n configuration.editor?.enabled && // Editor enabled in config\n typeof window !== 'undefined' && // Client side\n window.self !== window.top; // Is in iframe\n"],"mappings":";;;;;;AAEA,MAAa,YACX,QAAQ,IAAI,4BAA4B,WACxCA,+BAAc,QAAQ,WACtB,OAAO,WAAW,eAClB,OAAO,SAAS,OAAO"}
1
+ {"version":3,"file":"isEnabled.cjs","names":["configuration"],"sources":["../../src/isEnabled.ts"],"sourcesContent":["import configuration from '@intlayer/config/built';\n\nconst TREE_SHAKE_EDITOR = process.env['INTLAYER_EDITOR_ENABLED'] === 'false';\n\nexport const isEnabled =\n !TREE_SHAKE_EDITOR && // Allow purging a build time using bundler + env var\n configuration.editor?.enabled && // Editor enabled in config\n typeof window !== 'undefined' && // Client side\n window.self !== window.top; // Is in iframe\n"],"mappings":";;;;;;AAEA,MAAM,oBAAoB,QAAQ,IAAI,+BAA+B;AAErE,MAAa,YACX,CAAC,qBACDA,+BAAc,QAAQ,WACtB,OAAO,WAAW,eAClB,OAAO,SAAS,OAAO"}
@@ -1,7 +1,8 @@
1
1
  import configuration from "@intlayer/config/built";
2
2
 
3
3
  //#region src/isEnabled.ts
4
- const isEnabled = process.env.INTLAYER_EDITOR_ENABLED !== "false" && configuration.editor?.enabled && typeof window !== "undefined" && window.self !== window.top;
4
+ const TREE_SHAKE_EDITOR = process.env["INTLAYER_EDITOR_ENABLED"] === "false";
5
+ const isEnabled = !TREE_SHAKE_EDITOR && configuration.editor?.enabled && typeof window !== "undefined" && window.self !== window.top;
5
6
 
6
7
  //#endregion
7
8
  export { isEnabled };
@@ -1 +1 @@
1
- {"version":3,"file":"isEnabled.mjs","names":[],"sources":["../../src/isEnabled.ts"],"sourcesContent":["import configuration from '@intlayer/config/built';\n\nexport const isEnabled =\n process.env.INTLAYER_EDITOR_ENABLED !== 'false' && // Allow purging a build time using bundler + env var\n configuration.editor?.enabled && // Editor enabled in config\n typeof window !== 'undefined' && // Client side\n window.self !== window.top; // Is in iframe\n"],"mappings":";;;AAEA,MAAa,YACX,QAAQ,IAAI,4BAA4B,WACxC,cAAc,QAAQ,WACtB,OAAO,WAAW,eAClB,OAAO,SAAS,OAAO"}
1
+ {"version":3,"file":"isEnabled.mjs","names":[],"sources":["../../src/isEnabled.ts"],"sourcesContent":["import configuration from '@intlayer/config/built';\n\nconst TREE_SHAKE_EDITOR = process.env['INTLAYER_EDITOR_ENABLED'] === 'false';\n\nexport const isEnabled =\n !TREE_SHAKE_EDITOR && // Allow purging a build time using bundler + env var\n configuration.editor?.enabled && // Editor enabled in config\n typeof window !== 'undefined' && // Client side\n window.self !== window.top; // Is in iframe\n"],"mappings":";;;AAEA,MAAM,oBAAoB,QAAQ,IAAI,+BAA+B;AAErE,MAAa,YACX,CAAC,qBACD,cAAc,QAAQ,WACtB,OAAO,WAAW,eAClB,OAAO,SAAS,OAAO"}
@@ -1 +1 @@
1
- {"version":3,"file":"isEnabled.d.ts","names":[],"sources":["../../src/isEnabled.ts"],"mappings":";cAEa,SAAA"}
1
+ {"version":3,"file":"isEnabled.d.ts","names":[],"sources":["../../src/isEnabled.ts"],"mappings":";cAIa,SAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/editor",
3
- "version": "8.6.1",
3
+ "version": "8.6.3",
4
4
  "private": false,
5
5
  "description": "Provides the utilities to interface the application with the Intlayer editor and manipulate dictionaries",
6
6
  "keywords": [
@@ -75,10 +75,10 @@
75
75
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
76
76
  },
77
77
  "dependencies": {
78
- "@intlayer/config": "8.6.1",
79
- "@intlayer/core": "8.6.1",
80
- "@intlayer/types": "8.6.1",
81
- "@intlayer/unmerged-dictionaries-entry": "8.6.1",
78
+ "@intlayer/config": "8.6.3",
79
+ "@intlayer/core": "8.6.3",
80
+ "@intlayer/types": "8.6.3",
81
+ "@intlayer/unmerged-dictionaries-entry": "8.6.3",
82
82
  "lit": "^3.3.2"
83
83
  },
84
84
  "devDependencies": {