@fluid-experimental/sequence-deprecated 2.0.0-dev-rc.1.0.0.224419
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.
- package/.eslintrc.js +16 -0
- package/.mocharc.js +12 -0
- package/.vscode/launch.json +16 -0
- package/CHANGELOG.md +81 -0
- package/LICENSE +21 -0
- package/README.md +3 -0
- package/api-extractor-lint.json +4 -0
- package/api-extractor.json +4 -0
- package/api-report/sequence-deprecated.api.md +233 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +30 -0
- package/dist/index.js.map +1 -0
- package/dist/packageVersion.d.ts +9 -0
- package/dist/packageVersion.d.ts.map +1 -0
- package/dist/packageVersion.js +12 -0
- package/dist/packageVersion.js.map +1 -0
- package/dist/sequence-deprecated-alpha.d.ts +58 -0
- package/dist/sequence-deprecated-beta.d.ts +72 -0
- package/dist/sequence-deprecated-public.d.ts +72 -0
- package/dist/sequence-deprecated-untrimmed.d.ts +371 -0
- package/dist/sequenceFactory.d.ts +97 -0
- package/dist/sequenceFactory.d.ts.map +1 -0
- package/dist/sequenceFactory.js +154 -0
- package/dist/sequenceFactory.js.map +1 -0
- package/dist/sharedNumberSequence.d.ts +51 -0
- package/dist/sharedNumberSequence.d.ts.map +1 -0
- package/dist/sharedNumberSequence.js +68 -0
- package/dist/sharedNumberSequence.js.map +1 -0
- package/dist/sharedObjectSequence.d.ts +51 -0
- package/dist/sharedObjectSequence.d.ts.map +1 -0
- package/dist/sharedObjectSequence.js +62 -0
- package/dist/sharedObjectSequence.js.map +1 -0
- package/dist/sharedSequence.d.ts +12 -0
- package/dist/sharedSequence.d.ts.map +1 -0
- package/dist/sharedSequence.js +17 -0
- package/dist/sharedSequence.js.map +1 -0
- package/dist/sparsematrix.d.ts +167 -0
- package/dist/sparsematrix.d.ts.map +1 -0
- package/dist/sparsematrix.js +346 -0
- package/dist/sparsematrix.js.map +1 -0
- package/dist/tsdoc-metadata.json +11 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +10 -0
- package/lib/index.js.map +1 -0
- package/lib/packageVersion.d.ts +9 -0
- package/lib/packageVersion.d.ts.map +1 -0
- package/lib/packageVersion.js +9 -0
- package/lib/packageVersion.js.map +1 -0
- package/lib/sequenceFactory.d.ts +97 -0
- package/lib/sequenceFactory.d.ts.map +1 -0
- package/lib/sequenceFactory.js +149 -0
- package/lib/sequenceFactory.js.map +1 -0
- package/lib/sharedNumberSequence.d.ts +51 -0
- package/lib/sharedNumberSequence.d.ts.map +1 -0
- package/lib/sharedNumberSequence.js +64 -0
- package/lib/sharedNumberSequence.js.map +1 -0
- package/lib/sharedObjectSequence.d.ts +51 -0
- package/lib/sharedObjectSequence.d.ts.map +1 -0
- package/lib/sharedObjectSequence.js +58 -0
- package/lib/sharedObjectSequence.js.map +1 -0
- package/lib/sharedSequence.d.ts +12 -0
- package/lib/sharedSequence.d.ts.map +1 -0
- package/lib/sharedSequence.js +12 -0
- package/lib/sharedSequence.js.map +1 -0
- package/lib/sparsematrix.d.ts +167 -0
- package/lib/sparsematrix.d.ts.map +1 -0
- package/lib/sparsematrix.js +337 -0
- package/lib/sparsematrix.js.map +1 -0
- package/package.json +99 -0
- package/prettier.config.cjs +8 -0
- package/src/index.ts +24 -0
- package/src/packageVersion.ts +9 -0
- package/src/sequenceFactory.ts +183 -0
- package/src/sharedNumberSequence.ts +72 -0
- package/src/sharedObjectSequence.ts +74 -0
- package/src/sharedSequence.ts +12 -0
- package/src/sparsematrix.ts +429 -0
- package/tsconfig.esnext.json +7 -0
- package/tsconfig.json +10 -0
package/.eslintrc.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
module.exports = {
|
|
7
|
+
extends: [require.resolve("@fluidframework/eslint-config-fluid/minimal"), "prettier"],
|
|
8
|
+
parserOptions: {
|
|
9
|
+
project: ["./tsconfig.json", "./src/test/tsconfig.json"],
|
|
10
|
+
},
|
|
11
|
+
rules: {
|
|
12
|
+
"import/no-deprecated": "off", // This package uses deprecated APIs by design.
|
|
13
|
+
"@typescript-eslint/no-use-before-define": "off",
|
|
14
|
+
"@typescript-eslint/strict-boolean-expressions": "off",
|
|
15
|
+
},
|
|
16
|
+
};
|
package/.mocharc.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
|
|
8
|
+
const getFluidTestMochaConfig = require("@fluidframework/mocha-test-setup/mocharc-common");
|
|
9
|
+
|
|
10
|
+
const packageDir = __dirname;
|
|
11
|
+
const config = getFluidTestMochaConfig(packageDir);
|
|
12
|
+
module.exports = config;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
// Use IntelliSense to learn about possible attributes.
|
|
3
|
+
// Hover to view descriptions of existing attributes.
|
|
4
|
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
+
"version": "0.2.0",
|
|
6
|
+
"configurations": [
|
|
7
|
+
{
|
|
8
|
+
"name": "Sequence Test",
|
|
9
|
+
"type": "node",
|
|
10
|
+
"request": "launch",
|
|
11
|
+
"program": "${workspaceRoot}/../../../node_modules/mocha/bin/_mocha",
|
|
12
|
+
"args": ["dist/test", "--no-timeouts", "--exit"],
|
|
13
|
+
"cwd": "${workspaceRoot}",
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
}
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# @fluid-experimental/sequence-deprecated
|
|
2
|
+
|
|
3
|
+
## 2.0.0-internal.8.0.0
|
|
4
|
+
|
|
5
|
+
Dependency updates only.
|
|
6
|
+
|
|
7
|
+
## 2.0.0-internal.7.4.0
|
|
8
|
+
|
|
9
|
+
Dependency updates only.
|
|
10
|
+
|
|
11
|
+
## 2.0.0-internal.7.3.0
|
|
12
|
+
|
|
13
|
+
Dependency updates only.
|
|
14
|
+
|
|
15
|
+
## 2.0.0-internal.7.2.0
|
|
16
|
+
|
|
17
|
+
Dependency updates only.
|
|
18
|
+
|
|
19
|
+
## 2.0.0-internal.7.1.0
|
|
20
|
+
|
|
21
|
+
Dependency updates only.
|
|
22
|
+
|
|
23
|
+
## 2.0.0-internal.7.0.0
|
|
24
|
+
|
|
25
|
+
### Major Changes
|
|
26
|
+
|
|
27
|
+
- Minimum TypeScript version now 5.1.6 [871b3493dd](https://github.com/microsoft/FluidFramework/commits/871b3493dd0d7ea3a89be64998ceb6cb9021a04e)
|
|
28
|
+
|
|
29
|
+
The minimum supported TypeScript version for Fluid 2.0 clients is now 5.1.6.
|
|
30
|
+
|
|
31
|
+
## 2.0.0-internal.6.4.0
|
|
32
|
+
|
|
33
|
+
Dependency updates only.
|
|
34
|
+
|
|
35
|
+
## 2.0.0-internal.6.3.0
|
|
36
|
+
|
|
37
|
+
Dependency updates only.
|
|
38
|
+
|
|
39
|
+
## 2.0.0-internal.6.2.0
|
|
40
|
+
|
|
41
|
+
Dependency updates only.
|
|
42
|
+
|
|
43
|
+
## 2.0.0-internal.6.1.0
|
|
44
|
+
|
|
45
|
+
Dependency updates only.
|
|
46
|
+
|
|
47
|
+
## 2.0.0-internal.6.0.0
|
|
48
|
+
|
|
49
|
+
### Major Changes
|
|
50
|
+
|
|
51
|
+
- Upgraded typescript transpilation target to ES2020 [8abce8cdb4](https://github.com/microsoft/FluidFramework/commits/8abce8cdb4e2832fb6405fb44e393bef03d5648a)
|
|
52
|
+
|
|
53
|
+
Upgraded typescript transpilation target to ES2020. This is done in order to decrease the bundle sizes of Fluid Framework packages. This has provided size improvements across the board for ex. Loader, Driver, Runtime etc. Reduced bundle sizes helps to load lesser code in apps and hence also helps to improve the perf.If any app wants to target any older versions of browsers with which this target version is not compatible, then they can use packages like babel to transpile to a older target.
|
|
54
|
+
|
|
55
|
+
## 2.0.0-internal.5.4.0
|
|
56
|
+
|
|
57
|
+
Dependency updates only.
|
|
58
|
+
|
|
59
|
+
## 2.0.0-internal.5.3.0
|
|
60
|
+
|
|
61
|
+
Dependency updates only.
|
|
62
|
+
|
|
63
|
+
## 2.0.0-internal.5.2.0
|
|
64
|
+
|
|
65
|
+
Dependency updates only.
|
|
66
|
+
|
|
67
|
+
## 2.0.0-internal.5.1.0
|
|
68
|
+
|
|
69
|
+
Dependency updates only.
|
|
70
|
+
|
|
71
|
+
## 2.0.0-internal.5.0.0
|
|
72
|
+
|
|
73
|
+
Dependency updates only.
|
|
74
|
+
|
|
75
|
+
## 2.0.0-internal.4.4.0
|
|
76
|
+
|
|
77
|
+
Dependency updates only.
|
|
78
|
+
|
|
79
|
+
## 2.0.0-internal.4.1.0
|
|
80
|
+
|
|
81
|
+
Dependency updates only.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
## API Report File for "@fluid-experimental/sequence-deprecated"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
import { BaseSegment } from '@fluidframework/merge-tree';
|
|
8
|
+
import { IChannelAttributes } from '@fluidframework/datastore-definitions';
|
|
9
|
+
import { IChannelFactory } from '@fluidframework/datastore-definitions';
|
|
10
|
+
import { IChannelServices } from '@fluidframework/datastore-definitions';
|
|
11
|
+
import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
|
|
12
|
+
import { IFluidHandle } from '@fluidframework/core-interfaces';
|
|
13
|
+
import { IJSONRunSegment } from '@fluidframework/sequence';
|
|
14
|
+
import { IJSONSegment } from '@fluidframework/merge-tree';
|
|
15
|
+
import { ISegment } from '@fluidframework/merge-tree';
|
|
16
|
+
import { ISharedObject } from '@fluidframework/shared-object-base';
|
|
17
|
+
import { Jsonable } from '@fluidframework/datastore-definitions';
|
|
18
|
+
import { PropertySet } from '@fluidframework/merge-tree';
|
|
19
|
+
import { Serializable } from '@fluidframework/datastore-definitions';
|
|
20
|
+
import { SharedSegmentSequence } from '@fluidframework/sequence';
|
|
21
|
+
import { SharedSequence } from '@fluidframework/sequence';
|
|
22
|
+
import { SubSequence } from '@fluidframework/sequence';
|
|
23
|
+
|
|
24
|
+
export { IJSONRunSegment }
|
|
25
|
+
|
|
26
|
+
// @internal @deprecated (undocumented)
|
|
27
|
+
export type MatrixSegment = RunSegment | PaddingSegment;
|
|
28
|
+
|
|
29
|
+
// @internal @deprecated (undocumented)
|
|
30
|
+
export const maxCellPosition: number;
|
|
31
|
+
|
|
32
|
+
// @internal @deprecated (undocumented)
|
|
33
|
+
export const maxCol = 2097152;
|
|
34
|
+
|
|
35
|
+
// @internal @deprecated (undocumented)
|
|
36
|
+
export const maxCols: number;
|
|
37
|
+
|
|
38
|
+
// @internal @deprecated (undocumented)
|
|
39
|
+
export const maxRow = 4294967295;
|
|
40
|
+
|
|
41
|
+
// @internal @deprecated (undocumented)
|
|
42
|
+
export const maxRows: number;
|
|
43
|
+
|
|
44
|
+
// @internal @deprecated
|
|
45
|
+
export class PaddingSegment extends BaseSegment {
|
|
46
|
+
constructor(size: number);
|
|
47
|
+
// (undocumented)
|
|
48
|
+
append(segment: ISegment): void;
|
|
49
|
+
// (undocumented)
|
|
50
|
+
canAppend(segment: ISegment): boolean;
|
|
51
|
+
// (undocumented)
|
|
52
|
+
clone(start?: number, end?: number): PaddingSegment;
|
|
53
|
+
// (undocumented)
|
|
54
|
+
protected createSplitSegmentAt(pos: number): PaddingSegment;
|
|
55
|
+
// (undocumented)
|
|
56
|
+
static fromJSONObject(spec: any): PaddingSegment | undefined;
|
|
57
|
+
// (undocumented)
|
|
58
|
+
static is(segment: ISegment): segment is PaddingSegment;
|
|
59
|
+
// (undocumented)
|
|
60
|
+
removeRange(start: number, end: number): boolean;
|
|
61
|
+
// (undocumented)
|
|
62
|
+
toJSONObject(): {
|
|
63
|
+
pad: number;
|
|
64
|
+
props: PropertySet | undefined;
|
|
65
|
+
};
|
|
66
|
+
// (undocumented)
|
|
67
|
+
toString(): string;
|
|
68
|
+
// (undocumented)
|
|
69
|
+
readonly type = "PaddingSegment";
|
|
70
|
+
// (undocumented)
|
|
71
|
+
static readonly typeString = "PaddingSegment";
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// @internal @deprecated (undocumented)
|
|
75
|
+
export function positionToRowCol(position: number): {
|
|
76
|
+
row: number;
|
|
77
|
+
col: number;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
// @internal @deprecated (undocumented)
|
|
81
|
+
export const rowColToPosition: (row: number, col: number) => number;
|
|
82
|
+
|
|
83
|
+
// @internal @deprecated (undocumented)
|
|
84
|
+
export class RunSegment extends SubSequence<SparseMatrixItem> {
|
|
85
|
+
constructor(items: SparseMatrixItem[]);
|
|
86
|
+
// (undocumented)
|
|
87
|
+
append(segment: ISegment): this;
|
|
88
|
+
// (undocumented)
|
|
89
|
+
clone(start?: number, end?: number): RunSegment;
|
|
90
|
+
// (undocumented)
|
|
91
|
+
protected createSplitSegmentAt(pos: number): RunSegment | undefined;
|
|
92
|
+
// (undocumented)
|
|
93
|
+
static fromJSONObject(spec: any): RunSegment | undefined;
|
|
94
|
+
// (undocumented)
|
|
95
|
+
getTag(pos: number): any;
|
|
96
|
+
// (undocumented)
|
|
97
|
+
static is(segment: ISegment): segment is RunSegment;
|
|
98
|
+
// (undocumented)
|
|
99
|
+
items: SparseMatrixItem[];
|
|
100
|
+
// (undocumented)
|
|
101
|
+
removeRange(start: number, end: number): boolean;
|
|
102
|
+
// (undocumented)
|
|
103
|
+
setTag(pos: number, tag: any): void;
|
|
104
|
+
// (undocumented)
|
|
105
|
+
readonly type = "RunSegment";
|
|
106
|
+
// (undocumented)
|
|
107
|
+
static readonly typeString = "RunSegment";
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// @internal @deprecated
|
|
111
|
+
export class SharedNumberSequence extends SharedSequence<number> {
|
|
112
|
+
// @deprecated
|
|
113
|
+
constructor(document: IFluidDataStoreRuntime, id: string, attributes: IChannelAttributes);
|
|
114
|
+
// @deprecated
|
|
115
|
+
static create(runtime: IFluidDataStoreRuntime, id?: string): SharedNumberSequence;
|
|
116
|
+
// @deprecated
|
|
117
|
+
static getFactory(): SharedNumberSequenceFactory;
|
|
118
|
+
// @deprecated (undocumented)
|
|
119
|
+
getRange(start: number, end?: number): number[];
|
|
120
|
+
// (undocumented)
|
|
121
|
+
id: string;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// @internal @deprecated (undocumented)
|
|
125
|
+
export class SharedNumberSequenceFactory implements IChannelFactory {
|
|
126
|
+
// @deprecated (undocumented)
|
|
127
|
+
static readonly Attributes: IChannelAttributes;
|
|
128
|
+
// @deprecated (undocumented)
|
|
129
|
+
get attributes(): IChannelAttributes;
|
|
130
|
+
// @deprecated (undocumented)
|
|
131
|
+
create(document: IFluidDataStoreRuntime, id: string): ISharedObject;
|
|
132
|
+
// @deprecated (undocumented)
|
|
133
|
+
load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes): Promise<ISharedObject>;
|
|
134
|
+
// @deprecated (undocumented)
|
|
135
|
+
static segmentFromSpec(segSpec: IJSONSegment): SubSequence<number>;
|
|
136
|
+
// @deprecated (undocumented)
|
|
137
|
+
static Type: string;
|
|
138
|
+
// @deprecated (undocumented)
|
|
139
|
+
get type(): string;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// @internal @deprecated
|
|
143
|
+
export class SharedObjectSequence<T> extends SharedSequence<T> {
|
|
144
|
+
// @deprecated
|
|
145
|
+
constructor(document: IFluidDataStoreRuntime, id: string, attributes: IChannelAttributes);
|
|
146
|
+
// @deprecated
|
|
147
|
+
static create<T>(runtime: IFluidDataStoreRuntime, id?: string): SharedObjectSequence<T>;
|
|
148
|
+
// @deprecated
|
|
149
|
+
static getFactory(): SharedObjectSequenceFactory;
|
|
150
|
+
// @deprecated (undocumented)
|
|
151
|
+
getRange(start: number, end?: number): Serializable<T>[];
|
|
152
|
+
// (undocumented)
|
|
153
|
+
id: string;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// @internal @deprecated (undocumented)
|
|
157
|
+
export class SharedObjectSequenceFactory implements IChannelFactory {
|
|
158
|
+
// @deprecated (undocumented)
|
|
159
|
+
static readonly Attributes: IChannelAttributes;
|
|
160
|
+
// @deprecated (undocumented)
|
|
161
|
+
get attributes(): IChannelAttributes;
|
|
162
|
+
// @deprecated (undocumented)
|
|
163
|
+
create(document: IFluidDataStoreRuntime, id: string): ISharedObject;
|
|
164
|
+
// @deprecated (undocumented)
|
|
165
|
+
load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes): Promise<ISharedObject>;
|
|
166
|
+
// @deprecated (undocumented)
|
|
167
|
+
static segmentFromSpec(segSpec: IJSONSegment): SubSequence<object>;
|
|
168
|
+
// @deprecated (undocumented)
|
|
169
|
+
static Type: string;
|
|
170
|
+
// @deprecated (undocumented)
|
|
171
|
+
get type(): string;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export { SharedSequence }
|
|
175
|
+
|
|
176
|
+
// @internal @deprecated (undocumented)
|
|
177
|
+
export class SparseMatrix extends SharedSegmentSequence<MatrixSegment> {
|
|
178
|
+
constructor(document: IFluidDataStoreRuntime, id: string, attributes: IChannelAttributes);
|
|
179
|
+
// (undocumented)
|
|
180
|
+
annotatePosition(row: number, col: number, props: PropertySet): void;
|
|
181
|
+
static create(runtime: IFluidDataStoreRuntime, id?: string): SparseMatrix;
|
|
182
|
+
static getFactory(): IChannelFactory;
|
|
183
|
+
// (undocumented)
|
|
184
|
+
getItem(row: number, col: number): // The return type is defined explicitly here to prevent TypeScript from generating dynamic imports
|
|
185
|
+
Jsonable<string | number | boolean | IFluidHandle> | undefined;
|
|
186
|
+
// (undocumented)
|
|
187
|
+
getPositionProperties(row: number, col: number): PropertySet | undefined;
|
|
188
|
+
// (undocumented)
|
|
189
|
+
getTag(row: number, col: number): any;
|
|
190
|
+
// (undocumented)
|
|
191
|
+
id: string;
|
|
192
|
+
// (undocumented)
|
|
193
|
+
insertCols(col: number, numCols: number): void;
|
|
194
|
+
// (undocumented)
|
|
195
|
+
insertRows(row: number, numRows: number): void;
|
|
196
|
+
// (undocumented)
|
|
197
|
+
get numRows(): number;
|
|
198
|
+
// (undocumented)
|
|
199
|
+
removeCols(col: number, numCols: number): void;
|
|
200
|
+
// (undocumented)
|
|
201
|
+
removeRows(row: number, numRows: number): void;
|
|
202
|
+
// (undocumented)
|
|
203
|
+
setItems(row: number, col: number, values: SparseMatrixItem[], props?: PropertySet): void;
|
|
204
|
+
// (undocumented)
|
|
205
|
+
setTag(row: number, col: number, tag: any): void;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
// @internal @deprecated (undocumented)
|
|
209
|
+
export class SparseMatrixFactory implements IChannelFactory {
|
|
210
|
+
// (undocumented)
|
|
211
|
+
static Attributes: IChannelAttributes;
|
|
212
|
+
// (undocumented)
|
|
213
|
+
get attributes(): IChannelAttributes;
|
|
214
|
+
// (undocumented)
|
|
215
|
+
create(document: IFluidDataStoreRuntime, id: string): ISharedObject;
|
|
216
|
+
// (undocumented)
|
|
217
|
+
load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes): Promise<ISharedObject>;
|
|
218
|
+
// (undocumented)
|
|
219
|
+
static segmentFromSpec(spec: IJSONSegment): ISegment;
|
|
220
|
+
// (undocumented)
|
|
221
|
+
static Type: string;
|
|
222
|
+
// (undocumented)
|
|
223
|
+
get type(): string;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
// @internal @deprecated (undocumented)
|
|
227
|
+
export type SparseMatrixItem = any;
|
|
228
|
+
|
|
229
|
+
export { SubSequence }
|
|
230
|
+
|
|
231
|
+
// (No @packageDocumentation comment for this package)
|
|
232
|
+
|
|
233
|
+
```
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
export { SharedNumberSequence } from "./sharedNumberSequence";
|
|
6
|
+
export { SharedObjectSequence } from "./sharedObjectSequence";
|
|
7
|
+
export { MatrixSegment, maxCellPosition, maxCol, maxCols, maxRow, maxRows, PaddingSegment, positionToRowCol, rowColToPosition, RunSegment, SparseMatrix, SparseMatrixFactory, SparseMatrixItem, } from "./sparsematrix";
|
|
8
|
+
export { IJSONRunSegment, SubSequence, SharedSequence } from "./sharedSequence";
|
|
9
|
+
export { SharedNumberSequenceFactory, SharedObjectSequenceFactory } from "./sequenceFactory";
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EACN,aAAa,EACb,eAAe,EACf,MAAM,EACN,OAAO,EACP,MAAM,EACN,OAAO,EACP,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,GAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,2BAA2B,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*!
|
|
3
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.SharedObjectSequenceFactory = exports.SharedNumberSequenceFactory = exports.SharedSequence = exports.SubSequence = exports.SparseMatrixFactory = exports.SparseMatrix = exports.RunSegment = exports.rowColToPosition = exports.positionToRowCol = exports.PaddingSegment = exports.maxRows = exports.maxRow = exports.maxCols = exports.maxCol = exports.maxCellPosition = exports.SharedObjectSequence = exports.SharedNumberSequence = void 0;
|
|
8
|
+
var sharedNumberSequence_1 = require("./sharedNumberSequence");
|
|
9
|
+
Object.defineProperty(exports, "SharedNumberSequence", { enumerable: true, get: function () { return sharedNumberSequence_1.SharedNumberSequence; } });
|
|
10
|
+
var sharedObjectSequence_1 = require("./sharedObjectSequence");
|
|
11
|
+
Object.defineProperty(exports, "SharedObjectSequence", { enumerable: true, get: function () { return sharedObjectSequence_1.SharedObjectSequence; } });
|
|
12
|
+
var sparsematrix_1 = require("./sparsematrix");
|
|
13
|
+
Object.defineProperty(exports, "maxCellPosition", { enumerable: true, get: function () { return sparsematrix_1.maxCellPosition; } });
|
|
14
|
+
Object.defineProperty(exports, "maxCol", { enumerable: true, get: function () { return sparsematrix_1.maxCol; } });
|
|
15
|
+
Object.defineProperty(exports, "maxCols", { enumerable: true, get: function () { return sparsematrix_1.maxCols; } });
|
|
16
|
+
Object.defineProperty(exports, "maxRow", { enumerable: true, get: function () { return sparsematrix_1.maxRow; } });
|
|
17
|
+
Object.defineProperty(exports, "maxRows", { enumerable: true, get: function () { return sparsematrix_1.maxRows; } });
|
|
18
|
+
Object.defineProperty(exports, "PaddingSegment", { enumerable: true, get: function () { return sparsematrix_1.PaddingSegment; } });
|
|
19
|
+
Object.defineProperty(exports, "positionToRowCol", { enumerable: true, get: function () { return sparsematrix_1.positionToRowCol; } });
|
|
20
|
+
Object.defineProperty(exports, "rowColToPosition", { enumerable: true, get: function () { return sparsematrix_1.rowColToPosition; } });
|
|
21
|
+
Object.defineProperty(exports, "RunSegment", { enumerable: true, get: function () { return sparsematrix_1.RunSegment; } });
|
|
22
|
+
Object.defineProperty(exports, "SparseMatrix", { enumerable: true, get: function () { return sparsematrix_1.SparseMatrix; } });
|
|
23
|
+
Object.defineProperty(exports, "SparseMatrixFactory", { enumerable: true, get: function () { return sparsematrix_1.SparseMatrixFactory; } });
|
|
24
|
+
var sharedSequence_1 = require("./sharedSequence");
|
|
25
|
+
Object.defineProperty(exports, "SubSequence", { enumerable: true, get: function () { return sharedSequence_1.SubSequence; } });
|
|
26
|
+
Object.defineProperty(exports, "SharedSequence", { enumerable: true, get: function () { return sharedSequence_1.SharedSequence; } });
|
|
27
|
+
var sequenceFactory_1 = require("./sequenceFactory");
|
|
28
|
+
Object.defineProperty(exports, "SharedNumberSequenceFactory", { enumerable: true, get: function () { return sequenceFactory_1.SharedNumberSequenceFactory; } });
|
|
29
|
+
Object.defineProperty(exports, "SharedObjectSequenceFactory", { enumerable: true, get: function () { return sequenceFactory_1.SharedObjectSequenceFactory; } });
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,+DAA8D;AAArD,4HAAA,oBAAoB,OAAA;AAC7B,+DAA8D;AAArD,4HAAA,oBAAoB,OAAA;AAC7B,+CAcwB;AAZvB,+GAAA,eAAe,OAAA;AACf,sGAAA,MAAM,OAAA;AACN,uGAAA,OAAO,OAAA;AACP,sGAAA,MAAM,OAAA;AACN,uGAAA,OAAO,OAAA;AACP,8GAAA,cAAc,OAAA;AACd,gHAAA,gBAAgB,OAAA;AAChB,gHAAA,gBAAgB,OAAA;AAChB,0GAAA,UAAU,OAAA;AACV,4GAAA,YAAY,OAAA;AACZ,mHAAA,mBAAmB,OAAA;AAGpB,mDAAgF;AAAtD,6GAAA,WAAW,OAAA;AAAE,gHAAA,cAAc,OAAA;AACrD,qDAA6F;AAApF,8HAAA,2BAA2B,OAAA;AAAE,8HAAA,2BAA2B,OAAA","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport { SharedNumberSequence } from \"./sharedNumberSequence\";\nexport { SharedObjectSequence } from \"./sharedObjectSequence\";\nexport {\n\tMatrixSegment,\n\tmaxCellPosition,\n\tmaxCol,\n\tmaxCols,\n\tmaxRow,\n\tmaxRows,\n\tPaddingSegment,\n\tpositionToRowCol,\n\trowColToPosition,\n\tRunSegment,\n\tSparseMatrix,\n\tSparseMatrixFactory,\n\tSparseMatrixItem,\n} from \"./sparsematrix\";\nexport { IJSONRunSegment, SubSequence, SharedSequence } from \"./sharedSequence\";\nexport { SharedNumberSequenceFactory, SharedObjectSequenceFactory } from \"./sequenceFactory\";\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
|
|
6
|
+
*/
|
|
7
|
+
export declare const pkgName = "@fluid-experimental/sequence-deprecated";
|
|
8
|
+
export declare const pkgVersion = "2.0.0-dev-rc.1.0.0.224419";
|
|
9
|
+
//# sourceMappingURL=packageVersion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,4CAA4C,CAAC;AACjE,eAAO,MAAM,UAAU,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*!
|
|
3
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.pkgVersion = exports.pkgName = void 0;
|
|
10
|
+
exports.pkgName = "@fluid-experimental/sequence-deprecated";
|
|
11
|
+
exports.pkgVersion = "2.0.0-dev-rc.1.0.0.224419";
|
|
12
|
+
//# sourceMappingURL=packageVersion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,yCAAyC,CAAC;AACpD,QAAA,UAAU,GAAG,2BAA2B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluid-experimental/sequence-deprecated\";\nexport const pkgVersion = \"2.0.0-dev-rc.1.0.0.224419\";\n"]}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { BaseSegment } from '@fluidframework/merge-tree';
|
|
2
|
+
import { IChannelAttributes } from '@fluidframework/datastore-definitions';
|
|
3
|
+
import { IChannelFactory } from '@fluidframework/datastore-definitions';
|
|
4
|
+
import { IChannelServices } from '@fluidframework/datastore-definitions';
|
|
5
|
+
import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
|
|
6
|
+
import { IFluidHandle } from '@fluidframework/core-interfaces';
|
|
7
|
+
import { IJSONRunSegment } from '@fluidframework/sequence';
|
|
8
|
+
import { IJSONSegment } from '@fluidframework/merge-tree';
|
|
9
|
+
import { ISegment } from '@fluidframework/merge-tree';
|
|
10
|
+
import { ISharedObject } from '@fluidframework/shared-object-base';
|
|
11
|
+
import { Jsonable } from '@fluidframework/datastore-definitions';
|
|
12
|
+
import { PropertySet } from '@fluidframework/merge-tree';
|
|
13
|
+
import { Serializable } from '@fluidframework/datastore-definitions';
|
|
14
|
+
import { SharedSegmentSequence } from '@fluidframework/sequence';
|
|
15
|
+
import { SharedSequence } from '@fluidframework/sequence';
|
|
16
|
+
import { SubSequence } from '@fluidframework/sequence';
|
|
17
|
+
|
|
18
|
+
/* Excluded from this release type: IJSONRunSegment */
|
|
19
|
+
|
|
20
|
+
/* Excluded from this release type: MatrixSegment */
|
|
21
|
+
|
|
22
|
+
/* Excluded from this release type: maxCellPosition */
|
|
23
|
+
|
|
24
|
+
/* Excluded from this release type: maxCol */
|
|
25
|
+
|
|
26
|
+
/* Excluded from this release type: maxCols */
|
|
27
|
+
|
|
28
|
+
/* Excluded from this release type: maxRow */
|
|
29
|
+
|
|
30
|
+
/* Excluded from this release type: maxRows */
|
|
31
|
+
|
|
32
|
+
/* Excluded from this release type: PaddingSegment */
|
|
33
|
+
|
|
34
|
+
/* Excluded from this release type: positionToRowCol */
|
|
35
|
+
|
|
36
|
+
/* Excluded from this release type: rowColToPosition */
|
|
37
|
+
|
|
38
|
+
/* Excluded from this release type: RunSegment */
|
|
39
|
+
|
|
40
|
+
/* Excluded from this release type: SharedNumberSequence */
|
|
41
|
+
|
|
42
|
+
/* Excluded from this release type: SharedNumberSequenceFactory */
|
|
43
|
+
|
|
44
|
+
/* Excluded from this release type: SharedObjectSequence */
|
|
45
|
+
|
|
46
|
+
/* Excluded from this release type: SharedObjectSequenceFactory */
|
|
47
|
+
|
|
48
|
+
/* Excluded from this release type: SharedSequence */
|
|
49
|
+
|
|
50
|
+
/* Excluded from this release type: SparseMatrix */
|
|
51
|
+
|
|
52
|
+
/* Excluded from this release type: SparseMatrixFactory */
|
|
53
|
+
|
|
54
|
+
/* Excluded from this release type: SparseMatrixItem */
|
|
55
|
+
|
|
56
|
+
/* Excluded from this release type: SubSequence */
|
|
57
|
+
|
|
58
|
+
export { }
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { BaseSegment } from '@fluidframework/merge-tree';
|
|
2
|
+
import { IChannelAttributes } from '@fluidframework/datastore-definitions';
|
|
3
|
+
import { IChannelFactory } from '@fluidframework/datastore-definitions';
|
|
4
|
+
import { IChannelServices } from '@fluidframework/datastore-definitions';
|
|
5
|
+
import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
|
|
6
|
+
import { IFluidHandle } from '@fluidframework/core-interfaces';
|
|
7
|
+
import { IJSONRunSegment } from '@fluidframework/sequence';
|
|
8
|
+
import { IJSONSegment } from '@fluidframework/merge-tree';
|
|
9
|
+
import { ISegment } from '@fluidframework/merge-tree';
|
|
10
|
+
import { ISharedObject } from '@fluidframework/shared-object-base';
|
|
11
|
+
import { Jsonable } from '@fluidframework/datastore-definitions';
|
|
12
|
+
import { PropertySet } from '@fluidframework/merge-tree';
|
|
13
|
+
import { Serializable } from '@fluidframework/datastore-definitions';
|
|
14
|
+
import { SharedSegmentSequence } from '@fluidframework/sequence';
|
|
15
|
+
import { SharedSequence } from '@fluidframework/sequence';
|
|
16
|
+
import { SubSequence } from '@fluidframework/sequence';
|
|
17
|
+
|
|
18
|
+
/* Excluded from this release type: BaseSegment */
|
|
19
|
+
|
|
20
|
+
/* Excluded from this release type: IJSONRunSegment */
|
|
21
|
+
|
|
22
|
+
/* Excluded from this release type: IJSONSegment */
|
|
23
|
+
|
|
24
|
+
/* Excluded from this release type: ISegment */
|
|
25
|
+
|
|
26
|
+
/* Excluded from this release type: Jsonable */
|
|
27
|
+
|
|
28
|
+
/* Excluded from this release type: MatrixSegment */
|
|
29
|
+
|
|
30
|
+
/* Excluded from this release type: maxCellPosition */
|
|
31
|
+
|
|
32
|
+
/* Excluded from this release type: maxCol */
|
|
33
|
+
|
|
34
|
+
/* Excluded from this release type: maxCols */
|
|
35
|
+
|
|
36
|
+
/* Excluded from this release type: maxRow */
|
|
37
|
+
|
|
38
|
+
/* Excluded from this release type: maxRows */
|
|
39
|
+
|
|
40
|
+
/* Excluded from this release type: PaddingSegment */
|
|
41
|
+
|
|
42
|
+
/* Excluded from this release type: positionToRowCol */
|
|
43
|
+
|
|
44
|
+
/* Excluded from this release type: PropertySet */
|
|
45
|
+
|
|
46
|
+
/* Excluded from this release type: rowColToPosition */
|
|
47
|
+
|
|
48
|
+
/* Excluded from this release type: RunSegment */
|
|
49
|
+
|
|
50
|
+
/* Excluded from this release type: Serializable */
|
|
51
|
+
|
|
52
|
+
/* Excluded from this release type: SharedNumberSequence */
|
|
53
|
+
|
|
54
|
+
/* Excluded from this release type: SharedNumberSequenceFactory */
|
|
55
|
+
|
|
56
|
+
/* Excluded from this release type: SharedObjectSequence */
|
|
57
|
+
|
|
58
|
+
/* Excluded from this release type: SharedObjectSequenceFactory */
|
|
59
|
+
|
|
60
|
+
/* Excluded from this release type: SharedSegmentSequence */
|
|
61
|
+
|
|
62
|
+
/* Excluded from this release type: SharedSequence */
|
|
63
|
+
|
|
64
|
+
/* Excluded from this release type: SparseMatrix */
|
|
65
|
+
|
|
66
|
+
/* Excluded from this release type: SparseMatrixFactory */
|
|
67
|
+
|
|
68
|
+
/* Excluded from this release type: SparseMatrixItem */
|
|
69
|
+
|
|
70
|
+
/* Excluded from this release type: SubSequence */
|
|
71
|
+
|
|
72
|
+
export { }
|