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
0
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 1.11.0 to 1.11.1

dist/types/render/FileRegistry.d.ts

5

dist/types/core/FormFieldInstanceRegistry.d.ts

@@ -7,4 +7,5 @@ export class FormFieldInstanceRegistry {

_formFieldInstances: {};
add(instance: any): string;
remove(instanceId: any): void;
syncInstance(instanceId: any, formFieldInfo: any): any;
cleanupInstance(instanceId: any): void;
get(instanceId: any): any;
getAll(): any[];

@@ -11,0 +12,0 @@ getAllKeyed(): any[];

1

dist/types/core/index.d.ts

@@ -6,2 +6,3 @@ export namespace CoreModule {

renderer: (string | typeof import("../render/Renderer").Renderer)[];
fileRegistry: (string | typeof import("../render/FileRegistry").FileRegistry)[];
}[];

@@ -8,0 +9,0 @@ let eventBus: (string | typeof EventBus)[];

export class RepeatRenderManager {
constructor(form: any, formFields: any, formFieldRegistry: any, pathRegistry: any);
constructor(form: any, formFields: any, formFieldRegistry: any, pathRegistry: any, eventBus: any);
_form: any;
_formFields: any;
_formFieldRegistry: any;
_pathRegistry: any;
/** @type {import('../../render/FormFields').FormFields} */
_formFields: import('../../render/FormFields').FormFields;
/** @type {import('../../core/FormFieldRegistry').FormFieldRegistry} */
_formFieldRegistry: import('../../core/FormFieldRegistry').FormFieldRegistry;
/** @type {import('../../core/PathRegistry').PathRegistry} */
_pathRegistry: import('../../core/PathRegistry').PathRegistry;
/** @type {import('../../core/EventBus').EventBus} */
_eventBus: import('../../core/EventBus').EventBus;
Repeater(props: any): import("preact").JSX.Element;

@@ -8,0 +13,0 @@ RepeatFooter(props: any): import("preact").JSX.Element;

@@ -58,3 +58,3 @@ /**

*
* @returns { { data: Data, errors: Errors } }
* @returns { { data: Data, errors: Errors, files: Map<string, File[]> } }
*/

@@ -64,2 +64,3 @@ submit(): {

errors: Errors;
files: Map<string, File[]>;
};

@@ -66,0 +67,0 @@ reset(): void;

@@ -13,3 +13,4 @@ /**

* @property {string} [field.accept]
* @property {boolean} [field.multiple]
* @property {string|boolean} [field.multiple]
* @property {string} [value]
*

@@ -27,5 +28,2 @@ * @param {Props} props

let emptyValue: any;
function sanitizeValue({ value }: {
value: any;
}): any;
function create(options?: {}): {};

@@ -47,4 +45,5 @@ }

accept?: string;
multiple?: boolean;
multiple?: string | boolean;
};
value?: string;
};

@@ -7,2 +7,3 @@ export { useCondition } from "./useCondition";

export { useExpressionEvaluation } from "./useExpressionEvaluation";
export { useBooleanExpressionEvaluation } from "./useBooleanExpressionEvaluation";
export { useFilteredFormData } from "./useFilteredFormData";

@@ -9,0 +10,0 @@ export { useKeyDownAction } from "./useKeyDownAction";

/**
* Evaluate a string reactively based on the expressionLanguage and form data.
* If the string is not an expression, it is returned as is.
* If the value is a valid expression, it is evaluated and returned. Otherwise, it is returned as-is.
* The function is memoized to minimize re-renders.
*
* @param {string} value - The string to evaluate.
* @param {any} value - A static value or expression to evaluate.
* @returns {any} - Evaluated value or the original value if not an expression.
*/
export function useExpressionEvaluation(value: string): any;
export function useExpressionEvaluation(value: any): any;

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

export function useService(type: any, strict: any): any;
/**
* @template T
* @param {string} type
* @param {boolean} [strict=true]
* @returns {T | null}
*/
export function useService<T>(type: string, strict?: boolean): T;

@@ -8,5 +8,7 @@ export { FormFields };

let renderer: (string | typeof Renderer)[];
let fileRegistry: (string | typeof FileRegistry)[];
}
import { FormFields } from './FormFields';
import { Renderer } from './Renderer';
import { FileRegistry } from './FileRegistry';
export { useExpressionEvaluation, useSingleLineTemplateEvaluation, useTemplateEvaluation } from "./hooks";

@@ -9,10 +9,9 @@ /**

/**
* Evaluate a string based on the expressionLanguage and context information.
* If the string is not an expression, it is returned as is.
* If the value is a valid expression, it is evaluated and returned. Otherwise, it is returned as-is.
*
* @param {any} expressionLanguage - The expression language to use.
* @param {string} value - The string to evaluate.
* @param {any} value - The static value or expression to evaluate.
* @param {Object} expressionContextInfo - The context information to use.
* @returns {any} - Evaluated value or the original value if not an expression.
*/
export function runExpressionEvaluation(expressionLanguage: any, value: string, expressionContextInfo: any): any;
export function runExpressionEvaluation(expressionLanguage: any, value: any, expressionContextInfo: any): any;
{
"name": "@bpmn-io/form-js-viewer",
"version": "1.11.0",
"version": "1.11.1",
"description": "View forms - powered by bpmn.io",

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

],
"gitHead": "d1731fe95e832b1408564d14dc6d4a139a6a90ab"
"gitHead": "fa5965e45151907b42d679b38b466efa526b1a7b"
}

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