@fluid-experimental/sharejs-json1 2.0.0-internal.7.0.0 → 2.0.0-internal.7.2.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @fluid-experimental/sharejs-json1
2
2
 
3
+ ## 2.0.0-internal.7.2.0
4
+
5
+ Dependency updates only.
6
+
7
+ ## 2.0.0-internal.7.1.0
8
+
9
+ Dependency updates only.
10
+
3
11
  ## 2.0.0-internal.7.0.0
4
12
 
5
13
  ### Major Changes
@@ -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-internal.7.0.0";
8
+ export declare const pkgVersion = "2.0.0-internal.7.2.0";
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-internal.7.0.0";
11
+ exports.pkgVersion = "2.0.0-internal.7.2.0";
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,sBAAsB,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-internal.7.0.0\";\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,sBAAsB,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-internal.7.2.0\";\n"]}
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.37.0"
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-internal.7.0.0";
8
+ export declare const pkgVersion = "2.0.0-internal.7.2.0";
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-internal.7.0.0";
8
+ export const pkgVersion = "2.0.0-internal.7.2.0";
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,sBAAsB,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-internal.7.0.0\";\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,sBAAsB,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-internal.7.2.0\";\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-experimental/sharejs-json1",
3
- "version": "2.0.0-internal.7.0.0",
3
+ "version": "2.0.0-internal.7.2.0",
4
4
  "description": "Distributed data structure for hosting ottypes",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -35,34 +35,33 @@
35
35
  "temp-directory": "nyc/.nyc_output"
36
36
  },
37
37
  "dependencies": {
38
- "@fluid-experimental/ot": ">=2.0.0-internal.7.0.0 <2.0.0-internal.7.1.0",
39
- "@fluidframework/core-interfaces": ">=2.0.0-internal.7.0.0 <2.0.0-internal.7.1.0",
40
- "@fluidframework/datastore-definitions": ">=2.0.0-internal.7.0.0 <2.0.0-internal.7.1.0",
38
+ "@fluid-experimental/ot": ">=2.0.0-internal.7.2.0 <2.0.0-internal.7.3.0",
39
+ "@fluidframework/core-interfaces": ">=2.0.0-internal.7.2.0 <2.0.0-internal.7.3.0",
40
+ "@fluidframework/datastore-definitions": ">=2.0.0-internal.7.2.0 <2.0.0-internal.7.3.0",
41
41
  "@fluidframework/protocol-definitions": "^3.0.0",
42
- "@fluidframework/shared-object-base": ">=2.0.0-internal.7.0.0 <2.0.0-internal.7.1.0",
42
+ "@fluidframework/shared-object-base": ">=2.0.0-internal.7.2.0 <2.0.0-internal.7.3.0",
43
43
  "ot-json1": "^1.0.1"
44
44
  },
45
45
  "devDependencies": {
46
- "@fluid-internal/test-dds-utils": ">=2.0.0-internal.7.0.0 <2.0.0-internal.7.1.0",
47
- "@fluidframework/build-common": "^2.0.0",
48
- "@fluidframework/build-tools": "^0.24.0",
49
- "@fluidframework/eslint-config-fluid": "^2.1.0",
50
- "@fluidframework/mocha-test-setup": ">=2.0.0-internal.7.0.0 <2.0.0-internal.7.1.0",
51
- "@fluidframework/test-runtime-utils": ">=2.0.0-internal.7.0.0 <2.0.0-internal.7.1.0",
46
+ "@fluid-internal/test-dds-utils": ">=2.0.0-internal.7.2.0 <2.0.0-internal.7.3.0",
47
+ "@fluidframework/build-common": "^2.0.3",
48
+ "@fluidframework/build-tools": "^0.26.1",
49
+ "@fluidframework/eslint-config-fluid": "^3.0.0",
50
+ "@fluidframework/mocha-test-setup": ">=2.0.0-internal.7.2.0 <2.0.0-internal.7.3.0",
51
+ "@fluidframework/test-runtime-utils": ">=2.0.0-internal.7.2.0 <2.0.0-internal.7.3.0",
52
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
66
  "typescript": "~5.1.6"
68
67
  },
@@ -74,12 +73,12 @@
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/",
82
- "clean": "rimraf --glob 'dist' 'lib' '*.tsbuildinfo' '*.build.log' '_api-extractor-temp' 'nyc'",
80
+ "ci:build:docs": "api-extractor run",
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",
85
84
  "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
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-internal.7.0.0";
9
+ export const pkgVersion = "2.0.0-internal.7.2.0";