3
3
* Licensed under the MIT License.
4
4
*/
5
5
6
+ import {
7
+ ArrayChangeSetIterator ,
8
+ PathHelper ,
9
+ TypeIdHelper ,
10
+ Utils ,
11
+ } from "@fluid-experimental/property-changeset" ;
6
12
/**
7
13
* @fileoverview Defines the base DataBinding that all DataBindings should inherit from.
8
14
*/
@@ -11,40 +17,34 @@ import {
11
17
PropertyFactory ,
12
18
ReferenceProperty ,
13
19
} from "@fluid-experimental/property-properties" ;
14
- import {
15
- PathHelper ,
16
- TypeIdHelper ,
17
- ArrayChangeSetIterator ,
18
- Utils ,
19
- } from "@fluid-experimental/property-changeset" ;
20
20
21
21
import _ from "lodash" ;
22
- import { ModificationContext } from "./modificationContext.js" ;
23
- import { RemovalContext } from "./removalContext.js" ;
24
22
import {
25
- getOrInsertDefaultInNestedObjects ,
26
23
getInNestedObjects ,
24
+ getOrInsertDefaultInNestedObjects ,
27
25
} from "../external/utils/nestedObjectHelpers.js" ;
26
+ import { DataBinder , DataBinderHandle , IRegisterOnPathOptions } from "../index.js" ;
27
+ import { RESOLVE_ALWAYS , RESOLVE_NEVER , RESOLVE_NO_LEAFS } from "../internal/constants.js" ;
28
+ import { PropertyElement } from "../internal/propertyElement.js" ;
29
+ import { isCollection , isReferenceProperty } from "../internal/typeGuards.js" ;
30
+ import { IRegisterOnPropertyOptions } from "./IRegisterOnPropertyOptions.js" ;
31
+ import { concatTokenizedPath } from "./dataBindingTree.js" ;
28
32
import {
33
+ createHandle ,
34
+ createRegistrationFunction ,
35
+ deferCallback ,
29
36
escapeTokenizedPathForMap ,
30
- unescapeTokenizedStringForMap ,
37
+ getOrCreateMemberOnPrototype ,
31
38
initializeReferencePropertyTableNode ,
32
- invokeCallbacks ,
33
- deferCallback ,
34
- isDataBindingRegistered ,
35
39
installForEachPrototypeMember ,
36
- getOrCreateMemberOnPrototype ,
37
- createHandle ,
38
- invokeWithProperty ,
40
+ invokeCallbacks ,
39
41
invokeWithCollectionProperty ,
40
- createRegistrationFunction ,
42
+ invokeWithProperty ,
43
+ isDataBindingRegistered ,
44
+ unescapeTokenizedStringForMap ,
41
45
} from "./internalUtils.js" ;
42
- import { concatTokenizedPath } from "./dataBindingTree.js" ;
43
- import { RESOLVE_NEVER , RESOLVE_ALWAYS , RESOLVE_NO_LEAFS } from "../internal/constants.js" ;
44
- import { PropertyElement } from "../internal/propertyElement.js" ;
45
- import { DataBinder , DataBinderHandle , IRegisterOnPathOptions } from "../index.js" ;
46
- import { isCollection , isReferenceProperty } from "../internal/typeGuards.js" ;
47
- import { IRegisterOnPropertyOptions } from "./IRegisterOnPropertyOptions.js" ;
46
+ import { ModificationContext } from "./modificationContext.js" ;
47
+ import { RemovalContext } from "./removalContext.js" ;
48
48
49
49
/**
50
50
* _globalVisitIndex is to avoid callbacks being called twice. This works around bugs in getChangesToTokenizedPaths
0 commit comments