@planet/maps 11.2.0-dev.1772038358100 → 11.2.0-dev.1772044344270

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.
@@ -5,9 +5,9 @@ export function updateInstanceFromProps(arg0: any, arg1: string, arg2: {
5
5
  }): any;
6
6
  /**
7
7
  * @param {React.ReactNode} element The element to render.
8
- * @param {any} container The container.
8
+ * @param {any} containerInfo The container.
9
9
  */
10
- export function render(element: React.ReactNode, container: any): void;
10
+ export function render(element: React.ReactNode, containerInfo: any): void;
11
11
  export type InstanceProps = {
12
12
  /**
13
13
  * A class.
@@ -1 +1 @@
1
- {"version":3,"file":"render.d.ts","sourceRoot":"","sources":["render.js"],"names":[],"mappings":";;;;;AAqcA;;;GAGG;AACH,gCAHW,KAAK,CAAC,SAAS,aACf,GAAG,QAsBb;;;;;SA1Va,KAAI,OAAO,EAAE,GAAG,KAAK,GAAG;;;;cACxB,GAAG"}
1
+ {"version":3,"file":"render.d.ts","sourceRoot":"","sources":["render.js"],"names":[],"mappings":";;;;;AAucA;;;GAGG;AACH,gCAHW,KAAK,CAAC,SAAS,iBACf,GAAG,QAkCb;;;;;SAzWa,KAAI,OAAO,EAAE,GAAG,KAAK,GAAG;;;;cACxB,GAAG"}
@@ -13,7 +13,6 @@ import ReactReconciler from 'react-reconciler';
13
13
  import {
14
14
  ConcurrentRoot,
15
15
  DefaultEventPriority,
16
- //@ts-ignore (TODO: remove after https://github.com/DefinitelyTyped/DefinitelyTyped/pull/72046 is released)
17
16
  NoEventPriority,
18
17
  } from 'react-reconciler/constants.js';
19
18
  import {CONTROL, INTERACTION, LAYER, OVERLAY, SOURCE, VIEW} from './config.js';
@@ -451,27 +450,42 @@ const reconciler = ReactReconciler({
451
450
  */
452
451
  const roots = new Map();
453
452
 
453
+ const logError =
454
+ typeof reportError === 'function' ? reportError : console.error; // eslint-disable-line no-console
455
+
454
456
  /**
455
457
  * @param {React.ReactNode} element The element to render.
456
- * @param {any} container The container.
458
+ * @param {any} containerInfo The container.
457
459
  */
458
- export function render(element, container) {
459
- let root = roots.get(container);
460
+ export function render(element, containerInfo) {
461
+ let root = roots.get(containerInfo);
460
462
  if (!root) {
461
- const logRecoverableError =
462
- typeof reportError === 'function' ? reportError : console.error; // eslint-disable-line no-console
463
+ // naming arguments as they are in rect-reconciler
464
+ const tag = ConcurrentRoot;
465
+ const hydrationCallbacks = null;
466
+ const isStrictMode = false;
467
+ const concurrentUpdatesByDefaultOverride = false;
468
+ const identifierPrefix = '';
469
+ const onUncaughtError = logError;
470
+ const onCaughtError = logError;
471
+ const onRecoverableError = logError;
472
+ const onDefaultTransitionIndicator = function () {};
473
+ const transitionCallbacks = null;
463
474
 
464
475
  root = reconciler.createContainer(
465
- container,
466
- ConcurrentRoot,
467
- null,
468
- false,
469
- null,
470
- '',
471
- logRecoverableError,
472
- null,
476
+ containerInfo,
477
+ tag,
478
+ hydrationCallbacks,
479
+ isStrictMode,
480
+ concurrentUpdatesByDefaultOverride,
481
+ identifierPrefix,
482
+ onUncaughtError,
483
+ onCaughtError,
484
+ onRecoverableError,
485
+ onDefaultTransitionIndicator,
486
+ transitionCallbacks,
473
487
  );
474
- roots.set(container, root);
488
+ roots.set(containerInfo, root);
475
489
  }
476
490
 
477
491
  reconciler.updateContainer(element, root, null, null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@planet/maps",
3
- "version": "11.2.0-dev.1772038358100",
3
+ "version": "11.2.0-dev.1772044344270",
4
4
  "description": "Declarative mapping components for React",
5
5
  "type": "module",
6
6
  "repository": {
@@ -36,12 +36,13 @@
36
36
  "@astrojs/mdx": "^4.0.3",
37
37
  "@astrojs/react": "^4.0.0",
38
38
  "@octokit/rest": "^22.0.0",
39
- "@playwright/test": "^1.25.2",
40
- "@testing-library/react": "^16.0.0",
39
+ "@playwright/test": "^1.58.2",
40
+ "@testing-library/react": "^16.3.2",
41
41
  "@types/react": "^19.1.9",
42
42
  "@types/react-dom": "^19.1.7",
43
43
  "@types/react-reconciler": "^0.32.1",
44
- "@vitest/browser": "^3.0.7",
44
+ "@vitest/browser": "^4.0.18",
45
+ "@vitest/browser-playwright": "^4.0.18",
45
46
  "astro": "^5.1.1",
46
47
  "eslint": "^9.37.0",
47
48
  "eslint-config-planet": "^23.2.0",
@@ -65,8 +66,8 @@
65
66
  "shikiji": "^0.10.2",
66
67
  "typescript": "^5.7.3",
67
68
  "unified": "^11.0.2",
68
- "vite": "^7.1.9",
69
- "vitest": "^3.0.7",
69
+ "vite": "^7.3.1",
70
+ "vitest": "^4.0.18",
70
71
  "yargs-parser": "^22.0.0"
71
72
  },
72
73
  "dependencies": {