Socket
Socket
Sign inDemoInstall

noodl-types

Package Overview
Dependencies
Maintainers
1
Versions
241
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

noodl-types - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

dist/_internal/constants.d.ts

12

dist/actionTypes.d.ts

@@ -1,3 +0,2 @@

import { IfObject } from './commonTypes';
export declare type ActionType = 'builtIn' | 'evalObject' | 'pageJump' | 'popUp' | 'popUpDismiss' | 'refresh' | 'saveObject' | 'updateObject';
import { IfObject } from './uncategorizedTypes';
export interface ActionObject<T extends string = any> {

@@ -17,2 +16,3 @@ actionType: T;

viewTag?: string;
[key: string]: any;
}

@@ -22,2 +22,3 @@ export interface EvalActionObject extends ActionObject {

object?: Function | IfObject;
[key: string]: any;
}

@@ -27,2 +28,3 @@ export interface PageJumpActionObject<D extends string = any> extends ActionObject {

destination: D;
[key: string]: any;
}

@@ -32,2 +34,3 @@ export interface PopupActionObject<V extends string = any> extends ActionObject {

popUpView: V;
[key: string]: any;
}

@@ -37,5 +40,7 @@ export interface PopupDismissActionObject<V extends string = any> extends ActionObject {

popUpView: V;
[key: string]: any;
}
export interface RefreshActionObject extends ActionObject {
actionType: 'refresh';
[key: string]: any;
}

@@ -45,2 +50,3 @@ export interface SaveActionObject extends ActionObject {

object?: [string | ((...args: any[]) => any)] | ((...args: any[]) => any);
[key: string]: any;
}

@@ -51,5 +57,7 @@ export declare type UpdateActionObject<T = any> = {

dataKey?: string;
[key: string]: any;
} | {
actionType: 'updateObject';
object?: T;
[key: string]: any;
};
import { ActionObject } from './actionTypes';
import { StyleObject } from './styleTypes';
export declare type ComponentType = 'button' | 'divider' | 'footer' | 'header' | 'image' | 'label' | 'list' | 'listItem' | 'plugin' | 'pluginHead' | 'pluginBodyTail' | 'popUp' | 'register' | 'select' | 'scrollView' | 'textField' | 'textView' | 'video' | 'view';
export interface ComponentObject<T extends string = any> {

@@ -12,11 +11,15 @@ type: T;

type: 'button';
[key: string]: any;
}
export interface DividerComponentObject extends ComponentObject {
type: 'divider';
[key: string]: any;
}
export interface FooterComponentObject extends ComponentObject {
type: 'footer';
[key: string]: any;
}
export interface HeaderComponentObject extends ComponentObject {
type: 'header';
[key: string]: any;
}

@@ -26,5 +29,7 @@ export interface ImageComponentObject extends ComponentObject {

path: string;
[key: string]: any;
}
export interface LabelComponentObject extends ComponentObject {
type: 'label';
[key: string]: any;
}

@@ -35,14 +40,23 @@ export interface ListComponentObject extends ComponentObject {

listObject: any[];
[key: string]: any;
}
export interface ListItemComponentObject extends ComponentObject {
type: 'listItem';
[key: string]: any;
}
export interface PluginComponentObject extends ComponentObject {
type: 'plugin';
[key: string]: any;
}
export interface PluginHeadComponentObject extends ComponentObject {
type: 'pluginHead';
[key: string]: any;
}
export interface PluginBodyTailComponentObject extends ComponentObject {
type: 'pluginBodyTail';
[key: string]: any;
}
export interface PopUpComponentObject extends ComponentObject {
type: 'popUp';
[key: string]: any;
}

@@ -53,20 +67,27 @@ export interface RegisterComponentObject extends ComponentObject {

actions?: ActionObject[];
[key: string]: any;
}
export interface SelectComponentObject extends ComponentObject {
type: 'select';
[key: string]: any;
}
export interface ScrollViewComponentObject extends ComponentObject {
type: 'scrollView';
[key: string]: any;
}
export interface TextFieldComponentObject extends ComponentObject {
type: 'textField';
[key: string]: any;
}
export interface TextViewComponentObject extends ComponentObject {
type: 'textView';
[key: string]: any;
}
export interface VideoComponentObject extends ComponentObject {
type: 'video';
[key: string]: any;
}
export interface ViewComponentObject extends ComponentObject {
type: 'view';
[key: string]: any;
}

5

dist/index.d.ts
export * from './actionTypes';
export * from './componentTypes';
export * from './commonTypes';
export * from './constantTypes';
export * from './pageTypes';
export * from './styleTypes';
export * from './uncategorizedTypes';
export { identify } from './identify';

@@ -41,3 +41,3 @@ export interface StyleObject {

zIndex?: number;
[styleKey: string]: any;
[key: string]: any;
}

@@ -51,2 +51,3 @@ export declare type StyleAlign = 'centerX' | 'centerY';

line?: string;
[key: string]: any;
}

@@ -57,2 +58,3 @@ export declare type StyleTextAlign = 'left' | 'center' | 'right' | StyleAlign | StyleTextAlignObject;

y?: 'left' | 'center' | 'right';
[key: string]: any;
}
{
"name": "noodl-types",
"version": "1.0.6",
"version": "1.0.7",
"description": "NOODL TypeScript Definitions",

@@ -8,5 +8,7 @@ "author": "Christopher Tran <christopher@aitmed.com>",

"license": "ISC",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "rm -rf dist && tsc",
"build:utils": "rm -rf dist && tsc -p tsconfig-utils.json",
"start": "rm -rf dist && tsc --watch",

@@ -25,3 +27,3 @@ "test": "echo \"Error: run tests from root\" && exit 1"

},
"gitHead": "eed213d746d95339b9131af74a43c82111047f79"
"gitHead": "3140509344a00c54eed635a5f1276735db6071ac"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc