inferred-types 0.55.9 → 0.55.11
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/modules/inferred-types/dist/index.cjs +15 -3
- package/modules/inferred-types/dist/index.cjs.map +1 -1
- package/modules/inferred-types/dist/index.d.ts +275 -163
- package/modules/inferred-types/dist/index.js +13 -3
- package/modules/inferred-types/dist/index.js.map +1 -1
- package/modules/runtime/dist/index.cjs +18 -4
- package/modules/runtime/dist/index.cjs.map +1 -1
- package/modules/runtime/dist/index.d.ts +193 -73
- package/modules/runtime/dist/index.js +16 -4
- package/modules/runtime/dist/index.js.map +1 -1
- package/modules/types/dist/index.d.ts +81 -89
- package/package.json +1 -1
|
@@ -4743,14 +4743,16 @@ ${frameToCss(frames)}
|
|
|
4743
4743
|
}`
|
|
4744
4744
|
};
|
|
4745
4745
|
}
|
|
4746
|
-
function cssFromDefinition(defn,
|
|
4746
|
+
function cssFromDefinition(defn, opt) {
|
|
4747
|
+
const inline = isDefined(opt?.inline) ? opt.inline : true;
|
|
4748
|
+
const indent = isString(opt?.indent) ? opt.indent : "";
|
|
4747
4749
|
const nextDefn = inline ? " " : "\n";
|
|
4748
|
-
return Object.keys(defn).map((key) => `${indent}${key}: ${ensureTrailing(defn[key], ";")}
|
|
4750
|
+
return Object.keys(defn).map((key) => `${indent}${key}: ${ensureTrailing(defn[key], ";")}`).join(nextDefn);
|
|
4749
4751
|
}
|
|
4750
4752
|
function defineCss(defn) {
|
|
4751
4753
|
const fn2 = (selector) => {
|
|
4752
4754
|
return selector ? `${selector} {
|
|
4753
|
-
${cssFromDefinition(defn, " ")}}
|
|
4755
|
+
${cssFromDefinition(defn, { indent: " " })}}
|
|
4754
4756
|
` : cssFromDefinition(defn);
|
|
4755
4757
|
};
|
|
4756
4758
|
return createFnWithProps(
|
|
@@ -5117,6 +5119,9 @@ function createFixedLengthArray(content, quantity) {
|
|
|
5117
5119
|
return Array.from({ length: quantity }, () => content);
|
|
5118
5120
|
}
|
|
5119
5121
|
var filter = "NOT READY";
|
|
5122
|
+
function filterEmpty(...val) {
|
|
5123
|
+
return val.filter((i) => isNotEmpty(i));
|
|
5124
|
+
}
|
|
5120
5125
|
function find(list2, deref = null) {
|
|
5121
5126
|
return (comparator) => {
|
|
5122
5127
|
return list2.find((i) => {
|
|
@@ -6724,6 +6729,9 @@ function isEmail(val) {
|
|
|
6724
6729
|
function isEmpty(val) {
|
|
6725
6730
|
return isUndefined(val) || isNull(val) || isString(val) && val.length === 0 || isObject(val) && Object.keys(val).length === 0 || isArray(val) && val.length === 0;
|
|
6726
6731
|
}
|
|
6732
|
+
function isNotEmpty(val) {
|
|
6733
|
+
return !(isUndefined(val) || isNull(val) || isString(val) && val.length === 0 || isObject(val) && Object.keys(val).length === 0 || isArray(val) && (val?.length === 0 || val?.length === void 0));
|
|
6734
|
+
}
|
|
6727
6735
|
function isErrorCondition(value, kind = null) {
|
|
6728
6736
|
return isObject(value) && "__kind" in value && value.__kind === "ErrorCondition" && "kind" in value ? kind !== null ? value.kind === kind : true : false;
|
|
6729
6737
|
}
|
|
@@ -8084,6 +8092,7 @@ export {
|
|
|
8084
8092
|
entries,
|
|
8085
8093
|
errCondition,
|
|
8086
8094
|
filter,
|
|
8095
|
+
filterEmpty,
|
|
8087
8096
|
find,
|
|
8088
8097
|
fnMeta,
|
|
8089
8098
|
fromDefineObject,
|
|
@@ -8274,6 +8283,7 @@ export {
|
|
|
8274
8283
|
isNewsUrl,
|
|
8275
8284
|
isNikeUrl,
|
|
8276
8285
|
isNorwegianNewsUrl,
|
|
8286
|
+
isNotEmpty,
|
|
8277
8287
|
isNotNull,
|
|
8278
8288
|
isNothing,
|
|
8279
8289
|
isNull,
|