@fluidframework/aqueduct 2.0.0-dev-rc.2.0.0.246488 → 2.0.0-dev-rc.3.0.0.253463

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.
Files changed (65) hide show
  1. package/dist/aqueduct-alpha.d.ts +22 -22
  2. package/dist/aqueduct-beta.d.ts +21 -21
  3. package/dist/aqueduct-public.d.ts +21 -21
  4. package/dist/aqueduct-untrimmed.d.ts +22 -22
  5. package/dist/container-runtime-factories/baseContainerRuntimeFactory.d.ts +7 -7
  6. package/dist/container-runtime-factories/baseContainerRuntimeFactory.d.ts.map +1 -1
  7. package/dist/container-runtime-factories/baseContainerRuntimeFactory.js +9 -10
  8. package/dist/container-runtime-factories/baseContainerRuntimeFactory.js.map +1 -1
  9. package/dist/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.d.ts +5 -5
  10. package/dist/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.d.ts.map +1 -1
  11. package/dist/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.js +2 -2
  12. package/dist/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.js.map +1 -1
  13. package/dist/data-object-factories/dataObjectFactory.d.ts +4 -4
  14. package/dist/data-object-factories/dataObjectFactory.d.ts.map +1 -1
  15. package/dist/data-object-factories/dataObjectFactory.js +6 -5
  16. package/dist/data-object-factories/dataObjectFactory.js.map +1 -1
  17. package/dist/data-object-factories/pureDataObjectFactory.d.ts +5 -5
  18. package/dist/data-object-factories/pureDataObjectFactory.d.ts.map +1 -1
  19. package/dist/data-object-factories/pureDataObjectFactory.js +9 -9
  20. package/dist/data-object-factories/pureDataObjectFactory.js.map +1 -1
  21. package/dist/data-objects/dataObject.d.ts +1 -1
  22. package/dist/data-objects/dataObject.d.ts.map +1 -1
  23. package/dist/data-objects/dataObject.js +3 -3
  24. package/dist/data-objects/dataObject.js.map +1 -1
  25. package/dist/data-objects/pureDataObject.d.ts +2 -2
  26. package/dist/data-objects/pureDataObject.d.ts.map +1 -1
  27. package/dist/data-objects/pureDataObject.js +6 -6
  28. package/dist/data-objects/pureDataObject.js.map +1 -1
  29. package/dist/data-objects/types.d.ts +3 -3
  30. package/dist/data-objects/types.d.ts.map +1 -1
  31. package/dist/data-objects/types.js.map +1 -1
  32. package/lib/aqueduct-alpha.d.ts +22 -22
  33. package/lib/aqueduct-beta.d.ts +21 -21
  34. package/lib/aqueduct-public.d.ts +21 -21
  35. package/lib/aqueduct-untrimmed.d.ts +22 -22
  36. package/lib/container-runtime-factories/baseContainerRuntimeFactory.d.ts +7 -7
  37. package/lib/container-runtime-factories/baseContainerRuntimeFactory.d.ts.map +1 -1
  38. package/lib/container-runtime-factories/baseContainerRuntimeFactory.js +5 -4
  39. package/lib/container-runtime-factories/baseContainerRuntimeFactory.js.map +1 -1
  40. package/lib/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.d.ts +5 -5
  41. package/lib/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.d.ts.map +1 -1
  42. package/lib/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.js +1 -1
  43. package/lib/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.js.map +1 -1
  44. package/lib/data-object-factories/dataObjectFactory.d.ts +4 -4
  45. package/lib/data-object-factories/dataObjectFactory.d.ts.map +1 -1
  46. package/lib/data-object-factories/dataObjectFactory.js +3 -2
  47. package/lib/data-object-factories/dataObjectFactory.js.map +1 -1
  48. package/lib/data-object-factories/pureDataObjectFactory.d.ts +5 -5
  49. package/lib/data-object-factories/pureDataObjectFactory.d.ts.map +1 -1
  50. package/lib/data-object-factories/pureDataObjectFactory.js +3 -3
  51. package/lib/data-object-factories/pureDataObjectFactory.js.map +1 -1
  52. package/lib/data-objects/dataObject.d.ts +1 -1
  53. package/lib/data-objects/dataObject.d.ts.map +1 -1
  54. package/lib/data-objects/dataObject.js +1 -1
  55. package/lib/data-objects/dataObject.js.map +1 -1
  56. package/lib/data-objects/pureDataObject.d.ts +2 -2
  57. package/lib/data-objects/pureDataObject.d.ts.map +1 -1
  58. package/lib/data-objects/pureDataObject.js +2 -2
  59. package/lib/data-objects/pureDataObject.js.map +1 -1
  60. package/lib/data-objects/types.d.ts +3 -3
  61. package/lib/data-objects/types.d.ts.map +1 -1
  62. package/lib/data-objects/types.js.map +1 -1
  63. package/lib/test/tsconfig.tsbuildinfo +1 -1
  64. package/lib/tsdoc-metadata.json +11 -0
  65. package/package.json +22 -31
@@ -13,36 +13,36 @@
13
13
  * @packageDocumentation
14
14
  */
15
15
 
16
- import { AsyncFluidObjectProvider } from '@fluidframework/synthesize';
17
- import { ContainerRuntime } from '@fluidframework/container-runtime';
18
- import { FluidDataStoreRuntime } from '@fluidframework/datastore';
16
+ import { AsyncFluidObjectProvider } from '@fluidframework/synthesize/internal';
17
+ import { ContainerRuntime } from '@fluidframework/container-runtime/internal';
18
+ import { FluidDataStoreRuntime } from '@fluidframework/datastore/internal';
19
19
  import { FluidObject } from '@fluidframework/core-interfaces';
20
- import { FluidObjectSymbolProvider } from '@fluidframework/synthesize';
20
+ import { FluidObjectSymbolProvider } from '@fluidframework/synthesize/internal';
21
21
  import { IChannelFactory } from '@fluidframework/datastore-definitions';
22
- import { IContainerContext } from '@fluidframework/container-definitions';
23
- import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
24
- import { IContainerRuntimeBase } from '@fluidframework/runtime-definitions';
25
- import { IContainerRuntimeOptions } from '@fluidframework/container-runtime';
26
- import { IDataStore } from '@fluidframework/runtime-definitions';
22
+ import { IContainerContext } from '@fluidframework/container-definitions/internal';
23
+ import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
24
+ import { IContainerRuntimeBase } from '@fluidframework/runtime-definitions/internal';
25
+ import { IContainerRuntimeOptions } from '@fluidframework/container-runtime/internal';
26
+ import { IDataStore } from '@fluidframework/runtime-definitions/internal';
27
27
  import { IEvent } from '@fluidframework/core-interfaces';
28
- import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions';
29
- import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions';
30
- import { IFluidDataStoreContextDetached } from '@fluidframework/runtime-definitions';
31
- import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
32
- import { IFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
28
+ import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions/internal';
29
+ import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions/internal';
30
+ import { IFluidDataStoreContextDetached } from '@fluidframework/runtime-definitions/internal';
31
+ import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions/internal';
32
+ import { IFluidDataStoreRegistry } from '@fluidframework/runtime-definitions/internal';
33
33
  import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
34
- import { IFluidDependencySynthesizer } from '@fluidframework/synthesize';
34
+ import { IFluidDependencySynthesizer } from '@fluidframework/synthesize/internal';
35
35
  import { IFluidHandle } from '@fluidframework/core-interfaces';
36
36
  import { IFluidLoadable } from '@fluidframework/core-interfaces';
37
- import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
37
+ import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions/internal';
38
38
  import { IProvideFluidHandle } from '@fluidframework/core-interfaces';
39
39
  import { IRequest } from '@fluidframework/core-interfaces';
40
40
  import { IResponse } from '@fluidframework/core-interfaces';
41
- import { ISharedDirectory } from '@fluidframework/map';
42
- import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions';
43
- import { NamedFluidDataStoreRegistryEntry } from '@fluidframework/runtime-definitions';
44
- import { RuntimeFactoryHelper } from '@fluidframework/runtime-utils';
45
- import { RuntimeRequestHandler } from '@fluidframework/request-handler';
41
+ import { ISharedDirectory } from '@fluidframework/map/internal';
42
+ import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions/internal';
43
+ import { NamedFluidDataStoreRegistryEntry } from '@fluidframework/runtime-definitions/internal';
44
+ import { RuntimeFactoryHelper } from '@fluidframework/runtime-utils/internal';
45
+ import { RuntimeRequestHandler } from '@fluidframework/request-handler/internal';
46
46
  import { TypedEventEmitter } from '@fluid-internal/client-utils';
47
47
 
48
48
  /**
@@ -197,7 +197,7 @@ export declare abstract class DataObject<I extends DataObjectTypes = DataObjectT
197
197
  * @alpha
198
198
  */
199
199
  export declare class DataObjectFactory<TObj extends DataObject<I>, I extends DataObjectTypes = DataObjectTypes> extends PureDataObjectFactory<TObj, I> {
200
- constructor(type: string, ctor: new (props: IDataObjectProps<I>) => TObj, sharedObjects: readonly IChannelFactory<IFluidLoadable>[] | undefined, optionalProviders: FluidObjectSymbolProvider<I["OptionalProviders"]>, registryEntries?: NamedFluidDataStoreRegistryEntries, runtimeFactory?: typeof FluidDataStoreRuntime);
200
+ constructor(type: string, ctor: new (props: IDataObjectProps<I>) => TObj, sharedObjects: readonly IChannelFactory<unknown>[] | undefined, optionalProviders: FluidObjectSymbolProvider<I["OptionalProviders"]>, registryEntries?: NamedFluidDataStoreRegistryEntries, runtimeFactory?: typeof FluidDataStoreRuntime);
201
201
  }
202
202
 
203
203
  /**
@@ -13,36 +13,36 @@
13
13
  * @packageDocumentation
14
14
  */
15
15
 
16
- import { AsyncFluidObjectProvider } from '@fluidframework/synthesize';
17
- import { ContainerRuntime } from '@fluidframework/container-runtime';
18
- import { FluidDataStoreRuntime } from '@fluidframework/datastore';
16
+ import { AsyncFluidObjectProvider } from '@fluidframework/synthesize/internal';
17
+ import { ContainerRuntime } from '@fluidframework/container-runtime/internal';
18
+ import { FluidDataStoreRuntime } from '@fluidframework/datastore/internal';
19
19
  import { FluidObject } from '@fluidframework/core-interfaces';
20
- import { FluidObjectSymbolProvider } from '@fluidframework/synthesize';
20
+ import { FluidObjectSymbolProvider } from '@fluidframework/synthesize/internal';
21
21
  import { IChannelFactory } from '@fluidframework/datastore-definitions';
22
- import { IContainerContext } from '@fluidframework/container-definitions';
23
- import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
24
- import { IContainerRuntimeBase } from '@fluidframework/runtime-definitions';
25
- import { IContainerRuntimeOptions } from '@fluidframework/container-runtime';
26
- import { IDataStore } from '@fluidframework/runtime-definitions';
22
+ import { IContainerContext } from '@fluidframework/container-definitions/internal';
23
+ import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
24
+ import { IContainerRuntimeBase } from '@fluidframework/runtime-definitions/internal';
25
+ import { IContainerRuntimeOptions } from '@fluidframework/container-runtime/internal';
26
+ import { IDataStore } from '@fluidframework/runtime-definitions/internal';
27
27
  import { IEvent } from '@fluidframework/core-interfaces';
28
- import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions';
29
- import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions';
30
- import { IFluidDataStoreContextDetached } from '@fluidframework/runtime-definitions';
31
- import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
32
- import { IFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
28
+ import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions/internal';
29
+ import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions/internal';
30
+ import { IFluidDataStoreContextDetached } from '@fluidframework/runtime-definitions/internal';
31
+ import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions/internal';
32
+ import { IFluidDataStoreRegistry } from '@fluidframework/runtime-definitions/internal';
33
33
  import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
34
- import { IFluidDependencySynthesizer } from '@fluidframework/synthesize';
34
+ import { IFluidDependencySynthesizer } from '@fluidframework/synthesize/internal';
35
35
  import { IFluidHandle } from '@fluidframework/core-interfaces';
36
36
  import { IFluidLoadable } from '@fluidframework/core-interfaces';
37
- import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
37
+ import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions/internal';
38
38
  import { IProvideFluidHandle } from '@fluidframework/core-interfaces';
39
39
  import { IRequest } from '@fluidframework/core-interfaces';
40
40
  import { IResponse } from '@fluidframework/core-interfaces';
41
- import { ISharedDirectory } from '@fluidframework/map';
42
- import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions';
43
- import { NamedFluidDataStoreRegistryEntry } from '@fluidframework/runtime-definitions';
44
- import { RuntimeFactoryHelper } from '@fluidframework/runtime-utils';
45
- import { RuntimeRequestHandler } from '@fluidframework/request-handler';
41
+ import { ISharedDirectory } from '@fluidframework/map/internal';
42
+ import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions/internal';
43
+ import { NamedFluidDataStoreRegistryEntry } from '@fluidframework/runtime-definitions/internal';
44
+ import { RuntimeFactoryHelper } from '@fluidframework/runtime-utils/internal';
45
+ import { RuntimeRequestHandler } from '@fluidframework/request-handler/internal';
46
46
  import { TypedEventEmitter } from '@fluid-internal/client-utils';
47
47
 
48
48
  /* Excluded from this release type: AsyncFluidObjectProvider */
@@ -13,36 +13,36 @@
13
13
  * @packageDocumentation
14
14
  */
15
15
 
16
- import { AsyncFluidObjectProvider } from '@fluidframework/synthesize';
17
- import { ContainerRuntime } from '@fluidframework/container-runtime';
18
- import { FluidDataStoreRuntime } from '@fluidframework/datastore';
16
+ import { AsyncFluidObjectProvider } from '@fluidframework/synthesize/internal';
17
+ import { ContainerRuntime } from '@fluidframework/container-runtime/internal';
18
+ import { FluidDataStoreRuntime } from '@fluidframework/datastore/internal';
19
19
  import { FluidObject } from '@fluidframework/core-interfaces';
20
- import { FluidObjectSymbolProvider } from '@fluidframework/synthesize';
20
+ import { FluidObjectSymbolProvider } from '@fluidframework/synthesize/internal';
21
21
  import { IChannelFactory } from '@fluidframework/datastore-definitions';
22
- import { IContainerContext } from '@fluidframework/container-definitions';
23
- import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
24
- import { IContainerRuntimeBase } from '@fluidframework/runtime-definitions';
25
- import { IContainerRuntimeOptions } from '@fluidframework/container-runtime';
26
- import { IDataStore } from '@fluidframework/runtime-definitions';
22
+ import { IContainerContext } from '@fluidframework/container-definitions/internal';
23
+ import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
24
+ import { IContainerRuntimeBase } from '@fluidframework/runtime-definitions/internal';
25
+ import { IContainerRuntimeOptions } from '@fluidframework/container-runtime/internal';
26
+ import { IDataStore } from '@fluidframework/runtime-definitions/internal';
27
27
  import { IEvent } from '@fluidframework/core-interfaces';
28
- import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions';
29
- import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions';
30
- import { IFluidDataStoreContextDetached } from '@fluidframework/runtime-definitions';
31
- import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
32
- import { IFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
28
+ import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions/internal';
29
+ import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions/internal';
30
+ import { IFluidDataStoreContextDetached } from '@fluidframework/runtime-definitions/internal';
31
+ import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions/internal';
32
+ import { IFluidDataStoreRegistry } from '@fluidframework/runtime-definitions/internal';
33
33
  import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
34
- import { IFluidDependencySynthesizer } from '@fluidframework/synthesize';
34
+ import { IFluidDependencySynthesizer } from '@fluidframework/synthesize/internal';
35
35
  import { IFluidHandle } from '@fluidframework/core-interfaces';
36
36
  import { IFluidLoadable } from '@fluidframework/core-interfaces';
37
- import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
37
+ import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions/internal';
38
38
  import { IProvideFluidHandle } from '@fluidframework/core-interfaces';
39
39
  import { IRequest } from '@fluidframework/core-interfaces';
40
40
  import { IResponse } from '@fluidframework/core-interfaces';
41
- import { ISharedDirectory } from '@fluidframework/map';
42
- import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions';
43
- import { NamedFluidDataStoreRegistryEntry } from '@fluidframework/runtime-definitions';
44
- import { RuntimeFactoryHelper } from '@fluidframework/runtime-utils';
45
- import { RuntimeRequestHandler } from '@fluidframework/request-handler';
41
+ import { ISharedDirectory } from '@fluidframework/map/internal';
42
+ import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions/internal';
43
+ import { NamedFluidDataStoreRegistryEntry } from '@fluidframework/runtime-definitions/internal';
44
+ import { RuntimeFactoryHelper } from '@fluidframework/runtime-utils/internal';
45
+ import { RuntimeRequestHandler } from '@fluidframework/request-handler/internal';
46
46
  import { TypedEventEmitter } from '@fluid-internal/client-utils';
47
47
 
48
48
  /* Excluded from this release type: AsyncFluidObjectProvider */
@@ -13,36 +13,36 @@
13
13
  * @packageDocumentation
14
14
  */
15
15
 
16
- import { AsyncFluidObjectProvider } from '@fluidframework/synthesize';
17
- import { ContainerRuntime } from '@fluidframework/container-runtime';
18
- import { FluidDataStoreRuntime } from '@fluidframework/datastore';
16
+ import { AsyncFluidObjectProvider } from '@fluidframework/synthesize/internal';
17
+ import { ContainerRuntime } from '@fluidframework/container-runtime/internal';
18
+ import { FluidDataStoreRuntime } from '@fluidframework/datastore/internal';
19
19
  import { FluidObject } from '@fluidframework/core-interfaces';
20
- import { FluidObjectSymbolProvider } from '@fluidframework/synthesize';
20
+ import { FluidObjectSymbolProvider } from '@fluidframework/synthesize/internal';
21
21
  import { IChannelFactory } from '@fluidframework/datastore-definitions';
22
- import { IContainerContext } from '@fluidframework/container-definitions';
23
- import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
24
- import { IContainerRuntimeBase } from '@fluidframework/runtime-definitions';
25
- import { IContainerRuntimeOptions } from '@fluidframework/container-runtime';
26
- import { IDataStore } from '@fluidframework/runtime-definitions';
22
+ import { IContainerContext } from '@fluidframework/container-definitions/internal';
23
+ import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
24
+ import { IContainerRuntimeBase } from '@fluidframework/runtime-definitions/internal';
25
+ import { IContainerRuntimeOptions } from '@fluidframework/container-runtime/internal';
26
+ import { IDataStore } from '@fluidframework/runtime-definitions/internal';
27
27
  import { IEvent } from '@fluidframework/core-interfaces';
28
- import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions';
29
- import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions';
30
- import { IFluidDataStoreContextDetached } from '@fluidframework/runtime-definitions';
31
- import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
32
- import { IFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
28
+ import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions/internal';
29
+ import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions/internal';
30
+ import { IFluidDataStoreContextDetached } from '@fluidframework/runtime-definitions/internal';
31
+ import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions/internal';
32
+ import { IFluidDataStoreRegistry } from '@fluidframework/runtime-definitions/internal';
33
33
  import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
34
- import { IFluidDependencySynthesizer } from '@fluidframework/synthesize';
34
+ import { IFluidDependencySynthesizer } from '@fluidframework/synthesize/internal';
35
35
  import { IFluidHandle } from '@fluidframework/core-interfaces';
36
36
  import { IFluidLoadable } from '@fluidframework/core-interfaces';
37
- import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
37
+ import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions/internal';
38
38
  import { IProvideFluidHandle } from '@fluidframework/core-interfaces';
39
39
  import { IRequest } from '@fluidframework/core-interfaces';
40
40
  import { IResponse } from '@fluidframework/core-interfaces';
41
- import { ISharedDirectory } from '@fluidframework/map';
42
- import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions';
43
- import { NamedFluidDataStoreRegistryEntry } from '@fluidframework/runtime-definitions';
44
- import { RuntimeFactoryHelper } from '@fluidframework/runtime-utils';
45
- import { RuntimeRequestHandler } from '@fluidframework/request-handler';
41
+ import { ISharedDirectory } from '@fluidframework/map/internal';
42
+ import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions/internal';
43
+ import { NamedFluidDataStoreRegistryEntry } from '@fluidframework/runtime-definitions/internal';
44
+ import { RuntimeFactoryHelper } from '@fluidframework/runtime-utils/internal';
45
+ import { RuntimeRequestHandler } from '@fluidframework/request-handler/internal';
46
46
  import { TypedEventEmitter } from '@fluid-internal/client-utils';
47
47
 
48
48
  /**
@@ -197,7 +197,7 @@ export declare abstract class DataObject<I extends DataObjectTypes = DataObjectT
197
197
  * @alpha
198
198
  */
199
199
  export declare class DataObjectFactory<TObj extends DataObject<I>, I extends DataObjectTypes = DataObjectTypes> extends PureDataObjectFactory<TObj, I> {
200
- constructor(type: string, ctor: new (props: IDataObjectProps<I>) => TObj, sharedObjects: readonly IChannelFactory<IFluidLoadable>[] | undefined, optionalProviders: FluidObjectSymbolProvider<I["OptionalProviders"]>, registryEntries?: NamedFluidDataStoreRegistryEntries, runtimeFactory?: typeof FluidDataStoreRuntime);
200
+ constructor(type: string, ctor: new (props: IDataObjectProps<I>) => TObj, sharedObjects: readonly IChannelFactory<unknown>[] | undefined, optionalProviders: FluidObjectSymbolProvider<I["OptionalProviders"]>, registryEntries?: NamedFluidDataStoreRegistryEntries, runtimeFactory?: typeof FluidDataStoreRuntime);
201
201
  }
202
202
 
203
203
  /**
@@ -2,14 +2,14 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
- import { type IContainerContext } from "@fluidframework/container-definitions";
6
- import { type IContainerRuntimeOptions, ContainerRuntime } from "@fluidframework/container-runtime";
7
- import { type IContainerRuntime } from "@fluidframework/container-runtime-definitions";
8
- import { type RuntimeRequestHandler } from "@fluidframework/request-handler";
9
- import { type IFluidDataStoreRegistry, type IProvideFluidDataStoreRegistry, type NamedFluidDataStoreRegistryEntries } from "@fluidframework/runtime-definitions";
10
- import { type IFluidDependencySynthesizer } from "@fluidframework/synthesize";
11
- import { RuntimeFactoryHelper } from "@fluidframework/runtime-utils";
5
+ import { type IContainerContext } from "@fluidframework/container-definitions/internal";
6
+ import { ContainerRuntime, type IContainerRuntimeOptions } from "@fluidframework/container-runtime/internal";
7
+ import { type IContainerRuntime } from "@fluidframework/container-runtime-definitions/internal";
12
8
  import { type FluidObject } from "@fluidframework/core-interfaces";
9
+ import { type RuntimeRequestHandler } from "@fluidframework/request-handler/internal";
10
+ import { type IFluidDataStoreRegistry, type IProvideFluidDataStoreRegistry, type NamedFluidDataStoreRegistryEntries } from "@fluidframework/runtime-definitions/internal";
11
+ import { RuntimeFactoryHelper } from "@fluidframework/runtime-utils/internal";
12
+ import { type IFluidDependencySynthesizer } from "@fluidframework/synthesize/internal";
13
13
  /**
14
14
  * {@link BaseContainerRuntimeFactory} construction properties.
15
15
  * @alpha
@@ -1 +1 @@
1
- {"version":3,"file":"baseContainerRuntimeFactory.d.ts","sourceRoot":"","sources":["../../src/container-runtime-factories/baseContainerRuntimeFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EACN,KAAK,wBAAwB,EAE7B,gBAAgB,EAChB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAEvF,OAAO,EACN,KAAK,qBAAqB,EAE1B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACN,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAEN,KAAK,2BAA2B,EAEhC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAEnE;;;GAGG;AACH,MAAM,WAAW,gCAAgC;IAChD;;OAEG;IACH,eAAe,EAAE,kCAA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,CAAC,eAAe,CAA0B;IAC1D,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAuD;gBAEtE,KAAK,EAAE,gCAAgC;IAW7C,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IAK9D,uBAAuB,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjE,aAAa,CACzB,OAAO,EAAE,iBAAiB,EAC1B,QAAQ,EAAE,OAAO,GACf,OAAO,CAAC,gBAAgB,CAAC;IAsB5B;;;;OAIG;cACa,8BAA8B,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAEzF;;;;OAIG;cACa,uBAAuB,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;CAClF"}
@@ -5,18 +5,17 @@
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.BaseContainerRuntimeFactory = void 0;
8
- const container_runtime_1 = require("@fluidframework/container-runtime");
9
- // eslint-disable-next-line import/no-deprecated
10
- const request_handler_1 = require("@fluidframework/request-handler");
11
- const synthesize_1 = require("@fluidframework/synthesize");
12
- const runtime_utils_1 = require("@fluidframework/runtime-utils");
8
+ const internal_1 = require("@fluidframework/container-runtime/internal");
9
+ const internal_2 = require("@fluidframework/request-handler/internal");
10
+ const internal_3 = require("@fluidframework/runtime-utils/internal");
11
+ const internal_4 = require("@fluidframework/synthesize/internal");
13
12
  /**
14
13
  * BaseContainerRuntimeFactory produces container runtimes with the specified data store and service registries,
15
14
  * request handlers, runtimeOptions, and entryPoint initialization function.
16
15
  * It can be subclassed to implement a first-time initialization procedure for the containers it creates.
17
16
  * @alpha
18
17
  */
19
- class BaseContainerRuntimeFactory extends runtime_utils_1.RuntimeFactoryHelper {
18
+ class BaseContainerRuntimeFactory extends internal_3.RuntimeFactoryHelper {
20
19
  /**
21
20
  * {@inheritDoc @fluidframework/runtime-definitions#IProvideFluidDataStoreRegistry.IFluidDataStoreRegistry}
22
21
  */
@@ -30,7 +29,7 @@ class BaseContainerRuntimeFactory extends runtime_utils_1.RuntimeFactoryHelper {
30
29
  this.runtimeOptions = props.runtimeOptions;
31
30
  this.provideEntryPoint = props.provideEntryPoint;
32
31
  this.requestHandlers = props.requestHandlers ?? [];
33
- this.registry = new container_runtime_1.FluidDataStoreRegistry(this.registryEntries);
32
+ this.registry = new internal_1.FluidDataStoreRegistry(this.registryEntries);
34
33
  }
35
34
  async instantiateFirstTime(runtime) {
36
35
  await this.containerInitializingFirstTime(runtime);
@@ -42,17 +41,17 @@ class BaseContainerRuntimeFactory extends runtime_utils_1.RuntimeFactoryHelper {
42
41
  async preInitialize(context, existing) {
43
42
  const scope = context.scope;
44
43
  if (this.dependencyContainer) {
45
- const dc = new synthesize_1.DependencyContainer(this.dependencyContainer, scope.IFluidDependencySynthesizer);
44
+ const dc = new internal_4.DependencyContainer(this.dependencyContainer, scope.IFluidDependencySynthesizer);
46
45
  scope.IFluidDependencySynthesizer = dc;
47
46
  }
48
- return container_runtime_1.ContainerRuntime.loadRuntime({
47
+ return internal_1.ContainerRuntime.loadRuntime({
49
48
  context,
50
49
  existing,
51
50
  runtimeOptions: this.runtimeOptions,
52
51
  registryEntries: this.registryEntries,
53
52
  containerScope: scope,
54
53
  // eslint-disable-next-line import/no-deprecated
55
- requestHandler: (0, request_handler_1.buildRuntimeRequestHandler)(...this.requestHandlers),
54
+ requestHandler: (0, internal_2.buildRuntimeRequestHandler)(...this.requestHandlers),
56
55
  provideEntryPoint: this.provideEntryPoint,
57
56
  });
58
57
  }
@@ -1 +1 @@
1
- {"version":3,"file":"baseContainerRuntimeFactory.js","sourceRoot":"","sources":["../../src/container-runtime-factories/baseContainerRuntimeFactory.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,yEAI2C;AAE3C,gDAAgD;AAChD,qEAGyC;AAMzC,2DAIoC;AACpC,iEAAqE;AAgCrE;;;;;GAKG;AACH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AAI,CAAC,eAAe;YACrC,cAAc,EAAE,KAAK;YACrB,gDAAgD;YAChD,cAAc,EAAE,IAAA,4CAA0B,EAAC,GAAG,IAAI,CAAC,eAAe,CAAC;YACnE,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;SACzC,CAAC,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACO,KAAK,CAAC,8BAA8B,CAAC,OAA0B,IAAkB,CAAC;IAE5F;;;;OAIG;IACO,KAAK,CAAC,uBAAuB,CAAC,OAA0B,IAAkB,CAAC;CACrF;AA5ED,kEA4EC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { type IContainerContext } from \"@fluidframework/container-definitions\";\nimport {\n\ttype IContainerRuntimeOptions,\n\tFluidDataStoreRegistry,\n\tContainerRuntime,\n} from \"@fluidframework/container-runtime\";\nimport { type IContainerRuntime } from \"@fluidframework/container-runtime-definitions\";\n// eslint-disable-next-line import/no-deprecated\nimport {\n\ttype RuntimeRequestHandler,\n\tbuildRuntimeRequestHandler,\n} from \"@fluidframework/request-handler\";\nimport {\n\ttype IFluidDataStoreRegistry,\n\ttype IProvideFluidDataStoreRegistry,\n\ttype NamedFluidDataStoreRegistryEntries,\n} from \"@fluidframework/runtime-definitions\";\nimport {\n\tDependencyContainer,\n\ttype IFluidDependencySynthesizer,\n\ttype IProvideFluidDependencySynthesizer,\n} from \"@fluidframework/synthesize\";\nimport { RuntimeFactoryHelper } from \"@fluidframework/runtime-utils\";\nimport { type FluidObject } from \"@fluidframework/core-interfaces\";\n\n/**\n * {@link BaseContainerRuntimeFactory} construction properties.\n * @alpha\n */\nexport interface BaseContainerRuntimeFactoryProps {\n\t/**\n\t * The data store registry for containers produced.\n\t */\n\tregistryEntries: NamedFluidDataStoreRegistryEntries;\n\t/**\n\t * @deprecated Will be removed in a future release.\n\t */\n\tdependencyContainer?: IFluidDependencySynthesizer;\n\t/**\n\t * Request handlers for containers produced.\n\t * @deprecated Will be removed once Loader LTS version is \"2.0.0-internal.7.0.0\". Migrate all usage of IFluidRouter to the \"entryPoint\" pattern. Refer to Removing-IFluidRouter.md\n\t */\n\trequestHandlers?: RuntimeRequestHandler[];\n\t/**\n\t * The runtime options passed to the ContainerRuntime when instantiating it\n\t */\n\truntimeOptions?: IContainerRuntimeOptions;\n\t/**\n\t * Function that will initialize the entryPoint of the ContainerRuntime instances\n\t * created with this factory\n\t */\n\tprovideEntryPoint: (runtime: IContainerRuntime) => Promise<FluidObject>;\n}\n\n/**\n * BaseContainerRuntimeFactory produces container runtimes with the specified data store and service registries,\n * request handlers, runtimeOptions, and entryPoint initialization function.\n * It can be subclassed to implement a first-time initialization procedure for the containers it creates.\n * @alpha\n */\nexport class BaseContainerRuntimeFactory\n\textends RuntimeFactoryHelper\n\timplements IProvideFluidDataStoreRegistry\n{\n\t/**\n\t * {@inheritDoc @fluidframework/runtime-definitions#IProvideFluidDataStoreRegistry.IFluidDataStoreRegistry}\n\t */\n\tpublic get IFluidDataStoreRegistry(): IFluidDataStoreRegistry {\n\t\treturn this.registry;\n\t}\n\tprivate readonly registry: IFluidDataStoreRegistry;\n\n\tprivate readonly registryEntries: NamedFluidDataStoreRegistryEntries;\n\tprivate readonly dependencyContainer?: IFluidDependencySynthesizer;\n\tprivate readonly runtimeOptions?: IContainerRuntimeOptions;\n\tprivate readonly requestHandlers: RuntimeRequestHandler[];\n\tprivate readonly provideEntryPoint: (runtime: IContainerRuntime) => Promise<FluidObject>;\n\n\tpublic constructor(props: BaseContainerRuntimeFactoryProps) {\n\t\tsuper();\n\n\t\tthis.registryEntries = props.registryEntries;\n\t\tthis.dependencyContainer = props.dependencyContainer;\n\t\tthis.runtimeOptions = props.runtimeOptions;\n\t\tthis.provideEntryPoint = props.provideEntryPoint;\n\t\tthis.requestHandlers = props.requestHandlers ?? [];\n\t\tthis.registry = new FluidDataStoreRegistry(this.registryEntries);\n\t}\n\n\tpublic async instantiateFirstTime(runtime: ContainerRuntime): Promise<void> {\n\t\tawait this.containerInitializingFirstTime(runtime);\n\t\tawait this.containerHasInitialized(runtime);\n\t}\n\n\tpublic async instantiateFromExisting(runtime: ContainerRuntime): Promise<void> {\n\t\tawait this.containerHasInitialized(runtime);\n\t}\n\n\tpublic async preInitialize(\n\t\tcontext: IContainerContext,\n\t\texisting: boolean,\n\t): Promise<ContainerRuntime> {\n\t\tconst scope: Partial<IProvideFluidDependencySynthesizer> = context.scope;\n\t\tif (this.dependencyContainer) {\n\t\t\tconst dc = new DependencyContainer<FluidObject>(\n\t\t\t\tthis.dependencyContainer,\n\t\t\t\tscope.IFluidDependencySynthesizer,\n\t\t\t);\n\t\t\tscope.IFluidDependencySynthesizer = dc;\n\t\t}\n\n\t\treturn ContainerRuntime.loadRuntime({\n\t\t\tcontext,\n\t\t\texisting,\n\t\t\truntimeOptions: this.runtimeOptions,\n\t\t\tregistryEntries: this.registryEntries,\n\t\t\tcontainerScope: scope,\n\t\t\t// eslint-disable-next-line import/no-deprecated\n\t\t\trequestHandler: buildRuntimeRequestHandler(...this.requestHandlers),\n\t\t\tprovideEntryPoint: this.provideEntryPoint,\n\t\t});\n\t}\n\n\t/**\n\t * Subclasses may override containerInitializingFirstTime to perform any setup steps at the time the container\n\t * is created. This likely includes creating any initial data stores that are expected to be there at the outset.\n\t * @param runtime - The container runtime for the container being initialized\n\t */\n\tprotected async containerInitializingFirstTime(runtime: IContainerRuntime): Promise<void> {}\n\n\t/**\n\t * Subclasses may override containerHasInitialized to perform any steps after the container has initialized.\n\t * This likely includes loading any data stores that are expected to be there at the outset.\n\t * @param runtime - The container runtime for the container being initialized\n\t */\n\tprotected async containerHasInitialized(runtime: IContainerRuntime): Promise<void> {}\n}\n"]}
1
+ {"version":3,"file":"baseContainerRuntimeFactory.js","sourceRoot":"","sources":["../../src/container-runtime-factories/baseContainerRuntimeFactory.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,yEAIoD;AAGpD,uEAIkD;AAMlD,qEAA8E;AAC9E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,CAAC,cAAc;YACnC,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,cAAc,EAAE,KAAK;YACrB,gDAAgD;YAChD,cAAc,EAAE,IAAA,qCAA0B,EAAC,GAAG,IAAI,CAAC,eAAe,CAAC;YACnE,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;SACzC,CAAC,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACO,KAAK,CAAC,8BAA8B,CAAC,OAA0B,IAAkB,CAAC;IAE5F;;;;OAIG;IACO,KAAK,CAAC,uBAAuB,CAAC,OAA0B,IAAkB,CAAC;CACrF;AA5ED,kEA4EC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { type IContainerContext } from \"@fluidframework/container-definitions/internal\";\nimport {\n\tContainerRuntime,\n\tFluidDataStoreRegistry,\n\ttype IContainerRuntimeOptions,\n} from \"@fluidframework/container-runtime/internal\";\nimport { type IContainerRuntime } from \"@fluidframework/container-runtime-definitions/internal\";\nimport { type FluidObject } from \"@fluidframework/core-interfaces\";\nimport {\n\ttype RuntimeRequestHandler,\n\t// eslint-disable-next-line import/no-deprecated\n\tbuildRuntimeRequestHandler,\n} from \"@fluidframework/request-handler/internal\";\nimport {\n\ttype IFluidDataStoreRegistry,\n\ttype IProvideFluidDataStoreRegistry,\n\ttype NamedFluidDataStoreRegistryEntries,\n} from \"@fluidframework/runtime-definitions/internal\";\nimport { RuntimeFactoryHelper } from \"@fluidframework/runtime-utils/internal\";\nimport {\n\tDependencyContainer,\n\ttype IFluidDependencySynthesizer,\n\ttype IProvideFluidDependencySynthesizer,\n} from \"@fluidframework/synthesize/internal\";\n\n/**\n * {@link BaseContainerRuntimeFactory} construction properties.\n * @alpha\n */\nexport interface BaseContainerRuntimeFactoryProps {\n\t/**\n\t * The data store registry for containers produced.\n\t */\n\tregistryEntries: NamedFluidDataStoreRegistryEntries;\n\t/**\n\t * @deprecated Will be removed in a future release.\n\t */\n\tdependencyContainer?: IFluidDependencySynthesizer;\n\t/**\n\t * Request handlers for containers produced.\n\t * @deprecated Will be removed once Loader LTS version is \"2.0.0-internal.7.0.0\". Migrate all usage of IFluidRouter to the \"entryPoint\" pattern. Refer to Removing-IFluidRouter.md\n\t */\n\trequestHandlers?: RuntimeRequestHandler[];\n\t/**\n\t * The runtime options passed to the ContainerRuntime when instantiating it\n\t */\n\truntimeOptions?: IContainerRuntimeOptions;\n\t/**\n\t * Function that will initialize the entryPoint of the ContainerRuntime instances\n\t * created with this factory\n\t */\n\tprovideEntryPoint: (runtime: IContainerRuntime) => Promise<FluidObject>;\n}\n\n/**\n * BaseContainerRuntimeFactory produces container runtimes with the specified data store and service registries,\n * request handlers, runtimeOptions, and entryPoint initialization function.\n * It can be subclassed to implement a first-time initialization procedure for the containers it creates.\n * @alpha\n */\nexport class BaseContainerRuntimeFactory\n\textends RuntimeFactoryHelper\n\timplements IProvideFluidDataStoreRegistry\n{\n\t/**\n\t * {@inheritDoc @fluidframework/runtime-definitions#IProvideFluidDataStoreRegistry.IFluidDataStoreRegistry}\n\t */\n\tpublic get IFluidDataStoreRegistry(): IFluidDataStoreRegistry {\n\t\treturn this.registry;\n\t}\n\tprivate readonly registry: IFluidDataStoreRegistry;\n\n\tprivate readonly registryEntries: NamedFluidDataStoreRegistryEntries;\n\tprivate readonly dependencyContainer?: IFluidDependencySynthesizer;\n\tprivate readonly runtimeOptions?: IContainerRuntimeOptions;\n\tprivate readonly requestHandlers: RuntimeRequestHandler[];\n\tprivate readonly provideEntryPoint: (runtime: IContainerRuntime) => Promise<FluidObject>;\n\n\tpublic constructor(props: BaseContainerRuntimeFactoryProps) {\n\t\tsuper();\n\n\t\tthis.registryEntries = props.registryEntries;\n\t\tthis.dependencyContainer = props.dependencyContainer;\n\t\tthis.runtimeOptions = props.runtimeOptions;\n\t\tthis.provideEntryPoint = props.provideEntryPoint;\n\t\tthis.requestHandlers = props.requestHandlers ?? [];\n\t\tthis.registry = new FluidDataStoreRegistry(this.registryEntries);\n\t}\n\n\tpublic async instantiateFirstTime(runtime: ContainerRuntime): Promise<void> {\n\t\tawait this.containerInitializingFirstTime(runtime);\n\t\tawait this.containerHasInitialized(runtime);\n\t}\n\n\tpublic async instantiateFromExisting(runtime: ContainerRuntime): Promise<void> {\n\t\tawait this.containerHasInitialized(runtime);\n\t}\n\n\tpublic async preInitialize(\n\t\tcontext: IContainerContext,\n\t\texisting: boolean,\n\t): Promise<ContainerRuntime> {\n\t\tconst scope: Partial<IProvideFluidDependencySynthesizer> = context.scope;\n\t\tif (this.dependencyContainer) {\n\t\t\tconst dc = new DependencyContainer<FluidObject>(\n\t\t\t\tthis.dependencyContainer,\n\t\t\t\tscope.IFluidDependencySynthesizer,\n\t\t\t);\n\t\t\tscope.IFluidDependencySynthesizer = dc;\n\t\t}\n\n\t\treturn ContainerRuntime.loadRuntime({\n\t\t\tcontext,\n\t\t\texisting,\n\t\t\truntimeOptions: this.runtimeOptions,\n\t\t\tregistryEntries: this.registryEntries,\n\t\t\tcontainerScope: scope,\n\t\t\t// eslint-disable-next-line import/no-deprecated\n\t\t\trequestHandler: buildRuntimeRequestHandler(...this.requestHandlers),\n\t\t\tprovideEntryPoint: this.provideEntryPoint,\n\t\t});\n\t}\n\n\t/**\n\t * Subclasses may override containerInitializingFirstTime to perform any setup steps at the time the container\n\t * is created. This likely includes creating any initial data stores that are expected to be there at the outset.\n\t * @param runtime - The container runtime for the container being initialized\n\t */\n\tprotected async containerInitializingFirstTime(runtime: IContainerRuntime): Promise<void> {}\n\n\t/**\n\t * Subclasses may override containerHasInitialized to perform any steps after the container has initialized.\n\t * This likely includes loading any data stores that are expected to be there at the outset.\n\t * @param runtime - The container runtime for the container being initialized\n\t */\n\tprotected async containerHasInitialized(runtime: IContainerRuntime): Promise<void> {}\n}\n"]}
@@ -2,12 +2,12 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
- import { type IContainerRuntimeOptions } from "@fluidframework/container-runtime";
6
- import { type NamedFluidDataStoreRegistryEntries, type IFluidDataStoreFactory } from "@fluidframework/runtime-definitions";
7
- import { type IContainerRuntime } from "@fluidframework/container-runtime-definitions";
5
+ import { type IContainerRuntimeOptions } from "@fluidframework/container-runtime/internal";
6
+ import { type IContainerRuntime } from "@fluidframework/container-runtime-definitions/internal";
8
7
  import { type FluidObject } from "@fluidframework/core-interfaces";
9
- import { type IFluidDependencySynthesizer } from "@fluidframework/synthesize";
10
- import { type RuntimeRequestHandler } from "@fluidframework/request-handler";
8
+ import { type RuntimeRequestHandler } from "@fluidframework/request-handler/internal";
9
+ import { type IFluidDataStoreFactory, type NamedFluidDataStoreRegistryEntries } from "@fluidframework/runtime-definitions/internal";
10
+ import { type IFluidDependencySynthesizer } from "@fluidframework/synthesize/internal";
11
11
  import { BaseContainerRuntimeFactory } from "./baseContainerRuntimeFactory.js";
12
12
  /**
13
13
  * {@link ContainerRuntimeFactoryWithDefaultDataStore} construction properties.
@@ -1 +1 @@
1
- {"version":3,"file":"containerRuntimeFactoryWithDefaultDataStore.d.ts","sourceRoot":"","sources":["../../src/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,KAAK,wBAAwB,EAE7B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACN,KAAK,kCAAkC,EACvC,KAAK,sBAAsB,EAC3B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,KAAK,WAAW,EAAiC,MAAM,iCAAiC,CAAC;AAElG,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAY/E;;;GAGG;AACH,MAAM,WAAW,gDAAgD;IAChE,cAAc,EAAE,sBAAsB,CAAC;IACvC;;OAEG;IACH,eAAe,EAAE,kCAAkC,CAAC;IACpD;;OAEG;IACH,mBAAmB,CAAC,EAAE,2BAA2B,CAAC;IAClD;;;OAGG;IACH,eAAe,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAC1C;;OAEG;IACH,cAAc,CAAC,EAAE,wBAAwB,CAAC;IAC1C;;;OAGG;IACH,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC;CACzE;AAED;;;;;;GAMG;AACH,qBAAa,2CAA4C,SAAQ,2BAA2B;IAC3F,gBAAuB,kBAAkB,aAAsB;IAE/D,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,sBAAsB,CAAC;gBAEvC,KAAK,EAAE,gDAAgD;IA6B1E;;OAEG;cACa,8BAA8B,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;CAIzF"}
1
+ {"version":3,"file":"containerRuntimeFactoryWithDefaultDataStore.d.ts","sourceRoot":"","sources":["../../src/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEN,KAAK,wBAAwB,EAC7B,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,wDAAwD,CAAC;AAChG,OAAO,EAAE,KAAK,WAAW,EAAiC,MAAM,iCAAiC,CAAC;AAClG,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACtF,OAAO,EACN,KAAK,sBAAsB,EAC3B,KAAK,kCAAkC,EACvC,MAAM,8CAA8C,CAAC;AAEtD,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAEvF,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAY/E;;;GAGG;AACH,MAAM,WAAW,gDAAgD;IAChE,cAAc,EAAE,sBAAsB,CAAC;IACvC;;OAEG;IACH,eAAe,EAAE,kCAAkC,CAAC;IACpD;;OAEG;IACH,mBAAmB,CAAC,EAAE,2BAA2B,CAAC;IAClD;;;OAGG;IACH,eAAe,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAC1C;;OAEG;IACH,cAAc,CAAC,EAAE,wBAAwB,CAAC;IAC1C;;;OAGG;IACH,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC;CACzE;AAED;;;;;;GAMG;AACH,qBAAa,2CAA4C,SAAQ,2BAA2B;IAC3F,gBAAuB,kBAAkB,aAAsB;IAE/D,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,sBAAsB,CAAC;gBAEvC,KAAK,EAAE,gDAAgD;IA6B1E;;OAEG;cACa,8BAA8B,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;CAIzF"}
@@ -5,7 +5,7 @@
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.ContainerRuntimeFactoryWithDefaultDataStore = void 0;
8
- const runtime_utils_1 = require("@fluidframework/runtime-utils");
8
+ const internal_1 = require("@fluidframework/runtime-utils/internal");
9
9
  const baseContainerRuntimeFactory_js_1 = require("./baseContainerRuntimeFactory.js");
10
10
  const defaultDataStoreId = "default";
11
11
  async function getDefaultFluidObject(runtime) {
@@ -27,7 +27,7 @@ class ContainerRuntimeFactoryWithDefaultDataStore extends baseContainerRuntimeFa
27
27
  const requestHandlers = props.requestHandlers ?? [];
28
28
  const provideEntryPoint = props.provideEntryPoint ?? getDefaultFluidObject;
29
29
  const getDefaultObject = async (request, runtime) => {
30
- const parser = runtime_utils_1.RequestParser.create(request);
30
+ const parser = internal_1.RequestParser.create(request);
31
31
  if (parser.pathParts.length === 0) {
32
32
  // This cast is safe as ContainerRuntime.loadRuntime is called in the base class
33
33
  return runtime.resolveHandle({
@@ -1 +1 @@
1
- {"version":3,"file":"containerRuntimeFactoryWithDefaultDataStore.js","sourceRoot":"","sources":["../../src/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAYH,iEAA8D;AAG9D,qFAA+E;AAE/E,MAAM,kBAAkB,GAAG,SAAS,CAAC;AAErC,KAAK,UAAU,qBAAqB,CAAC,OAA0B;IAC9D,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,6BAA6B,CAAC,SAAS,CAAC,CAAC;IAC1E,IAAI,UAAU,KAAK,SAAS,EAAE;QAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;KAChD;IACD,OAAO,UAAU,CAAC,GAAG,EAAE,CAAC;AACzB,CAAC;AAgCD;;;;;;GAMG;AACH,MAAa,2CAA4C,SAAQ,4DAA2B;IAK3F,YAAmB,KAAuD;QACzE,MAAM,eAAe,GAAG,KAAK,CAAC,eAAe,IAAI,EAAE,CAAC;QACpD,MAAM,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,IAAI,qBAAqB,CAAC;QAE3E,MAAM,gBAAgB,GAAG,KAAK,EAC7B,OAAiB,EACjB,OAA0B,EAEO,EAAE;YACnC,MAAM,MAAM,GAAG,6BAAa,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;YAC7C,IAAI,MAAM,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;gBAClC,gFAAgF;gBAChF,OAAQ,OAA4B,CAAC,aAAa,CAAC;oBAClD,GAAG,EAAE,IAAI,kBAAkB,GAAG,MAAM,CAAC,KAAK,EAAE;oBAC5C,OAAO,EAAE,OAAO,CAAC,OAAO;iBACxB,CAAC,CAAC;aACH;YACD,OAAO,SAAS,CAAC,CAAC,kBAAkB;QACrC,CAAC,CAAC;QAEF,KAAK,CAAC;YACL,GAAG,KAAK;YACR,eAAe,EAAE,CAAC,gBAAgB,EAAE,GAAG,eAAe,CAAC;YACvD,iBAAiB;SACjB,CAAC,CAAC;QAEH,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC;IAC5C,CAAC;IAED;;OAEG;IACO,KAAK,CAAC,8BAA8B,CAAC,OAA0B;QACxE,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAC1E,MAAM,SAAS,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;IACjD,CAAC;;AAxCF,kGAyCC;AAxCuB,8DAAkB,GAAG,kBAAkB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\ttype IContainerRuntimeOptions,\n\ttype ContainerRuntime,\n} from \"@fluidframework/container-runtime\";\nimport {\n\ttype NamedFluidDataStoreRegistryEntries,\n\ttype IFluidDataStoreFactory,\n} from \"@fluidframework/runtime-definitions\";\nimport { type IContainerRuntime } from \"@fluidframework/container-runtime-definitions\";\nimport { type FluidObject, type IRequest, type IResponse } from \"@fluidframework/core-interfaces\";\nimport { RequestParser } from \"@fluidframework/runtime-utils\";\nimport { type IFluidDependencySynthesizer } from \"@fluidframework/synthesize\";\nimport { type RuntimeRequestHandler } from \"@fluidframework/request-handler\";\nimport { BaseContainerRuntimeFactory } from \"./baseContainerRuntimeFactory.js\";\n\nconst defaultDataStoreId = \"default\";\n\nasync function getDefaultFluidObject(runtime: IContainerRuntime): Promise<FluidObject> {\n\tconst entryPoint = await runtime.getAliasedDataStoreEntryPoint(\"default\");\n\tif (entryPoint === undefined) {\n\t\tthrow new Error(\"default dataStore must exist\");\n\t}\n\treturn entryPoint.get();\n}\n\n/**\n * {@link ContainerRuntimeFactoryWithDefaultDataStore} construction properties.\n * @alpha\n */\nexport interface ContainerRuntimeFactoryWithDefaultDataStoreProps {\n\tdefaultFactory: IFluidDataStoreFactory;\n\t/**\n\t * The data store registry for containers produced.\n\t */\n\tregistryEntries: NamedFluidDataStoreRegistryEntries;\n\t/**\n\t * @deprecated Will be removed in a future release.\n\t */\n\tdependencyContainer?: IFluidDependencySynthesizer;\n\t/**\n\t * Request handlers for containers produced.\n\t * @deprecated Will be removed once Loader LTS version is \"2.0.0-internal.7.0.0\". Migrate all usage of IFluidRouter to the \"entryPoint\" pattern. Refer to Removing-IFluidRouter.md\n\t */\n\trequestHandlers?: RuntimeRequestHandler[];\n\t/**\n\t * The runtime options passed to the ContainerRuntime when instantiating it\n\t */\n\truntimeOptions?: IContainerRuntimeOptions;\n\t/**\n\t * Function that will initialize the entryPoint of the ContainerRuntime instances\n\t * created with this factory\n\t */\n\tprovideEntryPoint?: (runtime: IContainerRuntime) => Promise<FluidObject>;\n}\n\n/**\n * A ContainerRuntimeFactory that initializes Containers with a single default data store, which can be requested from\n * the container with an empty URL.\n *\n * This factory should be exposed as fluidExport off the entry point to your module.\n * @alpha\n */\nexport class ContainerRuntimeFactoryWithDefaultDataStore extends BaseContainerRuntimeFactory {\n\tpublic static readonly defaultDataStoreId = defaultDataStoreId;\n\n\tprotected readonly defaultFactory: IFluidDataStoreFactory;\n\n\tpublic constructor(props: ContainerRuntimeFactoryWithDefaultDataStoreProps) {\n\t\tconst requestHandlers = props.requestHandlers ?? [];\n\t\tconst provideEntryPoint = props.provideEntryPoint ?? getDefaultFluidObject;\n\n\t\tconst getDefaultObject = async (\n\t\t\trequest: IRequest,\n\t\t\truntime: IContainerRuntime,\n\t\t\t// eslint-disable-next-line unicorn/consistent-function-scoping\n\t\t): Promise<IResponse | undefined> => {\n\t\t\tconst parser = RequestParser.create(request);\n\t\t\tif (parser.pathParts.length === 0) {\n\t\t\t\t// This cast is safe as ContainerRuntime.loadRuntime is called in the base class\n\t\t\t\treturn (runtime as ContainerRuntime).resolveHandle({\n\t\t\t\t\turl: `/${defaultDataStoreId}${parser.query}`,\n\t\t\t\t\theaders: request.headers,\n\t\t\t\t});\n\t\t\t}\n\t\t\treturn undefined; // continue search\n\t\t};\n\n\t\tsuper({\n\t\t\t...props,\n\t\t\trequestHandlers: [getDefaultObject, ...requestHandlers],\n\t\t\tprovideEntryPoint,\n\t\t});\n\n\t\tthis.defaultFactory = props.defaultFactory;\n\t}\n\n\t/**\n\t * {@inheritDoc BaseContainerRuntimeFactory.containerInitializingFirstTime}\n\t */\n\tprotected async containerInitializingFirstTime(runtime: IContainerRuntime): Promise<void> {\n\t\tconst dataStore = await runtime.createDataStore(this.defaultFactory.type);\n\t\tawait dataStore.trySetAlias(defaultDataStoreId);\n\t}\n}\n"]}
1
+ {"version":3,"file":"containerRuntimeFactoryWithDefaultDataStore.js","sourceRoot":"","sources":["../../src/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAaH,qEAAuE;AAGvE,qFAA+E;AAE/E,MAAM,kBAAkB,GAAG,SAAS,CAAC;AAErC,KAAK,UAAU,qBAAqB,CAAC,OAA0B;IAC9D,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,6BAA6B,CAAC,SAAS,CAAC,CAAC;IAC1E,IAAI,UAAU,KAAK,SAAS,EAAE;QAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;KAChD;IACD,OAAO,UAAU,CAAC,GAAG,EAAE,CAAC;AACzB,CAAC;AAgCD;;;;;;GAMG;AACH,MAAa,2CAA4C,SAAQ,4DAA2B;IAK3F,YAAmB,KAAuD;QACzE,MAAM,eAAe,GAAG,KAAK,CAAC,eAAe,IAAI,EAAE,CAAC;QACpD,MAAM,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,IAAI,qBAAqB,CAAC;QAE3E,MAAM,gBAAgB,GAAG,KAAK,EAC7B,OAAiB,EACjB,OAA0B,EAEO,EAAE;YACnC,MAAM,MAAM,GAAG,wBAAa,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;YAC7C,IAAI,MAAM,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;gBAClC,gFAAgF;gBAChF,OAAQ,OAA4B,CAAC,aAAa,CAAC;oBAClD,GAAG,EAAE,IAAI,kBAAkB,GAAG,MAAM,CAAC,KAAK,EAAE;oBAC5C,OAAO,EAAE,OAAO,CAAC,OAAO;iBACxB,CAAC,CAAC;aACH;YACD,OAAO,SAAS,CAAC,CAAC,kBAAkB;QACrC,CAAC,CAAC;QAEF,KAAK,CAAC;YACL,GAAG,KAAK;YACR,eAAe,EAAE,CAAC,gBAAgB,EAAE,GAAG,eAAe,CAAC;YACvD,iBAAiB;SACjB,CAAC,CAAC;QAEH,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC;IAC5C,CAAC;IAED;;OAEG;IACO,KAAK,CAAC,8BAA8B,CAAC,OAA0B;QACxE,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAC1E,MAAM,SAAS,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;IACjD,CAAC;;AAxCF,kGAyCC;AAxCuB,8DAAkB,GAAG,kBAAkB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\ttype ContainerRuntime,\n\ttype IContainerRuntimeOptions,\n} from \"@fluidframework/container-runtime/internal\";\nimport { type IContainerRuntime } from \"@fluidframework/container-runtime-definitions/internal\";\nimport { type FluidObject, type IRequest, type IResponse } from \"@fluidframework/core-interfaces\";\nimport { type RuntimeRequestHandler } from \"@fluidframework/request-handler/internal\";\nimport {\n\ttype IFluidDataStoreFactory,\n\ttype NamedFluidDataStoreRegistryEntries,\n} from \"@fluidframework/runtime-definitions/internal\";\nimport { RequestParser } from \"@fluidframework/runtime-utils/internal\";\nimport { type IFluidDependencySynthesizer } from \"@fluidframework/synthesize/internal\";\n\nimport { BaseContainerRuntimeFactory } from \"./baseContainerRuntimeFactory.js\";\n\nconst defaultDataStoreId = \"default\";\n\nasync function getDefaultFluidObject(runtime: IContainerRuntime): Promise<FluidObject> {\n\tconst entryPoint = await runtime.getAliasedDataStoreEntryPoint(\"default\");\n\tif (entryPoint === undefined) {\n\t\tthrow new Error(\"default dataStore must exist\");\n\t}\n\treturn entryPoint.get();\n}\n\n/**\n * {@link ContainerRuntimeFactoryWithDefaultDataStore} construction properties.\n * @alpha\n */\nexport interface ContainerRuntimeFactoryWithDefaultDataStoreProps {\n\tdefaultFactory: IFluidDataStoreFactory;\n\t/**\n\t * The data store registry for containers produced.\n\t */\n\tregistryEntries: NamedFluidDataStoreRegistryEntries;\n\t/**\n\t * @deprecated Will be removed in a future release.\n\t */\n\tdependencyContainer?: IFluidDependencySynthesizer;\n\t/**\n\t * Request handlers for containers produced.\n\t * @deprecated Will be removed once Loader LTS version is \"2.0.0-internal.7.0.0\". Migrate all usage of IFluidRouter to the \"entryPoint\" pattern. Refer to Removing-IFluidRouter.md\n\t */\n\trequestHandlers?: RuntimeRequestHandler[];\n\t/**\n\t * The runtime options passed to the ContainerRuntime when instantiating it\n\t */\n\truntimeOptions?: IContainerRuntimeOptions;\n\t/**\n\t * Function that will initialize the entryPoint of the ContainerRuntime instances\n\t * created with this factory\n\t */\n\tprovideEntryPoint?: (runtime: IContainerRuntime) => Promise<FluidObject>;\n}\n\n/**\n * A ContainerRuntimeFactory that initializes Containers with a single default data store, which can be requested from\n * the container with an empty URL.\n *\n * This factory should be exposed as fluidExport off the entry point to your module.\n * @alpha\n */\nexport class ContainerRuntimeFactoryWithDefaultDataStore extends BaseContainerRuntimeFactory {\n\tpublic static readonly defaultDataStoreId = defaultDataStoreId;\n\n\tprotected readonly defaultFactory: IFluidDataStoreFactory;\n\n\tpublic constructor(props: ContainerRuntimeFactoryWithDefaultDataStoreProps) {\n\t\tconst requestHandlers = props.requestHandlers ?? [];\n\t\tconst provideEntryPoint = props.provideEntryPoint ?? getDefaultFluidObject;\n\n\t\tconst getDefaultObject = async (\n\t\t\trequest: IRequest,\n\t\t\truntime: IContainerRuntime,\n\t\t\t// eslint-disable-next-line unicorn/consistent-function-scoping\n\t\t): Promise<IResponse | undefined> => {\n\t\t\tconst parser = RequestParser.create(request);\n\t\t\tif (parser.pathParts.length === 0) {\n\t\t\t\t// This cast is safe as ContainerRuntime.loadRuntime is called in the base class\n\t\t\t\treturn (runtime as ContainerRuntime).resolveHandle({\n\t\t\t\t\turl: `/${defaultDataStoreId}${parser.query}`,\n\t\t\t\t\theaders: request.headers,\n\t\t\t\t});\n\t\t\t}\n\t\t\treturn undefined; // continue search\n\t\t};\n\n\t\tsuper({\n\t\t\t...props,\n\t\t\trequestHandlers: [getDefaultObject, ...requestHandlers],\n\t\t\tprovideEntryPoint,\n\t\t});\n\n\t\tthis.defaultFactory = props.defaultFactory;\n\t}\n\n\t/**\n\t * {@inheritDoc BaseContainerRuntimeFactory.containerInitializingFirstTime}\n\t */\n\tprotected async containerInitializingFirstTime(runtime: IContainerRuntime): Promise<void> {\n\t\tconst dataStore = await runtime.createDataStore(this.defaultFactory.type);\n\t\tawait dataStore.trySetAlias(defaultDataStoreId);\n\t}\n}\n"]}
@@ -2,10 +2,10 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
- import { type NamedFluidDataStoreRegistryEntries } from "@fluidframework/runtime-definitions";
5
+ import { FluidDataStoreRuntime } from "@fluidframework/datastore/internal";
6
6
  import { type IChannelFactory } from "@fluidframework/datastore-definitions";
7
- import { type FluidObjectSymbolProvider } from "@fluidframework/synthesize";
8
- import { FluidDataStoreRuntime } from "@fluidframework/datastore";
7
+ import { type NamedFluidDataStoreRegistryEntries } from "@fluidframework/runtime-definitions/internal";
8
+ import { type FluidObjectSymbolProvider } from "@fluidframework/synthesize/internal";
9
9
  import { type DataObject, type DataObjectTypes, type IDataObjectProps } from "../data-objects/index.js";
10
10
  import { PureDataObjectFactory } from "./pureDataObjectFactory.js";
11
11
  /**
@@ -18,6 +18,6 @@ import { PureDataObjectFactory } from "./pureDataObjectFactory.js";
18
18
  * @alpha
19
19
  */
20
20
  export declare class DataObjectFactory<TObj extends DataObject<I>, I extends DataObjectTypes = DataObjectTypes> extends PureDataObjectFactory<TObj, I> {
21
- constructor(type: string, ctor: new (props: IDataObjectProps<I>) => TObj, sharedObjects: readonly IChannelFactory<import("@fluidframework/core-interfaces").IFluidLoadable>[] | undefined, optionalProviders: FluidObjectSymbolProvider<I["OptionalProviders"]>, registryEntries?: NamedFluidDataStoreRegistryEntries, runtimeFactory?: typeof FluidDataStoreRuntime);
21
+ constructor(type: string, ctor: new (props: IDataObjectProps<I>) => TObj, sharedObjects: readonly IChannelFactory<unknown>[] | undefined, optionalProviders: FluidObjectSymbolProvider<I["OptionalProviders"]>, registryEntries?: NamedFluidDataStoreRegistryEntries, runtimeFactory?: typeof FluidDataStoreRuntime);
22
22
  }
23
23
  //# sourceMappingURL=dataObjectFactory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dataObjectFactory.d.ts","sourceRoot":"","sources":["../../src/data-object-factories/dataObjectFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,KAAK,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;AAC9F,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE,OAAO,EACN,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE;;;;;;;;GAQG;AACH,qBAAa,iBAAiB,CAC7B,IAAI,SAAS,UAAU,CAAC,CAAC,CAAC,EAC1B,CAAC,SAAS,eAAe,GAAG,eAAe,CAC1C,SAAQ,qBAAqB,CAAC,IAAI,EAAE,CAAC,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object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.DataObjectFactory = void 0;
8
+ const internal_1 = require("@fluidframework/datastore/internal");
8
9
  const map_1 = require("@fluidframework/map");
9
- const datastore_1 = require("@fluidframework/datastore");
10
+ const internal_2 = require("@fluidframework/map/internal");
10
11
  const pureDataObjectFactory_js_1 = require("./pureDataObjectFactory.js");
11
12
  /**
12
13
  * DataObjectFactory is the IFluidDataStoreFactory for use with DataObjects.
@@ -18,14 +19,14 @@ const pureDataObjectFactory_js_1 = require("./pureDataObjectFactory.js");
18
19
  * @alpha
19
20
  */
20
21
  class DataObjectFactory extends pureDataObjectFactory_js_1.PureDataObjectFactory {
21
- constructor(type, ctor, sharedObjects = [], optionalProviders, registryEntries, runtimeFactory = datastore_1.FluidDataStoreRuntime) {
22
+ constructor(type, ctor, sharedObjects = [], optionalProviders, registryEntries, runtimeFactory = internal_1.FluidDataStoreRuntime) {
22
23
  const mergedObjects = [...sharedObjects];
23
- if (!sharedObjects.some((factory) => factory.type === map_1.DirectoryFactory.Type)) {
24
+ if (!sharedObjects.some((factory) => factory.type === internal_2.DirectoryFactory.Type)) {
24
25
  // User did not register for directory
25
- mergedObjects.push(map_1.SharedDirectory.getFactory());
26
+ mergedObjects.push(internal_2.SharedDirectory.getFactory());
26
27
  }
27
28
  // TODO: Remove SharedMap factory when compatibility with SharedMap DataObject is no longer needed in 0.10
28
- if (!sharedObjects.some((factory) => factory.type === map_1.MapFactory.Type)) {
29
+ if (!sharedObjects.some((factory) => factory.type === internal_2.MapFactory.Type)) {
29
30
  // User did not register for map
30
31
  mergedObjects.push(map_1.SharedMap.getFactory());
31
32
  }
@@ -1 +1 @@
1
- {"version":3,"file":"dataObjectFactory.js","sourceRoot":"","sources":["../../src/data-object-factories/dataObjectFactory.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6CAA+F;AAI/F,yDAAkE;AAOlE,yEAAmE;AAEnE;;;;;;;;GAQG;AACH,MAAa,iBAGX,SAAQ,gDAA8B;IACvC,YACC,IAAY,EACZ,IAA8C,EAC9C,gBAA4C,EAAE,EAC9C,iBAAoE,EACpE,eAAoD,EACpD,iBAA+C,iCAAqB;QAEpE,MAAM,aAAa,GAAG,CAAC,GAAG,aAAa,CAAC,CAAC;QAEzC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,sBAAgB,CAAC,IAAI,CAAC,EAAE;YAC7E,sCAAsC;YACtC,aAAa,CAAC,IAAI,CAAC,qBAAe,CAAC,UAAU,EAAE,CAAC,CAAC;SACjD;QAED,0GAA0G;QAC1G,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,gBAAU,CAAC,IAAI,CAAC,EAAE;YACvE,gCAAgC;YAChC,aAAa,CAAC,IAAI,CAAC,eAAS,CAAC,UAAU,EAAE,CAAC,CAAC;SAC3C;QAED,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,iBAAiB,EAAE,eAAe,EAAE,cAAc,CAAC,CAAC;IACtF,CAAC;CACD;AA3BD,8CA2BC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { DirectoryFactory, MapFactory, SharedDirectory, SharedMap } from \"@fluidframework/map\";\nimport { type NamedFluidDataStoreRegistryEntries } from \"@fluidframework/runtime-definitions\";\nimport { type IChannelFactory } from \"@fluidframework/datastore-definitions\";\nimport { type FluidObjectSymbolProvider } from \"@fluidframework/synthesize\";\nimport { FluidDataStoreRuntime } from \"@fluidframework/datastore\";\n\nimport {\n\ttype DataObject,\n\ttype DataObjectTypes,\n\ttype IDataObjectProps,\n} from \"../data-objects/index.js\";\nimport { PureDataObjectFactory } from \"./pureDataObjectFactory.js\";\n\n/**\n * DataObjectFactory is the IFluidDataStoreFactory for use with DataObjects.\n * It facilitates DataObject's features (such as its shared directory) by\n * ensuring relevant shared objects etc are available to the factory.\n *\n * @typeParam TObj - DataObject (concrete type)\n * @typeParam I - The input types for the DataObject\n * @alpha\n */\nexport class DataObjectFactory<\n\tTObj extends DataObject<I>,\n\tI extends DataObjectTypes = DataObjectTypes,\n> extends PureDataObjectFactory<TObj, I> {\n\tpublic constructor(\n\t\ttype: string,\n\t\tctor: new (props: IDataObjectProps<I>) => TObj,\n\t\tsharedObjects: readonly IChannelFactory[] = [],\n\t\toptionalProviders: FluidObjectSymbolProvider<I[\"OptionalProviders\"]>,\n\t\tregistryEntries?: NamedFluidDataStoreRegistryEntries,\n\t\truntimeFactory: typeof FluidDataStoreRuntime = FluidDataStoreRuntime,\n\t) {\n\t\tconst mergedObjects = [...sharedObjects];\n\n\t\tif (!sharedObjects.some((factory) => factory.type === DirectoryFactory.Type)) {\n\t\t\t// User did not register for directory\n\t\t\tmergedObjects.push(SharedDirectory.getFactory());\n\t\t}\n\n\t\t// TODO: Remove SharedMap factory when compatibility with SharedMap DataObject is no longer needed in 0.10\n\t\tif (!sharedObjects.some((factory) => factory.type === MapFactory.Type)) {\n\t\t\t// User did not register for map\n\t\t\tmergedObjects.push(SharedMap.getFactory());\n\t\t}\n\n\t\tsuper(type, ctor, mergedObjects, optionalProviders, registryEntries, runtimeFactory);\n\t}\n}\n"]}
1
+ {"version":3,"file":"dataObjectFactory.js","sourceRoot":"","sources":["../../src/data-object-factories/dataObjectFactory.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,iEAA2E;AAE3E,6CAAgD;AAChD,2DAA6F;AAU7F,yEAAmE;AAEnE;;;;;;;;GAQG;AACH,MAAa,iBAGX,SAAQ,gDAA8B;IACvC,YACC,IAAY,EACZ,IAA8C,EAC9C,gBAA4C,EAAE,EAC9C,iBAAoE,EACpE,eAAoD,EACpD,iBAA+C,gCAAqB;QAEpE,MAAM,aAAa,GAAG,CAAC,GAAG,aAAa,CAAC,CAAC;QAEzC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,2BAAgB,CAAC,IAAI,CAAC,EAAE;YAC7E,sCAAsC;YACtC,aAAa,CAAC,IAAI,CAAC,0BAAe,CAAC,UAAU,EAAE,CAAC,CAAC;SACjD;QAED,0GAA0G;QAC1G,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,qBAAU,CAAC,IAAI,CAAC,EAAE;YACvE,gCAAgC;YAChC,aAAa,CAAC,IAAI,CAAC,eAAS,CAAC,UAAU,EAAE,CAAC,CAAC;SAC3C;QAED,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,iBAAiB,EAAE,eAAe,EAAE,cAAc,CAAC,CAAC;IACtF,CAAC;CACD;AA3BD,8CA2BC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { FluidDataStoreRuntime } from \"@fluidframework/datastore/internal\";\nimport { type IChannelFactory } from \"@fluidframework/datastore-definitions\";\nimport { SharedMap } from \"@fluidframework/map\";\nimport { DirectoryFactory, MapFactory, SharedDirectory } from \"@fluidframework/map/internal\";\nimport { type NamedFluidDataStoreRegistryEntries } from \"@fluidframework/runtime-definitions/internal\";\nimport { type FluidObjectSymbolProvider } from \"@fluidframework/synthesize/internal\";\n\nimport {\n\ttype DataObject,\n\ttype DataObjectTypes,\n\ttype IDataObjectProps,\n} from \"../data-objects/index.js\";\n\nimport { PureDataObjectFactory } from \"./pureDataObjectFactory.js\";\n\n/**\n * DataObjectFactory is the IFluidDataStoreFactory for use with DataObjects.\n * It facilitates DataObject's features (such as its shared directory) by\n * ensuring relevant shared objects etc are available to the factory.\n *\n * @typeParam TObj - DataObject (concrete type)\n * @typeParam I - The input types for the DataObject\n * @alpha\n */\nexport class DataObjectFactory<\n\tTObj extends DataObject<I>,\n\tI extends DataObjectTypes = DataObjectTypes,\n> extends PureDataObjectFactory<TObj, I> {\n\tpublic constructor(\n\t\ttype: string,\n\t\tctor: new (props: IDataObjectProps<I>) => TObj,\n\t\tsharedObjects: readonly IChannelFactory[] = [],\n\t\toptionalProviders: FluidObjectSymbolProvider<I[\"OptionalProviders\"]>,\n\t\tregistryEntries?: NamedFluidDataStoreRegistryEntries,\n\t\truntimeFactory: typeof FluidDataStoreRuntime = FluidDataStoreRuntime,\n\t) {\n\t\tconst mergedObjects = [...sharedObjects];\n\n\t\tif (!sharedObjects.some((factory) => factory.type === DirectoryFactory.Type)) {\n\t\t\t// User did not register for directory\n\t\t\tmergedObjects.push(SharedDirectory.getFactory());\n\t\t}\n\n\t\t// TODO: Remove SharedMap factory when compatibility with SharedMap DataObject is no longer needed in 0.10\n\t\tif (!sharedObjects.some((factory) => factory.type === MapFactory.Type)) {\n\t\t\t// User did not register for map\n\t\t\tmergedObjects.push(SharedMap.getFactory());\n\t\t}\n\n\t\tsuper(type, ctor, mergedObjects, optionalProviders, registryEntries, runtimeFactory);\n\t}\n}\n"]}
@@ -2,12 +2,12 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
- import { FluidDataStoreRuntime } from "@fluidframework/datastore";
6
- import { type IContainerRuntimeBase, type IDataStore, type IFluidDataStoreChannel, type IFluidDataStoreContext, type IFluidDataStoreContextDetached, type IFluidDataStoreFactory, type IFluidDataStoreRegistry, type NamedFluidDataStoreRegistryEntries, type NamedFluidDataStoreRegistryEntry, type IProvideFluidDataStoreRegistry } from "@fluidframework/runtime-definitions";
7
- import { type IContainerRuntime } from "@fluidframework/container-runtime-definitions";
5
+ import { type IContainerRuntime } from "@fluidframework/container-runtime-definitions/internal";
6
+ import { FluidDataStoreRuntime } from "@fluidframework/datastore/internal";
8
7
  import { type IChannelFactory } from "@fluidframework/datastore-definitions";
9
- import { type FluidObjectSymbolProvider } from "@fluidframework/synthesize";
10
- import { type IDataObjectProps, type PureDataObject, type DataObjectTypes } from "../data-objects/index.js";
8
+ import { type IContainerRuntimeBase, type IDataStore, type IFluidDataStoreChannel, type IFluidDataStoreContext, type IFluidDataStoreContextDetached, type IFluidDataStoreFactory, type IFluidDataStoreRegistry, type IProvideFluidDataStoreRegistry, type NamedFluidDataStoreRegistryEntries, type NamedFluidDataStoreRegistryEntry } from "@fluidframework/runtime-definitions/internal";
9
+ import { type FluidObjectSymbolProvider } from "@fluidframework/synthesize/internal";
10
+ import { type DataObjectTypes, type IDataObjectProps, type PureDataObject } from "../data-objects/index.js";
11
11
  /**
12
12
  * PureDataObjectFactory is a barebones IFluidDataStoreFactory for use with PureDataObject.
13
13
  * Consumers should typically use DataObjectFactory instead unless creating
@@ -1 +1 @@
1
- {"version":3,"file":"pureDataObjectFactory.d.ts","sourceRoot":"","sources":["../../src/data-object-factories/pureDataObjectFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACN,qBAAqB,EAGrB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACN,KAAK,qBAAqB,EAC1B,KAAK,UAAU,EACf,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,8BAA8B,EACnC,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,8BAA8B,EACnC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EACN,KAAK,eAAe,EAEpB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAEN,KAAK,yBAAyB,EAE9B,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EACN,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,MAAM,0BAA0B,CAAC;AAuFlC;;;;;;;;GAQG;AACH,qBAAa,qBAAqB,CAChC,IAAI,SAAS,cAAc,CAAC,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