|
1 | 1 | import packageData from '../../package.json' |
2 | 2 | import * as THREE from 'three' |
3 | 3 | import * as React from 'react' |
4 | | -import Reconciler from 'react-reconciler' |
5 | | -import { ContinuousEventPriority, DiscreteEventPriority, DefaultEventPriority } from 'react-reconciler/constants' |
| 4 | +import Reconciler from '../../react-reconciler/index.js' |
| 5 | +import { |
| 6 | + ContinuousEventPriority, |
| 7 | + DiscreteEventPriority, |
| 8 | + DefaultEventPriority, |
| 9 | +} from '../../react-reconciler/constants.js' |
6 | 10 | import { unstable_IdlePriority as idlePriority, unstable_scheduleCallback as scheduleCallback } from 'scheduler' |
7 | 11 | import { |
8 | 12 | diffProps, |
@@ -561,7 +565,6 @@ export const reconciler = /* @__PURE__ */ createReconciler< |
561 | 565 | requestPostPaintCallback() {}, |
562 | 566 | maySuspendCommit: () => false, |
563 | 567 | preloadInstance: () => true, // true indicates already loaded |
564 | | - startSuspendingCommit() {}, |
565 | 568 | suspendInstance() {}, |
566 | 569 | waitForCommitToBeReady: () => null, |
567 | 570 | NotPendingTransition: null, |
@@ -602,4 +605,69 @@ export const reconciler = /* @__PURE__ */ createReconciler< |
602 | 605 | // @ts-ignore DefinitelyTyped is not up to date |
603 | 606 | rendererPackageName: '@react-three/fiber', |
604 | 607 | rendererVersion: packageData.version, |
| 608 | + |
| 609 | + // https://github.com/facebook/react/pull/31975 |
| 610 | + // https://github.com/facebook/react/pull/31999 |
| 611 | + applyViewTransitionName(_instance: any, _name: any, _className: any) {}, |
| 612 | + restoreViewTransitionName(_instance: any, _props: any) {}, |
| 613 | + cancelViewTransitionName(_instance: any, _name: any, _props: any) {}, |
| 614 | + cancelRootViewTransitionName(_rootContainer: any) {}, |
| 615 | + restoreRootViewTransitionName(_rootContainer: any) {}, |
| 616 | + InstanceMeasurement: null, |
| 617 | + measureInstance: (_instance: any) => null, |
| 618 | + wasInstanceInViewport: (_measurement: any): boolean => true, |
| 619 | + hasInstanceChanged: (_oldMeasurement: any, _newMeasurement: any): boolean => false, |
| 620 | + hasInstanceAffectedParent: (_oldMeasurement: any, _newMeasurement: any): boolean => false, |
| 621 | + |
| 622 | + // https://github.com/facebook/react/pull/32002 |
| 623 | + // https://github.com/facebook/react/pull/34486 |
| 624 | + suspendOnActiveViewTransition(_state: any, _container: any) {}, |
| 625 | + |
| 626 | + // https://github.com/facebook/react/pull/32451 |
| 627 | + // https://github.com/facebook/react/pull/32760 |
| 628 | + startGestureTransition: () => null, |
| 629 | + startViewTransition: () => null, |
| 630 | + stopViewTransition(_transition: null) {}, |
| 631 | + |
| 632 | + // https://github.com/facebook/react/pull/32038 |
| 633 | + createViewTransitionInstance: (_name: string): null => null, |
| 634 | + |
| 635 | + // https://github.com/facebook/react/pull/32379 |
| 636 | + // https://github.com/facebook/react/pull/32786 |
| 637 | + getCurrentGestureOffset(_provider: null): number { |
| 638 | + throw new Error('startGestureTransition is not yet supported in react-three-fiber.') |
| 639 | + }, |
| 640 | + |
| 641 | + // https://github.com/facebook/react/pull/32500 |
| 642 | + cloneMutableInstance(instance: any, _keepChildren: any) { |
| 643 | + return instance |
| 644 | + }, |
| 645 | + cloneMutableTextInstance(textInstance: any) { |
| 646 | + return textInstance |
| 647 | + }, |
| 648 | + cloneRootViewTransitionContainer(_rootContainer: any) { |
| 649 | + throw new Error('Not implemented.') |
| 650 | + }, |
| 651 | + removeRootViewTransitionClone(_rootContainer: any, _clone: any) { |
| 652 | + throw new Error('Not implemented.') |
| 653 | + }, |
| 654 | + |
| 655 | + // https://github.com/facebook/react/pull/32465 |
| 656 | + createFragmentInstance: (_fiber: any): null => null, |
| 657 | + updateFragmentInstanceFiber(_fiber: any, _instance: any): void {}, |
| 658 | + commitNewChildToFragmentInstance(_child: any, _fragmentInstance: any): void {}, |
| 659 | + deleteChildFromFragmentInstance(_child: any, _fragmentInstance: any): void {}, |
| 660 | + |
| 661 | + // https://github.com/facebook/react/pull/32653 |
| 662 | + measureClonedInstance: (_instance: any) => null, |
| 663 | + |
| 664 | + // https://github.com/facebook/react/pull/32819 |
| 665 | + maySuspendCommitOnUpdate: (_type: any, _oldProps: any, _newProps: any) => false, |
| 666 | + maySuspendCommitInSyncRender: (_type: any, _props: any) => false, |
| 667 | + |
| 668 | + // https://github.com/facebook/react/pull/34486 |
| 669 | + startSuspendingCommit: () => null, |
| 670 | + |
| 671 | + // https://github.com/facebook/react/pull/34522 |
| 672 | + getSuspendedCommitReason: (_state: any, _rootContainer: any) => null, |
605 | 673 | }) |
0 commit comments