@formio/js 5.0.0-rc.31 → 5.0.0-rc.32

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,7 +12,7 @@
12
12
 
13
13
  /*! @license DOMPurify 3.0.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.6/LICENSE */
14
14
 
15
- /*! formiojs v5.0.0-rc.31 | https://unpkg.com/formiojs@5.0.0-rc.31/LICENSE.txt */
15
+ /*! formiojs v5.0.0-rc.32 | https://unpkg.com/formiojs@5.0.0-rc.32/LICENSE.txt */
16
16
 
17
17
  /**
18
18
  * @license
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0-rc.31",
3
+ "version": "5.0.0-rc.32",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {
package/types/formio.d.ts CHANGED
@@ -1,5 +1,11 @@
1
1
  import EventEmitter from 'eventemitter3';
2
2
  import Plugins from './Plugins';
3
+
4
+ export interface FormioLibrarySource {
5
+ type: string;
6
+ src: string;
7
+ }
8
+
3
9
  /**
4
10
  * The Formio class options interface.
5
11
  */
@@ -160,6 +166,10 @@ export declare class Formio {
160
166
  * A direct interface to the Form.io fetch Headers polyfill.
161
167
  */
162
168
  static Headers: any;
169
+ /**
170
+ * The rules definitions.
171
+ */
172
+ static rulesEntities: any;
163
173
  /**
164
174
  * All of the auth tokens for this session.
165
175
  */
@@ -1173,7 +1183,7 @@ export declare class Formio {
1173
1183
  * @param {boolean} polling - Determines if polling should be used to determine if they library is ready to use. If set to false, then it will rely on a global callback called ${name}Callback where "name" is the first property passed to this method. When this is called, that will indicate when the library is ready. In most cases, you will want to pass true to this parameter to initiate a polling method to check for the library availability in the global context.
1174
1184
  * @return {Promise<object>} - A promise that will resolve when the plugin is ready to be used.
1175
1185
  */
1176
- static requireLibrary(name: string, property: string, src: string | Array<string>, polling?: boolean, onload?: (ready: Promise<any>) => void): any;
1186
+ static requireLibrary(name: string, property: string, src: string | Array<string> | FormioLibrarySource | Array<FormioLibrarySource>, polling?: boolean, onload?: (ready: Promise<any>) => void): any;
1177
1187
  /**
1178
1188
  * Determines if a lazy loaded library is ready to be used.
1179
1189
  *