@bpmn-io/form-js-viewer 1.23.1 → 1.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +18 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +18 -20
- package/dist/index.es.js.map +1 -1
- package/package.json +5 -5
package/dist/index.es.js
CHANGED
|
@@ -5861,7 +5861,7 @@ const EMPTY_ARRAY$1 = [];
|
|
|
5861
5861
|
* @returns {import("preact").JSX.Element}
|
|
5862
5862
|
*/
|
|
5863
5863
|
function FilePicker(props) {
|
|
5864
|
-
/** @type {import("preact
|
|
5864
|
+
/** @type {import("preact").RefObject<HTMLInputElement>} */
|
|
5865
5865
|
const fileInputRef = useRef(null);
|
|
5866
5866
|
/** @type {import('../../FileRegistry').FileRegistry} */
|
|
5867
5867
|
const fileRegistry = useService('fileRegistry', false);
|
|
@@ -5951,7 +5951,6 @@ function FilePicker(props) {
|
|
|
5951
5951
|
children: [jsx("button", {
|
|
5952
5952
|
type: "button",
|
|
5953
5953
|
disabled: isInputDisabled,
|
|
5954
|
-
readOnly: readonly,
|
|
5955
5954
|
className: "fjs-button fjs-filepicker-button",
|
|
5956
5955
|
onClick: () => {
|
|
5957
5956
|
fileInputRef.current.click();
|
|
@@ -6983,10 +6982,10 @@ const MarkdownRendererModule = {
|
|
|
6983
6982
|
/**
|
|
6984
6983
|
* @typedef {import('didi').Injector} Injector
|
|
6985
6984
|
*
|
|
6986
|
-
* @typedef {import('../core/Types').ElementLike} ElementLike
|
|
6985
|
+
* @typedef {import('../core/Types.js').ElementLike} ElementLike
|
|
6987
6986
|
*
|
|
6988
|
-
* @typedef {import('../core/EventBus').default} EventBus
|
|
6989
|
-
* @typedef {import('./CommandHandler').default} CommandHandler
|
|
6987
|
+
* @typedef {import('../core/EventBus.js').default} EventBus
|
|
6988
|
+
* @typedef {import('./CommandHandler.js').default} CommandHandler
|
|
6990
6989
|
*
|
|
6991
6990
|
* @typedef { any } CommandContext
|
|
6992
6991
|
* @typedef { {
|
|
@@ -7782,7 +7781,6 @@ class RepeatRenderManager {
|
|
|
7782
7781
|
}),
|
|
7783
7782
|
children: [showAdd ? jsx("button", {
|
|
7784
7783
|
type: "button",
|
|
7785
|
-
readOnly: readonly,
|
|
7786
7784
|
disabled: disabled || readonly,
|
|
7787
7785
|
class: "fjs-repeat-render-add",
|
|
7788
7786
|
ref: addButtonRef,
|
|
@@ -8025,11 +8023,11 @@ function EventBus() {
|
|
|
8025
8023
|
*
|
|
8026
8024
|
* Returning anything but `undefined` from a listener will stop the listener propagation.
|
|
8027
8025
|
*
|
|
8028
|
-
* @template
|
|
8026
|
+
* @template {keyof EventMap} EventName
|
|
8029
8027
|
*
|
|
8030
|
-
* @param {
|
|
8028
|
+
* @param {EventName} events to subscribe to
|
|
8031
8029
|
* @param {number} [priority=1000] listen priority
|
|
8032
|
-
* @param {EventBusEventCallback<
|
|
8030
|
+
* @param {EventBusEventCallback<EventMap[EventName]>} callback
|
|
8033
8031
|
* @param {any} [that] callback context
|
|
8034
8032
|
*/
|
|
8035
8033
|
/**
|
|
@@ -8044,11 +8042,11 @@ function EventBus() {
|
|
|
8044
8042
|
*
|
|
8045
8043
|
* Returning anything but `undefined` from a listener will stop the listener propagation.
|
|
8046
8044
|
*
|
|
8047
|
-
* @template
|
|
8045
|
+
* @template T
|
|
8048
8046
|
*
|
|
8049
|
-
* @param {
|
|
8047
|
+
* @param {string|string[]} events to subscribe to
|
|
8050
8048
|
* @param {number} [priority=1000] listen priority
|
|
8051
|
-
* @param {EventBusEventCallback<
|
|
8049
|
+
* @param {EventBusEventCallback<T>} callback
|
|
8052
8050
|
* @param {any} [that] callback context
|
|
8053
8051
|
*/
|
|
8054
8052
|
EventBus.prototype.on = function (events, priority, callback, that) {
|
|
@@ -8085,21 +8083,21 @@ EventBus.prototype.on = function (events, priority, callback, that) {
|
|
|
8085
8083
|
*
|
|
8086
8084
|
* Register an event listener that is called only once.
|
|
8087
8085
|
*
|
|
8088
|
-
* @template
|
|
8086
|
+
* @template {keyof EventMap} EventName
|
|
8089
8087
|
*
|
|
8090
|
-
* @param {
|
|
8091
|
-
* @param {number} [priority=1000]
|
|
8092
|
-
* @param {EventBusEventCallback<
|
|
8088
|
+
* @param {EventName} events to subscribe to
|
|
8089
|
+
* @param {number} [priority=1000] listen priority
|
|
8090
|
+
* @param {EventBusEventCallback<EventMap[EventName]>} callback
|
|
8093
8091
|
* @param {any} [that] callback context
|
|
8094
8092
|
*/
|
|
8095
8093
|
/**
|
|
8096
8094
|
* Register an event listener that is called only once.
|
|
8097
8095
|
*
|
|
8098
|
-
* @template
|
|
8096
|
+
* @template T
|
|
8099
8097
|
*
|
|
8100
|
-
* @param {
|
|
8101
|
-
* @param {number} [priority=1000] listen priority
|
|
8102
|
-
* @param {EventBusEventCallback<
|
|
8098
|
+
* @param {string|string[]} events to subscribe to
|
|
8099
|
+
* @param {number} [priority=1000] the listen priority
|
|
8100
|
+
* @param {EventBusEventCallback<T>} callback
|
|
8103
8101
|
* @param {any} [that] callback context
|
|
8104
8102
|
*/
|
|
8105
8103
|
EventBus.prototype.once = function (events, priority, callback, that) {
|