noodl-types
Advanced tools
Comparing version 1.0.264 to 1.0.265
@@ -1,3 +0,3 @@ | ||
export declare const componentTypes: readonly ["button", "chart", "divider", "footer", "header", "image", "label", "list", "listItem", "page", "plugin", "pluginHead", "pluginBodyTail", "popUp", "register", "select", "scrollView", "textField", "textView", "video", "view"]; | ||
export declare const componentTypes: readonly ["button", "chart", "divider", "footer", "header", "image", "label", "list", "listItem", "page", "plugin", "pluginHead", "pluginBodyTail", "popUp", "register", "select", "scrollView", "textField", "textView", "video", "view", "richtext"]; | ||
export declare const minimalStyleKeys: string[]; | ||
export declare const minimalBorderStyleKeys: string[]; |
@@ -26,2 +26,3 @@ "use strict"; | ||
'view', | ||
'richtext', | ||
]; | ||
@@ -28,0 +29,0 @@ exports.minimalStyleKeys = [ |
@@ -1,1 +0,1 @@ | ||
export declare type OrArray<V = any> = V | V[]; | ||
export type OrArray<V = any> = V | V[]; |
@@ -6,3 +6,3 @@ import type { ActionObject } from './actionTypes'; | ||
import type { ActionChain, EmitObject, EmitObjectFold, GotoObject, IfObject, Path, TextBoardObject } from './uncategorizedTypes'; | ||
export declare type UncommonComponentObjectProps = { | ||
export type UncommonComponentObjectProps = { | ||
[key in EventType]: ActionChain; | ||
@@ -151,2 +151,2 @@ } & { | ||
} | ||
export declare type PageComponentUrl<S extends string = string> = S extends `${string}@${string}#${string}` ? S : string; | ||
export type PageComponentUrl<S extends string = string> = S extends `${string}@${string}#${string}` ? S : string; |
@@ -49,8 +49,9 @@ export declare const action: { | ||
readonly checkbox: "checkbox"; | ||
readonly richtext: "richtext"; | ||
}; | ||
export declare const componentKeys: readonly ["backgroundColor", "borderRadius", "chatItem", "children", "contentType", "dataId", "dataIn", "dataKey", "dataModel", "ecosObj", "height", "isEditable", "itemObject", "iteratorVar", "itmeObject", "listObject", "onChange", "onClick", "onInput", "optionKey", "options", "path", "pathSelected", "placeHolder", "placeholder", "refresh", "required", "style", "text", "text=func", "textAlign", "textBoard", "type", "viewTag", "width", "zIndex", "chatItem"]; | ||
export declare const componentTypes: ("page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox")[]; | ||
export declare const componentTypes: ("page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox" | "richtext")[]; | ||
export declare const contentTypes: readonly ["countryCode", "email", "file", "formattedDate", "formattedDuration", "hidden", "listObject", "messageHidden", "number", "password", "passwordHidden", "phone", "phoneNumber", "tel", "text", "timer", "videoSubStream"]; | ||
export declare const deviceTypes: readonly ["web", "ios", "android"]; | ||
export declare const styleKeys: readonly ["FontSize", "axis", "background", "backgroundColor", "border", "borderColor", "borderRadius", "borderRaduis", "borderWidth", "boxShadow", "boxSizing", "color", "contentSize", "diaplay", "display", "filter", "float", "flex", "flexFlow", "fontColor", "fontFamily", "fontSize", "fontStyle", "fontWeight", "foontWeight", "height", "hieght", "isHidden", "justifyContent", "left", "letterSpacing", "lineHeight", "marginLeft", "marginTop", "onClick", "padding", "paddingBottom", "paddingLeft", "placeholder", "position", "required", "shadow", "text-align", "textAlign", "textDecoration", "textIndent", "top", "width", "zIndex"]; | ||
export declare const userEvent: readonly ["onBlur", "onClick", "onChange", "onFocus", "onHover", "onInput", "onMouseEnter", "onMouseLeave", "onMouseOut", "onMouseOver", "onLazyLoading", "onPull"]; | ||
export declare const userEvent: readonly ["onBlur", "onClick", "onChange", "onFocus", "onHover", "onInput", "onMouseEnter", "onMouseLeave", "onMouseOut", "onMouseOver", "onLazyLoading", "onPull", "onContextmenu"]; |
@@ -52,2 +52,3 @@ "use strict"; | ||
checkbox: 'checkbox', | ||
richtext: 'richtext', | ||
}; | ||
@@ -177,4 +178,5 @@ exports.componentKeys = [ | ||
'onLazyLoading', | ||
'onPull' | ||
'onPull', | ||
'onContextmenu' | ||
]; | ||
//# sourceMappingURL=constants.js.map |
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]; | ||
export type ActionType = typeof c.actionTypes[number]; | ||
export type ComponentType = typeof c.componentTypes[number]; | ||
export type ContentType = typeof c.contentTypes[number]; | ||
export type EventType = typeof c.userEvent[number]; |
import type { LiteralUnion } from 'type-fest'; | ||
import type { EmitObjectFold, IfObject } from './uncategorizedTypes'; | ||
import type { OrArray } from './_internal/types'; | ||
export declare type RootConfig = Record<DeviceType, RootConfigDeviceVersionObject> & { | ||
export type RootConfig = Record<DeviceType, RootConfigDeviceVersionObject> & { | ||
/** | ||
@@ -192,3 +192,3 @@ * @example | ||
*/ | ||
export declare type BuiltInEvalObject<S extends string = string> = Record<ReferenceString<`builtIn${S}`, '=.'>, Partial<Record<'dataIn' | 'dataOut', OrArray<DataIn | DataOut>>> | string>; | ||
export type BuiltInEvalObject<S extends string = string> = Record<ReferenceString<`builtIn${S}`, '=.'>, Partial<Record<'dataIn' | 'dataOut', OrArray<DataIn | DataOut>>> | string>; | ||
/** | ||
@@ -199,8 +199,8 @@ * Strings that represent data that may mutate a value depending on if it is referencing a path. | ||
*/ | ||
export declare type BuiltInEvalReference<S extends string> = ReferenceString<`builtIn${S}`, '=.'>; | ||
export declare type DataIn = OrArray<EmitObjectFold | IfObject | PolymorphicObject | string>; | ||
export declare type DataOut = OrArray<EmitObjectFold | IfObject | PolymorphicObject | string>; | ||
export declare type DeviceType = 'android' | 'ios' | 'web'; | ||
export declare type Env = 'stable' | 'test'; | ||
export declare type EcosDocument<NF extends NameField = NameField, MT extends MediaType = MediaType> = { | ||
export type BuiltInEvalReference<S extends string> = ReferenceString<`builtIn${S}`, '=.'>; | ||
export type DataIn = OrArray<EmitObjectFold | IfObject | PolymorphicObject | string>; | ||
export type DataOut = OrArray<EmitObjectFold | IfObject | PolymorphicObject | string>; | ||
export type DeviceType = 'android' | 'ios' | 'web'; | ||
export type Env = 'stable' | 'test'; | ||
export type EcosDocument<NF extends NameField = NameField, MT extends MediaType = MediaType> = { | ||
id?: string | null; | ||
@@ -252,3 +252,3 @@ ctime?: number | null; | ||
} | ||
export declare type Deat = DeatObject | number; | ||
export type Deat = DeatObject | number; | ||
export interface DeatObject { | ||
@@ -260,14 +260,14 @@ url?: string; | ||
} | ||
export declare type MediaType = AudioMediaType | DocMediaType | FontMediaType | ImageMediaType | MessageMediaType | ModelMediaType | MultipartMediaType | OtherMediaType | TextMediaType | VideoMediaType; | ||
export declare type OtherMediaType = 0; | ||
export declare type DocMediaType = 1; | ||
export declare type AudioMediaType = 2; | ||
export declare type FontMediaType = 3; | ||
export declare type ImageMediaType = 4; | ||
export declare type MessageMediaType = 5; | ||
export declare type ModelMediaType = 6; | ||
export declare type MultipartMediaType = 7; | ||
export declare type TextMediaType = 8; | ||
export declare type VideoMediaType = 9; | ||
export declare type ReferenceSymbol = '.' | '..' | '=' | '~/' | '@'; | ||
export type MediaType = AudioMediaType | DocMediaType | FontMediaType | ImageMediaType | MessageMediaType | ModelMediaType | MultipartMediaType | OtherMediaType | TextMediaType | VideoMediaType; | ||
export type OtherMediaType = 0; | ||
export type DocMediaType = 1; | ||
export type AudioMediaType = 2; | ||
export type FontMediaType = 3; | ||
export type ImageMediaType = 4; | ||
export type MessageMediaType = 5; | ||
export type ModelMediaType = 6; | ||
export type MultipartMediaType = 7; | ||
export type TextMediaType = 8; | ||
export type VideoMediaType = 9; | ||
export type ReferenceSymbol = '.' | '..' | '=' | '~/' | '@'; | ||
/** | ||
@@ -283,4 +283,4 @@ * Strings that behave like placeholders which in addition mutates the value at referenced path when updates occur. | ||
*/ | ||
export declare type ReferenceString<K extends string = string, S extends ReferenceSymbol | '=..' | '=.' = ReferenceSymbol | '=..' | '=.'> = S extends '.' ? `.${K}` : S extends '..' ? `..${K}` : S extends '=.' ? `=${Extract<ReferenceSymbol, '.'> | never}${K}` : S extends '=..' ? `=${Extract<ReferenceSymbol, '..'> | never}${K}` : S extends '=' ? `=${Extract<ReferenceSymbol, '..' | '.'> | never}${K}` : S extends '~/' ? `~/${K}` : S extends '@' ? `${K}@` : `=..${K}` | `=.${K}` | `${Exclude<ReferenceSymbol, '@'>}${K}` | `${K}${Extract<ReferenceSymbol, '@'>}`; | ||
export declare type ReferenceObject<K extends string = string, V = any> = Record<K extends ReferenceString ? ReferenceString : K, OrArray<V>>; | ||
export type ReferenceString<K extends string = string, S extends ReferenceSymbol | '=..' | '=.' = ReferenceSymbol | '=..' | '=.'> = S extends '.' ? `.${K}` : S extends '..' ? `..${K}` : S extends '=.' ? `=${Extract<ReferenceSymbol, '.'> | never}${K}` : S extends '=..' ? `=${Extract<ReferenceSymbol, '..'> | never}${K}` : S extends '=' ? `=${Extract<ReferenceSymbol, '..' | '.'> | never}${K}` : S extends '~/' ? `~/${K}` : S extends '@' ? `${K}@` : `=..${K}` | `=.${K}` | `${Exclude<ReferenceSymbol, '@'>}${K}` | `${K}${Extract<ReferenceSymbol, '@'>}`; | ||
export type ReferenceObject<K extends string = string, V = any> = Record<K extends ReferenceString ? ReferenceString : K, OrArray<V>>; | ||
/** | ||
@@ -292,2 +292,2 @@ * Polymorphic objects are object literals where keys are either plain strings | ||
*/ | ||
export declare type PolymorphicObject = ReferenceObject<string, OrArray<ReferenceObject<ReferenceString, ReferenceObject>>>; | ||
export type PolymorphicObject = ReferenceObject<string, OrArray<ReferenceObject<ReferenceString, ReferenceObject>>>; |
@@ -16,83 +16,86 @@ import isAwaitReference from './utils/isAwaitReference'; | ||
} & { | ||
page: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
page: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox" | "richtext">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
type: K; | ||
}; | ||
popUp: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
popUp: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox" | "richtext">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
type: K; | ||
}; | ||
register: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
register: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox" | "richtext">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
type: K; | ||
}; | ||
button: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
button: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox" | "richtext">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
type: K; | ||
}; | ||
canvas: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
canvas: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox" | "richtext">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
type: K; | ||
}; | ||
chart: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
chart: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox" | "richtext">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
type: K; | ||
}; | ||
chatList: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
chatList: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox" | "richtext">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
type: K; | ||
}; | ||
ecosDoc: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
ecosDoc: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox" | "richtext">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
type: K; | ||
}; | ||
divider: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
divider: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox" | "richtext">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
type: K; | ||
}; | ||
footer: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
footer: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox" | "richtext">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
type: K; | ||
}; | ||
header: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
header: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox" | "richtext">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
type: K; | ||
}; | ||
image: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
image: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox" | "richtext">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
type: K; | ||
}; | ||
label: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
label: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox" | "richtext">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
type: K; | ||
}; | ||
list: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
list: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox" | "richtext">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
type: K; | ||
}; | ||
listItem: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
listItem: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox" | "richtext">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
type: K; | ||
}; | ||
map: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
map: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox" | "richtext">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
type: K; | ||
}; | ||
plugin: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
plugin: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox" | "richtext">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
type: K; | ||
}; | ||
pluginHead: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
pluginHead: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox" | "richtext">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
type: K; | ||
}; | ||
pluginBodyTail: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
pluginBodyTail: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox" | "richtext">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
type: K; | ||
}; | ||
select: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
select: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox" | "richtext">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
type: K; | ||
}; | ||
scrollView: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
scrollView: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox" | "richtext">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
type: K; | ||
}; | ||
textField: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
textField: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox" | "richtext">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
type: K; | ||
}; | ||
textView: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
textView: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox" | "richtext">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
type: K; | ||
}; | ||
video: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
video: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox" | "richtext">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
type: K; | ||
}; | ||
view: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
view: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox" | "richtext">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
type: K; | ||
}; | ||
rotation: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
rotation: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox" | "richtext">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
type: K; | ||
}; | ||
checkbox: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
checkbox: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox" | "richtext">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
type: K; | ||
}; | ||
richtext: <K extends "page" | "popUp" | "register" | "button" | "canvas" | "chart" | "chatList" | "ecosDoc" | "divider" | "footer" | "header" | "image" | "label" | "list" | "listItem" | "map" | "plugin" | "pluginHead" | "pluginBodyTail" | "select" | "scrollView" | "textField" | "textView" | "video" | "view" | "rotation" | "checkbox" | "richtext">(v: unknown) => v is Omit<t.ActionObject<string>, "type"> & { | ||
type: K; | ||
}; | ||
}; | ||
@@ -172,2 +175,3 @@ emit: (v: any) => v is t.EmitObjectFold<Record<string, any>>; | ||
view: (v: any) => v is t.ViewComponentObject; | ||
richtext: (v: any) => v is t.DividerComponentObject; | ||
}; | ||
@@ -174,0 +178,0 @@ ecosObj: { |
@@ -94,2 +94,3 @@ "use strict"; | ||
view: identifyObj((v) => v.type === 'view'), | ||
richtext: identifyObj((v) => v.type === 'richtext'), | ||
}, | ||
@@ -96,0 +97,0 @@ ecosObj: { |
@@ -287,4 +287,4 @@ export interface StyleObject { | ||
} | ||
export declare type StyleAlign = 'centerX' | 'centerY'; | ||
export declare type StyleAxis = 'horizontal' | 'vertical'; | ||
export type StyleAlign = 'centerX' | 'centerY'; | ||
export type StyleAxis = 'horizontal' | 'vertical'; | ||
export interface StyleBorderObject { | ||
@@ -297,3 +297,3 @@ style?: '1' | '2' | '3' | '4' | '5' | '6' | '7' | 1 | 2 | 3 | 4 | 5 | 6 | 7; | ||
} | ||
export declare type StyleTextAlign = StyleAlign | StyleTextAlignObject | 'center' | 'left' | 'right'; | ||
export type StyleTextAlign = StyleAlign | StyleTextAlignObject | 'center' | 'left' | 'right'; | ||
export interface StyleTextAlignObject { | ||
@@ -303,4 +303,4 @@ x?: 'center' | 'centerX' | 'left' | 'right'; | ||
} | ||
export declare type VpUnit = 'vh' | 'vw'; | ||
export declare type VpValue = `${string}${VpUnit}`; | ||
export declare type KnownStyleKeys = 'align' | 'axis' | 'background' | 'backgroundColor' | 'border' | 'borderColor' | 'borderRadius' | 'borderWidth' | 'boxShadow' | 'boxSizing' | 'color' | 'contentSize' | 'display' | 'flex' | 'flexFlow' | 'float' | 'fontColor' | 'fontFamily' | 'fontSize' | 'fontStyle' | 'fontWeight' | 'height' | 'isHidden' | 'justifyContent' | 'left' | 'letterSpacing' | 'lineHeight' | 'marginBottom' | 'marginLeft' | 'marginRight' | 'marginTop' | 'maxHeight' | 'maxWidth' | 'minHeight' | 'minWidth' | 'outline' | 'padding' | 'paddingBottom' | 'paddingLeft' | 'paddingRight' | 'paddingTop' | 'position' | 'required' | 'shadow' | 'textAlign' | 'textColor' | 'textDecoration' | 'textIndent' | 'top' | 'width' | 'zIndex'; | ||
export type VpUnit = 'vh' | 'vw'; | ||
export type VpValue = `${string}${VpUnit}`; | ||
export type KnownStyleKeys = 'align' | 'axis' | 'background' | 'backgroundColor' | 'border' | 'borderColor' | 'borderRadius' | 'borderWidth' | 'boxShadow' | 'boxSizing' | 'color' | 'contentSize' | 'display' | 'flex' | 'flexFlow' | 'float' | 'fontColor' | 'fontFamily' | 'fontSize' | 'fontStyle' | 'fontWeight' | 'height' | 'isHidden' | 'justifyContent' | 'left' | 'letterSpacing' | 'lineHeight' | 'marginBottom' | 'marginLeft' | 'marginRight' | 'marginTop' | 'maxHeight' | 'maxWidth' | 'minHeight' | 'minWidth' | 'outline' | 'padding' | 'paddingBottom' | 'paddingLeft' | 'paddingRight' | 'paddingTop' | 'position' | 'required' | 'shadow' | 'textAlign' | 'textColor' | 'textDecoration' | 'textIndent' | 'top' | 'width' | 'zIndex'; |
import type { ReferenceString } from './ecosTypes'; | ||
import type { ActionObject } from './actionTypes'; | ||
import type { StyleObject } from './styleTypes'; | ||
export declare type ActionChain = (ActionObject | EmitObjectFold | GotoObject | IfObject)[]; | ||
export type ActionChain = (ActionObject | EmitObjectFold | GotoObject | IfObject)[]; | ||
export interface EmitObject { | ||
@@ -12,6 +12,6 @@ actions: any[]; | ||
} | ||
export declare type EmitObjectFold<O extends Record<string, any> = Record<string, any>> = O & { | ||
export type EmitObjectFold<O extends Record<string, any> = Record<string, any>> = O & { | ||
emit: EmitObject; | ||
}; | ||
export declare type GotoUrl = string; | ||
export type GotoUrl = string; | ||
export interface GotoObject<V = string> { | ||
@@ -25,4 +25,4 @@ goto: V; | ||
} | ||
export declare type Path<V = any> = V extends string ? string : V extends EmitObjectFold ? EmitObjectFold : V extends IfObject ? IfObject : EmitObjectFold | IfObject | string; | ||
export declare type TextBoardObject = ({ | ||
export type Path<V = any> = V extends string ? string : V extends EmitObjectFold ? EmitObjectFold : V extends IfObject ? IfObject : EmitObjectFold | IfObject | string; | ||
export type TextBoardObject = ({ | ||
br?: '' | null; | ||
@@ -37,2 +37,2 @@ } | { | ||
} | ||
export declare type Value = any[] | Record<string, any> | ReferenceString | boolean | number | string | '' | null; | ||
export type Value = any[] | Record<string, any> | ReferenceString | boolean | number | string | '' | null; |
@@ -34,3 +34,3 @@ { | ||
"types": "dist/index.d.ts", | ||
"version": "1.0.264" | ||
"version": "1.0.265" | ||
} |
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
117885
2349