@kestra-io/ui-libs 0.0.18 → 0.0.19
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/package.json +1 -1
- package/src/utils/YamlUtils.js +1 -1
- package/src/utils/global.js +3 -3
package/package.json
CHANGED
package/src/utils/YamlUtils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import JsYaml from "js-yaml";
|
|
2
2
|
import yaml, {Document, YAMLMap, isSeq, isMap, Pair, Scalar, YAMLSeq, LineCounter} from "yaml";
|
|
3
|
-
import {cloneDeep} from "lodash/cloneDeep"
|
|
3
|
+
import {cloneDeep} from "lodash/cloneDeep.js"
|
|
4
4
|
import {SECTIONS} from "./constants.js";
|
|
5
5
|
|
|
6
6
|
const TOSTRING_OPTIONS = {lineWidth: 0};
|
package/src/utils/global.js
CHANGED
|
@@ -15,9 +15,9 @@ String.prototype.hashCode = function () {
|
|
|
15
15
|
return hash + "";
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
export const cssVariable = (name) => {
|
|
18
19
|
const root = document.querySelector(":root");
|
|
19
20
|
const rootStyle = getComputedStyle(root);
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
22
|
+
return rootStyle.getPropertyValue(name);
|
|
23
|
+
}
|