@intlayer/editor 8.6.1 → 8.6.2
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/cjs/isEnabled.cjs
CHANGED
|
@@ -2,9 +2,10 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2
2
|
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
3
3
|
let _intlayer_config_built = require("@intlayer/config/built");
|
|
4
4
|
_intlayer_config_built = require_runtime.__toESM(_intlayer_config_built);
|
|
5
|
+
let _intlayer_config_envVars = require("@intlayer/config/envVars");
|
|
5
6
|
|
|
6
7
|
//#region src/isEnabled.ts
|
|
7
|
-
const isEnabled =
|
|
8
|
+
const isEnabled = !_intlayer_config_envVars.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
|
|
1
|
+
{"version":3,"file":"isEnabled.cjs","names":["TREE_SHAKE_EDITOR","configuration"],"sources":["../../src/isEnabled.ts"],"sourcesContent":["import configuration from '@intlayer/config/built';\nimport { TREE_SHAKE_EDITOR } from '@intlayer/config/envVars';\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":";;;;;;;AAGA,MAAa,YACX,CAACA,8CACDC,+BAAc,QAAQ,WACtB,OAAO,WAAW,eAClB,OAAO,SAAS,OAAO"}
|
package/dist/esm/isEnabled.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import configuration from "@intlayer/config/built";
|
|
2
|
+
import { TREE_SHAKE_EDITOR } from "@intlayer/config/envVars";
|
|
2
3
|
|
|
3
4
|
//#region src/isEnabled.ts
|
|
4
|
-
const isEnabled =
|
|
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
|
|
1
|
+
{"version":3,"file":"isEnabled.mjs","names":[],"sources":["../../src/isEnabled.ts"],"sourcesContent":["import configuration from '@intlayer/config/built';\nimport { TREE_SHAKE_EDITOR } from '@intlayer/config/envVars';\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":";;;;AAGA,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":";
|
|
1
|
+
{"version":3,"file":"isEnabled.d.ts","names":[],"sources":["../../src/isEnabled.ts"],"mappings":";cAGa,SAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/editor",
|
|
3
|
-
"version": "8.6.
|
|
3
|
+
"version": "8.6.2",
|
|
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.
|
|
79
|
-
"@intlayer/core": "8.6.
|
|
80
|
-
"@intlayer/types": "8.6.
|
|
81
|
-
"@intlayer/unmerged-dictionaries-entry": "8.6.
|
|
78
|
+
"@intlayer/config": "8.6.2",
|
|
79
|
+
"@intlayer/core": "8.6.2",
|
|
80
|
+
"@intlayer/types": "8.6.2",
|
|
81
|
+
"@intlayer/unmerged-dictionaries-entry": "8.6.2",
|
|
82
82
|
"lit": "^3.3.2"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|