@fluid-experimental/sharejs-json1 2.0.0-dev.6.4.0.191515 → 2.0.0-dev.7.2.0.203917

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/CHANGELOG.md CHANGED
@@ -1,5 +1,57 @@
1
1
  # @fluid-experimental/sharejs-json1
2
2
 
3
+ ## 2.0.0-internal.7.1.0
4
+
5
+ Dependency updates only.
6
+
7
+ ## 2.0.0-internal.7.0.0
8
+
9
+ ### Major Changes
10
+
11
+ - Dependencies on @fluidframework/protocol-definitions package updated to 3.0.0 [871b3493dd](https://github.com/microsoft/FluidFramework/commits/871b3493dd0d7ea3a89be64998ceb6cb9021a04e)
12
+
13
+ This included the following changes from the protocol-definitions release:
14
+
15
+ - Updating signal interfaces for some planned improvements. The intention is split the interface between signals
16
+ submitted by clients to the server and the resulting signals sent from the server to clients.
17
+ - A new optional type member is available on the ISignalMessage interface and a new ISentSignalMessage interface has
18
+ been added, which will be the typing for signals sent from the client to the server. Both extend a new
19
+ ISignalMessageBase interface that contains common members.
20
+ - The @fluidframework/common-definitions package dependency has been updated to version 1.0.0.
21
+
22
+ - Server upgrade: dependencies on Fluid server packages updated to 2.0.1 [871b3493dd](https://github.com/microsoft/FluidFramework/commits/871b3493dd0d7ea3a89be64998ceb6cb9021a04e)
23
+
24
+ Dependencies on the following Fluid server package have been updated to version 2.0.1:
25
+
26
+ - @fluidframework/gitresources: 2.0.1
27
+ - @fluidframework/server-kafka-orderer: 2.0.1
28
+ - @fluidframework/server-lambdas: 2.0.1
29
+ - @fluidframework/server-lambdas-driver: 2.0.1
30
+ - @fluidframework/server-local-server: 2.0.1
31
+ - @fluidframework/server-memory-orderer: 2.0.1
32
+ - @fluidframework/protocol-base: 2.0.1
33
+ - @fluidframework/server-routerlicious: 2.0.1
34
+ - @fluidframework/server-routerlicious-base: 2.0.1
35
+ - @fluidframework/server-services: 2.0.1
36
+ - @fluidframework/server-services-client: 2.0.1
37
+ - @fluidframework/server-services-core: 2.0.1
38
+ - @fluidframework/server-services-ordering-kafkanode: 2.0.1
39
+ - @fluidframework/server-services-ordering-rdkafka: 2.0.1
40
+ - @fluidframework/server-services-ordering-zookeeper: 2.0.1
41
+ - @fluidframework/server-services-shared: 2.0.1
42
+ - @fluidframework/server-services-telemetry: 2.0.1
43
+ - @fluidframework/server-services-utils: 2.0.1
44
+ - @fluidframework/server-test-utils: 2.0.1
45
+ - tinylicious: 2.0.1
46
+
47
+ - Minimum TypeScript version now 5.1.6 [871b3493dd](https://github.com/microsoft/FluidFramework/commits/871b3493dd0d7ea3a89be64998ceb6cb9021a04e)
48
+
49
+ The minimum supported TypeScript version for Fluid 2.0 clients is now 5.1.6.
50
+
51
+ ## 2.0.0-internal.6.4.0
52
+
53
+ Dependency updates only.
54
+
3
55
  ## 2.0.0-internal.6.3.0
4
56
 
5
57
  Dependency updates only.
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3
- "extends": "@fluidframework/build-common/api-extractor-common.json"
3
+ "extends": "@fluidframework/build-common/api-extractor-base.json"
4
4
  }
@@ -0,0 +1,61 @@
1
+ ## API Report File for "@fluid-experimental/sharejs-json1"
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 { Doc } from 'ot-json1';
8
+ import { IChannel } from '@fluidframework/datastore-definitions';
9
+ import { IChannelAttributes } from '@fluidframework/datastore-definitions';
10
+ import { IChannelFactory } from '@fluidframework/datastore-definitions';
11
+ import { IChannelServices } from '@fluidframework/datastore-definitions';
12
+ import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
13
+ import { JSONOp } from 'ot-json1';
14
+ import { Path } from 'ot-json1';
15
+ import { Serializable } from '@fluidframework/datastore-definitions';
16
+ import { SharedOT } from '@fluid-experimental/ot';
17
+
18
+ // @public (undocumented)
19
+ export class Json1Factory implements IChannelFactory {
20
+ // (undocumented)
21
+ static readonly Attributes: IChannelAttributes;
22
+ // (undocumented)
23
+ get attributes(): IChannelAttributes;
24
+ // (undocumented)
25
+ create(runtime: IFluidDataStoreRuntime, id: string): IChannel;
26
+ // (undocumented)
27
+ load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes): Promise<IChannel>;
28
+ // (undocumented)
29
+ static Type: string;
30
+ // (undocumented)
31
+ get type(): string;
32
+ }
33
+
34
+ // @public (undocumented)
35
+ export class SharedJson1 extends SharedOT<Doc, JSONOp> {
36
+ constructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes);
37
+ // (undocumented)
38
+ apply(op: JSONOp): void;
39
+ // (undocumented)
40
+ protected applyCore(state: Doc, op: JSONOp): Doc;
41
+ // (undocumented)
42
+ static create(runtime: IFluidDataStoreRuntime, id?: string): SharedJson1;
43
+ // (undocumented)
44
+ get(): Doc;
45
+ // (undocumented)
46
+ static getFactory(): Json1Factory;
47
+ // (undocumented)
48
+ insert(path: Path, value: Serializable): void;
49
+ // (undocumented)
50
+ move(from: Path, to: Path): void;
51
+ // (undocumented)
52
+ remove(path: Path, value?: boolean): void;
53
+ // (undocumented)
54
+ replace(path: Path, oldValue: Serializable, newValue: Serializable): void;
55
+ // (undocumented)
56
+ protected transform(input: JSONOp, transform: JSONOp): JSONOp;
57
+ }
58
+
59
+ // (No @packageDocumentation comment for this package)
60
+
61
+ ```
package/dist/factory.d.ts CHANGED
@@ -3,6 +3,9 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
  import { IChannelAttributes, IFluidDataStoreRuntime, IChannelServices, IChannel, IChannelFactory } from "@fluidframework/datastore-definitions";
6
+ /**
7
+ * @public
8
+ */
6
9
  export declare class Json1Factory implements IChannelFactory {
7
10
  static Type: string;
8
11
  static readonly Attributes: IChannelAttributes;
@@ -1 +1 @@
1
- {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,QAAQ,EACR,eAAe,EACf,MAAM,uCAAuC,CAAC;AAI/C,qBAAa,YAAa,YAAW,eAAe;IACnD,OAAc,IAAI,SAAmD;IAErE,gBAAuB,UAAU,EAAE,kBAAkB,CAInD;IAEF,IAAW,IAAI,WAEd;IACD,IAAW,UAAU,uBAEpB;IAED;;OAEG;IACU,IAAI,CAChB,OAAO,EAAE,sBAAsB,EAC/B,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,gBAAgB,EAC1B,UAAU,EAAE,kBAAkB,GAC5B,OAAO,CAAC,QAAQ,CAAC;IAMb,MAAM,CAAC,OAAO,EAAE,sBAAsB,EAAE,EAAE,EAAE,MAAM,GAAG,QAAQ;CAKpE"}
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,QAAQ,EACR,eAAe,EACf,MAAM,uCAAuC,CAAC;AAI/C;;GAEG;AACH,qBAAa,YAAa,YAAW,eAAe;IACnD,OAAc,IAAI,SAAmD;IAErE,gBAAuB,UAAU,EAAE,kBAAkB,CAInD;IAEF,IAAW,IAAI,WAEd;IACD,IAAW,UAAU,uBAEpB;IAED;;OAEG;IACU,IAAI,CAChB,OAAO,EAAE,sBAAsB,EAC/B,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,gBAAgB,EAC1B,UAAU,EAAE,kBAAkB,GAC5B,OAAO,CAAC,QAAQ,CAAC;IAMb,MAAM,CAAC,OAAO,EAAE,sBAAsB,EAAE,EAAE,EAAE,MAAM,GAAG,QAAQ;CAKpE"}
package/dist/factory.js CHANGED
@@ -7,6 +7,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.Json1Factory = void 0;
8
8
  const packageVersion_1 = require("./packageVersion");
9
9
  const json1_1 = require("./json1");
10
+ /**
11
+ * @public
12
+ */
10
13
  class Json1Factory {
11
14
  get type() {
12
15
  return Json1Factory.Type;
@@ -1 +1 @@
1
- {"version":3,"file":"factory.js","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AASH,qDAA8C;AAC9C,mCAAsC;AAEtC,MAAa,YAAY;IASxB,IAAW,IAAI;QACd,OAAO,YAAY,CAAC,IAAI,CAAC;IAC1B,CAAC;IACD,IAAW,UAAU;QACpB,OAAO,YAAY,CAAC,UAAU,CAAC;IAChC,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,IAAI,CAChB,OAA+B,EAC/B,EAAU,EACV,QAA0B,EAC1B,UAA8B;QAE9B,MAAM,QAAQ,GAAG,IAAI,mBAAW,CAAC,EAAE,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;QAC1D,MAAM,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC9B,OAAO,QAAQ,CAAC;IACjB,CAAC;IAEM,MAAM,CAAC,OAA+B,EAAE,EAAU;QACxD,MAAM,QAAQ,GAAG,IAAI,mBAAW,CAAC,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;QAC/D,QAAQ,CAAC,eAAe,EAAE,CAAC;QAC3B,OAAO,QAAQ,CAAC;IACjB,CAAC;;AAlCF,oCAmCC;AAlCc,iBAAI,GAAG,+CAA+C,CAAC;AAE9C,uBAAU,GAAuB;IACvD,IAAI,EAAE,YAAY,CAAC,IAAI;IACvB,qBAAqB,EAAE,KAAK;IAC5B,cAAc,EAAE,2BAAU;CAC1B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tIChannelAttributes,\n\tIFluidDataStoreRuntime,\n\tIChannelServices,\n\tIChannel,\n\tIChannelFactory,\n} from \"@fluidframework/datastore-definitions\";\nimport { pkgVersion } from \"./packageVersion\";\nimport { SharedJson1 } from \"./json1\";\n\nexport class Json1Factory implements IChannelFactory {\n\tpublic static Type = \"https://graph.microsoft.com/types/sharedjson1\";\n\n\tpublic static readonly Attributes: IChannelAttributes = {\n\t\ttype: Json1Factory.Type,\n\t\tsnapshotFormatVersion: \"0.1\",\n\t\tpackageVersion: pkgVersion,\n\t};\n\n\tpublic get type() {\n\t\treturn Json1Factory.Type;\n\t}\n\tpublic get attributes() {\n\t\treturn Json1Factory.Attributes;\n\t}\n\n\t/**\n\t * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}\n\t */\n\tpublic async load(\n\t\truntime: IFluidDataStoreRuntime,\n\t\tid: string,\n\t\tservices: IChannelServices,\n\t\tattributes: IChannelAttributes,\n\t): Promise<IChannel> {\n\t\tconst instance = new SharedJson1(id, runtime, attributes);\n\t\tawait instance.load(services);\n\t\treturn instance;\n\t}\n\n\tpublic create(runtime: IFluidDataStoreRuntime, id: string): IChannel {\n\t\tconst instance = new SharedJson1(id, runtime, this.attributes);\n\t\tinstance.initializeLocal();\n\t\treturn instance;\n\t}\n}\n"]}
1
+ {"version":3,"file":"factory.js","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AASH,qDAA8C;AAC9C,mCAAsC;AAEtC;;GAEG;AACH,MAAa,YAAY;IASxB,IAAW,IAAI;QACd,OAAO,YAAY,CAAC,IAAI,CAAC;IAC1B,CAAC;IACD,IAAW,UAAU;QACpB,OAAO,YAAY,CAAC,UAAU,CAAC;IAChC,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,IAAI,CAChB,OAA+B,EAC/B,EAAU,EACV,QAA0B,EAC1B,UAA8B;QAE9B,MAAM,QAAQ,GAAG,IAAI,mBAAW,CAAC,EAAE,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;QAC1D,MAAM,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC9B,OAAO,QAAQ,CAAC;IACjB,CAAC;IAEM,MAAM,CAAC,OAA+B,EAAE,EAAU;QACxD,MAAM,QAAQ,GAAG,IAAI,mBAAW,CAAC,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;QAC/D,QAAQ,CAAC,eAAe,EAAE,CAAC;QAC3B,OAAO,QAAQ,CAAC;IACjB,CAAC;;AAlCF,oCAmCC;AAlCc,iBAAI,GAAG,+CAA+C,CAAC;AAE9C,uBAAU,GAAuB;IACvD,IAAI,EAAE,YAAY,CAAC,IAAI;IACvB,qBAAqB,EAAE,KAAK;IAC5B,cAAc,EAAE,2BAAU;CAC1B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tIChannelAttributes,\n\tIFluidDataStoreRuntime,\n\tIChannelServices,\n\tIChannel,\n\tIChannelFactory,\n} from \"@fluidframework/datastore-definitions\";\nimport { pkgVersion } from \"./packageVersion\";\nimport { SharedJson1 } from \"./json1\";\n\n/**\n * @public\n */\nexport class Json1Factory implements IChannelFactory {\n\tpublic static Type = \"https://graph.microsoft.com/types/sharedjson1\";\n\n\tpublic static readonly Attributes: IChannelAttributes = {\n\t\ttype: Json1Factory.Type,\n\t\tsnapshotFormatVersion: \"0.1\",\n\t\tpackageVersion: pkgVersion,\n\t};\n\n\tpublic get type() {\n\t\treturn Json1Factory.Type;\n\t}\n\tpublic get attributes() {\n\t\treturn Json1Factory.Attributes;\n\t}\n\n\t/**\n\t * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}\n\t */\n\tpublic async load(\n\t\truntime: IFluidDataStoreRuntime,\n\t\tid: string,\n\t\tservices: IChannelServices,\n\t\tattributes: IChannelAttributes,\n\t): Promise<IChannel> {\n\t\tconst instance = new SharedJson1(id, runtime, attributes);\n\t\tawait instance.load(services);\n\t\treturn instance;\n\t}\n\n\tpublic create(runtime: IFluidDataStoreRuntime, id: string): IChannel {\n\t\tconst instance = new SharedJson1(id, runtime, this.attributes);\n\t\tinstance.initializeLocal();\n\t\treturn instance;\n\t}\n}\n"]}
package/dist/json1.d.ts CHANGED
@@ -6,6 +6,9 @@ import { IChannelAttributes, IFluidDataStoreRuntime, Serializable } from "@fluid
6
6
  import { SharedOT } from "@fluid-experimental/ot";
7
7
  import { Doc, JSONOp, Path } from "ot-json1";
8
8
  import { Json1Factory } from "./factory";
9
+ /**
10
+ * @public
11
+ */
9
12
  export declare class SharedJson1 extends SharedOT<Doc, JSONOp> {
10
13
  static create(runtime: IFluidDataStoreRuntime, id?: string): SharedJson1;
11
14
  static getFactory(): Json1Factory;
@@ -1 +1 @@
1
- {"version":3,"file":"json1.d.ts","sourceRoot":"","sources":["../src/json1.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,kBAAkB,EAClB,sBAAsB,EACtB,YAAY,EACZ,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EACN,GAAG,EAEH,MAAM,EAKN,IAAI,EACJ,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,qBAAa,WAAY,SAAQ,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;WACvC,MAAM,CAAC,OAAO,EAAE,sBAAsB,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,WAAW;WAIjE,UAAU;gBAIZ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,sBAAsB,EAAE,UAAU,EAAE,kBAAkB;IAKhF,GAAG,IAAI,GAAG;IAIV,KAAK,CAAC,EAAE,EAAE,MAAM;IAIvB,SAAS,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM;IAI7D,SAAS,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM;IAInC,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY;IAItC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI;IAIzB,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,OAAO;IAIlC,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY;CAGzE"}
1
+ {"version":3,"file":"json1.d.ts","sourceRoot":"","sources":["../src/json1.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,kBAAkB,EAClB,sBAAsB,EACtB,YAAY,EACZ,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EACN,GAAG,EAEH,MAAM,EAKN,IAAI,EACJ,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC;;GAEG;AACH,qBAAa,WAAY,SAAQ,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;WACvC,MAAM,CAAC,OAAO,EAAE,sBAAsB,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,WAAW;WAIjE,UAAU;gBAIZ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,sBAAsB,EAAE,UAAU,EAAE,kBAAkB;IAKhF,GAAG,IAAI,GAAG;IAIV,KAAK,CAAC,EAAE,EAAE,MAAM;IAIvB,SAAS,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM;IAI7D,SAAS,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM;IAInC,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY;IAItC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI;IAIzB,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,OAAO;IAIlC,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY;CAGzE"}
package/dist/json1.js CHANGED
@@ -8,6 +8,9 @@ exports.SharedJson1 = void 0;
8
8
  const ot_1 = require("@fluid-experimental/ot");
9
9
  const ot_json1_1 = require("ot-json1");
10
10
  const factory_1 = require("./factory");
11
+ /**
12
+ * @public
13
+ */
11
14
  class SharedJson1 extends ot_1.SharedOT {
12
15
  static create(runtime, id) {
13
16
  return runtime.createChannel(id, factory_1.Json1Factory.Type);
package/dist/json1.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"json1.js","sourceRoot":"","sources":["../src/json1.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAOH,+CAAkD;AAClD,uCASkB;AAClB,uCAAyC;AAEzC,MAAa,WAAY,SAAQ,aAAqB;IAC9C,MAAM,CAAC,MAAM,CAAC,OAA+B,EAAE,EAAW;QAChE,OAAO,OAAO,CAAC,aAAa,CAAC,EAAE,EAAE,sBAAY,CAAC,IAAI,CAAgB,CAAC;IACpE,CAAC;IAEM,MAAM,CAAC,UAAU;QACvB,OAAO,IAAI,sBAAY,EAAE,CAAC;IAC3B,CAAC;IAED,YAAY,EAAU,EAAE,OAA+B,EAAE,UAA8B;QACtF,+DAA+D;QAC/D,KAAK,CAAC,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAC1D,CAAC;IAEM,GAAG;QACT,OAAO,IAAI,CAAC,KAAK,CAAC;IACnB,CAAC;IAEM,KAAK,CAAC,EAAU;QACtB,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACjB,CAAC;IAES,SAAS,CAAC,KAAa,EAAE,SAAiB;QACnD,OAAO,eAAW,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IAClE,CAAC;IAES,SAAS,CAAC,KAAU,EAAE,EAAU;QACzC,OAAO,eAAW,CAAC,KAAK,CAAC,KAAK,EAAE,EAAE,CAAQ,CAAC;IAC5C,CAAC;IAEM,MAAM,CAAC,IAAU,EAAE,KAAmB;QAC5C,IAAI,CAAC,KAAK,CAAC,IAAA,mBAAQ,EAAC,IAAI,EAAE,KAAY,CAAC,CAAC,CAAC;IAC1C,CAAC;IAEM,IAAI,CAAC,IAAU,EAAE,EAAQ;QAC/B,IAAI,CAAC,KAAK,CAAC,IAAA,iBAAM,EAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;IAC9B,CAAC;IAEM,MAAM,CAAC,IAAU,EAAE,KAAe;QACxC,IAAI,CAAC,KAAK,CAAC,IAAA,mBAAQ,EAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;IACnC,CAAC;IAEM,OAAO,CAAC,IAAU,EAAE,QAAsB,EAAE,QAAsB;QACxE,IAAI,CAAC,KAAK,CAAC,IAAA,oBAAS,EAAC,IAAI,EAAE,QAAe,EAAE,QAAe,CAAC,CAAC,CAAC;IAC/D,CAAC;CACD;AA7CD,kCA6CC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tIChannelAttributes,\n\tIFluidDataStoreRuntime,\n\tSerializable,\n} from \"@fluidframework/datastore-definitions\";\nimport { SharedOT } from \"@fluid-experimental/ot\";\nimport {\n\tDoc,\n\ttype as Json1OTType,\n\tJSONOp,\n\treplaceOp,\n\tinsertOp,\n\tmoveOp,\n\tremoveOp,\n\tPath,\n} from \"ot-json1\";\nimport { Json1Factory } from \"./factory\";\n\nexport class SharedJson1 extends SharedOT<Doc, JSONOp> {\n\tpublic static create(runtime: IFluidDataStoreRuntime, id?: string): SharedJson1 {\n\t\treturn runtime.createChannel(id, Json1Factory.Type) as SharedJson1;\n\t}\n\n\tpublic static getFactory() {\n\t\treturn new Json1Factory();\n\t}\n\n\tconstructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes) {\n\t\t// RATIONALE: 'undefined' is not preserved by JSON.stringify().\n\t\tsuper(id, runtime, attributes, /* initialValue: */ null);\n\t}\n\n\tpublic get(): Doc {\n\t\treturn this.state;\n\t}\n\n\tpublic apply(op: JSONOp) {\n\t\tsuper.apply(op);\n\t}\n\n\tprotected transform(input: JSONOp, transform: JSONOp): JSONOp {\n\t\treturn Json1OTType.transformNoConflict(input, transform, \"left\");\n\t}\n\n\tprotected applyCore(state: Doc, op: JSONOp) {\n\t\treturn Json1OTType.apply(state, op) as Doc;\n\t}\n\n\tpublic insert(path: Path, value: Serializable) {\n\t\tthis.apply(insertOp(path, value as Doc));\n\t}\n\n\tpublic move(from: Path, to: Path) {\n\t\tthis.apply(moveOp(from, to));\n\t}\n\n\tpublic remove(path: Path, value?: boolean) {\n\t\tthis.apply(removeOp(path, value));\n\t}\n\n\tpublic replace(path: Path, oldValue: Serializable, newValue: Serializable) {\n\t\tthis.apply(replaceOp(path, oldValue as Doc, newValue as Doc));\n\t}\n}\n"]}
1
+ {"version":3,"file":"json1.js","sourceRoot":"","sources":["../src/json1.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAOH,+CAAkD;AAClD,uCASkB;AAClB,uCAAyC;AAEzC;;GAEG;AACH,MAAa,WAAY,SAAQ,aAAqB;IAC9C,MAAM,CAAC,MAAM,CAAC,OAA+B,EAAE,EAAW;QAChE,OAAO,OAAO,CAAC,aAAa,CAAC,EAAE,EAAE,sBAAY,CAAC,IAAI,CAAgB,CAAC;IACpE,CAAC;IAEM,MAAM,CAAC,UAAU;QACvB,OAAO,IAAI,sBAAY,EAAE,CAAC;IAC3B,CAAC;IAED,YAAY,EAAU,EAAE,OAA+B,EAAE,UAA8B;QACtF,+DAA+D;QAC/D,KAAK,CAAC,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAC1D,CAAC;IAEM,GAAG;QACT,OAAO,IAAI,CAAC,KAAK,CAAC;IACnB,CAAC;IAEM,KAAK,CAAC,EAAU;QACtB,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACjB,CAAC;IAES,SAAS,CAAC,KAAa,EAAE,SAAiB;QACnD,OAAO,eAAW,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IAClE,CAAC;IAES,SAAS,CAAC,KAAU,EAAE,EAAU;QACzC,OAAO,eAAW,CAAC,KAAK,CAAC,KAAK,EAAE,EAAE,CAAQ,CAAC;IAC5C,CAAC;IAEM,MAAM,CAAC,IAAU,EAAE,KAAmB;QAC5C,IAAI,CAAC,KAAK,CAAC,IAAA,mBAAQ,EAAC,IAAI,EAAE,KAAY,CAAC,CAAC,CAAC;IAC1C,CAAC;IAEM,IAAI,CAAC,IAAU,EAAE,EAAQ;QAC/B,IAAI,CAAC,KAAK,CAAC,IAAA,iBAAM,EAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;IAC9B,CAAC;IAEM,MAAM,CAAC,IAAU,EAAE,KAAe;QACxC,IAAI,CAAC,KAAK,CAAC,IAAA,mBAAQ,EAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;IACnC,CAAC;IAEM,OAAO,CAAC,IAAU,EAAE,QAAsB,EAAE,QAAsB;QACxE,IAAI,CAAC,KAAK,CAAC,IAAA,oBAAS,EAAC,IAAI,EAAE,QAAe,EAAE,QAAe,CAAC,CAAC,CAAC;IAC/D,CAAC;CACD;AA7CD,kCA6CC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tIChannelAttributes,\n\tIFluidDataStoreRuntime,\n\tSerializable,\n} from \"@fluidframework/datastore-definitions\";\nimport { SharedOT } from \"@fluid-experimental/ot\";\nimport {\n\tDoc,\n\ttype as Json1OTType,\n\tJSONOp,\n\treplaceOp,\n\tinsertOp,\n\tmoveOp,\n\tremoveOp,\n\tPath,\n} from \"ot-json1\";\nimport { Json1Factory } from \"./factory\";\n\n/**\n * @public\n */\nexport class SharedJson1 extends SharedOT<Doc, JSONOp> {\n\tpublic static create(runtime: IFluidDataStoreRuntime, id?: string): SharedJson1 {\n\t\treturn runtime.createChannel(id, Json1Factory.Type) as SharedJson1;\n\t}\n\n\tpublic static getFactory() {\n\t\treturn new Json1Factory();\n\t}\n\n\tconstructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes) {\n\t\t// RATIONALE: 'undefined' is not preserved by JSON.stringify().\n\t\tsuper(id, runtime, attributes, /* initialValue: */ null);\n\t}\n\n\tpublic get(): Doc {\n\t\treturn this.state;\n\t}\n\n\tpublic apply(op: JSONOp) {\n\t\tsuper.apply(op);\n\t}\n\n\tprotected transform(input: JSONOp, transform: JSONOp): JSONOp {\n\t\treturn Json1OTType.transformNoConflict(input, transform, \"left\");\n\t}\n\n\tprotected applyCore(state: Doc, op: JSONOp) {\n\t\treturn Json1OTType.apply(state, op) as Doc;\n\t}\n\n\tpublic insert(path: Path, value: Serializable) {\n\t\tthis.apply(insertOp(path, value as Doc));\n\t}\n\n\tpublic move(from: Path, to: Path) {\n\t\tthis.apply(moveOp(from, to));\n\t}\n\n\tpublic remove(path: Path, value?: boolean) {\n\t\tthis.apply(removeOp(path, value));\n\t}\n\n\tpublic replace(path: Path, oldValue: Serializable, newValue: Serializable) {\n\t\tthis.apply(replaceOp(path, oldValue as Doc, newValue as Doc));\n\t}\n}\n"]}
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export declare const pkgName = "@fluid-experimental/sharejs-json1";
8
- export declare const pkgVersion = "2.0.0-dev.6.4.0.191515";
8
+ export declare const pkgVersion = "2.0.0-dev.7.2.0.203917";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -8,5 +8,5 @@
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.pkgVersion = exports.pkgName = void 0;
10
10
  exports.pkgName = "@fluid-experimental/sharejs-json1";
11
- exports.pkgVersion = "2.0.0-dev.6.4.0.191515";
11
+ exports.pkgVersion = "2.0.0-dev.7.2.0.203917";
12
12
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,mCAAmC,CAAC;AAC9C,QAAA,UAAU,GAAG,wBAAwB,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/sharejs-json1\";\nexport const pkgVersion = \"2.0.0-dev.6.4.0.191515\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,mCAAmC,CAAC;AAC9C,QAAA,UAAU,GAAG,wBAAwB,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/sharejs-json1\";\nexport const pkgVersion = \"2.0.0-dev.7.2.0.203917\";\n"]}
@@ -0,0 +1,44 @@
1
+ import { Doc } from 'ot-json1';
2
+ import { IChannel } from '@fluidframework/datastore-definitions';
3
+ import { IChannelAttributes } from '@fluidframework/datastore-definitions';
4
+ import { IChannelFactory } from '@fluidframework/datastore-definitions';
5
+ import { IChannelServices } from '@fluidframework/datastore-definitions';
6
+ import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
7
+ import { JSONOp } from 'ot-json1';
8
+ import { Path } from 'ot-json1';
9
+ import { Serializable } from '@fluidframework/datastore-definitions';
10
+ import { SharedOT } from '@fluid-experimental/ot';
11
+
12
+ /**
13
+ * @public
14
+ */
15
+ export declare class Json1Factory implements IChannelFactory {
16
+ static Type: string;
17
+ static readonly Attributes: IChannelAttributes;
18
+ get type(): string;
19
+ get attributes(): IChannelAttributes;
20
+ /**
21
+ * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}
22
+ */
23
+ load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes): Promise<IChannel>;
24
+ create(runtime: IFluidDataStoreRuntime, id: string): IChannel;
25
+ }
26
+
27
+ /**
28
+ * @public
29
+ */
30
+ export declare class SharedJson1 extends SharedOT<Doc, JSONOp> {
31
+ static create(runtime: IFluidDataStoreRuntime, id?: string): SharedJson1;
32
+ static getFactory(): Json1Factory;
33
+ constructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes);
34
+ get(): Doc;
35
+ apply(op: JSONOp): void;
36
+ protected transform(input: JSONOp, transform: JSONOp): JSONOp;
37
+ protected applyCore(state: Doc, op: JSONOp): Doc;
38
+ insert(path: Path, value: Serializable): void;
39
+ move(from: Path, to: Path): void;
40
+ remove(path: Path, value?: boolean): void;
41
+ replace(path: Path, oldValue: Serializable, newValue: Serializable): void;
42
+ }
43
+
44
+ export { }
@@ -0,0 +1,44 @@
1
+ import { Doc } from 'ot-json1';
2
+ import { IChannel } from '@fluidframework/datastore-definitions';
3
+ import { IChannelAttributes } from '@fluidframework/datastore-definitions';
4
+ import { IChannelFactory } from '@fluidframework/datastore-definitions';
5
+ import { IChannelServices } from '@fluidframework/datastore-definitions';
6
+ import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
7
+ import { JSONOp } from 'ot-json1';
8
+ import { Path } from 'ot-json1';
9
+ import { Serializable } from '@fluidframework/datastore-definitions';
10
+ import { SharedOT } from '@fluid-experimental/ot';
11
+
12
+ /**
13
+ * @public
14
+ */
15
+ export declare class Json1Factory implements IChannelFactory {
16
+ static Type: string;
17
+ static readonly Attributes: IChannelAttributes;
18
+ get type(): string;
19
+ get attributes(): IChannelAttributes;
20
+ /**
21
+ * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}
22
+ */
23
+ load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes): Promise<IChannel>;
24
+ create(runtime: IFluidDataStoreRuntime, id: string): IChannel;
25
+ }
26
+
27
+ /**
28
+ * @public
29
+ */
30
+ export declare class SharedJson1 extends SharedOT<Doc, JSONOp> {
31
+ static create(runtime: IFluidDataStoreRuntime, id?: string): SharedJson1;
32
+ static getFactory(): Json1Factory;
33
+ constructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes);
34
+ get(): Doc;
35
+ apply(op: JSONOp): void;
36
+ protected transform(input: JSONOp, transform: JSONOp): JSONOp;
37
+ protected applyCore(state: Doc, op: JSONOp): Doc;
38
+ insert(path: Path, value: Serializable): void;
39
+ move(from: Path, to: Path): void;
40
+ remove(path: Path, value?: boolean): void;
41
+ replace(path: Path, oldValue: Serializable, newValue: Serializable): void;
42
+ }
43
+
44
+ export { }
@@ -0,0 +1,44 @@
1
+ import { Doc } from 'ot-json1';
2
+ import { IChannel } from '@fluidframework/datastore-definitions';
3
+ import { IChannelAttributes } from '@fluidframework/datastore-definitions';
4
+ import { IChannelFactory } from '@fluidframework/datastore-definitions';
5
+ import { IChannelServices } from '@fluidframework/datastore-definitions';
6
+ import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
7
+ import { JSONOp } from 'ot-json1';
8
+ import { Path } from 'ot-json1';
9
+ import { Serializable } from '@fluidframework/datastore-definitions';
10
+ import { SharedOT } from '@fluid-experimental/ot';
11
+
12
+ /**
13
+ * @public
14
+ */
15
+ export declare class Json1Factory implements IChannelFactory {
16
+ static Type: string;
17
+ static readonly Attributes: IChannelAttributes;
18
+ get type(): string;
19
+ get attributes(): IChannelAttributes;
20
+ /**
21
+ * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}
22
+ */
23
+ load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes): Promise<IChannel>;
24
+ create(runtime: IFluidDataStoreRuntime, id: string): IChannel;
25
+ }
26
+
27
+ /**
28
+ * @public
29
+ */
30
+ export declare class SharedJson1 extends SharedOT<Doc, JSONOp> {
31
+ static create(runtime: IFluidDataStoreRuntime, id?: string): SharedJson1;
32
+ static getFactory(): Json1Factory;
33
+ constructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes);
34
+ get(): Doc;
35
+ apply(op: JSONOp): void;
36
+ protected transform(input: JSONOp, transform: JSONOp): JSONOp;
37
+ protected applyCore(state: Doc, op: JSONOp): Doc;
38
+ insert(path: Path, value: Serializable): void;
39
+ move(from: Path, to: Path): void;
40
+ remove(path: Path, value?: boolean): void;
41
+ replace(path: Path, oldValue: Serializable, newValue: Serializable): void;
42
+ }
43
+
44
+ export { }
@@ -0,0 +1,44 @@
1
+ import { Doc } from 'ot-json1';
2
+ import { IChannel } from '@fluidframework/datastore-definitions';
3
+ import { IChannelAttributes } from '@fluidframework/datastore-definitions';
4
+ import { IChannelFactory } from '@fluidframework/datastore-definitions';
5
+ import { IChannelServices } from '@fluidframework/datastore-definitions';
6
+ import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
7
+ import { JSONOp } from 'ot-json1';
8
+ import { Path } from 'ot-json1';
9
+ import { Serializable } from '@fluidframework/datastore-definitions';
10
+ import { SharedOT } from '@fluid-experimental/ot';
11
+
12
+ /**
13
+ * @public
14
+ */
15
+ export declare class Json1Factory implements IChannelFactory {
16
+ static Type: string;
17
+ static readonly Attributes: IChannelAttributes;
18
+ get type(): string;
19
+ get attributes(): IChannelAttributes;
20
+ /**
21
+ * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}
22
+ */
23
+ load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes): Promise<IChannel>;
24
+ create(runtime: IFluidDataStoreRuntime, id: string): IChannel;
25
+ }
26
+
27
+ /**
28
+ * @public
29
+ */
30
+ export declare class SharedJson1 extends SharedOT<Doc, JSONOp> {
31
+ static create(runtime: IFluidDataStoreRuntime, id?: string): SharedJson1;
32
+ static getFactory(): Json1Factory;
33
+ constructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes);
34
+ get(): Doc;
35
+ apply(op: JSONOp): void;
36
+ protected transform(input: JSONOp, transform: JSONOp): JSONOp;
37
+ protected applyCore(state: Doc, op: JSONOp): Doc;
38
+ insert(path: Path, value: Serializable): void;
39
+ move(from: Path, to: Path): void;
40
+ remove(path: Path, value?: boolean): void;
41
+ replace(path: Path, oldValue: Serializable, newValue: Serializable): void;
42
+ }
43
+
44
+ export { }
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.34.9"
8
+ "packageVersion": "7.38.0"
9
9
  }
10
10
  ]
11
11
  }
package/lib/factory.d.ts CHANGED
@@ -3,6 +3,9 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
  import { IChannelAttributes, IFluidDataStoreRuntime, IChannelServices, IChannel, IChannelFactory } from "@fluidframework/datastore-definitions";
6
+ /**
7
+ * @public
8
+ */
6
9
  export declare class Json1Factory implements IChannelFactory {
7
10
  static Type: string;
8
11
  static readonly Attributes: IChannelAttributes;
@@ -1 +1 @@
1
- {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,QAAQ,EACR,eAAe,EACf,MAAM,uCAAuC,CAAC;AAI/C,qBAAa,YAAa,YAAW,eAAe;IACnD,OAAc,IAAI,SAAmD;IAErE,gBAAuB,UAAU,EAAE,kBAAkB,CAInD;IAEF,IAAW,IAAI,WAEd;IACD,IAAW,UAAU,uBAEpB;IAED;;OAEG;IACU,IAAI,CAChB,OAAO,EAAE,sBAAsB,EAC/B,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,gBAAgB,EAC1B,UAAU,EAAE,kBAAkB,GAC5B,OAAO,CAAC,QAAQ,CAAC;IAMb,MAAM,CAAC,OAAO,EAAE,sBAAsB,EAAE,EAAE,EAAE,MAAM,GAAG,QAAQ;CAKpE"}
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,QAAQ,EACR,eAAe,EACf,MAAM,uCAAuC,CAAC;AAI/C;;GAEG;AACH,qBAAa,YAAa,YAAW,eAAe;IACnD,OAAc,IAAI,SAAmD;IAErE,gBAAuB,UAAU,EAAE,kBAAkB,CAInD;IAEF,IAAW,IAAI,WAEd;IACD,IAAW,UAAU,uBAEpB;IAED;;OAEG;IACU,IAAI,CAChB,OAAO,EAAE,sBAAsB,EAC/B,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,gBAAgB,EAC1B,UAAU,EAAE,kBAAkB,GAC5B,OAAO,CAAC,QAAQ,CAAC;IAMb,MAAM,CAAC,OAAO,EAAE,sBAAsB,EAAE,EAAE,EAAE,MAAM,GAAG,QAAQ;CAKpE"}
package/lib/factory.js CHANGED
@@ -4,6 +4,9 @@
4
4
  */
5
5
  import { pkgVersion } from "./packageVersion";
6
6
  import { SharedJson1 } from "./json1";
7
+ /**
8
+ * @public
9
+ */
7
10
  export class Json1Factory {
8
11
  get type() {
9
12
  return Json1Factory.Type;
@@ -1 +1 @@
1
- {"version":3,"file":"factory.js","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AASH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,MAAM,OAAO,YAAY;IASxB,IAAW,IAAI;QACd,OAAO,YAAY,CAAC,IAAI,CAAC;IAC1B,CAAC;IACD,IAAW,UAAU;QACpB,OAAO,YAAY,CAAC,UAAU,CAAC;IAChC,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,IAAI,CAChB,OAA+B,EAC/B,EAAU,EACV,QAA0B,EAC1B,UAA8B;QAE9B,MAAM,QAAQ,GAAG,IAAI,WAAW,CAAC,EAAE,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;QAC1D,MAAM,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC9B,OAAO,QAAQ,CAAC;IACjB,CAAC;IAEM,MAAM,CAAC,OAA+B,EAAE,EAAU;QACxD,MAAM,QAAQ,GAAG,IAAI,WAAW,CAAC,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;QAC/D,QAAQ,CAAC,eAAe,EAAE,CAAC;QAC3B,OAAO,QAAQ,CAAC;IACjB,CAAC;;AAjCa,iBAAI,GAAG,+CAA+C,CAAC;AAE9C,uBAAU,GAAuB;IACvD,IAAI,EAAE,YAAY,CAAC,IAAI;IACvB,qBAAqB,EAAE,KAAK;IAC5B,cAAc,EAAE,UAAU;CAC1B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tIChannelAttributes,\n\tIFluidDataStoreRuntime,\n\tIChannelServices,\n\tIChannel,\n\tIChannelFactory,\n} from \"@fluidframework/datastore-definitions\";\nimport { pkgVersion } from \"./packageVersion\";\nimport { SharedJson1 } from \"./json1\";\n\nexport class Json1Factory implements IChannelFactory {\n\tpublic static Type = \"https://graph.microsoft.com/types/sharedjson1\";\n\n\tpublic static readonly Attributes: IChannelAttributes = {\n\t\ttype: Json1Factory.Type,\n\t\tsnapshotFormatVersion: \"0.1\",\n\t\tpackageVersion: pkgVersion,\n\t};\n\n\tpublic get type() {\n\t\treturn Json1Factory.Type;\n\t}\n\tpublic get attributes() {\n\t\treturn Json1Factory.Attributes;\n\t}\n\n\t/**\n\t * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}\n\t */\n\tpublic async load(\n\t\truntime: IFluidDataStoreRuntime,\n\t\tid: string,\n\t\tservices: IChannelServices,\n\t\tattributes: IChannelAttributes,\n\t): Promise<IChannel> {\n\t\tconst instance = new SharedJson1(id, runtime, attributes);\n\t\tawait instance.load(services);\n\t\treturn instance;\n\t}\n\n\tpublic create(runtime: IFluidDataStoreRuntime, id: string): IChannel {\n\t\tconst instance = new SharedJson1(id, runtime, this.attributes);\n\t\tinstance.initializeLocal();\n\t\treturn instance;\n\t}\n}\n"]}
1
+ {"version":3,"file":"factory.js","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AASH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC;;GAEG;AACH,MAAM,OAAO,YAAY;IASxB,IAAW,IAAI;QACd,OAAO,YAAY,CAAC,IAAI,CAAC;IAC1B,CAAC;IACD,IAAW,UAAU;QACpB,OAAO,YAAY,CAAC,UAAU,CAAC;IAChC,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,IAAI,CAChB,OAA+B,EAC/B,EAAU,EACV,QAA0B,EAC1B,UAA8B;QAE9B,MAAM,QAAQ,GAAG,IAAI,WAAW,CAAC,EAAE,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;QAC1D,MAAM,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC9B,OAAO,QAAQ,CAAC;IACjB,CAAC;IAEM,MAAM,CAAC,OAA+B,EAAE,EAAU;QACxD,MAAM,QAAQ,GAAG,IAAI,WAAW,CAAC,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;QAC/D,QAAQ,CAAC,eAAe,EAAE,CAAC;QAC3B,OAAO,QAAQ,CAAC;IACjB,CAAC;;AAjCa,iBAAI,GAAG,+CAA+C,CAAC;AAE9C,uBAAU,GAAuB;IACvD,IAAI,EAAE,YAAY,CAAC,IAAI;IACvB,qBAAqB,EAAE,KAAK;IAC5B,cAAc,EAAE,UAAU;CAC1B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tIChannelAttributes,\n\tIFluidDataStoreRuntime,\n\tIChannelServices,\n\tIChannel,\n\tIChannelFactory,\n} from \"@fluidframework/datastore-definitions\";\nimport { pkgVersion } from \"./packageVersion\";\nimport { SharedJson1 } from \"./json1\";\n\n/**\n * @public\n */\nexport class Json1Factory implements IChannelFactory {\n\tpublic static Type = \"https://graph.microsoft.com/types/sharedjson1\";\n\n\tpublic static readonly Attributes: IChannelAttributes = {\n\t\ttype: Json1Factory.Type,\n\t\tsnapshotFormatVersion: \"0.1\",\n\t\tpackageVersion: pkgVersion,\n\t};\n\n\tpublic get type() {\n\t\treturn Json1Factory.Type;\n\t}\n\tpublic get attributes() {\n\t\treturn Json1Factory.Attributes;\n\t}\n\n\t/**\n\t * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}\n\t */\n\tpublic async load(\n\t\truntime: IFluidDataStoreRuntime,\n\t\tid: string,\n\t\tservices: IChannelServices,\n\t\tattributes: IChannelAttributes,\n\t): Promise<IChannel> {\n\t\tconst instance = new SharedJson1(id, runtime, attributes);\n\t\tawait instance.load(services);\n\t\treturn instance;\n\t}\n\n\tpublic create(runtime: IFluidDataStoreRuntime, id: string): IChannel {\n\t\tconst instance = new SharedJson1(id, runtime, this.attributes);\n\t\tinstance.initializeLocal();\n\t\treturn instance;\n\t}\n}\n"]}
package/lib/json1.d.ts CHANGED
@@ -6,6 +6,9 @@ import { IChannelAttributes, IFluidDataStoreRuntime, Serializable } from "@fluid
6
6
  import { SharedOT } from "@fluid-experimental/ot";
7
7
  import { Doc, JSONOp, Path } from "ot-json1";
8
8
  import { Json1Factory } from "./factory";
9
+ /**
10
+ * @public
11
+ */
9
12
  export declare class SharedJson1 extends SharedOT<Doc, JSONOp> {
10
13
  static create(runtime: IFluidDataStoreRuntime, id?: string): SharedJson1;
11
14
  static getFactory(): Json1Factory;
@@ -1 +1 @@
1
- {"version":3,"file":"json1.d.ts","sourceRoot":"","sources":["../src/json1.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,kBAAkB,EAClB,sBAAsB,EACtB,YAAY,EACZ,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EACN,GAAG,EAEH,MAAM,EAKN,IAAI,EACJ,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,qBAAa,WAAY,SAAQ,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;WACvC,MAAM,CAAC,OAAO,EAAE,sBAAsB,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,WAAW;WAIjE,UAAU;gBAIZ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,sBAAsB,EAAE,UAAU,EAAE,kBAAkB;IAKhF,GAAG,IAAI,GAAG;IAIV,KAAK,CAAC,EAAE,EAAE,MAAM;IAIvB,SAAS,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM;IAI7D,SAAS,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM;IAInC,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY;IAItC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI;IAIzB,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,OAAO;IAIlC,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY;CAGzE"}
1
+ {"version":3,"file":"json1.d.ts","sourceRoot":"","sources":["../src/json1.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,kBAAkB,EAClB,sBAAsB,EACtB,YAAY,EACZ,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EACN,GAAG,EAEH,MAAM,EAKN,IAAI,EACJ,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC;;GAEG;AACH,qBAAa,WAAY,SAAQ,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;WACvC,MAAM,CAAC,OAAO,EAAE,sBAAsB,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,WAAW;WAIjE,UAAU;gBAIZ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,sBAAsB,EAAE,UAAU,EAAE,kBAAkB;IAKhF,GAAG,IAAI,GAAG;IAIV,KAAK,CAAC,EAAE,EAAE,MAAM;IAIvB,SAAS,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM;IAI7D,SAAS,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM;IAInC,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY;IAItC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI;IAIzB,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,OAAO;IAIlC,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY;CAGzE"}
package/lib/json1.js CHANGED
@@ -5,6 +5,9 @@
5
5
  import { SharedOT } from "@fluid-experimental/ot";
6
6
  import { type as Json1OTType, replaceOp, insertOp, moveOp, removeOp, } from "ot-json1";
7
7
  import { Json1Factory } from "./factory";
8
+ /**
9
+ * @public
10
+ */
8
11
  export class SharedJson1 extends SharedOT {
9
12
  static create(runtime, id) {
10
13
  return runtime.createChannel(id, Json1Factory.Type);
package/lib/json1.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"json1.js","sourceRoot":"","sources":["../src/json1.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAOH,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAEN,IAAI,IAAI,WAAW,EAEnB,SAAS,EACT,QAAQ,EACR,MAAM,EACN,QAAQ,GAER,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,OAAO,WAAY,SAAQ,QAAqB;IAC9C,MAAM,CAAC,MAAM,CAAC,OAA+B,EAAE,EAAW;QAChE,OAAO,OAAO,CAAC,aAAa,CAAC,EAAE,EAAE,YAAY,CAAC,IAAI,CAAgB,CAAC;IACpE,CAAC;IAEM,MAAM,CAAC,UAAU;QACvB,OAAO,IAAI,YAAY,EAAE,CAAC;IAC3B,CAAC;IAED,YAAY,EAAU,EAAE,OAA+B,EAAE,UAA8B;QACtF,+DAA+D;QAC/D,KAAK,CAAC,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAC1D,CAAC;IAEM,GAAG;QACT,OAAO,IAAI,CAAC,KAAK,CAAC;IACnB,CAAC;IAEM,KAAK,CAAC,EAAU;QACtB,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACjB,CAAC;IAES,SAAS,CAAC,KAAa,EAAE,SAAiB;QACnD,OAAO,WAAW,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IAClE,CAAC;IAES,SAAS,CAAC,KAAU,EAAE,EAAU;QACzC,OAAO,WAAW,CAAC,KAAK,CAAC,KAAK,EAAE,EAAE,CAAQ,CAAC;IAC5C,CAAC;IAEM,MAAM,CAAC,IAAU,EAAE,KAAmB;QAC5C,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAY,CAAC,CAAC,CAAC;IAC1C,CAAC;IAEM,IAAI,CAAC,IAAU,EAAE,EAAQ;QAC/B,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;IAC9B,CAAC;IAEM,MAAM,CAAC,IAAU,EAAE,KAAe;QACxC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;IACnC,CAAC;IAEM,OAAO,CAAC,IAAU,EAAE,QAAsB,EAAE,QAAsB;QACxE,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,EAAE,QAAe,EAAE,QAAe,CAAC,CAAC,CAAC;IAC/D,CAAC;CACD","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tIChannelAttributes,\n\tIFluidDataStoreRuntime,\n\tSerializable,\n} from \"@fluidframework/datastore-definitions\";\nimport { SharedOT } from \"@fluid-experimental/ot\";\nimport {\n\tDoc,\n\ttype as Json1OTType,\n\tJSONOp,\n\treplaceOp,\n\tinsertOp,\n\tmoveOp,\n\tremoveOp,\n\tPath,\n} from \"ot-json1\";\nimport { Json1Factory } from \"./factory\";\n\nexport class SharedJson1 extends SharedOT<Doc, JSONOp> {\n\tpublic static create(runtime: IFluidDataStoreRuntime, id?: string): SharedJson1 {\n\t\treturn runtime.createChannel(id, Json1Factory.Type) as SharedJson1;\n\t}\n\n\tpublic static getFactory() {\n\t\treturn new Json1Factory();\n\t}\n\n\tconstructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes) {\n\t\t// RATIONALE: 'undefined' is not preserved by JSON.stringify().\n\t\tsuper(id, runtime, attributes, /* initialValue: */ null);\n\t}\n\n\tpublic get(): Doc {\n\t\treturn this.state;\n\t}\n\n\tpublic apply(op: JSONOp) {\n\t\tsuper.apply(op);\n\t}\n\n\tprotected transform(input: JSONOp, transform: JSONOp): JSONOp {\n\t\treturn Json1OTType.transformNoConflict(input, transform, \"left\");\n\t}\n\n\tprotected applyCore(state: Doc, op: JSONOp) {\n\t\treturn Json1OTType.apply(state, op) as Doc;\n\t}\n\n\tpublic insert(path: Path, value: Serializable) {\n\t\tthis.apply(insertOp(path, value as Doc));\n\t}\n\n\tpublic move(from: Path, to: Path) {\n\t\tthis.apply(moveOp(from, to));\n\t}\n\n\tpublic remove(path: Path, value?: boolean) {\n\t\tthis.apply(removeOp(path, value));\n\t}\n\n\tpublic replace(path: Path, oldValue: Serializable, newValue: Serializable) {\n\t\tthis.apply(replaceOp(path, oldValue as Doc, newValue as Doc));\n\t}\n}\n"]}
1
+ {"version":3,"file":"json1.js","sourceRoot":"","sources":["../src/json1.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAOH,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAEN,IAAI,IAAI,WAAW,EAEnB,SAAS,EACT,QAAQ,EACR,MAAM,EACN,QAAQ,GAER,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,QAAqB;IAC9C,MAAM,CAAC,MAAM,CAAC,OAA+B,EAAE,EAAW;QAChE,OAAO,OAAO,CAAC,aAAa,CAAC,EAAE,EAAE,YAAY,CAAC,IAAI,CAAgB,CAAC;IACpE,CAAC;IAEM,MAAM,CAAC,UAAU;QACvB,OAAO,IAAI,YAAY,EAAE,CAAC;IAC3B,CAAC;IAED,YAAY,EAAU,EAAE,OAA+B,EAAE,UAA8B;QACtF,+DAA+D;QAC/D,KAAK,CAAC,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAC1D,CAAC;IAEM,GAAG;QACT,OAAO,IAAI,CAAC,KAAK,CAAC;IACnB,CAAC;IAEM,KAAK,CAAC,EAAU;QACtB,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACjB,CAAC;IAES,SAAS,CAAC,KAAa,EAAE,SAAiB;QACnD,OAAO,WAAW,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IAClE,CAAC;IAES,SAAS,CAAC,KAAU,EAAE,EAAU;QACzC,OAAO,WAAW,CAAC,KAAK,CAAC,KAAK,EAAE,EAAE,CAAQ,CAAC;IAC5C,CAAC;IAEM,MAAM,CAAC,IAAU,EAAE,KAAmB;QAC5C,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAY,CAAC,CAAC,CAAC;IAC1C,CAAC;IAEM,IAAI,CAAC,IAAU,EAAE,EAAQ;QAC/B,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;IAC9B,CAAC;IAEM,MAAM,CAAC,IAAU,EAAE,KAAe;QACxC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;IACnC,CAAC;IAEM,OAAO,CAAC,IAAU,EAAE,QAAsB,EAAE,QAAsB;QACxE,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,EAAE,QAAe,EAAE,QAAe,CAAC,CAAC,CAAC;IAC/D,CAAC;CACD","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tIChannelAttributes,\n\tIFluidDataStoreRuntime,\n\tSerializable,\n} from \"@fluidframework/datastore-definitions\";\nimport { SharedOT } from \"@fluid-experimental/ot\";\nimport {\n\tDoc,\n\ttype as Json1OTType,\n\tJSONOp,\n\treplaceOp,\n\tinsertOp,\n\tmoveOp,\n\tremoveOp,\n\tPath,\n} from \"ot-json1\";\nimport { Json1Factory } from \"./factory\";\n\n/**\n * @public\n */\nexport class SharedJson1 extends SharedOT<Doc, JSONOp> {\n\tpublic static create(runtime: IFluidDataStoreRuntime, id?: string): SharedJson1 {\n\t\treturn runtime.createChannel(id, Json1Factory.Type) as SharedJson1;\n\t}\n\n\tpublic static getFactory() {\n\t\treturn new Json1Factory();\n\t}\n\n\tconstructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes) {\n\t\t// RATIONALE: 'undefined' is not preserved by JSON.stringify().\n\t\tsuper(id, runtime, attributes, /* initialValue: */ null);\n\t}\n\n\tpublic get(): Doc {\n\t\treturn this.state;\n\t}\n\n\tpublic apply(op: JSONOp) {\n\t\tsuper.apply(op);\n\t}\n\n\tprotected transform(input: JSONOp, transform: JSONOp): JSONOp {\n\t\treturn Json1OTType.transformNoConflict(input, transform, \"left\");\n\t}\n\n\tprotected applyCore(state: Doc, op: JSONOp) {\n\t\treturn Json1OTType.apply(state, op) as Doc;\n\t}\n\n\tpublic insert(path: Path, value: Serializable) {\n\t\tthis.apply(insertOp(path, value as Doc));\n\t}\n\n\tpublic move(from: Path, to: Path) {\n\t\tthis.apply(moveOp(from, to));\n\t}\n\n\tpublic remove(path: Path, value?: boolean) {\n\t\tthis.apply(removeOp(path, value));\n\t}\n\n\tpublic replace(path: Path, oldValue: Serializable, newValue: Serializable) {\n\t\tthis.apply(replaceOp(path, oldValue as Doc, newValue as Doc));\n\t}\n}\n"]}
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export declare const pkgName = "@fluid-experimental/sharejs-json1";
8
- export declare const pkgVersion = "2.0.0-dev.6.4.0.191515";
8
+ export declare const pkgVersion = "2.0.0-dev.7.2.0.203917";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export const pkgName = "@fluid-experimental/sharejs-json1";
8
- export const pkgVersion = "2.0.0-dev.6.4.0.191515";
8
+ export const pkgVersion = "2.0.0-dev.7.2.0.203917";
9
9
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,mCAAmC,CAAC;AAC3D,MAAM,CAAC,MAAM,UAAU,GAAG,wBAAwB,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/sharejs-json1\";\nexport const pkgVersion = \"2.0.0-dev.6.4.0.191515\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,mCAAmC,CAAC;AAC3D,MAAM,CAAC,MAAM,UAAU,GAAG,wBAAwB,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/sharejs-json1\";\nexport const pkgVersion = \"2.0.0-dev.7.2.0.203917\";\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-experimental/sharejs-json1",
3
- "version": "2.0.0-dev.6.4.0.191515",
3
+ "version": "2.0.0-dev.7.2.0.203917",
4
4
  "description": "Distributed data structure for hosting ottypes",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -35,36 +35,35 @@
35
35
  "temp-directory": "nyc/.nyc_output"
36
36
  },
37
37
  "dependencies": {
38
- "@fluid-experimental/ot": "2.0.0-dev.6.4.0.191515",
39
- "@fluidframework/core-interfaces": "2.0.0-dev.6.4.0.191515",
40
- "@fluidframework/datastore-definitions": "2.0.0-dev.6.4.0.191515",
41
- "@fluidframework/protocol-definitions": "^1.1.0",
42
- "@fluidframework/shared-object-base": "2.0.0-dev.6.4.0.191515",
38
+ "@fluid-experimental/ot": "2.0.0-dev.7.2.0.203917",
39
+ "@fluidframework/core-interfaces": "2.0.0-dev.7.2.0.203917",
40
+ "@fluidframework/datastore-definitions": "2.0.0-dev.7.2.0.203917",
41
+ "@fluidframework/protocol-definitions": "^3.0.0",
42
+ "@fluidframework/shared-object-base": "2.0.0-dev.7.2.0.203917",
43
43
  "ot-json1": "^1.0.1"
44
44
  },
45
45
  "devDependencies": {
46
- "@fluid-internal/test-dds-utils": "2.0.0-dev.6.4.0.191515",
47
- "@fluidframework/build-common": "^2.0.0",
48
- "@fluidframework/build-tools": "^0.22.0",
49
- "@fluidframework/eslint-config-fluid": "^2.1.0",
50
- "@fluidframework/mocha-test-setup": "2.0.0-dev.6.4.0.191515",
51
- "@fluidframework/test-runtime-utils": "2.0.0-dev.6.4.0.191515",
52
- "@microsoft/api-extractor": "^7.34.4",
46
+ "@fluid-internal/test-dds-utils": "2.0.0-dev.7.2.0.203917",
47
+ "@fluidframework/build-common": "^2.0.2",
48
+ "@fluidframework/build-tools": "0.26.0-203096",
49
+ "@fluidframework/eslint-config-fluid": "^3.0.0",
50
+ "@fluidframework/mocha-test-setup": "2.0.0-dev.7.2.0.203917",
51
+ "@fluidframework/test-runtime-utils": "2.0.0-dev.7.2.0.203917",
52
+ "@microsoft/api-extractor": "^7.37.0",
53
53
  "@types/mocha": "^9.1.1",
54
54
  "@types/node": "^16.18.38",
55
55
  "best-random": "^1.0.0",
56
56
  "c8": "^7.7.1",
57
57
  "concurrently": "^8.2.1",
58
- "copyfiles": "^2.4.1",
59
58
  "cross-env": "^7.0.3",
60
- "eslint": "~8.6.0",
59
+ "eslint": "~8.50.0",
61
60
  "mocha": "^10.2.0",
62
61
  "mocha-json-output-reporter": "^2.0.1",
63
62
  "mocha-multi-reporters": "^1.5.1",
64
63
  "moment": "^2.21.0",
65
- "prettier": "~2.6.2",
64
+ "prettier": "~3.0.3",
66
65
  "rimraf": "^4.4.0",
67
- "typescript": "~4.5.5"
66
+ "typescript": "~5.1.6"
68
67
  },
69
68
  "typeValidation": {
70
69
  "disabled": true,
@@ -74,11 +73,11 @@
74
73
  "build": "fluid-build . --task build",
75
74
  "build:commonjs": "fluid-build . --task commonjs",
76
75
  "build:compile": "fluid-build . --task compile",
77
- "build:docs": "api-extractor run --local && copyfiles -u 1 ./_api-extractor-temp/doc-models/* ../../../../../_api-extractor-temp/",
76
+ "build:docs": "api-extractor run --local",
78
77
  "build:esnext": "tsc --project ./tsconfig.esnext.json",
79
78
  "build:genver": "gen-version",
80
79
  "build:test": "tsc --project ./src/test/tsconfig.json",
81
- "ci:build:docs": "api-extractor run --typescript-compiler-folder ../../../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/doc-models/* ../../../../../_api-extractor-temp/",
80
+ "ci:build:docs": "api-extractor run",
82
81
  "clean": "rimraf --glob 'dist' 'lib' '*.tsbuildinfo' '*.build.log' '_api-extractor-temp' 'nyc'",
83
82
  "dev": "npm run tsc && concurrently 'npm run tsc -- --watch' 'npm run build:test -- --watch'",
84
83
  "eslint": "eslint --format stylish src",
package/src/factory.ts CHANGED
@@ -13,6 +13,9 @@ import {
13
13
  import { pkgVersion } from "./packageVersion";
14
14
  import { SharedJson1 } from "./json1";
15
15
 
16
+ /**
17
+ * @public
18
+ */
16
19
  export class Json1Factory implements IChannelFactory {
17
20
  public static Type = "https://graph.microsoft.com/types/sharedjson1";
18
21
 
package/src/json1.ts CHANGED
@@ -21,6 +21,9 @@ import {
21
21
  } from "ot-json1";
22
22
  import { Json1Factory } from "./factory";
23
23
 
24
+ /**
25
+ * @public
26
+ */
24
27
  export class SharedJson1 extends SharedOT<Doc, JSONOp> {
25
28
  public static create(runtime: IFluidDataStoreRuntime, id?: string): SharedJson1 {
26
29
  return runtime.createChannel(id, Json1Factory.Type) as SharedJson1;
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluid-experimental/sharejs-json1";
9
- export const pkgVersion = "2.0.0-dev.6.4.0.191515";
9
+ export const pkgVersion = "2.0.0-dev.7.2.0.203917";