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

@wixc3/board-core

Package Overview
Dependencies
Maintainers
67
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wixc3/board-core - npm Package Compare versions

Comparing version 2.1.3 to 2.2.0

2

dist/create-metadata.d.ts
import type { HookMap, IGeneralMetadata } from './types';
export declare type OmitGeneralMetadata<DATA extends IGeneralMetadata<HookMap>> = Omit<DATA, '__hooks'>;
export type OmitGeneralMetadata<DATA extends IGeneralMetadata<HookMap>> = Omit<DATA, '__hooks'>;
export declare function createMetadata<DATA extends IGeneralMetadata<HookMap>>(metadata: OmitGeneralMetadata<DATA>): DATA;
//# sourceMappingURL=create-metadata.d.ts.map
import type { IRenderableMetadataBase } from './types';
import { OmitGeneralMetadata } from './create-metadata';
export declare type OmitIRenderableMetadataBase<DATA extends IRenderableMetadataBase> = Omit<OmitGeneralMetadata<DATA>, 'setupStage' | 'cleanupStage'>;
export type OmitIRenderableMetadataBase<DATA extends IRenderableMetadataBase> = Omit<OmitGeneralMetadata<DATA>, 'setupStage' | 'cleanupStage'>;
export declare function baseRender<DATA extends IRenderableMetadataBase>(data: DATA, render: (target: HTMLElement) => Promise<() => void>, canvas: HTMLElement): Promise<() => void>;
export declare function createRenderableBase<DATA extends IRenderableMetadataBase>(data: OmitIRenderableMetadataBase<DATA>): DATA;
//# sourceMappingURL=create-renderable-base.d.ts.map
import type { IGeneralMetadata, PluginInfo, Plugin, HookMap } from './types';
export declare type HookNames<DATA extends IGeneralMetadata<HookMap>> = keyof NonNullable<DATA['__hooks']> & string;
export type HookNames<DATA extends IGeneralMetadata<HookMap>> = keyof NonNullable<DATA['__hooks']> & string;
export declare function getPluginsWithHooks<DATA extends IGeneralMetadata<HookMap>>(data: DATA, hookName: HookNames<DATA>): PluginInfo<unknown, DATA, Plugin<unknown, DATA>>[];
export declare type HookParams<DATA extends IGeneralMetadata<HookMap>, HOOK extends HookNames<DATA>> = NonNullable<NonNullable<DATA['__hooks']>[HOOK]> extends (pluginParams: never, ...args: infer U) => void | unknown ? U : never;
export type HookParams<DATA extends IGeneralMetadata<HookMap>, HOOK extends HookNames<DATA>> = NonNullable<NonNullable<DATA['__hooks']>[HOOK]> extends (pluginParams: never, ...args: infer U) => void | unknown ? U : never;
export declare function callHooks<DATA extends IGeneralMetadata<HookMap>, HOOKNAME extends HookNames<DATA>>(data: DATA, hookName: HOOKNAME, ...props: HookParams<DATA, HOOKNAME>): void;
//# sourceMappingURL=hooks.d.ts.map

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

export declare type LayoutSize = number | undefined | null;
export declare type LayoutSizeWithAuto = LayoutSize | 'auto';
export type LayoutSize = number | undefined | null;
export type LayoutSizeWithAuto = LayoutSize | 'auto';
export interface LayoutSpacing {

@@ -13,3 +13,3 @@ /** @visualizer spacing */

}
export declare type IPreviewEnvironmentPropsBase = IWindowEnvironmentProps & ICanvasEnvironmentProps;
export type IPreviewEnvironmentPropsBase = IWindowEnvironmentProps & ICanvasEnvironmentProps;
export interface IWindowEnvironmentProps {

@@ -35,3 +35,3 @@ /** @visualizer spacing */

}
export declare type HOOK<PLUGINPARAMS, HOOKPARAMS extends unknown[], RES> = (params: PLUGINPARAMS, ...hookParams: HOOKPARAMS) => RES;
export type HOOK<PLUGINPARAMS, HOOKPARAMS extends unknown[], RES> = (params: PLUGINPARAMS, ...hookParams: HOOKPARAMS) => RES;
export interface HookMap<PLUGINPARAMS = never> {

@@ -44,3 +44,3 @@ [hookName: string]: HOOK<PLUGINPARAMS, never[], unknown> | undefined;

}
export declare type BoardSetupFunction = (controller: ISetupController) => void | Promise<void>;
export type BoardSetupFunction = (controller: ISetupController) => void | Promise<void>;
export interface Plugin<PLUGINPARAMS, TARGET extends IGeneralMetadata<HookMap>> {

@@ -58,3 +58,3 @@ pluginName: string;

}
export declare type ReplaceParams<MAP extends HookMap, PARAMS> = {
export type ReplaceParams<MAP extends HookMap, PARAMS> = {
[hookname in keyof MAP]: NonNullable<MAP[hookname]> extends (pProps: never, ...params: infer HOOKPARAMS) => infer RES ? HOOK<PARAMS, HOOKPARAMS, RES> : never;

@@ -100,3 +100,3 @@ };

}
export declare type BoardSetupStageFunction = (board: IRenderableMetadataBase, parentElement: HTMLElement) => {
export type BoardSetupStageFunction = (board: IRenderableMetadataBase, parentElement: HTMLElement) => {
canvas: HTMLElement;

@@ -107,3 +107,3 @@ cleanup: () => void;

};
export declare type CanvasStyles = Pick<CSSStyleDeclaration, 'height' | 'width' | 'paddingLeft' | 'paddingRight' | 'paddingBottom' | 'paddingTop' | 'marginLeft' | 'marginRight' | 'marginBottom' | 'marginTop'>;
export type CanvasStyles = Pick<CSSStyleDeclaration, 'height' | 'width' | 'paddingLeft' | 'paddingRight' | 'paddingBottom' | 'paddingTop' | 'marginLeft' | 'marginRight' | 'marginBottom' | 'marginTop'>;
//# sourceMappingURL=types.d.ts.map
{
"name": "@wixc3/board-core",
"description": "Types and helpers for component boards",
"version": "2.1.3",
"version": "2.2.0",
"main": "dist/index.js",

@@ -13,4 +13,4 @@ "files": [

"license": "MIT",
"repository": "https://github.com/wixplosives/wcs-core/tree/master/packages/board-core",
"homepage": "https://github.com/wixplosives/wcs-core",
"repository": "https://github.com/wixplosives/codux-core/tree/master/packages/board-core",
"homepage": "https://github.com/wixplosives/codux-core",
"publishConfig": {

@@ -17,0 +17,0 @@ "access": "public"

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

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