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

@bpmn-io/form-js-viewer

Package Overview
Dependencies
Maintainers
9
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bpmn-io/form-js-viewer - npm Package Compare versions

Comparing version 0.12.2 to 0.13.0

dist/assets/form-js-base.css

10

dist/types/core/index.d.ts

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

export { FormFieldRegistry };
declare namespace _default {

@@ -10,10 +9,11 @@ const __depends__: ({

})[];
const conditionChecker: (string | typeof ConditionChecker)[];
const eventBus: any[];
const formFieldRegistry: (string | typeof FormFieldRegistry)[];
const formLayouter: (string | typeof FormLayouter)[];
const validator: (string | typeof Validator)[];
}
export default _default;
import FormFieldRegistry from "./FormFieldRegistry";
import { ConditionChecker } from "./ConditionChecker";
import Validator from "./Validator";
import FormFieldRegistry from './FormFieldRegistry';
import FormLayouter from './FormLayouter';
import Validator from './Validator';
export { FormFieldRegistry, FormLayouter };

@@ -115,2 +115,36 @@ /**

/**
* @internal
*/
_getModules(): ({
__init__: string[];
expressionLanguage: (string | typeof import("./features/expression-language").FeelExpressionLanguage)[];
/**
* @typedef { import('./types').Injector } Injector
* @typedef { import('./types').Data } Data
* @typedef { import('./types').Errors } Errors
* @typedef { import('./types').Schema } Schema
* @typedef { import('./types').FormProperties } FormProperties
* @typedef { import('./types').FormProperty } FormProperty
* @typedef { import('./types').FormEvent } FormEvent
* @typedef { import('./types').FormOptions } FormOptions
*
* @typedef { {
* data: Data,
* initialData: Data,
* errors: Errors,
* properties: FormProperties,
* schema: Schema
* } } State
*
* @typedef { (type:FormEvent, priority:number, handler:Function) => void } OnEventWithPriority
* @typedef { (type:FormEvent, handler:Function) => void } OnEventWithOutPriority
* @typedef { OnEventWithPriority & OnEventWithOutPriority } OnEventType
*/
templating: (string | typeof import("./features/expression-language").FeelersTemplating)[];
conditionChecker: (string | typeof import("./features/expression-language").ConditionChecker)[];
} | {
__init__: string[];
markdownRenderer: (string | typeof import("./features/markdown").MarkdownRenderer)[];
})[];
/**
* @internal

@@ -117,0 +151,0 @@ */

@@ -6,6 +6,8 @@ declare class Importer {

* @param { import('../render/FormFields').default } formFields
* @param { import('../core').FormLayouter } formLayouter
*/
constructor(formFieldRegistry: import('../core').FormFieldRegistry, formFields: import('../render/FormFields').default);
constructor(formFieldRegistry: import('../core').FormFieldRegistry, formFields: import('../render/FormFields').default, formLayouter: import('../core').FormLayouter);
_formFieldRegistry: import("../core").FormFieldRegistry;
_formFields: import("../render/FormFields").default;
_formLayouter: import("../core").FormLayouter;
/**

@@ -12,0 +14,0 @@ * Import schema adding `id`, `_parent` and `_path`

@@ -5,2 +5,2 @@ declare namespace _default {

export default _default;
import Importer from "./Importer";
import Importer from './Importer';

@@ -12,8 +12,9 @@ /**

export function createForm(options: CreateFormOptions): Promise<Form>;
export { FormFieldRegistry } from "./core";
export * from "./render";
export * from "./util";
export * from "./features";
export type CreateFormOptions = import('./types').CreateFormOptions;
import Form from "./Form";
export const schemaVersion: 7;
import Form from './Form';
export const schemaVersion: 8;
export { Form };
export { FormFieldRegistry, FormLayouter } from "./core";

@@ -18,2 +18,2 @@ declare function Checklist(props: any): import("preact").JSX.Element;

declare const type: "checklist";
import { sanitizeMultiSelectValue } from "../util/sanitizerUtil";
import { sanitizeMultiSelectValue } from '../util/sanitizerUtil';

@@ -13,2 +13,2 @@ declare function Datetime(props: any): import("preact").JSX.Element;

declare const type: "datetime";
import { sanitizeDateTimePickerValue } from "../util/sanitizerUtil";
import { sanitizeDateTimePickerValue } from '../util/sanitizerUtil';

@@ -18,2 +18,2 @@ declare function Radio(props: any): import("preact").JSX.Element;

declare const type: "radio";
import { sanitizeSingleSelectValue } from "../util/sanitizerUtil";
import { sanitizeSingleSelectValue } from '../util/sanitizerUtil';

@@ -18,2 +18,2 @@ declare function Select(props: any): import("preact").JSX.Element;

declare const type: "select";
import { sanitizeSingleSelectValue } from "../util/sanitizerUtil";
import { sanitizeSingleSelectValue } from '../util/sanitizerUtil';

@@ -18,2 +18,2 @@ declare function Taglist(props: any): import("preact").JSX.Element;

declare const type: "taglist";
import { sanitizeMultiSelectValue } from "../util/sanitizerUtil";
import { sanitizeMultiSelectValue } from '../util/sanitizerUtil';
export const formFields: (typeof Default | typeof Image)[];
export * from "./icons";
import Button from "./form-fields/Button";
import Checkbox from "./form-fields/Checkbox";
import Checklist from "./form-fields/Checklist";
import Default from "./form-fields/Default";
import Datetime from "./form-fields/Datetime";
import FormComponent from "./FormComponent";
import Image from "./form-fields/Image";
import Numberfield from "./form-fields/Number";
import Radio from "./form-fields/Radio";
import Select from "./form-fields/Select";
import Taglist from "./form-fields/Taglist";
import Text from "./form-fields/Text";
import Textfield from "./form-fields/Textfield";
import Textarea from "./form-fields/Textarea";
import Button from './form-fields/Button';
import Checkbox from './form-fields/Checkbox';
import Checklist from './form-fields/Checklist';
import Default from './form-fields/Default';
import Datetime from './form-fields/Datetime';
import FormComponent from './FormComponent';
import Image from './form-fields/Image';
import Numberfield from './form-fields/Number';
import Radio from './form-fields/Radio';
import Select from './form-fields/Select';
import Taglist from './form-fields/Taglist';
import Text from './form-fields/Text';
import Textfield from './form-fields/Textfield';
import Textarea from './form-fields/Textarea';
export { Button, Checkbox, Checklist, Default, Datetime, FormComponent, Image, Numberfield, Radio, Select, Taglist, Text, Textfield, Textarea };

@@ -8,2 +8,11 @@ /**

export function sanitizeHTML(html: string): string;
export function sanitizeImageSource(src: any): any;
/**
* Sanitizes an image source to ensure we only allow for data URI and links
* that start with http(s).
*
* Note: Most browsers anyway do not support script execution in <img> elements.
*
* @param {string} src
* @returns {string}
*/
export function sanitizeImageSource(src: string): string;

@@ -5,14 +5,3 @@ export function formFieldClasses(type: any, { errors, disabled }?: {

}): string;
export function gridColumnClasses(formField: any): string;
export function prefixId(id: any, formId: any): string;
export function markdownToHTML(markdown: any): any;
export function safeMarkdown(markdown: any): string;
/**
* Sanitizes an image source to ensure we only allow for data URI and links
* that start with http(s).
*
* Note: Most browsers anyway do not support script execution in <img> elements.
*
* @param {string} src
* @returns {string}
*/
export function safeImageSource(src: string): string;
export default FormRenderContext;
declare const FormRenderContext: import("preact").Context<{
Empty: (props: any) => any;
Children: (props: any) => any;
Element: (props: any) => any;
Children: (props: any) => import("preact").JSX.Element;
Element: (props: any) => import("preact").JSX.Element;
Row: (props: any) => import("preact").JSX.Element;
Column: (props: any) => any;
}>;
/**
* Check if condition is met with given variables.
* Evaluate if condition is met reactively based on the conditionChecker and form data.
*
* @param {string | undefined} condition
* @param {import('../../types').Data} data
*
* @returns {boolean} true if condition is met or no condition or condition checker exists
*/
export function useCondition(condition: string | undefined, data: import('../../types').Data): boolean;
export default function useCondition(condition: string | undefined): boolean;

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

export default function _default(type: any, strict: any): any;
export default function useService(type: any, strict: any): any;

@@ -10,3 +10,3 @@ export { FormFields };

export default _default;
import FormFields from "./FormFields";
import Renderer from "./Renderer";
import FormFields from './FormFields';
import Renderer from './Renderer';

@@ -22,6 +22,6 @@ export function findErrors(errors: any, path: any): any;

*/
export function getSchemaVariables(schema: any): string[];
export function getSchemaVariables(schema: any, expressionLanguage?: FeelExpressionLanguage): string[];
export * from "./constants";
export * from "./injector";
export * from "./form";
export * from "./feel";
import FeelExpressionLanguage from '../features/expression-language/FeelExpressionLanguage.js';
export function createInjector(bootstrapModules: any): Injector;
import { Injector } from "didi";
import { Injector } from 'didi';
{
"name": "@bpmn-io/form-js-viewer",
"version": "0.12.2",
"version": "0.13.0",
"description": "View forms - powered by bpmn.io",

@@ -11,3 +11,3 @@ "exports": {

"./dist/assets/form-js.css": "./dist/assets/form-js.css",
"./dist/assets/flatpickr/light.css": "./dist/assets/flatpickr/light.css",
"./dist/assets/form-js-base.css": "./dist/assets/form-js-base.css",
"./package.json": "./package.json"

@@ -23,6 +23,9 @@ },

"all": "run-s test build",
"build": "run-p bundle generate-types",
"build": "run-p bundle bundle:scss generate-types",
"start": "SINGLE_START=basic npm run dev",
"bundle": "rollup -c --failAfterWarnings --bundleConfigAsCjs",
"bundle:watch": "rollup -c -w --bundleConfigAsCjs",
"bundle:scss": "sass --no-source-map --load-path=\"../../node_modules\" assets/index.scss dist/assets/form-js.css",
"bundle:watch": "run-p bundle:watch-js bundle:watch-scss",
"bundle:watch-js": "rollup -c -w --bundleConfigAsCjs",
"bundle:watch-scss": "npm run bundle:scss -- --watch",
"dev": "npm test -- --auto-watch --no-single-run",

@@ -44,3 +47,3 @@ "generate-types": "tsc --allowJs --skipLibCheck --declaration --emitDeclarationOnly --outDir dist/types src/index.js && copyfiles --flat src/*.d.ts dist/types",

"dependencies": {
"@bpmn-io/snarkdown": "^2.1.0",
"@carbon/grid": "^11.11.0",
"big.js": "^6.2.1",

@@ -54,3 +57,4 @@ "classnames": "^2.3.1",

"preact": "^10.5.14",
"preact-markup": "^2.1.1"
"preact-markup": "^2.1.1",
"showdown": "^2.1.0"
},

@@ -63,3 +67,3 @@ "sideEffects": [

],
"gitHead": "38ab0923aff2de4e04094ddd8465cc201863dc9f"
"gitHead": "580e837b1daddd43fcbc24e9fa4bbaf358825692"
}

@@ -63,3 +63,2 @@ # @bpmn-io/form-js-viewer

<link href="https://unpkg.com/@bpmn-io/form-js/dist/assets/form-js.css" rel="stylesheet">
<link href="https://unpkg.com/@bpmn-io/form-js/dist/assets/flatpickr/light.css" rel="stylesheet">
```

@@ -66,0 +65,0 @@

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 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