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

@draftbit/types

Package Overview
Dependencies
Maintainers
3
Versions
1214
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@draftbit/types - npm Package Compare versions

Comparing version 40.36.1 to 40.36.2-2409ba.7

17

lib/commonjs/component-types.js

@@ -238,3 +238,2 @@ "use strict";

required: true,
min: 0,
step: 1,

@@ -293,3 +292,3 @@ ...overrides

formType: FORM_TYPES.flatArray,
defaultValue: "horizontal",
defaultValue: null,
options: ["horizontal", "vertical"],

@@ -341,3 +340,3 @@ ...overrides

propType: PROP_TYPES.STRING,
defaultValue: null,
defaultValue: "value",
valuePropName: "value",

@@ -357,3 +356,13 @@ handlerPropName: "onChange",

const createActionProp = (overrides = {}) => createFieldNameProp(overrides);
const createActionProp = (overrides = {}) => ({
label: "Action",
description: "Action to execute when button pressed",
editable: true,
required: false,
formType: FORM_TYPES.action,
propType: PROP_TYPES.STRING,
defaultValue: null,
group: GROUPS.basic,
...overrides
});

@@ -360,0 +369,0 @@ exports.createActionProp = createActionProp;

@@ -196,3 +196,2 @@ // @ts-nocheck

required: true,
min: 0,
step: 1,

@@ -239,3 +238,3 @@ ...overrides

formType: FORM_TYPES.flatArray,
defaultValue: "horizontal",
defaultValue: null,
options: ["horizontal", "vertical"],

@@ -278,3 +277,3 @@ ...overrides

propType: PROP_TYPES.STRING,
defaultValue: null,
defaultValue: "value",
valuePropName: "value",

@@ -289,3 +288,13 @@ handlerPropName: "onChange",

});
export const createActionProp = (overrides = {}) => createFieldNameProp(overrides);
export const createActionProp = (overrides = {}) => ({
label: "Action",
description: "Action to execute when button pressed",
editable: true,
required: false,
formType: FORM_TYPES.action,
propType: PROP_TYPES.STRING,
defaultValue: null,
group: GROUPS.basic,
...overrides
});
export const createStateValue = (overrides = {}) => ({ ...FIELD_NAME,

@@ -292,0 +301,0 @@ ...overrides

@@ -166,3 +166,2 @@ export declare const PROP_TYPES: {

required: boolean;
min: number;
step: number;

@@ -249,3 +248,3 @@ };

propType: string;
defaultValue: null;
defaultValue: string;
valuePropName: string;

@@ -263,3 +262,3 @@ handlerPropName: string;

propType: string;
defaultValue: null;
defaultValue: string;
valuePropName: string;

@@ -270,12 +269,10 @@ editable: boolean;

export declare const createActionProp: (overrides?: {}) => {
handlerPropName: string;
group: string;
label: string;
description: string;
editable: boolean;
required: boolean;
formType: string;
propType: string;
defaultValue: null;
valuePropName: string;
editable: boolean;
required: boolean;
group: string;
};

@@ -288,3 +285,3 @@ export declare const createStateValue: (overrides?: {}) => {

propType: string;
defaultValue: null;
defaultValue: string;
valuePropName: string;

@@ -291,0 +288,0 @@ handlerPropName: string;

{
"name": "@draftbit/types",
"version": "40.36.1",
"version": "40.36.2-2409ba.7+2409ba7",
"description": "Shared constants and types between native and core components",

@@ -53,3 +53,3 @@ "main": "lib/commonjs/index.js",

},
"gitHead": "1451375fed60bae228bbac406fbc68f651b22910"
"gitHead": "2409ba7c3b91d98228101f3ceb72e5df8d476c42"
}

@@ -207,3 +207,2 @@ // @ts-nocheck

required: true,
min: 0,
step: 1,

@@ -256,3 +255,3 @@ ...overrides,

formType: FORM_TYPES.flatArray,
defaultValue: "horizontal",
defaultValue: null,
options: ["horizontal", "vertical"],

@@ -302,3 +301,3 @@ ...overrides,

propType: PROP_TYPES.STRING,
defaultValue: null,
defaultValue: "value",
valuePropName: "value",

@@ -316,4 +315,13 @@ handlerPropName: "onChange",

export const createActionProp = (overrides = {}) =>
createFieldNameProp(overrides);
export const createActionProp = (overrides = {}) => ({
label: "Action",
description: "Action to execute when button pressed",
editable: true,
required: false,
formType: FORM_TYPES.action,
propType: PROP_TYPES.STRING,
defaultValue: null,
group: GROUPS.basic,
...overrides,
});

@@ -320,0 +328,0 @@ export const createStateValue = (overrides = {}) => ({

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