@conterra/ct-mapapps-typings 4.18.2-next.20240716095610 → 4.18.3-RC-1
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/agssearch/package.json +1 -1
- package/apprt/package.json +1 -1
- package/apprt-binding/package.json +1 -1
- package/apprt-core/package.json +1 -1
- package/apprt-dom/package.json +1 -1
- package/apprt-fetch/package.json +1 -1
- package/apprt-request/package.json +1 -1
- package/apprt-streams/package.json +1 -1
- package/apprt-tokens/package.json +1 -1
- package/apprt-vue/package.json +1 -1
- package/apprt-vuetify/package.json +1 -1
- package/coordinatetransformer/package.json +1 -1
- package/ct/package.json +1 -1
- package/dataform/package.json +1 -1
- package/dataview/package.json +1 -1
- package/domains-system/package.json +1 -1
- package/editing/package.json +1 -1
- package/esri-widgets/package.json +1 -1
- package/geojson/package.json +1 -1
- package/geometryservice/package.json +1 -1
- package/graphics/package.json +1 -1
- package/highlights/package.json +1 -1
- package/integration-map/package.json +1 -1
- package/managementlayout/package.json +1 -1
- package/map-actions/package.json +1 -1
- package/map-basemaps-api/package.json +1 -1
- package/map-config-api/package.json +1 -1
- package/map-init/package.json +1 -1
- package/map-widget/package.json +1 -1
- package/mapdraw-api/package.json +1 -1
- package/mapnavigation/package.json +1 -1
- package/maptips/package.json +1 -1
- package/omnisearch/package.json +1 -1
- package/package.json +1 -1
- package/parametermanager/package.json +1 -1
- package/popups/package.json +1 -1
- package/result-api/package.json +1 -1
- package/resultcenter/package.json +1 -1
- package/search-api/package.json +1 -1
- package/search-ui/package.json +1 -1
- package/selection-resultcenter/package.json +1 -1
- package/selection-services/package.json +1 -1
- package/store-api/package.json +1 -1
- package/style-guide/package.json +1 -1
- package/system/package.json +1 -1
- package/templatelayout/package.json +1 -1
- package/test-utils/later.d.ts +2 -0
- package/test-utils/package.json +1 -1
- package/test-utils/waitFor.d.ts +52 -0
- package/test-utils/waitForProperty.d.ts +1 -0
- package/theme-tester/package.json +1 -1
- package/toc/package.json +1 -1
- package/toolrules/package.json +1 -1
- package/toolset/package.json +1 -1
- package/vuetify-component-overview/package.json +1 -1
- package/windowmanager/package.json +1 -1
- package/wizard/package.json +1 -1
package/agssearch/package.json
CHANGED
package/apprt/package.json
CHANGED
package/apprt-core/package.json
CHANGED
package/apprt-dom/package.json
CHANGED
package/apprt-fetch/package.json
CHANGED
package/apprt-vue/package.json
CHANGED
package/ct/package.json
CHANGED
package/dataform/package.json
CHANGED
package/dataview/package.json
CHANGED
package/editing/package.json
CHANGED
package/geojson/package.json
CHANGED
package/graphics/package.json
CHANGED
package/highlights/package.json
CHANGED
package/map-actions/package.json
CHANGED
package/map-init/package.json
CHANGED
package/map-widget/package.json
CHANGED
package/mapdraw-api/package.json
CHANGED
package/maptips/package.json
CHANGED
package/omnisearch/package.json
CHANGED
package/package.json
CHANGED
package/popups/package.json
CHANGED
package/result-api/package.json
CHANGED
package/search-api/package.json
CHANGED
package/search-ui/package.json
CHANGED
package/store-api/package.json
CHANGED
package/style-guide/package.json
CHANGED
package/system/package.json
CHANGED
package/test-utils/later.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ import Promise$1 from 'apprt-core/Promise';
|
|
|
16
16
|
* // check state
|
|
17
17
|
* });
|
|
18
18
|
* }
|
|
19
|
+
* @deprecated use {@link test-utils/waitFor} instead.
|
|
19
20
|
*/
|
|
20
21
|
declare function later(cb?: number | Function | undefined, delay?: number | undefined): Promise$1<any>;
|
|
21
22
|
/**
|
|
@@ -35,6 +36,7 @@ declare function later(cb?: number | Function | undefined, delay?: number | unde
|
|
|
35
36
|
* // check state
|
|
36
37
|
* });
|
|
37
38
|
* }
|
|
39
|
+
* @deprecated use {@link test-utils/waitFor} instead.
|
|
38
40
|
*/
|
|
39
41
|
declare function customDelay(delay: number): Function;
|
|
40
42
|
|
package/test-utils/package.json
CHANGED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/** Options supported by {@link waitFor} and {@link waitUntil}. */
|
|
2
|
+
interface WaitOptions {
|
|
3
|
+
/** The maximum time to wait for the resolver to be fulfilled. Default is 150ms. */
|
|
4
|
+
timeout?: number;
|
|
5
|
+
/** The interval in milliseconds to check the resolver. Default is 5ms. */
|
|
6
|
+
interval?: number;
|
|
7
|
+
/** The maximum number of checks to perform. */
|
|
8
|
+
maxChecks?: number;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Waits for a resolver to return a value.
|
|
12
|
+
* Continues checking until `resolver` does _not_ throw an error.
|
|
13
|
+
*
|
|
14
|
+
* @param resolver The condition/resolver to be fulfilled.
|
|
15
|
+
* The resolver needs to throw an error to communicate that the value is not yet ready.
|
|
16
|
+
*
|
|
17
|
+
* @returns A promise that transports the value of the resolver.
|
|
18
|
+
*
|
|
19
|
+
* @throws An error if the condition is not fulfilled within the specified timeout.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* import { waitFor } from "test-utils/waitFor";
|
|
24
|
+
*
|
|
25
|
+
* const result = await waitFor(() => {
|
|
26
|
+
* const value = getValue();
|
|
27
|
+
* if (value === undefined) {
|
|
28
|
+
* throw new Error("Value not ready");
|
|
29
|
+
* }
|
|
30
|
+
* return value;
|
|
31
|
+
* });
|
|
32
|
+
* assert.equal(result, "myValue");
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
declare function waitFor<T>(resolver: () => Promise<T> | T, options?: WaitOptions): Promise<T>;
|
|
36
|
+
type Falsy = false | 0 | null | undefined;
|
|
37
|
+
type NonFalsy<T> = Exclude<T, Falsy>;
|
|
38
|
+
/**
|
|
39
|
+
* This function is similar to like {@link waitFor} but it will wait until the `resolver` returns a truthy value.
|
|
40
|
+
* If the `resolver` throws an error, the function rejects immediately.
|
|
41
|
+
*
|
|
42
|
+
* @see waitFor
|
|
43
|
+
*/
|
|
44
|
+
declare function waitUntil<T>(resolver: () => Promise<T> | T, options?: WaitOptions): Promise<NonFalsy<T>>;
|
|
45
|
+
/**
|
|
46
|
+
* Sleeps for a certain amount of time.
|
|
47
|
+
*
|
|
48
|
+
* @param timeout The time to wait in milliseconds.
|
|
49
|
+
*/
|
|
50
|
+
declare function sleep(timeout?: number): Promise<void>;
|
|
51
|
+
|
|
52
|
+
export { type WaitOptions, sleep, waitFor, waitUntil };
|
|
@@ -23,6 +23,7 @@ import Promise$1 from 'apprt-core/CancelablePromise';
|
|
|
23
23
|
* (v) => v === 1,
|
|
24
24
|
* {timeout:100});
|
|
25
25
|
* assert.equal(value, 1);
|
|
26
|
+
* @deprecated use {@link test-utils/waitFor} instead.
|
|
26
27
|
*/
|
|
27
28
|
declare function waitForProperty(mutable: Mutable | Accessor | Stateful, property: string, comparatorOrExpectedValue?: Function | undefined | value, { timeout }?: Object | undefined): Promise$1<any>;
|
|
28
29
|
|
package/toc/package.json
CHANGED
package/toolrules/package.json
CHANGED
package/toolset/package.json
CHANGED
package/wizard/package.json
CHANGED