@fluidframework/sequence 2.0.0-internal.1.4.2 → 2.0.0-internal.2.0.0

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 (117) hide show
  1. package/dist/defaultMap.d.ts.map +1 -1
  2. package/dist/defaultMap.js +1 -0
  3. package/dist/defaultMap.js.map +1 -1
  4. package/dist/index.d.ts +4 -5
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +2 -4
  7. package/dist/index.js.map +1 -1
  8. package/dist/intervalCollection.d.ts +271 -34
  9. package/dist/intervalCollection.d.ts.map +1 -1
  10. package/dist/intervalCollection.js +343 -97
  11. package/dist/intervalCollection.js.map +1 -1
  12. package/dist/intervalTree.d.ts +72 -0
  13. package/dist/intervalTree.d.ts.map +1 -0
  14. package/dist/intervalTree.js +91 -0
  15. package/dist/intervalTree.js.map +1 -0
  16. package/dist/packageVersion.d.ts +1 -1
  17. package/dist/packageVersion.js +1 -1
  18. package/dist/packageVersion.js.map +1 -1
  19. package/dist/sequence.d.ts +66 -15
  20. package/dist/sequence.d.ts.map +1 -1
  21. package/dist/sequence.js +73 -19
  22. package/dist/sequence.js.map +1 -1
  23. package/dist/sequenceDeltaEvent.d.ts +15 -1
  24. package/dist/sequenceDeltaEvent.d.ts.map +1 -1
  25. package/dist/sequenceDeltaEvent.js +2 -1
  26. package/dist/sequenceDeltaEvent.js.map +1 -1
  27. package/dist/sequenceFactory.d.ts +0 -89
  28. package/dist/sequenceFactory.d.ts.map +1 -1
  29. package/dist/sequenceFactory.js +2 -142
  30. package/dist/sequenceFactory.js.map +1 -1
  31. package/dist/sharedIntervalCollection.d.ts +0 -6
  32. package/dist/sharedIntervalCollection.d.ts.map +1 -1
  33. package/dist/sharedIntervalCollection.js +0 -7
  34. package/dist/sharedIntervalCollection.js.map +1 -1
  35. package/dist/sharedSequence.d.ts +2 -2
  36. package/dist/sharedString.d.ts +16 -15
  37. package/dist/sharedString.d.ts.map +1 -1
  38. package/dist/sharedString.js +96 -15
  39. package/dist/sharedString.js.map +1 -1
  40. package/lib/defaultMap.d.ts.map +1 -1
  41. package/lib/defaultMap.js +1 -0
  42. package/lib/defaultMap.js.map +1 -1
  43. package/lib/index.d.ts +4 -5
  44. package/lib/index.d.ts.map +1 -1
  45. package/lib/index.js +2 -4
  46. package/lib/index.js.map +1 -1
  47. package/lib/intervalCollection.d.ts +271 -34
  48. package/lib/intervalCollection.d.ts.map +1 -1
  49. package/lib/intervalCollection.js +341 -98
  50. package/lib/intervalCollection.js.map +1 -1
  51. package/lib/intervalTree.d.ts +72 -0
  52. package/lib/intervalTree.d.ts.map +1 -0
  53. package/lib/intervalTree.js +86 -0
  54. package/lib/intervalTree.js.map +1 -0
  55. package/lib/packageVersion.d.ts +1 -1
  56. package/lib/packageVersion.js +1 -1
  57. package/lib/packageVersion.js.map +1 -1
  58. package/lib/sequence.d.ts +66 -15
  59. package/lib/sequence.d.ts.map +1 -1
  60. package/lib/sequence.js +73 -19
  61. package/lib/sequence.js.map +1 -1
  62. package/lib/sequenceDeltaEvent.d.ts +15 -1
  63. package/lib/sequenceDeltaEvent.d.ts.map +1 -1
  64. package/lib/sequenceDeltaEvent.js +2 -1
  65. package/lib/sequenceDeltaEvent.js.map +1 -1
  66. package/lib/sequenceFactory.d.ts +0 -89
  67. package/lib/sequenceFactory.d.ts.map +1 -1
  68. package/lib/sequenceFactory.js +1 -139
  69. package/lib/sequenceFactory.js.map +1 -1
  70. package/lib/sharedIntervalCollection.d.ts +0 -6
  71. package/lib/sharedIntervalCollection.d.ts.map +1 -1
  72. package/lib/sharedIntervalCollection.js +0 -7
  73. package/lib/sharedIntervalCollection.js.map +1 -1
  74. package/lib/sharedSequence.d.ts +2 -2
  75. package/lib/sharedString.d.ts +16 -15
  76. package/lib/sharedString.d.ts.map +1 -1
  77. package/lib/sharedString.js +97 -16
  78. package/lib/sharedString.js.map +1 -1
  79. package/package.json +99 -27
  80. package/src/defaultMap.ts +3 -0
  81. package/src/index.ts +4 -4
  82. package/src/intervalCollection.ts +486 -143
  83. package/src/intervalTree.ts +166 -0
  84. package/src/packageVersion.ts +1 -1
  85. package/src/sequence.ts +86 -30
  86. package/src/sequenceDeltaEvent.ts +18 -4
  87. package/src/sequenceFactory.ts +2 -163
  88. package/src/sharedIntervalCollection.ts +0 -11
  89. package/src/sharedString.ts +120 -23
  90. package/tsconfig.json +0 -1
  91. package/dist/sharedNumberSequence.d.ts +0 -50
  92. package/dist/sharedNumberSequence.d.ts.map +0 -1
  93. package/dist/sharedNumberSequence.js +0 -61
  94. package/dist/sharedNumberSequence.js.map +0 -1
  95. package/dist/sharedObjectSequence.d.ts +0 -50
  96. package/dist/sharedObjectSequence.d.ts.map +0 -1
  97. package/dist/sharedObjectSequence.js +0 -61
  98. package/dist/sharedObjectSequence.js.map +0 -1
  99. package/dist/sparsematrix.d.ts +0 -152
  100. package/dist/sparsematrix.d.ts.map +0 -1
  101. package/dist/sparsematrix.js +0 -343
  102. package/dist/sparsematrix.js.map +0 -1
  103. package/lib/sharedNumberSequence.d.ts +0 -50
  104. package/lib/sharedNumberSequence.d.ts.map +0 -1
  105. package/lib/sharedNumberSequence.js +0 -57
  106. package/lib/sharedNumberSequence.js.map +0 -1
  107. package/lib/sharedObjectSequence.d.ts +0 -50
  108. package/lib/sharedObjectSequence.d.ts.map +0 -1
  109. package/lib/sharedObjectSequence.js +0 -57
  110. package/lib/sharedObjectSequence.js.map +0 -1
  111. package/lib/sparsematrix.d.ts +0 -152
  112. package/lib/sparsematrix.d.ts.map +0 -1
  113. package/lib/sparsematrix.js +0 -334
  114. package/lib/sparsematrix.js.map +0 -1
  115. package/src/sharedNumberSequence.ts +0 -62
  116. package/src/sharedObjectSequence.ts +0 -62
  117. package/src/sparsematrix.ts +0 -434
@@ -1,50 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
- import { IFluidDataStoreRuntime, IChannelAttributes } from "@fluidframework/datastore-definitions";
6
- import { SharedNumberSequenceFactory } from "./sequenceFactory";
7
- import { SharedSequence } from "./sharedSequence";
8
- /**
9
- * The SharedNumberSequence holds a sequence of numbers. Each number will be stored
10
- * at a position within the sequence. See the
11
- * {@link https://fluidframework.com/docs/data-structures/sequences/ | sequence documentation}
12
- * for details on working with sequences.
13
- *
14
- * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
15
- * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
16
- */
17
- export declare class SharedNumberSequence extends SharedSequence<number> {
18
- id: string;
19
- /**
20
- * Create a new shared number sequence
21
- *
22
- * @param runtime - data store runtime the new shared number sequence belongs to
23
- * @param id - optional name of the shared number sequence
24
- * @returns newly create shared number sequence (but not attached yet)
25
- *
26
- * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
27
- * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
28
- */
29
- static create(runtime: IFluidDataStoreRuntime, id?: string): SharedNumberSequence;
30
- /**
31
- * Get a factory for SharedNumberSequence to register with the data store.
32
- *
33
- * @returns a factory that creates and load SharedNumberSequence
34
- *
35
- * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
36
- * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
37
- */
38
- static getFactory(): SharedNumberSequenceFactory;
39
- /**
40
- * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
41
- * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
42
- */
43
- constructor(document: IFluidDataStoreRuntime, id: string, attributes: IChannelAttributes);
44
- /**
45
- * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
46
- * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
47
- */
48
- getRange(start: number, end?: number): number[];
49
- }
50
- //# sourceMappingURL=sharedNumberSequence.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sharedNumberSequence.d.ts","sourceRoot":"","sources":["../src/sharedNumberSequence.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AACnG,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;;;;;GAQG;AACH,qBAAa,oBAAqB,SAAQ,cAAc,CAAC,MAAM,CAAC;IAgCP,EAAE,EAAE,MAAM;IA/B/D;;;;;;;;;OASG;WACW,MAAM,CAAC,OAAO,EAAE,sBAAsB,EAAE,EAAE,CAAC,EAAE,MAAM;IAKjE;;;;;;;OAOG;WACW,UAAU;IAIxB;;;OAGG;gBACS,QAAQ,EAAE,sBAAsB,EAAS,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,kBAAkB;IAI/F;;;OAGG;IACI,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM;CAG9C"}
@@ -1,57 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
- import { SharedNumberSequenceFactory } from "./sequenceFactory";
6
- import { SharedSequence } from "./sharedSequence";
7
- /**
8
- * The SharedNumberSequence holds a sequence of numbers. Each number will be stored
9
- * at a position within the sequence. See the
10
- * {@link https://fluidframework.com/docs/data-structures/sequences/ | sequence documentation}
11
- * for details on working with sequences.
12
- *
13
- * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
14
- * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
15
- */
16
- export class SharedNumberSequence extends SharedSequence {
17
- /**
18
- * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
19
- * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
20
- */
21
- constructor(document, id, attributes) {
22
- super(document, id, attributes, SharedNumberSequenceFactory.segmentFromSpec);
23
- this.id = id;
24
- }
25
- /**
26
- * Create a new shared number sequence
27
- *
28
- * @param runtime - data store runtime the new shared number sequence belongs to
29
- * @param id - optional name of the shared number sequence
30
- * @returns newly create shared number sequence (but not attached yet)
31
- *
32
- * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
33
- * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
34
- */
35
- static create(runtime, id) {
36
- return runtime.createChannel(id, SharedNumberSequenceFactory.Type);
37
- }
38
- /**
39
- * Get a factory for SharedNumberSequence to register with the data store.
40
- *
41
- * @returns a factory that creates and load SharedNumberSequence
42
- *
43
- * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
44
- * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
45
- */
46
- static getFactory() {
47
- return new SharedNumberSequenceFactory();
48
- }
49
- /**
50
- * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.
51
- * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
52
- */
53
- getRange(start, end) {
54
- return this.getItems(start, end);
55
- }
56
- }
57
- //# sourceMappingURL=sharedNumberSequence.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sharedNumberSequence.js","sourceRoot":"","sources":["../src/sharedNumberSequence.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;;;;;GAQG;AACH,MAAM,OAAO,oBAAqB,SAAQ,cAAsB;IA4B5D;;;OAGG;IACH,YAAY,QAAgC,EAAS,EAAU,EAAE,UAA8B;QAC3F,KAAK,CAAC,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,2BAA2B,CAAC,eAAe,CAAC,CAAC;QAD5B,OAAE,GAAF,EAAE,CAAQ;IAE/D,CAAC;IAjCD;;;;;;;;;OASG;IACI,MAAM,CAAC,MAAM,CAAC,OAA+B,EAAE,EAAW;QAC7D,OAAO,OAAO,CAAC,aAAa,CAAC,EAAE,EAC3B,2BAA2B,CAAC,IAAI,CAAyB,CAAC;IAClE,CAAC;IAED;;;;;;;OAOG;IACI,MAAM,CAAC,UAAU;QACpB,OAAO,IAAI,2BAA2B,EAAE,CAAC;IAC7C,CAAC;IAUD;;;OAGG;IACI,QAAQ,CAAC,KAAa,EAAE,GAAY;QACvC,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACrC,CAAC;CACJ","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IFluidDataStoreRuntime, IChannelAttributes } from \"@fluidframework/datastore-definitions\";\nimport { SharedNumberSequenceFactory } from \"./sequenceFactory\";\nimport { SharedSequence } from \"./sharedSequence\";\n\n/**\n * The SharedNumberSequence holds a sequence of numbers. Each number will be stored\n * at a position within the sequence. See the\n * {@link https://fluidframework.com/docs/data-structures/sequences/ | sequence documentation}\n * for details on working with sequences.\n *\n * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.\n * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n */\nexport class SharedNumberSequence extends SharedSequence<number> {\n /**\n * Create a new shared number sequence\n *\n * @param runtime - data store runtime the new shared number sequence belongs to\n * @param id - optional name of the shared number sequence\n * @returns newly create shared number sequence (but not attached yet)\n *\n * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.\n * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n */\n public static create(runtime: IFluidDataStoreRuntime, id?: string) {\n return runtime.createChannel(id,\n SharedNumberSequenceFactory.Type) as SharedNumberSequence;\n }\n\n /**\n * Get a factory for SharedNumberSequence to register with the data store.\n *\n * @returns a factory that creates and load SharedNumberSequence\n *\n * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.\n * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n */\n public static getFactory() {\n return new SharedNumberSequenceFactory();\n }\n\n /**\n * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.\n * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n */\n constructor(document: IFluidDataStoreRuntime, public id: string, attributes: IChannelAttributes) {\n super(document, id, attributes, SharedNumberSequenceFactory.segmentFromSpec);\n }\n\n /**\n * @deprecated SharedNumberSequence is not recommended for use and will be removed in an upcoming release.\n * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n */\n public getRange(start: number, end?: number) {\n return this.getItems(start, end);\n }\n}\n"]}
@@ -1,50 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
- import { IFluidDataStoreRuntime, IChannelAttributes, Serializable } from "@fluidframework/datastore-definitions";
6
- import { SharedObjectSequenceFactory } from "./sequenceFactory";
7
- import { SharedSequence } from "./sharedSequence";
8
- /**
9
- * The SharedObjectSequence holds a sequence of serializable objects. Each object will be stored
10
- * at a position within the sequence. See the
11
- * {@link https://fluidframework.com/docs/data-structures/sequences/ | sequence documentation}
12
- * for details on working with sequences.
13
- *
14
- * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
15
- * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
16
- */
17
- export declare class SharedObjectSequence<T> extends SharedSequence<T> {
18
- id: string;
19
- /**
20
- * Create a new shared object sequence
21
- *
22
- * @param runtime - data store runtime the new shared object sequence belongs to
23
- * @param id - optional name of the shared object sequence
24
- * @returns newly create shared object sequence (but not attached yet)
25
- *
26
- * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
27
- * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
28
- */
29
- static create<T>(runtime: IFluidDataStoreRuntime, id?: string): SharedObjectSequence<T>;
30
- /**
31
- * Get a factory for SharedObjectSequence to register with the data store.
32
- *
33
- * @returns a factory that creates and load SharedObjectSequence
34
- *
35
- * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
36
- * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
37
- */
38
- static getFactory(): SharedObjectSequenceFactory;
39
- /**
40
- * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
41
- * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
42
- */
43
- constructor(document: IFluidDataStoreRuntime, id: string, attributes: IChannelAttributes);
44
- /**
45
- * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
46
- * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
47
- */
48
- getRange(start: number, end?: number): Serializable<T>[];
49
- }
50
- //# sourceMappingURL=sharedObjectSequence.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sharedObjectSequence.d.ts","sourceRoot":"","sources":["../src/sharedObjectSequence.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AACjH,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;;;;;GAQG;AACH,qBAAa,oBAAoB,CAAC,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;IAgCL,EAAE,EAAE,MAAM;IA/B/D;;;;;;;;;OASG;WAEW,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,sBAAsB,EAAE,EAAE,CAAC,EAAE,MAAM;IAIpE;;;;;;;OAOG;WACW,UAAU;IAIxB;;;OAGG;gBACS,QAAQ,EAAE,sBAAsB,EAAS,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,kBAAkB;IAI/F;;;OAGG;IACI,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC,CAAC,CAAC,EAAE;CAGlE"}
@@ -1,57 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
- import { SharedObjectSequenceFactory } from "./sequenceFactory";
6
- import { SharedSequence } from "./sharedSequence";
7
- /**
8
- * The SharedObjectSequence holds a sequence of serializable objects. Each object will be stored
9
- * at a position within the sequence. See the
10
- * {@link https://fluidframework.com/docs/data-structures/sequences/ | sequence documentation}
11
- * for details on working with sequences.
12
- *
13
- * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
14
- * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
15
- */
16
- export class SharedObjectSequence extends SharedSequence {
17
- /**
18
- * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
19
- * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
20
- */
21
- constructor(document, id, attributes) {
22
- super(document, id, attributes, SharedObjectSequenceFactory.segmentFromSpec);
23
- this.id = id;
24
- }
25
- /**
26
- * Create a new shared object sequence
27
- *
28
- * @param runtime - data store runtime the new shared object sequence belongs to
29
- * @param id - optional name of the shared object sequence
30
- * @returns newly create shared object sequence (but not attached yet)
31
- *
32
- * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
33
- * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
34
- */
35
- static create(runtime, id) {
36
- return runtime.createChannel(id, SharedObjectSequenceFactory.Type);
37
- }
38
- /**
39
- * Get a factory for SharedObjectSequence to register with the data store.
40
- *
41
- * @returns a factory that creates and load SharedObjectSequence
42
- *
43
- * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
44
- * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
45
- */
46
- static getFactory() {
47
- return new SharedObjectSequenceFactory();
48
- }
49
- /**
50
- * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.
51
- * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)
52
- */
53
- getRange(start, end) {
54
- return this.getItems(start, end);
55
- }
56
- }
57
- //# sourceMappingURL=sharedObjectSequence.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sharedObjectSequence.js","sourceRoot":"","sources":["../src/sharedObjectSequence.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;;;;;GAQG;AACH,MAAM,OAAO,oBAAwB,SAAQ,cAAiB;IA4B1D;;;OAGG;IACH,YAAY,QAAgC,EAAS,EAAU,EAAE,UAA8B;QAC3F,KAAK,CAAC,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,2BAA2B,CAAC,eAAe,CAAC,CAAC;QAD5B,OAAE,GAAF,EAAE,CAAQ;IAE/D,CAAC;IAjCD;;;;;;;;;OASG;IAEI,MAAM,CAAC,MAAM,CAAI,OAA+B,EAAE,EAAW;QAChE,OAAO,OAAO,CAAC,aAAa,CAAC,EAAE,EAAE,2BAA2B,CAAC,IAAI,CAA4B,CAAC;IAClG,CAAC;IAED;;;;;;;OAOG;IACI,MAAM,CAAC,UAAU;QACpB,OAAO,IAAI,2BAA2B,EAAE,CAAC;IAC7C,CAAC;IAUD;;;OAGG;IACI,QAAQ,CAAC,KAAa,EAAE,GAAY;QACvC,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACrC,CAAC;CACJ","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IFluidDataStoreRuntime, IChannelAttributes, Serializable } from \"@fluidframework/datastore-definitions\";\nimport { SharedObjectSequenceFactory } from \"./sequenceFactory\";\nimport { SharedSequence } from \"./sharedSequence\";\n\n/**\n * The SharedObjectSequence holds a sequence of serializable objects. Each object will be stored\n * at a position within the sequence. See the\n * {@link https://fluidframework.com/docs/data-structures/sequences/ | sequence documentation}\n * for details on working with sequences.\n *\n * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.\n * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n */\nexport class SharedObjectSequence<T> extends SharedSequence<T> {\n /**\n * Create a new shared object sequence\n *\n * @param runtime - data store runtime the new shared object sequence belongs to\n * @param id - optional name of the shared object sequence\n * @returns newly create shared object sequence (but not attached yet)\n *\n * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.\n * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n */\n\n public static create<T>(runtime: IFluidDataStoreRuntime, id?: string) {\n return runtime.createChannel(id, SharedObjectSequenceFactory.Type) as SharedObjectSequence<T>;\n }\n\n /**\n * Get a factory for SharedObjectSequence to register with the data store.\n *\n * @returns a factory that creates and load SharedObjectSequence\n *\n * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.\n * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n */\n public static getFactory() {\n return new SharedObjectSequenceFactory();\n }\n\n /**\n * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.\n * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n */\n constructor(document: IFluidDataStoreRuntime, public id: string, attributes: IChannelAttributes) {\n super(document, id, attributes, SharedObjectSequenceFactory.segmentFromSpec);\n }\n\n /**\n * @deprecated SharedObjectSequence is not recommended for use and will be removed in an upcoming release.\n * For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)\n */\n public getRange(start: number, end?: number): Serializable<T>[] {\n return this.getItems(start, end);\n }\n}\n"]}
@@ -1,152 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
- import { IFluidHandle } from "@fluidframework/core-interfaces";
6
- import { BaseSegment, IJSONSegment, ISegment, PropertySet } from "@fluidframework/merge-tree";
7
- import { IChannelAttributes, IFluidDataStoreRuntime, IChannelServices, IChannelFactory, Serializable, Jsonable } from "@fluidframework/datastore-definitions";
8
- import { ISharedObject } from "@fluidframework/shared-object-base";
9
- import { SharedSegmentSequence, SubSequence } from "./";
10
- /**
11
- * An empty segment that occupies 'cachedLength' positions.
12
- * {@link SparseMatrix} uses `PaddingSegment` to "pad" a run of unoccupied cells.
13
- *
14
- * @deprecated `PaddingSegment` is part of an abandoned prototype.
15
- * Use {@link @fluidframework/matrix#SharedMatrix} instead.
16
- */
17
- export declare class PaddingSegment extends BaseSegment {
18
- static readonly typeString = "PaddingSegment";
19
- static is(segment: ISegment): segment is PaddingSegment;
20
- static fromJSONObject(spec: any): PaddingSegment;
21
- readonly type = "PaddingSegment";
22
- constructor(size: number);
23
- toJSONObject(): {
24
- pad: number;
25
- props: PropertySet;
26
- };
27
- clone(start?: number, end?: number): PaddingSegment;
28
- canAppend(segment: ISegment): boolean;
29
- toString(): string;
30
- append(segment: ISegment): void;
31
- removeRange(start: number, end: number): boolean;
32
- protected createSplitSegmentAt(pos: number): PaddingSegment;
33
- }
34
- /**
35
- * @deprecated `SparseMatrixItem` is part of an abandoned prototype.
36
- * Use {@link @fluidframework/matrix#SharedMatrix} instead.
37
- */
38
- export declare type SparseMatrixItem = Serializable;
39
- /**
40
- * @deprecated `RunSegment` is part of an abandoned prototype.
41
- * Use {@link @fluidframework/matrix#SharedMatrix} instead.
42
- */
43
- export declare class RunSegment extends SubSequence<SparseMatrixItem> {
44
- items: SparseMatrixItem[];
45
- static readonly typeString = "RunSegment";
46
- static is(segment: ISegment): segment is RunSegment;
47
- static fromJSONObject(spec: any): RunSegment;
48
- readonly type = "RunSegment";
49
- private tags;
50
- constructor(items: SparseMatrixItem[]);
51
- clone(start?: number, end?: number): RunSegment;
52
- append(segment: ISegment): this;
53
- removeRange(start: number, end: number): boolean;
54
- getTag(pos: number): any;
55
- setTag(pos: number, tag: any): void;
56
- protected createSplitSegmentAt(pos: number): RunSegment;
57
- }
58
- /**
59
- * @deprecated `MatrixSegment` is part of an abandoned prototype.
60
- * Use {@link @fluidframework/matrix#SharedMatrix} instead.
61
- */
62
- export declare type MatrixSegment = RunSegment | PaddingSegment;
63
- /**
64
- * @deprecated `maxCol` is part of an abandoned prototype.
65
- * Use {@link @fluidframework/matrix#SharedMatrix} instead.
66
- */
67
- export declare const maxCol = 2097152;
68
- /**
69
- * @deprecated `maxCols` is part of an abandoned prototype.
70
- * Use {@link @fluidframework/matrix#SharedMatrix} instead.
71
- */
72
- export declare const maxCols: number;
73
- /**
74
- * @deprecated `maxRow` is part of an abandoned prototype.
75
- * Use {@link @fluidframework/matrix#SharedMatrix} instead.
76
- */
77
- export declare const maxRow = 4294967295;
78
- /**
79
- * @deprecated `maxRows` is part of an abandoned prototype.
80
- * Use {@link @fluidframework/matrix#SharedMatrix} instead.
81
- */
82
- export declare const maxRows: number;
83
- /**
84
- * @deprecated `maxCellPosition` is part of an abandoned prototype.
85
- * Use {@link @fluidframework/matrix#SharedMatrix} instead.
86
- */
87
- export declare const maxCellPosition: number;
88
- /**
89
- * @deprecated `positionToRowCol` is part of an abandoned prototype.
90
- * Use {@link @fluidframework/matrix#SharedMatrix} instead.
91
- */
92
- export declare const rowColToPosition: (row: number, col: number) => number;
93
- /**
94
- * @deprecated `positionToRowCol` is part of an abandoned prototype.
95
- * Use {@link @fluidframework/matrix#SharedMatrix} instead.
96
- */
97
- export declare function positionToRowCol(position: number): {
98
- row: number;
99
- col: number;
100
- };
101
- /**
102
- * @deprecated `SparseMatrix` is an abandoned prototype.
103
- * Use {@link @fluidframework/matrix#SharedMatrix} instead.
104
- */
105
- export declare class SparseMatrix extends SharedSegmentSequence<MatrixSegment> {
106
- id: string;
107
- /**
108
- * Create a new sparse matrix
109
- *
110
- * @param runtime - data store runtime the new sparse matrix belongs to
111
- * @param id - optional name of the sparse matrix
112
- * @returns newly create sparse matrix (but not attached yet)
113
- */
114
- static create(runtime: IFluidDataStoreRuntime, id?: string): SparseMatrix;
115
- /**
116
- * Get a factory for SharedMap to register with the data store.
117
- *
118
- * @returns a factory that creates and load SharedMap
119
- */
120
- static getFactory(): IChannelFactory;
121
- constructor(document: IFluidDataStoreRuntime, id: string, attributes: IChannelAttributes);
122
- get numRows(): number;
123
- setItems(row: number, col: number, values: SparseMatrixItem[], props?: PropertySet): void;
124
- getItem(row: number, col: number): Jsonable<string | number | boolean | IFluidHandle>;
125
- getTag(row: number, col: number): any;
126
- setTag(row: number, col: number, tag: any): void;
127
- insertRows(row: number, numRows: number): void;
128
- removeRows(row: number, numRows: number): void;
129
- insertCols(col: number, numCols: number): void;
130
- removeCols(col: number, numCols: number): void;
131
- annotatePosition(row: number, col: number, props: PropertySet): void;
132
- getPositionProperties(row: number, col: number): PropertySet;
133
- private moveAsPadding;
134
- private getSegment;
135
- }
136
- /**
137
- * @deprecated `SparseMatrixFactory` is an abandoned prototype.
138
- * Use {@link @fluidframework/matrix#SharedMatrixFactory} instead.
139
- */
140
- export declare class SparseMatrixFactory implements IChannelFactory {
141
- static Type: string;
142
- static Attributes: IChannelAttributes;
143
- static segmentFromSpec(spec: IJSONSegment): ISegment;
144
- get type(): string;
145
- get attributes(): IChannelAttributes;
146
- /**
147
- * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}
148
- */
149
- load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes): Promise<ISharedObject>;
150
- create(document: IFluidDataStoreRuntime, id: string): ISharedObject;
151
- }
152
- //# sourceMappingURL=sparsematrix.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sparsematrix.d.ts","sourceRoot":"","sources":["../src/s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