noodl-types
Advanced tools
Comparing version 1.0.28 to 1.0.30
@@ -23,1 +23,15 @@ import { PlainObject } from '../internalTypes'; | ||
export declare function isStr(v: unknown): v is string; | ||
export declare const Regex: { | ||
reference: { | ||
dot: { | ||
single: { | ||
root: RegExp; | ||
localRoot: RegExp; | ||
}; | ||
double: { | ||
root: RegExp; | ||
localRoot: RegExp; | ||
}; | ||
}; | ||
}; | ||
}; |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isStr = exports.isHtml = exports.isJs = exports.isJson = exports.isYml = exports.isVid = exports.isPdf = exports.isImg = exports.isObj = exports.isNil = exports.isBool = exports.isArr = exports.hasInAnyKeys = exports.hasAnyKeys = exports.hasMinimumKeys = exports.hasInAllKeys = exports.hasAllKeys = exports.hasKeyEqualTo = exports.hasKey = exports.exists = exports.excludeKeys = void 0; | ||
exports.Regex = exports.isStr = exports.isHtml = exports.isJs = exports.isJson = exports.isYml = exports.isVid = exports.isPdf = exports.isImg = exports.isObj = exports.isNil = exports.isBool = exports.isArr = exports.hasInAnyKeys = exports.hasAnyKeys = exports.hasMinimumKeys = exports.hasInAllKeys = exports.hasAllKeys = exports.hasKeyEqualTo = exports.hasKey = exports.exists = exports.excludeKeys = void 0; | ||
var lodash_get_1 = __importDefault(require("lodash.get")); | ||
@@ -116,2 +116,19 @@ var lodash_has_1 = __importDefault(require("lodash.has")); | ||
exports.isStr = isStr; | ||
exports.Regex = (function () { | ||
var o = { | ||
reference: { | ||
dot: { | ||
single: { | ||
root: /(^\.[A-Z])/, | ||
localRoot: /(^\.[a-z])/, | ||
}, | ||
double: { | ||
root: /(^\.\.[A-Z])/, | ||
localRoot: /(^\.\.[a-z])/, | ||
}, | ||
}, | ||
}, | ||
}; | ||
return o; | ||
})(); | ||
//# sourceMappingURL=utils.js.map |
@@ -91,3 +91,3 @@ import { ActionObject } from './actionTypes'; | ||
} | ||
export interface RegisterComponentObject extends ComponentObject, Pick<UncommonComponentObjectProps, 'emit' | 'onEvent'> { | ||
export interface RegisterComponentObject extends ComponentObject, Pick<UncommonComponentObjectProps, 'dataKey' | 'emit' | 'onEvent'> { | ||
type: 'register'; | ||
@@ -94,0 +94,0 @@ [key: string]: any; |
@@ -1,4 +0,5 @@ | ||
export declare type ActionType = 'builtIn' | 'evalObject' | 'pageJump' | 'popUp' | 'popUpDismiss' | 'refresh' | 'saveObject' | 'updateObject'; | ||
export declare type ComponentType = 'button' | 'divider' | 'footer' | 'header' | 'image' | 'label' | 'list' | 'listItem' | 'page' | 'plugin' | 'pluginHead' | 'pluginBodyTail' | 'popUp' | 'register' | 'select' | 'scrollView' | 'textField' | 'textView' | 'video' | 'view'; | ||
export declare type ContentType = 'countryCode' | 'email' | 'file' | 'formattedDate' | 'formattedDuration' | 'hidden' | 'listObject' | 'messageHidden' | 'number' | 'password' | 'passwordHidden' | 'phone' | 'phoneNumber' | 'tel' | 'text' | 'timer' | 'videoSubStream' | 'vidoeSubStream'; | ||
export declare type EventType = 'onClick' | 'onChange' | 'onHover' | 'onMouseEnter' | 'onMouseLeave' | 'onMouseOut' | 'onMouseOver'; | ||
import * as c from './constants'; | ||
export declare type ActionType = typeof c.actionTypes[number]; | ||
export declare type ComponentType = typeof c.componentTypes[number]; | ||
export declare type ContentType = typeof c.contentTypes[number]; | ||
export declare type EventType = typeof c.userEvent[number]; |
@@ -9,62 +9,68 @@ import { StyleObject } from './styleTypes'; | ||
} & { | ||
button: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
button: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "chart" | "chatList">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
type: K; | ||
}; | ||
divider: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
divider: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "chart" | "chatList">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
type: K; | ||
}; | ||
footer: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
footer: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "chart" | "chatList">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
type: K; | ||
}; | ||
header: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
header: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "chart" | "chatList">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
type: K; | ||
}; | ||
image: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
image: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "chart" | "chatList">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
type: K; | ||
}; | ||
label: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
label: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "chart" | "chatList">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
type: K; | ||
}; | ||
list: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
list: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "chart" | "chatList">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
type: K; | ||
}; | ||
listItem: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
listItem: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "chart" | "chatList">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
type: K; | ||
}; | ||
page: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
page: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "chart" | "chatList">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
type: K; | ||
}; | ||
plugin: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
plugin: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "chart" | "chatList">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
type: K; | ||
}; | ||
pluginHead: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
pluginHead: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "chart" | "chatList">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
type: K; | ||
}; | ||
pluginBodyTail: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
pluginBodyTail: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "chart" | "chatList">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
type: K; | ||
}; | ||
popUp: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
popUp: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "chart" | "chatList">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
type: K; | ||
}; | ||
register: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
register: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "chart" | "chatList">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
type: K; | ||
}; | ||
select: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
select: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "chart" | "chatList">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
type: K; | ||
}; | ||
scrollView: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
scrollView: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "chart" | "chatList">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
type: K; | ||
}; | ||
textField: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
textField: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "chart" | "chatList">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
type: K; | ||
}; | ||
textView: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
textView: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "chart" | "chatList">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
type: K; | ||
}; | ||
video: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
video: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "chart" | "chatList">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
type: K; | ||
}; | ||
view: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
view: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "chart" | "chatList">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
type: K; | ||
}; | ||
chart: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "chart" | "chatList">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
type: K; | ||
}; | ||
chatList: <K extends "button" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "page" | "plugin" | "pluginHead" | "pluginBodyTail" | "popUp" | "register" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "chart" | "chatList">(v: unknown) => v is Pick<T.AnyComponentObject, string | number> & { | ||
type: K; | ||
}; | ||
}; | ||
@@ -71,0 +77,0 @@ emit(value: unknown): value is { |
@@ -37,3 +37,2 @@ "use strict"; | ||
exports.Identify = (function () { | ||
var identity = function (x) { return x; }; | ||
var composeSomes = function () { | ||
@@ -244,8 +243,4 @@ var fns = []; | ||
}; | ||
var a = {}; | ||
if (folds.component.button(a)) { | ||
// a.type = 'divider' | ||
} | ||
return __assign(__assign({}, o), { folds: folds }); | ||
})(); | ||
//# sourceMappingURL=Identify.js.map |
@@ -7,6 +7,3 @@ export * from './actionTypes'; | ||
export * from './uncategorizedTypes'; | ||
export * from './constants'; | ||
export { Identify } from './Identify'; | ||
export { default as actionTypes } from './generated/actionTypes'; | ||
export { default as componentTypes } from './generated/componentTypes'; | ||
export { default as componentKeys } from './generated/componentKeys'; | ||
export { default as styleKeys } from './generated/styleKeys'; |
@@ -12,7 +12,4 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.styleKeys = exports.componentKeys = exports.componentTypes = exports.actionTypes = exports.Identify = void 0; | ||
exports.Identify = void 0; | ||
__exportStar(require("./actionTypes"), exports); | ||
@@ -24,12 +21,5 @@ __exportStar(require("./componentTypes"), exports); | ||
__exportStar(require("./uncategorizedTypes"), exports); | ||
__exportStar(require("./constants"), exports); | ||
var Identify_1 = require("./Identify"); | ||
Object.defineProperty(exports, "Identify", { enumerable: true, get: function () { return Identify_1.Identify; } }); | ||
var actionTypes_1 = require("./generated/actionTypes"); | ||
Object.defineProperty(exports, "actionTypes", { enumerable: true, get: function () { return __importDefault(actionTypes_1).default; } }); | ||
var componentTypes_1 = require("./generated/componentTypes"); | ||
Object.defineProperty(exports, "componentTypes", { enumerable: true, get: function () { return __importDefault(componentTypes_1).default; } }); | ||
var componentKeys_1 = require("./generated/componentKeys"); | ||
Object.defineProperty(exports, "componentKeys", { enumerable: true, get: function () { return __importDefault(componentKeys_1).default; } }); | ||
var styleKeys_1 = require("./generated/styleKeys"); | ||
Object.defineProperty(exports, "styleKeys", { enumerable: true, get: function () { return __importDefault(styleKeys_1).default; } }); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "noodl-types", | ||
"version": "1.0.28", | ||
"version": "1.0.30", | ||
"description": "NOODL TypeScript Definitions", | ||
@@ -33,3 +33,3 @@ "author": "Christopher Tran <christopher@aitmed.com>", | ||
}, | ||
"gitHead": "21f8604194838b1cf3e7a113d341899eb4dd964b" | ||
"gitHead": "ab2df4d6895e368abdab7bbb2154041bfda2976f" | ||
} |
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
66553
1192
43