@mpxjs/core 2.8.55 → 2.8.56
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/@types/index.d.ts +8 -2
- package/package.json +2 -2
package/@types/index.d.ts
CHANGED
|
@@ -86,7 +86,7 @@ type PropValueType<Def> = Def extends {
|
|
|
86
86
|
: Def extends FullPropType<infer T>
|
|
87
87
|
? T
|
|
88
88
|
: Def extends PropType<infer T>
|
|
89
|
-
? T
|
|
89
|
+
? T
|
|
90
90
|
: any;
|
|
91
91
|
|
|
92
92
|
type GetPropsType<T> = {
|
|
@@ -250,6 +250,11 @@ interface AnyConstructor {
|
|
|
250
250
|
prototype: any
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
+
interface WebviewConfig {
|
|
254
|
+
hostWhitelists?: Array<string>
|
|
255
|
+
apiImplementations?: object
|
|
256
|
+
}
|
|
257
|
+
|
|
253
258
|
interface MpxConfig {
|
|
254
259
|
useStrictDiff: boolean
|
|
255
260
|
ignoreWarning: boolean | string | RegExp | ((msg: string, location: string, e: Error) => boolean)
|
|
@@ -259,7 +264,8 @@ interface MpxConfig {
|
|
|
259
264
|
proxyEventHandler: (e: Event) => any | null
|
|
260
265
|
setDataHandler: (data: object, target: ComponentIns<{}, {}, {}, {}, []>) => any | null
|
|
261
266
|
forceFlushSync: boolean,
|
|
262
|
-
webRouteConfig: object
|
|
267
|
+
webRouteConfig: object,
|
|
268
|
+
webviewConfig?: WebviewConfig
|
|
263
269
|
}
|
|
264
270
|
|
|
265
271
|
type SupportedMode = 'wx' | 'ali' | 'qq' | 'swan' | 'tt' | 'web' | 'qa'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mpxjs/core",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.56",
|
|
4
4
|
"description": "mpx runtime core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"miniprogram",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"url": "https://github.com/didi/mpx/issues"
|
|
48
48
|
},
|
|
49
49
|
"sideEffects": false,
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "391feabc6246acfa17271aa632adf5da2c308a05"
|
|
51
51
|
}
|