@bpmn-io/form-js-viewer
Advanced tools
Comparing version 0.10.0-alpha.1 to 0.10.0-alpha.2
@@ -10,2 +10,3 @@ export { FormFieldRegistry }; | ||
})[]; | ||
const conditionChecker: (string | typeof ConditionChecker)[]; | ||
const eventBus: any[]; | ||
@@ -17,2 +18,3 @@ const formFieldRegistry: (string | typeof FormFieldRegistry)[]; | ||
import FormFieldRegistry from "./FormFieldRegistry"; | ||
import { ConditionChecker } from "./ConditionChecker"; | ||
import Validator from "./Validator"; |
@@ -122,2 +122,6 @@ /** | ||
_getSubmitData(): any; | ||
/** | ||
* @internal | ||
*/ | ||
_applyConditions(toFilter: any, data: any): any; | ||
} | ||
@@ -124,0 +128,0 @@ export type Injector = import('./types').Injector; |
@@ -36,5 +36,5 @@ declare class Importer { | ||
* | ||
* @return {Object} importedData | ||
* @return {Object} initializedData | ||
*/ | ||
importData(data: any): any; | ||
initializeFieldValues(data: any): any; | ||
} | ||
@@ -41,0 +41,0 @@ declare namespace Importer { |
@@ -1,7 +0,8 @@ | ||
declare function Number(props: any): import("preact").JSX.Element; | ||
declare namespace Number { | ||
declare function Numberfield(props: any): import("preact").JSX.Element; | ||
declare namespace Numberfield { | ||
export function create(options?: {}): {}; | ||
export function sanitizeValue({ value }: { | ||
export function sanitizeValue({ value, formField }: { | ||
value: any; | ||
}): number; | ||
formField: any; | ||
}): any; | ||
export { type }; | ||
@@ -12,3 +13,3 @@ export const keyed: boolean; | ||
} | ||
export default Number; | ||
export default Numberfield; | ||
declare const type: "number"; |
@@ -1,2 +0,2 @@ | ||
export const formFields: (typeof Button | typeof Default | typeof Radio | typeof Text)[]; | ||
export const formFields: (typeof Image)[]; | ||
import Button from "./form-fields/Button"; | ||
@@ -7,3 +7,4 @@ import Checkbox from "./form-fields/Checkbox"; | ||
import FormComponent from "./FormComponent"; | ||
import Number from "./form-fields/Number"; | ||
import Image from "./form-fields/Image"; | ||
import Numberfield from "./form-fields/Number"; | ||
import Radio from "./form-fields/Radio"; | ||
@@ -15,2 +16,2 @@ import Select from "./form-fields/Select"; | ||
import Textarea from "./form-fields/Textarea"; | ||
export { Button, Checkbox, Checklist, Default, FormComponent, Number, Radio, Select, Taglist, Text, Textfield, Textarea }; | ||
export { Button, Checkbox, Checklist, Default, FormComponent, Image, Numberfield, Radio, Select, Taglist, Text, Textfield, Textarea }; |
@@ -8,1 +8,2 @@ /** | ||
export function sanitizeHTML(html: string): string; | ||
export function sanitizeImageSource(src: any): any; |
@@ -8,3 +8,13 @@ export function formFieldClasses(type: any, { errors, disabled }?: { | ||
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 function sanitizeSingleSelectValue(options: any): any; | ||
export function sanitizeMultiSelectValue(options: any): any; |
{ | ||
"name": "@bpmn-io/form-js-viewer", | ||
"version": "0.10.0-alpha.1", | ||
"version": "0.10.0-alpha.2", | ||
"description": "View forms - powered by bpmn.io", | ||
@@ -26,3 +26,3 @@ "exports": { | ||
"dev": "npm test -- --auto-watch --no-single-run", | ||
"generate-types": "tsc --allowJs --skipLibCheck --declaration --emitDeclarationOnly --outDir dist/types src/index.js && cp src/*.d.ts dist/types", | ||
"generate-types": "tsc --allowJs --skipLibCheck --declaration --emitDeclarationOnly --outDir dist/types src/index.js && copyfiles src/*.d.ts dist/types", | ||
"test": "karma start", | ||
@@ -43,4 +43,6 @@ "prepublishOnly": "npm run build" | ||
"@bpmn-io/snarkdown": "^2.1.0", | ||
"big.js": "^6.2.1", | ||
"classnames": "^2.3.1", | ||
"didi": "^9.0.0", | ||
"feelin": "^0.41.0", | ||
"ids": "^1.0.0", | ||
@@ -57,3 +59,3 @@ "min-dash": "^4.0.0", | ||
], | ||
"gitHead": "9bc2d1e01db3a1a38122632fb94f70d1e085243b" | ||
"gitHead": "df68b02bb080ad816ad17f8c629650f118e266bd" | ||
} |
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
553759
57
7109
9
+ Addedbig.js@^6.2.1
+ Addedfeelin@^0.41.0
+ Added@lezer/common@1.2.3(transitive)
+ Added@lezer/highlight@1.2.1(transitive)
+ Added@lezer/lr@1.4.2(transitive)
+ Addedbig.js@6.2.2(transitive)
+ Addedfeelin@0.41.0(transitive)
+ Addedlezer-feel@0.13.1(transitive)
+ Addedluxon@3.5.0(transitive)