@uniformdev/mesh-sdk 17.3.1-alpha.194 → 17.4.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.d.ts +11 -4
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ interface MeshLocationCore<TValue = unknown, TMetadata = unknown, TSetValue = TV
|
|
|
26
26
|
metadata: TMetadata;
|
|
27
27
|
/**
|
|
28
28
|
* Instructs Uniform to set the validity of the location in the parent app.
|
|
29
|
+
* @deprecated - use setValue(value, validationResult) instead
|
|
29
30
|
*/
|
|
30
31
|
setValidationResult: (value: ValidationResult) => Promise<void>;
|
|
31
32
|
/**
|
|
@@ -37,7 +38,11 @@ interface MeshLocationCore<TValue = unknown, TMetadata = unknown, TSetValue = TV
|
|
|
37
38
|
* This is undefined when the current location is not a dialog.
|
|
38
39
|
*/
|
|
39
40
|
dialogContext?: DialogContext & {
|
|
41
|
+
/** Parameters passed to the dialog when it was opened */
|
|
40
42
|
params: unknown;
|
|
43
|
+
/**
|
|
44
|
+
* Returns a result to the dialog opener.
|
|
45
|
+
*/
|
|
41
46
|
returnDialogValue: (value: unknown) => Promise<void>;
|
|
42
47
|
};
|
|
43
48
|
}
|
|
@@ -176,10 +181,12 @@ declare type DialogParams = {
|
|
|
176
181
|
[paramName: string]: DialogParamValue;
|
|
177
182
|
};
|
|
178
183
|
declare type CSSHeight = '-moz-initial' | 'inherit' | 'initial' | 'revert' | 'unset' | '-moz-max-content' | '-moz-min-content' | '-webkit-fit-content' | 'auto' | 'fit-content' | 'max-content' | 'min-content' | `${number}${'px' | 'em' | 'rem' | 'vh'}`;
|
|
179
|
-
|
|
180
|
-
isValid
|
|
181
|
-
validationMessage
|
|
182
|
-
}
|
|
184
|
+
declare type ValidationResult = {
|
|
185
|
+
isValid: false;
|
|
186
|
+
validationMessage: string;
|
|
187
|
+
} | {
|
|
188
|
+
isValid: true;
|
|
189
|
+
};
|
|
183
190
|
|
|
184
191
|
interface SdkWindow {
|
|
185
192
|
/** The current window object. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.4.0",
|
|
4
4
|
"description": "Uniform Mesh Framework SDK",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@uniformdev/canvas": "^17.
|
|
32
|
+
"@uniformdev/canvas": "^17.4.0",
|
|
33
33
|
"mitt": "^3.0.0"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "77580d40fbad3c838310f09824d29c067686fa64"
|
|
36
36
|
}
|