New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@bpmn-io/form-js-playground

Package Overview
Dependencies
Maintainers
9
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.8.0 to 0.9.0

46

dist/index.es.js

@@ -205,3 +205,4 @@ import { render } from 'preact';

editor: editorConfig = {},
emit
emit,
exporter: exporterConfig = {}
} = props;

@@ -242,3 +243,6 @@ const {

get: (name, strict) => formEditorRef.current.get(name, strict),
setSchema: setInitialSchema
getEditor: () => formEditorRef.current,
getSchema: () => formEditorRef.current.getSchema(),
setSchema: setInitialSchema,
saveSchema: () => formEditorRef.current.saveSchema()
});

@@ -267,3 +271,4 @@ });

parent: !inlinePropertiesPanel && propertiesPanelContainerRef.current
}
},
exporter: exporterConfig
});

@@ -307,6 +312,6 @@ paletteRef.current = formEditor.get('palette');

useEffect(() => {
formEditorRef.current.importSchema(initialSchema);
initialSchema && formEditorRef.current.importSchema(initialSchema);
}, [initialSchema]);
useEffect(() => {
formRef.current.importSchema(schema, data);
schema && formRef.current.importSchema(schema, data);
}, [schema, data]);

@@ -433,13 +438,18 @@ useEffect(() => {

fn(...args);
return fn(...args);
};
};
const onInit = function (_ref) {
ref = _ref;
emitter.emit('formPlayground.init');
};
container.addEventListener('dragover', handleDrop);
render(jsx(PlaygroundRoot, {
schema: schema,
data: data,
emit: emitter.emit,
onInit: onInit,
onStateChanged: _state => state = _state,
onInit: _ref => ref = _ref,
emit: emitter.emit,
schema: schema,
...rest

@@ -461,9 +471,17 @@ }), container);

this.setSchema = function (schema) {
this.getSchema = withRef(function () {
return ref.getSchema();
});
this.setSchema = withRef(function (schema) {
return ref.setSchema(schema);
};
this.get = function (name, strict) {
});
this.saveSchema = withRef(function () {
return ref.saveSchema();
});
this.get = withRef(function (name, strict) {
return ref.get(name, strict);
};
});
this.getEditor = withRef(function () {
return ref.getEditor();
});

@@ -470,0 +488,0 @@ this.destroy = function () {

export function EmbedModal(props: any): any;

@@ -0,0 +0,0 @@ export function JSONEditor(options?: {}): void;

export function Modal(props: any): any;
export function PlaygroundRoot(props: any): any;

@@ -0,0 +0,0 @@ export function Section(props: any): any;

export { default as Playground } from "./Playground";
/**
* @typedef { {
* container?: Element,
* schema: any,
* data: any,
* actions?: { display: Boolean }
* container?: Element
* data: any
* editor?: { inlinePropertiesPanel: Boolean }
* actions?: { display: Boolean }
* exporter?: { name: String, version: String }
* schema: any
* } } FormPlaygroundOptions

@@ -17,7 +18,8 @@ */

* @typedef { {
* container?: Element,
* schema: any,
* data: any,
* actions?: { display: Boolean }
* container?: Element
* data: any
* editor?: { inlinePropertiesPanel: Boolean }
* actions?: { display: Boolean }
* exporter?: { name: String, version: String }
* schema: any
* } } FormPlaygroundOptions

@@ -45,15 +47,20 @@ */

};
setSchema: (schema: any) => any;
get: (name: any, strict: any) => any;
getSchema: (...args: any[]) => any;
setSchema: (...args: any[]) => any;
saveSchema: (...args: any[]) => any;
get: (...args: any[]) => any;
getEditor: (...args: any[]) => any;
destroy: () => void;
attachEditorContainer: (...args: any[]) => void;
attachPreviewContainer: (...args: any[]) => void;
attachDataContainer: (...args: any[]) => void;
attachResultContainer: (...args: any[]) => void;
attachPaletteContainer: (...args: any[]) => void;
attachPropertiesPanelContainer: (...args: any[]) => void;
attachEditorContainer: (...args: any[]) => any;
attachPreviewContainer: (...args: any[]) => any;
attachDataContainer: (...args: any[]) => any;
attachResultContainer: (...args: any[]) => any;
attachPaletteContainer: (...args: any[]) => any;
attachPropertiesPanelContainer: (...args: any[]) => any;
}
export type FormPlaygroundOptions = {
actions?: {
display: boolean;
};
container?: Element;
schema: any;
data: any;

@@ -63,5 +70,7 @@ editor?: {

};
actions?: {
display: boolean;
exporter?: {
name: string;
version: string;
};
schema: any;
};
{
"name": "@bpmn-io/form-js-playground",
"version": "0.8.0",
"version": "0.9.0",
"description": "A form-js playground",

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

"dependencies": {
"@bpmn-io/form-js-editor": "^0.8.0",
"@bpmn-io/form-js-viewer": "^0.8.0",
"@bpmn-io/form-js-editor": "^0.9.0",
"@bpmn-io/form-js-viewer": "^0.9.0",
"@codemirror/lang-json": "^6.0.0",

@@ -70,3 +70,3 @@ "@codemirror/state": "^6.1.1",

},
"gitHead": "0d9bff2b98491fb96944135e78106cbf807c580a"
"gitHead": "10ea539989ea857adc7511e5f1a80a99c7ec96b1"
}

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

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