Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@easy-page/react-ui

Package Overview
Dependencies
Maintainers
0
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@easy-page/react-ui - npm Package Compare versions

Comparing version 1.0.9 to 1.0.10

2

package.json
{
"name": "@easy-page/react-ui",
"version": "1.0.9",
"version": "1.0.10",
"main": "./index.js",

@@ -5,0 +5,0 @@ "types": "./index.d.ts",

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

import { DataContext, EffectActionType, EffectKeys, PostprocessContext, Schema, SchemaNodeOption, Validate, WhenType } from '@easy-page/core';
import { DataContext, EffectActionType, EffectKeys, Empty, PostprocessContext, Schema, SchemaNodeOption, Validate, WhenType } from '@easy-page/core';
import { FieldUIConfig } from '../../interface';

@@ -61,1 +61,13 @@ import { UIConfig } from '../../view';

};
export type ExtendsOptions<FieldType = string, PageState = Record<string, any>, PageProps = Empty, EffectResultType = any> = WrapperNodeOption<FieldType, PageState, PageProps, EffectResultType> & {
name?: string;
id?: string;
fieldUIConfig?: (oldFieldUIConfig?: FieldUIConfig) => FieldUIConfig;
/** 收敛一个通用逻辑,当需要监听变化,刷新自己时使用 */
effectedKeys?: EffectKeys<PageState, PageProps>;
};
export type CreateNodeOptions<FieldType = string, PageState = Record<string, any>, PageProps = Empty, EffectResultType = any> = NodeWithChildrenOption<FieldType, PageState, PageProps, EffectResultType> & {
name?: string;
};
export type AnyNodeInfoType<FieldType = any, PageState = any, PageProps = any, EffectResultType = any> = NodeInfo<FieldType, PageState, PageProps, EffectResultType> | NodeInfoWithChildren<FieldType, PageState, PageProps, EffectResultType>;
export type AnyNodesInfoType<FieldType = any, PageState = any, PageProps = any, EffectResultType = any> = Array<NodeInfo<FieldType, PageState, PageProps, EffectResultType> | NodeInfoWithChildren<FieldType, PageState, PageProps, EffectResultType>>;
/// <reference types="react" />
import { FieldUIConfig } from '../../interface';
import { BaseNodeUtil } from './baseNodeUtil';
import { NodeInfo, NodeInfoWithChildren, NodeWithChildrenOption, WrapperNodeOption } from './interface';
import { EffectKeys } from '@easy-page/core';
import { AnyNodeInfoType, CreateNodeOptions, ExtendsOptions, NodeInfoWithChildren, NodeWithChildrenOption } from './interface';
/**

@@ -14,15 +13,7 @@ * - 用于创建单个字段节点

/** 为节点添加配置 */
extends<FieldType = string, PageState = Record<string, any>, PageProps = Empty, EffectResultType = any>(curNode: NodeInfo<any, any, any, any> | NodeInfoWithChildren<any, any, any, any>, options: WrapperNodeOption<FieldType, PageState, PageProps, EffectResultType> & {
name?: string;
id?: string;
fieldUIConfig?: (oldFieldUIConfig?: FieldUIConfig) => FieldUIConfig;
/** 收敛一个通用逻辑,当需要监听变化,刷新自己时使用 */
effectedKeys?: EffectKeys<PageState, PageProps>;
}): NodeInfoWithChildren<FieldType, PageState, PageProps, EffectResultType>;
extends<FieldType = string, PageState = Record<string, any>, PageProps = Empty, EffectResultType = any>(curNode: AnyNodeInfoType<any, any, any, any>, options: ExtendsOptions<FieldType, PageState, PageProps, EffectResultType>): NodeInfoWithChildren<FieldType, PageState, PageProps, EffectResultType>;
/**
* 节点-无 FormItem 包裹
*/
createNode<FieldType = string, PageState = Record<string, any>, PageProps = Empty, EffectResultType = any>(id: string, options: NodeWithChildrenOption<FieldType, PageState, PageProps, EffectResultType> & {
name?: string;
}, fieldUIConfig?: FieldUIConfig): NodeInfoWithChildren<FieldType, PageState, PageProps, EffectResultType>;
createNode<FieldType = string, PageState = Record<string, any>, PageProps = Empty, EffectResultType = any>(id: string, options: CreateNodeOptions<FieldType, PageState, PageProps, EffectResultType>, fieldUIConfig?: FieldUIConfig): NodeInfoWithChildren<FieldType, PageState, PageProps, EffectResultType>;
/**

@@ -29,0 +20,0 @@ * 节点-被 FormItem 包裹

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

import { CommonPageUtilProps, NodeInfo, NodeInfoWithChildren, PageInfo } from './interface';
import { AnyNodesInfoType, CommonPageUtilProps, NodeInfo, PageInfo } from './interface';
/**

@@ -11,5 +11,5 @@ * - 辅助写 schema 和 uiConfig 的 API

private getUIConfigKey;
abstract addFields(nodes: Array<NodeInfo<any, any, any> | NodeInfoWithChildren<any, any, any>>): void;
abstract addFields(nodes: AnyNodesInfoType): void;
protected doAddFields(nodes: NodeInfo<any, any, any>[]): void;
getPageInfo(): PageInfo<any, any>;
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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