Comparing version 1.0.2 to 1.0.3
@@ -8,4 +8,2 @@ Object.defineProperty(exports, "__esModule", { | ||
var _tsfn = require("tsfn"); | ||
var isBoolean = function isBoolean(arg) { | ||
@@ -76,3 +74,3 @@ return arg.startsWith('is') || arg.startsWith('has') || arg.startsWith('should'); | ||
return (0, _tsfn.getObjectKeys)(componentConfig.children); | ||
return Object.keys(componentConfig.children); | ||
}; | ||
@@ -79,0 +77,0 @@ |
@@ -64,2 +64,8 @@ Object.defineProperty(exports, "__esModule", { | ||
}); | ||
Object.defineProperty(exports, "TCommonComponentConfig", { | ||
enumerable: true, | ||
get: function get() { | ||
return _types.TCommonComponentConfig; | ||
} | ||
}); | ||
@@ -66,0 +72,0 @@ var _createChildren = require("./create-children"); |
@@ -10,4 +10,2 @@ "use strict"; | ||
var _tsfn = require("tsfn"); | ||
const isBoolean = arg => { | ||
@@ -78,5 +76,5 @@ return arg.startsWith('is') || arg.startsWith('has') || arg.startsWith('should'); | ||
return (0, _tsfn.getObjectKeys)(componentConfig.children); | ||
return Object.keys(componentConfig.children); | ||
}; | ||
exports.getChildrenKeys = getChildrenKeys; |
@@ -66,2 +66,8 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "TCommonComponentConfig", { | ||
enumerable: true, | ||
get: function () { | ||
return _types.TCommonComponentConfig; | ||
} | ||
}); | ||
@@ -68,0 +74,0 @@ var _createChildren = require("./create-children"); |
{ | ||
"name": "autoprops", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "", | ||
@@ -18,6 +18,6 @@ "keywords": [], | ||
"big-integer": "^1.6.44", | ||
"iterama": "^0.2.0", | ||
"iterama": "^0.2.2", | ||
"jssha": "^3.0.0", | ||
"tsfn": "^1.1.1" | ||
"tsfn": "^1.1.2" | ||
} | ||
} |
import BigInt from 'big-integer'; | ||
import { TMutexConfig } from './types'; | ||
export declare const applyDisableMutexes: (values: BigInt.BigInteger[], propName: string, propKeys: readonly string[], childrenKeys: readonly string[], mutexConfig: TMutexConfig<any, string>) => void; | ||
import { TCommonMutexConfig } from './types'; | ||
export declare const applyDisableMutexes: (values: BigInt.BigInteger[], propName: string, propKeys: readonly string[], childrenKeys: readonly string[], mutexConfig: TCommonMutexConfig) => void; |
import BigInt from 'big-integer'; | ||
import { TMutinConfig } from './types'; | ||
export declare const applyDisableMutins: (values: BigInt.BigInteger[], propName: string, propKeys: readonly string[], childrenKeys: readonly string[], mutinConfig: TMutinConfig<any, string>) => void; | ||
import { TCommonMutinConfig } from './types'; | ||
export declare const applyDisableMutins: (values: BigInt.BigInteger[], propName: string, propKeys: readonly string[], childrenKeys: readonly string[], mutinConfig: TCommonMutinConfig) => void; |
import BigInt from 'big-integer'; | ||
import { TMutinConfig, TRequiredConfig } from './types'; | ||
export declare const applyEnableMutins: (values: BigInt.BigInteger[], propName: string, propKeys: readonly string[], childrenKeys: readonly string[], mutinConfig: TMutinConfig<any, string>, requiredConfig?: TRequiredConfig<any, string> | undefined) => void; | ||
import { TCommonMutinConfig, TCommonRequiredConfig } from './types'; | ||
export declare const applyEnableMutins: (values: BigInt.BigInteger[], propName: string, propKeys: readonly string[], childrenKeys: readonly string[], mutinConfig: TCommonMutinConfig, requiredConfig?: TCommonRequiredConfig | undefined) => void; |
@@ -1,2 +0,2 @@ | ||
import { TComponentConfig } from './types'; | ||
export declare const applyPropValue: (componentConfig: TComponentConfig<any, string>, intStr: string, propPath: string[], propValue: any) => string; | ||
import { TCommonComponentConfig } from './types'; | ||
export declare const applyPropValue: (componentConfig: TCommonComponentConfig, intStr: string, propPath: string[], propValue: any) => string; |
import { BigInteger } from 'big-integer'; | ||
import { TMutexConfig } from './types'; | ||
export declare const checkRestrictionMutex: (values: readonly BigInteger[], propKeys: readonly string[], childrenKeys: readonly string[], mutexGroups: TMutexConfig<any, string>) => boolean; | ||
import { TCommonMutexConfig } from './types'; | ||
export declare const checkRestrictionMutex: (values: readonly BigInteger[], propKeys: readonly string[], childrenKeys: readonly string[], mutexGroups: TCommonMutexConfig) => boolean; |
import { BigInteger } from 'big-integer'; | ||
import { TMutinConfig } from './types'; | ||
export declare const checkRestrictionMutin: (values: readonly BigInteger[], propKeys: readonly string[], childrenKeys: readonly string[], mutinGroups: TMutinConfig<any, string>) => number; | ||
import { TCommonMutinConfig } from './types'; | ||
export declare const checkRestrictionMutin: (values: readonly BigInteger[], propKeys: readonly string[], childrenKeys: readonly string[], mutinGroups: TCommonMutinConfig) => number; |
import { ReactElement } from 'react'; | ||
import { TChildrenMap, TComponentConfig } from './types'; | ||
export declare const createChildren: <ChildrenKeys extends string>(componentConfig: TComponentConfig<any, ChildrenKeys>, childrenMap: TChildrenMap<ChildrenKeys>) => ReactElement<any, string | ((props: any) => ReactElement<any, string | any | (new (props: any) => import("react").Component<any, any, any>)> | null) | (new (props: any) => import("react").Component<any, any, any>)> | ReactElement<any, string | ((props: any) => ReactElement<any, string | any | (new (props: any) => import("react").Component<any, any, any>)> | null) | (new (props: any) => import("react").Component<any, any, any>)>[]; | ||
import { TChildrenMap, TCommonComponentConfig } from './types'; | ||
export declare const createChildren: (componentConfig: TCommonComponentConfig, childrenMap: TChildrenMap) => ReactElement<any, string | ((props: any) => ReactElement<any, string | any | (new (props: any) => import("react").Component<any, any, any>)> | null) | (new (props: any) => import("react").Component<any, any, any>)> | ReactElement<any, string | ((props: any) => ReactElement<any, string | any | (new (props: any) => import("react").Component<any, any, any>)> | null) | (new (props: any) => import("react").Component<any, any, any>)>[]; |
import { TAnyObject } from 'tsfn'; | ||
import { TComponentConfig } from './types'; | ||
import { TCommonComponentConfig } from './types'; | ||
export declare const getPropKeys: (props: TAnyObject) => string[]; | ||
export declare const getChildrenKeys: <ChildrenKeys extends string>(componentConfig: TComponentConfig<any, ChildrenKeys>) => ChildrenKeys[]; | ||
export declare const getChildrenKeys: (componentConfig: TCommonComponentConfig) => string[]; |
import BigInt from 'big-integer'; | ||
import { TComponentConfig, TRequiredConfig } from './types'; | ||
export declare const getValuesLength: (length: BigInt.BigInteger, key: string, required?: TRequiredConfig<any, string> | undefined) => BigInt.BigInteger; | ||
export declare const getLength: (componentConfig: TComponentConfig<any, string>) => BigInt.BigInteger; | ||
import { TCommonComponentConfig, TCommonRequiredConfig } from './types'; | ||
export declare const getValuesLength: (length: BigInt.BigInteger, key: string, required?: TCommonRequiredConfig | undefined) => BigInt.BigInteger; | ||
export declare const getLength: (componentConfig: TCommonComponentConfig) => BigInt.BigInteger; |
import BigInt from 'big-integer'; | ||
import { TComponentConfig } from './types'; | ||
export declare const getNextPermImpl: (componentConfig: TComponentConfig<any, string>, int: BigInt.BigInteger) => BigInt.BigInteger | null; | ||
export declare const getNextPerm: (componentConfig: TComponentConfig<any, string>, intStr: string) => string | null; | ||
import { TCommonComponentConfig } from './types'; | ||
export declare const getNextPermImpl: (componentConfig: TCommonComponentConfig, int: BigInt.BigInteger) => BigInt.BigInteger | null; | ||
export declare const getNextPerm: (componentConfig: TCommonComponentConfig, intStr: string) => string | null; |
@@ -1,2 +0,2 @@ | ||
import { TComponentConfig } from './types'; | ||
export declare const getNumPerms: (componentConfig: TComponentConfig<any, string>) => number; | ||
import { TCommonComponentConfig } from './types'; | ||
export declare const getNumPerms: (componentConfig: TCommonComponentConfig) => number; |
import { TAnyObject } from 'tsfn'; | ||
import BigInt from 'big-integer'; | ||
import { TComponentConfig } from './types'; | ||
export declare const getPropsImpl: (componentConfig: TComponentConfig<any, string>, int: BigInt.BigInteger) => TAnyObject; | ||
export declare const getProps: (componentConfig: TComponentConfig<any, string>, intStr: string) => TAnyObject; | ||
import { TCommonComponentConfig } from './types'; | ||
export declare const getPropsImpl: (componentConfig: TCommonComponentConfig, int: BigInt.BigInteger) => TAnyObject; | ||
export declare const getProps: (componentConfig: TCommonComponentConfig, intStr: string) => TAnyObject; |
@@ -8,2 +8,2 @@ export { createChildren } from './create-children'; | ||
export { getChildrenKeys } from './get-keys'; | ||
export { TChildrenMap, TComponentConfig } from './types'; | ||
export { TChildrenMap, TComponentConfig, TCommonComponentConfig } from './types'; |
import { TChildrenMap } from './types'; | ||
export declare const isChildrenMap: (children: any) => children is TChildrenMap<string>; | ||
export declare const isChildrenMap: (children: any) => children is TChildrenMap; |
import BigInt from 'big-integer'; | ||
import { TComponentConfig } from './types'; | ||
export declare const serializeProps: (componentConfig: TComponentConfig<any, string>, int: BigInt.BigInteger) => string; | ||
import { TCommonComponentConfig } from './types'; | ||
export declare const serializeProps: (componentConfig: TCommonComponentConfig, int: BigInt.BigInteger) => string; |
import { FC } from 'react'; | ||
import { TAnyObject, TKeyOf, TRequiredKeys, TOptionalKeys } from 'tsfn'; | ||
import { BigInteger } from 'big-integer'; | ||
export declare type TRequiredConfig<TProps = any, TChildrenKeys extends string = string> = readonly (TRequiredKeys<TProps> | TChildrenKeys)[]; | ||
export declare type TMutexConfig<TProps = any, TChildrenKeys extends string = string> = readonly (readonly (TKeyOf<TProps> | TChildrenKeys)[])[]; | ||
export declare type TMutinConfig<TProps = any, TChildrenKeys extends string = string> = readonly (readonly (TKeyOf<TProps> | TChildrenKeys)[])[]; | ||
export declare type TComponentConfig<TProps = any, TChildrenKeys extends string = string> = { | ||
export declare type TCommonRequiredConfig = readonly string[]; | ||
export declare type TCommonMutexConfig = readonly (readonly string[])[]; | ||
export declare type TCommonMutinConfig = readonly (readonly string[])[]; | ||
export declare type TCommonComponentConfig = { | ||
readonly props: { | ||
readonly [k in Exclude<TRequiredKeys<TProps>, 'children'>]: readonly TProps[k][]; | ||
readonly [K: string]: (readonly any[]) | undefined; | ||
}; | ||
readonly children?: { | ||
readonly [K: string]: { | ||
readonly Component: FC<any>; | ||
readonly config: TCommonComponentConfig; | ||
}; | ||
}; | ||
readonly required?: readonly string[]; | ||
readonly mutex?: readonly (readonly string[])[]; | ||
readonly mutin?: readonly (readonly string[])[]; | ||
}; | ||
export declare type TComponentConfig<TProps, TChildrenKeys extends string = never> = { | ||
readonly props: { | ||
readonly [K in Exclude<TRequiredKeys<TProps>, 'children'>]: readonly TProps[K][]; | ||
} & { | ||
readonly [k in TOptionalKeys<TProps> | Extract<keyof TProps, 'children'>]?: readonly (Exclude<TProps[k], undefined>)[]; | ||
readonly [K in TOptionalKeys<TProps> | Extract<keyof TProps, 'children'>]?: readonly (Exclude<TProps[K], undefined>)[]; | ||
}; | ||
@@ -16,11 +30,11 @@ readonly children?: { | ||
readonly Component: FC<any>; | ||
readonly config: TComponentConfig; | ||
readonly config: TCommonComponentConfig; | ||
}; | ||
}; | ||
readonly required?: TRequiredConfig<TProps, TChildrenKeys>; | ||
readonly mutex?: TMutexConfig<TProps, TChildrenKeys>; | ||
readonly mutin?: TMutinConfig<TProps, TChildrenKeys>; | ||
readonly required?: readonly (TRequiredKeys<TProps> | TChildrenKeys)[]; | ||
readonly mutex?: readonly (readonly (TKeyOf<TProps> | TChildrenKeys)[])[]; | ||
readonly mutin?: readonly (readonly (TKeyOf<TProps> | TChildrenKeys)[])[]; | ||
}; | ||
export declare type TChildrenMap<TChildrenKeys extends string = string> = { | ||
readonly [K in TChildrenKeys]?: Readonly<TAnyObject>; | ||
export declare type TChildrenMap = { | ||
readonly [K: string]: (Readonly<TAnyObject>) | undefined; | ||
}; | ||
@@ -27,0 +41,0 @@ export declare type Permutation = Readonly<{ |
import BigInt from 'big-integer'; | ||
import { TComponentConfig } from './types'; | ||
export declare const unpackPerm: (componentConfig: TComponentConfig<any, string>, int: BigInt.BigInteger) => Readonly<{ | ||
import { TCommonComponentConfig } from './types'; | ||
export declare const unpackPerm: (componentConfig: TCommonComponentConfig, int: BigInt.BigInteger) => Readonly<{ | ||
values: BigInt.BigInteger[]; | ||
@@ -5,0 +5,0 @@ length: readonly BigInt.BigInteger[]; |
import { isUndefined } from 'util'; | ||
import { getObjectKeys } from 'tsfn'; | ||
@@ -66,4 +65,4 @@ var isBoolean = function isBoolean(arg) { | ||
return getObjectKeys(componentConfig.children); | ||
return Object.keys(componentConfig.children); | ||
}; | ||
//# sourceMappingURL=get-keys.js.map |
@@ -8,3 +8,3 @@ export { createChildren } from './create-children'; | ||
export { getChildrenKeys } from './get-keys'; | ||
export { TChildrenMap, TComponentConfig } from './types'; | ||
export { TChildrenMap, TComponentConfig, TCommonComponentConfig } from './types'; | ||
//# sourceMappingURL=index.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
263242
147
2903
0
2
Updatediterama@^0.2.2
Updatedtsfn@^1.1.2