@trackunit/react-map-draw 0.0.45 → 0.0.46

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/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@trackunit/react-map-draw",
3
- "version": "0.0.45",
3
+ "version": "0.0.46",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
7
7
  "node": ">=24.x"
8
8
  },
9
9
  "dependencies": {
10
- "@trackunit/react-map-adapter-shared": "0.0.207",
11
- "@trackunit/geo-json-utils": "1.21.40",
10
+ "@trackunit/react-map-adapter-shared": "0.0.208",
11
+ "@trackunit/geo-json-utils": "1.21.41",
12
12
  "es-toolkit": "^1.52.0",
13
13
  "terra-draw": "^1.36.0"
14
14
  },
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Lets queued promise callbacks run, such as a `DrawController` loader settling.
3
+ *
4
+ * Deliberately not `flushPromises` from `@trackunit/react-core-contexts-test`: that is a
5
+ * React and GraphQL test package (it imports `@testing-library/react` and honours the
6
+ * `ORG_setTimeout` hooks of the host test setup), while `react-map-draw` is a vanilla
7
+ * library whose testing entry depends on vitest and terra-draw only.
8
+ */
9
+ export declare const flush: () => Promise<void>;
@@ -5,3 +5,4 @@
5
5
  */
6
6
  export { HOLED, SQUARE, TRIANGLE, describeDrawPortContract } from "./drawPortContract";
7
7
  export { FakeTerraDrawAdapter } from "./FakeTerraDrawAdapter";
8
+ export { flush } from "./flush";