@fluidframework/debugger 1.4.0-115997 → 2.0.0-dev-rc.1.0.0.224419

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/.eslintrc.js +9 -10
  2. package/CHANGELOG.md +117 -0
  3. package/README.md +33 -33
  4. package/api-extractor-lint.json +4 -0
  5. package/api-extractor.json +2 -2
  6. package/api-report/debugger.api.md +157 -0
  7. package/dist/debugger-alpha.d.ts +36 -0
  8. package/dist/debugger-beta.d.ts +35 -0
  9. package/dist/debugger-public.d.ts +35 -0
  10. package/dist/debugger-untrimmed.d.ts +193 -0
  11. package/dist/{fluidDebugger.js → fluidDebugger.cjs} +12 -4
  12. package/dist/fluidDebugger.cjs.map +1 -0
  13. package/dist/fluidDebugger.d.ts +8 -2
  14. package/dist/fluidDebugger.d.ts.map +1 -1
  15. package/dist/{fluidDebuggerController.js → fluidDebuggerController.cjs} +29 -56
  16. package/dist/fluidDebuggerController.cjs.map +1 -0
  17. package/dist/fluidDebuggerController.d.ts +6 -2
  18. package/dist/fluidDebuggerController.d.ts.map +1 -1
  19. package/dist/{fluidDebuggerUi.js → fluidDebuggerUi.cjs} +45 -50
  20. package/dist/fluidDebuggerUi.cjs.map +1 -0
  21. package/dist/fluidDebuggerUi.d.ts +9 -0
  22. package/dist/fluidDebuggerUi.d.ts.map +1 -1
  23. package/dist/index.cjs +14 -0
  24. package/dist/index.cjs.map +1 -0
  25. package/dist/index.d.ts +3 -3
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/{messageSchema.js → messageSchema.cjs} +1 -12
  28. package/dist/messageSchema.cjs.map +1 -0
  29. package/dist/messageSchema.d.ts.map +1 -1
  30. package/dist/{sanitize.js → sanitize.cjs} +2 -2
  31. package/dist/sanitize.cjs.map +1 -0
  32. package/dist/{sanitizer.js → sanitizer.cjs} +29 -34
  33. package/dist/sanitizer.cjs.map +1 -0
  34. package/dist/sanitizer.d.ts.map +1 -1
  35. package/dist/tsdoc-metadata.json +11 -0
  36. package/lib/debugger-alpha.d.mts +36 -0
  37. package/lib/debugger-beta.d.mts +35 -0
  38. package/lib/debugger-public.d.mts +35 -0
  39. package/lib/debugger-untrimmed.d.mts +193 -0
  40. package/lib/{fluidDebugger.d.ts → fluidDebugger.d.mts} +8 -2
  41. package/lib/fluidDebugger.d.mts.map +1 -0
  42. package/lib/{fluidDebugger.js → fluidDebugger.mjs} +11 -3
  43. package/lib/fluidDebugger.mjs.map +1 -0
  44. package/lib/{fluidDebuggerController.d.ts → fluidDebuggerController.d.mts} +7 -3
  45. package/lib/fluidDebuggerController.d.mts.map +1 -0
  46. package/lib/{fluidDebuggerController.js → fluidDebuggerController.mjs} +20 -47
  47. package/lib/fluidDebuggerController.mjs.map +1 -0
  48. package/lib/{fluidDebuggerUi.d.ts → fluidDebuggerUi.d.mts} +9 -0
  49. package/lib/fluidDebuggerUi.d.mts.map +1 -0
  50. package/lib/{fluidDebuggerUi.js → fluidDebuggerUi.mjs} +44 -49
  51. package/lib/fluidDebuggerUi.mjs.map +1 -0
  52. package/lib/index.d.mts +8 -0
  53. package/lib/index.d.mts.map +1 -0
  54. package/lib/index.mjs +8 -0
  55. package/lib/index.mjs.map +1 -0
  56. package/lib/messageSchema.d.mts.map +1 -0
  57. package/lib/{messageSchema.js → messageSchema.mjs} +1 -12
  58. package/lib/messageSchema.mjs.map +1 -0
  59. package/lib/{sanitize.js → sanitize.mjs} +2 -16
  60. package/lib/sanitize.mjs.map +1 -0
  61. package/lib/{sanitizer.d.ts → sanitizer.d.mts} +0 -14
  62. package/lib/sanitizer.d.mts.map +1 -0
  63. package/lib/{sanitizer.js → sanitizer.mjs} +19 -42
  64. package/lib/sanitizer.mjs.map +1 -0
  65. package/lib/test/types/validateDebuggerPrevious.generated.d.mts +2 -0
  66. package/lib/test/types/validateDebuggerPrevious.generated.d.mts.map +1 -0
  67. package/lib/test/types/{validateDebuggerPrevious.js → validateDebuggerPrevious.generated.mjs} +5 -5
  68. package/lib/test/types/validateDebuggerPrevious.generated.mjs.map +1 -0
  69. package/package.json +76 -44
  70. package/prettier.config.cjs +8 -0
  71. package/src/fluidDebugger.ts +38 -30
  72. package/src/fluidDebuggerController.ts +353 -323
  73. package/src/fluidDebuggerUi.ts +316 -293
  74. package/src/index.ts +3 -3
  75. package/src/messageSchema.ts +356 -367
  76. package/src/sanitize.ts +29 -29
  77. package/src/sanitizer.ts +702 -651
  78. package/tsconfig.json +13 -15
  79. package/dist/fluidDebugger.js.map +0 -1
  80. package/dist/fluidDebuggerController.js.map +0 -1
  81. package/dist/fluidDebuggerUi.js.map +0 -1
  82. package/dist/index.js +0 -20
  83. package/dist/index.js.map +0 -1
  84. package/dist/messageSchema.js.map +0 -1
  85. package/dist/sanitize.js.map +0 -1
  86. package/dist/sanitizer.js.map +0 -1
  87. package/images/Screenshot1.jpg +0 -0
  88. package/images/Screenshot2.jpg +0 -0
  89. package/lib/fluidDebugger.d.ts.map +0 -1
  90. package/lib/fluidDebugger.js.map +0 -1
  91. package/lib/fluidDebuggerController.d.ts.map +0 -1
  92. package/lib/fluidDebuggerController.js.map +0 -1
  93. package/lib/fluidDebuggerUi.d.ts.map +0 -1
  94. package/lib/fluidDebuggerUi.js.map +0 -1
  95. package/lib/index.d.ts +0 -8
  96. package/lib/index.d.ts.map +0 -1
  97. package/lib/index.js +0 -8
  98. package/lib/index.js.map +0 -1
  99. package/lib/messageSchema.d.ts.map +0 -1
  100. package/lib/messageSchema.js.map +0 -1
  101. package/lib/sanitize.js.map +0 -1
  102. package/lib/sanitizer.d.ts.map +0 -1
  103. package/lib/sanitizer.js.map +0 -1
  104. package/lib/test/types/validateDebuggerPrevious.d.ts +0 -2
  105. package/lib/test/types/validateDebuggerPrevious.d.ts.map +0 -1
  106. package/lib/test/types/validateDebuggerPrevious.js.map +0 -1
  107. package/tsconfig.esnext.json +0 -7
  108. /package/lib/{messageSchema.d.ts → messageSchema.d.mts} +0 -0
  109. /package/lib/{sanitize.d.ts → sanitize.d.mts} +0 -0
  110. /package/lib/{sanitize.d.ts.map → sanitize.d.mts.map} +0 -0
package/.eslintrc.js CHANGED
@@ -4,13 +4,12 @@
4
4
  */
5
5
 
6
6
  module.exports = {
7
- "extends": [
8
- require.resolve("@fluidframework/eslint-config-fluid")
9
- ],
10
- "rules": {
11
- "@typescript-eslint/no-non-null-assertion": "off",
12
- "@typescript-eslint/no-use-before-define": "off",
13
- "@typescript-eslint/strict-boolean-expressions": "off",
14
- "no-inner-declarations": "off",
15
- }
16
- }
7
+ extends: [require.resolve("@fluidframework/eslint-config-fluid/minimal"), "prettier"],
8
+ rules: {
9
+ "@typescript-eslint/no-non-null-assertion": "off",
10
+ "@typescript-eslint/no-use-before-define": "off",
11
+ "@typescript-eslint/strict-boolean-expressions": "off",
12
+ "import/no-nodejs-modules": "off",
13
+ "no-inner-declarations": "off",
14
+ },
15
+ };
package/CHANGELOG.md ADDED
@@ -0,0 +1,117 @@
1
+ # @fluidframework/debugger
2
+
3
+ ## 2.0.0-internal.8.0.0
4
+
5
+ Dependency updates only.
6
+
7
+ ## 2.0.0-internal.7.4.0
8
+
9
+ Dependency updates only.
10
+
11
+ ## 2.0.0-internal.7.3.0
12
+
13
+ Dependency updates only.
14
+
15
+ ## 2.0.0-internal.7.2.0
16
+
17
+ Dependency updates only.
18
+
19
+ ## 2.0.0-internal.7.1.0
20
+
21
+ Dependency updates only.
22
+
23
+ ## 2.0.0-internal.7.0.0
24
+
25
+ ### Major Changes
26
+
27
+ - Dependencies on @fluidframework/protocol-definitions package updated to 3.0.0 [871b3493dd](https://github.com/microsoft/FluidFramework/commits/871b3493dd0d7ea3a89be64998ceb6cb9021a04e)
28
+
29
+ This included the following changes from the protocol-definitions release:
30
+
31
+ - Updating signal interfaces for some planned improvements. The intention is split the interface between signals
32
+ submitted by clients to the server and the resulting signals sent from the server to clients.
33
+ - A new optional type member is available on the ISignalMessage interface and a new ISentSignalMessage interface has
34
+ been added, which will be the typing for signals sent from the client to the server. Both extend a new
35
+ ISignalMessageBase interface that contains common members.
36
+ - The @fluidframework/common-definitions package dependency has been updated to version 1.0.0.
37
+
38
+ - Server upgrade: dependencies on Fluid server packages updated to 2.0.1 [871b3493dd](https://github.com/microsoft/FluidFramework/commits/871b3493dd0d7ea3a89be64998ceb6cb9021a04e)
39
+
40
+ Dependencies on the following Fluid server package have been updated to version 2.0.1:
41
+
42
+ - @fluidframework/gitresources: 2.0.1
43
+ - @fluidframework/server-kafka-orderer: 2.0.1
44
+ - @fluidframework/server-lambdas: 2.0.1
45
+ - @fluidframework/server-lambdas-driver: 2.0.1
46
+ - @fluidframework/server-local-server: 2.0.1
47
+ - @fluidframework/server-memory-orderer: 2.0.1
48
+ - @fluidframework/protocol-base: 2.0.1
49
+ - @fluidframework/server-routerlicious: 2.0.1
50
+ - @fluidframework/server-routerlicious-base: 2.0.1
51
+ - @fluidframework/server-services: 2.0.1
52
+ - @fluidframework/server-services-client: 2.0.1
53
+ - @fluidframework/server-services-core: 2.0.1
54
+ - @fluidframework/server-services-ordering-kafkanode: 2.0.1
55
+ - @fluidframework/server-services-ordering-rdkafka: 2.0.1
56
+ - @fluidframework/server-services-ordering-zookeeper: 2.0.1
57
+ - @fluidframework/server-services-shared: 2.0.1
58
+ - @fluidframework/server-services-telemetry: 2.0.1
59
+ - @fluidframework/server-services-utils: 2.0.1
60
+ - @fluidframework/server-test-utils: 2.0.1
61
+ - tinylicious: 2.0.1
62
+
63
+ - Minimum TypeScript version now 5.1.6 [871b3493dd](https://github.com/microsoft/FluidFramework/commits/871b3493dd0d7ea3a89be64998ceb6cb9021a04e)
64
+
65
+ The minimum supported TypeScript version for Fluid 2.0 clients is now 5.1.6.
66
+
67
+ ## 2.0.0-internal.6.4.0
68
+
69
+ Dependency updates only.
70
+
71
+ ## 2.0.0-internal.6.3.0
72
+
73
+ Dependency updates only.
74
+
75
+ ## 2.0.0-internal.6.2.0
76
+
77
+ Dependency updates only.
78
+
79
+ ## 2.0.0-internal.6.1.0
80
+
81
+ Dependency updates only.
82
+
83
+ ## 2.0.0-internal.6.0.0
84
+
85
+ ### Major Changes
86
+
87
+ - Upgraded typescript transpilation target to ES2020 [8abce8cdb4](https://github.com/microsoft/FluidFramework/commits/8abce8cdb4e2832fb6405fb44e393bef03d5648a)
88
+
89
+ Upgraded typescript transpilation target to ES2020. This is done in order to decrease the bundle sizes of Fluid Framework packages. This has provided size improvements across the board for ex. Loader, Driver, Runtime etc. Reduced bundle sizes helps to load lesser code in apps and hence also helps to improve the perf.If any app wants to target any older versions of browsers with which this target version is not compatible, then they can use packages like babel to transpile to a older target.
90
+
91
+ ## 2.0.0-internal.5.4.0
92
+
93
+ Dependency updates only.
94
+
95
+ ## 2.0.0-internal.5.3.0
96
+
97
+ Dependency updates only.
98
+
99
+ ## 2.0.0-internal.5.2.0
100
+
101
+ Dependency updates only.
102
+
103
+ ## 2.0.0-internal.5.1.0
104
+
105
+ Dependency updates only.
106
+
107
+ ## 2.0.0-internal.5.0.0
108
+
109
+ Dependency updates only.
110
+
111
+ ## 2.0.0-internal.4.4.0
112
+
113
+ Dependency updates only.
114
+
115
+ ## 2.0.0-internal.4.1.0
116
+
117
+ Dependency updates only.
package/README.md CHANGED
@@ -2,64 +2,64 @@
2
2
 
3
3
  Fluid Debugger is useful tool to replay file history. This can be useful as learning tool, as well as tool to investigate corruption or performance issues, or as content recovery tool. It provides read-only document and ability to start with a particular snapshot (or no snapshot at all), and play ops one by one, or in big batches.
4
4
 
5
- Fluid Debugger works as an adapter on top of any document storage. In other words, it can be integrated into any app using any storage endpoint (like SPO or Routerlicious) with minimal changes to application and can be used to replay history with full app code running, thus helping investigating bugs in any layer of application stack
5
+ Fluid Debugger works as an adapter on top of any document storage. In other words, it can be integrated into any app using any storage endpoint (like SPO or Routerlicious) with minimal changes to application and can be used to replay history with full app code running, thus helping investigating bugs in any layer of application stack
6
6
 
7
- ## How to Enable it ##
7
+ ## How to Enable it
8
8
 
9
9
  In order to use it, these changes are required:
10
10
 
11
- 1. Wrap existing storage:
12
- * If you have IDocumentService object, wrap it with __FluidDebugger.createFromService()__ call (note that it's async call)
13
- * Or, If you have IDocumentServiceFactory, wrap it with __FluidDebugger.createFromServiceFactory()__ call
14
- 2. In Dev Tools console, do
15
- > __localStorage.FluidDebugger = 1__
16
- >> Fluid app has UI toggle for it - Settings | debbuger = on
17
- 3. Once you refresh page, look for blocked (by browser) pop-up window notification. Enable pop-ups for your app.
11
+ 1. Wrap existing storage:
12
+ - If you have IDocumentService object, wrap it with **FluidDebugger.createFromService()** call (note that it's async call)
13
+ - Or, If you have IDocumentServiceFactory, wrap it with **FluidDebugger.createFromServiceFactory()** call
14
+ 2. In Dev Tools console, do
15
+ > **localStorage.FluidDebugger = 1**
16
+ >
17
+ > > Fluid app has UI toggle for it - Settings | debbuger = on
18
+ 3. Once you refresh page, look for blocked (by browser) pop-up window notification. Enable pop-ups for your app.
19
+
20
+ ## How to disable it
18
21
 
19
- ## How to disable it ##
20
22
  1. In Dev Tools console, run
21
- > __delete localStorage.FluidDebugger__
23
+ > **delete localStorage.FluidDebugger**
22
24
 
23
- ## How it works ##
25
+ ## How it works
24
26
 
25
- ### Selecting where to start ###
27
+ ### Selecting where to start
26
28
 
27
- Once debugger starts, you have the following choices on first screen:
29
+ Once debugger starts, you have the following choices on first screen:
28
30
 
29
31
  ![picture alt](images/Screenshot1.jpg "Screenshot of debugger, first page")
30
32
 
31
- 1. Close window. Debugger will be disabled and normal document flow would proceed - document is read/write. In all other options document is read-only, i.e. no local changes are committed to storage.
33
+ 1. Close window. Debugger will be disabled and normal document flow would proceed - document is read/write. In all other options document is read-only, i.e. no local changes are committed to storage.
32
34
 
33
- 2. Start with no snapshot, i.e. use only ops to play history of the file from start
35
+ 2. Start with no snapshot, i.e. use only ops to play history of the file from start
34
36
 
35
- 3. Use a particular snapshot to start with (use dropdown). You will see a selection of snapshots (with cryptic names) as well as starting sequence number for each of them in dropdown, sorted (with latest at the top). Please note that dropdown is populated asynchronously - there is progress text on the page noting that.
37
+ 3. Use a particular snapshot to start with (use dropdown). You will see a selection of snapshots (with cryptic names) as well as starting sequence number for each of them in dropdown, sorted (with latest at the top). Please note that dropdown is populated asynchronously - there is progress text on the page noting that.
36
38
 
37
- 4. Use snapshot stored on disk (_"snapshot.json"_), produced by [replay tool](../../tools/replay-tool/README.md). This option is useful if you want to validate that generation and loading of snapshot (from set of ops) does not introduce a bug. This is useful, given there is no other way to generate snapshot at particular point in time in the past. Notes:
38
- - Currently you can't play ops on top of snapshot in this mode (to be added in the future).
39
- - You can load snapshot from a different file (given above). As long as it's for same application, it does not matter if same file or storage endpoint is used to start an app.
39
+ 4. Use snapshot stored on disk (_"snapshot.json"_), produced by [replay tool](../../tools/replay-tool/README.md). This option is useful if you want to validate that generation and loading of snapshot (from set of ops) does not introduce a bug. This is useful, given there is no other way to generate snapshot at particular point in time in the past. Notes:
40
+ - Currently you can't play ops on top of snapshot in this mode (to be added in the future).
41
+ - You can load snapshot from a different file (given above). As long as it's for same application, it does not matter if same file or storage endpoint is used to start an app.
40
42
 
41
- ### Playing ops ###
43
+ ### Playing ops
42
44
 
43
- If you chose storage snapshot (not snapshot from file) or no snapshot, you are presented with a screen that allows you to play ops (on top of snapshot). You can chose any number of ops to play at once and click "Go" button:
45
+ If you chose storage snapshot (not snapshot from file) or no snapshot, you are presented with a screen that allows you to play ops (on top of snapshot). You can chose any number of ops to play at once and click "Go" button:
44
46
 
45
47
  ![picture alt](images/Screenshot2.jpg "Screenshot of debugger, second page")
46
48
 
47
- Please note that playback is asynchronous, so even though Debugger UI might have acknowledged that ops where played out (and you can select next batch), application might be still in the process of processing previous batch.
49
+ Please note that playback is asynchronous, so even though Debugger UI might have acknowledged that ops where played out (and you can select next batch), application might be still in the process of processing previous batch.
48
50
 
49
- ## Internals, or useful piece to use in other workflows ##
51
+ ## Internals, or useful piece to use in other workflows
50
52
 
51
53
  Debugger consists of three mostly independent from each other pieces - UI, Controller & Storage layer. One can substitute UI and/or controller with alternative representation pretty easily, thus build different tool (like document recovery tool).
52
54
 
53
- __IDebuggerController__ is an interface that controls replay logic, but not UI. An implementation of this interface is provided: __DebugReplayController__
54
-
55
- __IDebuggerUI__ is an interface that controls UI and has no control logic. __DebuggerUI__ is an implementation of that interface.
56
-
57
- __FluidDebugger.createFluidDebugger()__ is an example of binding logic & UI implementations
55
+ **IDebuggerController** is an interface that controls replay logic, but not UI. An implementation of this interface is provided: **DebugReplayController**
58
56
 
59
- There are useful stand-alone implementations of __IDocumentStorageService__ interface are provided as part of debugger:
57
+ **IDebuggerUI** is an interface that controls UI and has no control logic. **DebuggerUI** is an implementation of that interface.
60
58
 
61
- 1. __FileSnapshotReader__ - file based storage. It reads content from file (snapshot.json) and expects __IFileSnapshot__ format, uses content of such file to serve document requests.
62
- 2. __SnapshotStorage__ - storage based on particular snapshot (in real storage). Requires snapshots' root ISnapshotTree to be provided at construction time.
63
- 3. __OpStorage__ - op-based storage (i.e. it rejects all requests for snapshots / trees).
59
+ **FluidDebugger.createFluidDebugger()** is an example of binding logic & UI implementations
64
60
 
61
+ There are useful stand-alone implementations of **IDocumentStorageService** interface are provided as part of debugger:
65
62
 
63
+ 1. **FileSnapshotReader** - file based storage. It reads content from file (snapshot.json) and expects **IFileSnapshot** format, uses content of such file to serve document requests.
64
+ 2. **SnapshotStorage** - storage based on particular snapshot (in real storage). Requires snapshots' root ISnapshotTree to be provided at construction time.
65
+ 3. **OpStorage** - op-based storage (i.e. it rejects all requests for snapshots / trees).
@@ -0,0 +1,4 @@
1
+ {
2
+ "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3
+ "extends": "../../../common/build/build-common/api-extractor-lint.json"
4
+ }
@@ -1,4 +1,4 @@
1
1
  {
2
- "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3
- "extends": "@fluidframework/build-common/api-extractor-common-report.json"
2
+ "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3
+ "extends": "../../../common/build/build-common/api-extractor-base.json"
4
4
  }
@@ -0,0 +1,157 @@
1
+ ## API Report File for "@fluidframework/debugger"
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 { Deferred } from '@fluidframework/core-utils';
8
+ import { IDocumentService } from '@fluidframework/driver-definitions';
9
+ import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
10
+ import { IDocumentStorageService } from '@fluidframework/driver-definitions';
11
+ import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
12
+ import { ISnapshotTree } from '@fluidframework/protocol-definitions';
13
+ import { IVersion } from '@fluidframework/protocol-definitions';
14
+ import { ReadDocumentStorageServiceBase } from '@fluidframework/replay-driver';
15
+ import { ReplayController } from '@fluidframework/replay-driver';
16
+
17
+ // @internal (undocumented)
18
+ export class DebuggerUI {
19
+ protected constructor(controller: IDebuggerController, debuggerWindow: Window);
20
+ // (undocumented)
21
+ addVersions(versions: IVersion[]): void;
22
+ // (undocumented)
23
+ protected buttonOps?: HTMLButtonElement;
24
+ // (undocumented)
25
+ static create(controller: IDebuggerController): DebuggerUI | null;
26
+ // (undocumented)
27
+ disableNextOpButton(disable: boolean): void;
28
+ // (undocumented)
29
+ protected documentClosed: boolean;
30
+ // (undocumented)
31
+ protected lastOpText?: HTMLDivElement;
32
+ // (undocumented)
33
+ protected selector?: HTMLSelectElement;
34
+ // (undocumented)
35
+ protected text1?: HTMLDivElement;
36
+ // (undocumented)
37
+ protected text2?: HTMLDivElement;
38
+ // (undocumented)
39
+ protected text3?: HTMLDivElement;
40
+ // (undocumented)
41
+ updateLastOpText(lastKnownOp: number, stillLoading: boolean): void;
42
+ // (undocumented)
43
+ updateNextOpText(ops: ISequencedDocumentMessage[]): void;
44
+ // (undocumented)
45
+ updateVersion(index: number, version: IVersion, seqNumber: number): void;
46
+ // (undocumented)
47
+ updateVersionText(versionCount: number): void;
48
+ // (undocumented)
49
+ protected versions: IVersion[];
50
+ // (undocumented)
51
+ versionSelected(seqNumber: number, version: IVersion | string): void;
52
+ // (undocumented)
53
+ protected versionText: HTMLDivElement;
54
+ // (undocumented)
55
+ protected wasVersionSelected: boolean;
56
+ }
57
+
58
+ // @internal (undocumented)
59
+ export type debuggerUIFactory = (controller: IDebuggerController) => IDebuggerUI | null;
60
+
61
+ // @internal
62
+ export class DebugReplayController extends ReplayController implements IDebuggerController {
63
+ // (undocumented)
64
+ connectToUi(ui: IDebuggerUI): void;
65
+ // (undocumented)
66
+ static create(createUi: debuggerUIFactory): DebugReplayController | null;
67
+ // (undocumented)
68
+ protected documentService?: IDocumentService;
69
+ // (undocumented)
70
+ protected documentStorageService?: IDocumentStorageService;
71
+ // (undocumented)
72
+ downloadVersionInfo(documentStorageService: IDocumentStorageService, prevRequest: Promise<void>, index: number, version: IVersion): Promise<void>;
73
+ // (undocumented)
74
+ fetchTo(currentOp: number): number | undefined;
75
+ // (undocumented)
76
+ getSnapshotTree(versionRequested?: IVersion): Promise<ISnapshotTree | null>;
77
+ // (undocumented)
78
+ getStartingOpSequence(): Promise<number>;
79
+ // (undocumented)
80
+ getVersions(versionId: string | null, count: number): Promise<IVersion[]>;
81
+ // (undocumented)
82
+ initStorage(documentService: IDocumentService): Promise<boolean>;
83
+ isDoneFetch(currentOp: number, lastTimeStamp?: number): boolean;
84
+ // (undocumented)
85
+ isSelectionMade(): boolean;
86
+ // (undocumented)
87
+ protected lastOpReached: boolean;
88
+ // (undocumented)
89
+ onClose(): void;
90
+ // (undocumented)
91
+ onDownloadOpsButtonClick(anonymize: boolean): Promise<string>;
92
+ // (undocumented)
93
+ onOpButtonClick(steps: number): void;
94
+ // (undocumented)
95
+ onSnapshotFileSelection(file: File): void;
96
+ // (undocumented)
97
+ onVersionSelection(version: IVersion): Promise<void>;
98
+ // (undocumented)
99
+ readBlob(blobId: string): Promise<ArrayBufferLike>;
100
+ // (undocumented)
101
+ replay(emitter: (op: ISequencedDocumentMessage[]) => void, fetchedOps: ISequencedDocumentMessage[]): Promise<void>;
102
+ // (undocumented)
103
+ protected resolveStorage(seq: number, storage: ReadDocumentStorageServiceBase, version: IVersion | string): void;
104
+ // (undocumented)
105
+ protected retryFetchOpsOnEndOfFile: boolean;
106
+ // (undocumented)
107
+ protected static seqFromTree(documentStorageService: IDocumentStorageService, tree: ISnapshotTree | null): Promise<number>;
108
+ // (undocumented)
109
+ protected startSeqDeferred: Deferred<number>;
110
+ // (undocumented)
111
+ protected stepsDeferred?: Deferred<number>;
112
+ // (undocumented)
113
+ protected stepsToPlay: number;
114
+ // (undocumented)
115
+ protected storage?: ReadDocumentStorageServiceBase;
116
+ // (undocumented)
117
+ protected ui: IDebuggerUI;
118
+ // (undocumented)
119
+ protected versionCount: number;
120
+ // (undocumented)
121
+ protected versions: IVersion[];
122
+ // (undocumented)
123
+ protected static readonly WindowClosedSeq = -1;
124
+ }
125
+
126
+ // @alpha (undocumented)
127
+ export namespace FluidDebugger {
128
+ // @internal
129
+ export function createFromService(documentService: IDocumentService): Promise<IDocumentService>;
130
+ // (undocumented)
131
+ export function createFromServiceFactory(documentServiceFactory: IDocumentServiceFactory): Promise<IDocumentServiceFactory>;
132
+ }
133
+
134
+ // @internal (undocumented)
135
+ export interface IDebuggerController {
136
+ connectToUi(ui: IDebuggerUI): any;
137
+ onClose(): void;
138
+ onDownloadOpsButtonClick(anonymize: boolean): Promise<string>;
139
+ onOpButtonClick(steps: number): void;
140
+ onSnapshotFileSelection(file: File): void;
141
+ onVersionSelection(version: IVersion): void;
142
+ }
143
+
144
+ // @internal (undocumented)
145
+ export interface IDebuggerUI {
146
+ addVersions(version: IVersion[]): void;
147
+ disableNextOpButton(disable: boolean): void;
148
+ updateLastOpText(lastKnownOp: number, stillLoading: boolean): void;
149
+ updateNextOpText(ops: ISequencedDocumentMessage[]): void;
150
+ updateVersion(index: number, version: IVersion, seqNumber: number): void;
151
+ updateVersionText(versionsLeft: number): void;
152
+ versionSelected(seqNumber: number, version: IVersion | string): void;
153
+ }
154
+
155
+ // (No @packageDocumentation comment for this package)
156
+
157
+ ```
@@ -0,0 +1,36 @@
1
+ import { Deferred } from '@fluidframework/core-utils';
2
+ import { IDocumentService } from '@fluidframework/driver-definitions';
3
+ import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
4
+ import { IDocumentStorageService } from '@fluidframework/driver-definitions';
5
+ import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
6
+ import { ISnapshotTree } from '@fluidframework/protocol-definitions';
7
+ import { IVersion } from '@fluidframework/protocol-definitions';
8
+ import { ReadDocumentStorageServiceBase } from '@fluidframework/replay-driver';
9
+ import { ReplayController } from '@fluidframework/replay-driver';
10
+
11
+ /* Excluded from this release type: DebuggerUI */
12
+
13
+ /* Excluded from this release type: debuggerUIFactory */
14
+
15
+ /* Excluded from this release type: DebugReplayController */
16
+
17
+ /**
18
+ * @alpha
19
+ */
20
+ export declare namespace FluidDebugger {
21
+ /* Excluded from this release type: createFromService */
22
+ /**
23
+ * @alpha
24
+ */
25
+ export function createFromServiceFactory(documentServiceFactory: IDocumentServiceFactory): Promise<IDocumentServiceFactory>;
26
+ }
27
+
28
+ /* Excluded from this release type: IDebuggerController */
29
+
30
+ /* Excluded from this release type: IDebuggerUI */
31
+
32
+ /* Excluded from this release type: ReadDocumentStorageServiceBase */
33
+
34
+ /* Excluded from this release type: ReplayController */
35
+
36
+ export { }
@@ -0,0 +1,35 @@
1
+ import { Deferred } from '@fluidframework/core-utils';
2
+ import { IDocumentService } from '@fluidframework/driver-definitions';
3
+ import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
4
+ import { IDocumentStorageService } from '@fluidframework/driver-definitions';
5
+ import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
6
+ import { ISnapshotTree } from '@fluidframework/protocol-definitions';
7
+ import { IVersion } from '@fluidframework/protocol-definitions';
8
+ import { ReadDocumentStorageServiceBase } from '@fluidframework/replay-driver';
9
+ import { ReplayController } from '@fluidframework/replay-driver';
10
+
11
+ /* Excluded from this release type: DebuggerUI */
12
+
13
+ /* Excluded from this release type: debuggerUIFactory */
14
+
15
+ /* Excluded from this release type: DebugReplayController */
16
+
17
+ /* Excluded from this release type: Deferred */
18
+
19
+ /* Excluded from this release type: FluidDebugger */
20
+
21
+ /* Excluded from this release type: IDebuggerController */
22
+
23
+ /* Excluded from this release type: IDebuggerUI */
24
+
25
+ /* Excluded from this release type: IDocumentService */
26
+
27
+ /* Excluded from this release type: IDocumentServiceFactory */
28
+
29
+ /* Excluded from this release type: IDocumentStorageService */
30
+
31
+ /* Excluded from this release type: ReadDocumentStorageServiceBase */
32
+
33
+ /* Excluded from this release type: ReplayController */
34
+
35
+ export { }
@@ -0,0 +1,35 @@
1
+ import { Deferred } from '@fluidframework/core-utils';
2
+ import { IDocumentService } from '@fluidframework/driver-definitions';
3
+ import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
4
+ import { IDocumentStorageService } from '@fluidframework/driver-definitions';
5
+ import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
6
+ import { ISnapshotTree } from '@fluidframework/protocol-definitions';
7
+ import { IVersion } from '@fluidframework/protocol-definitions';
8
+ import { ReadDocumentStorageServiceBase } from '@fluidframework/replay-driver';
9
+ import { ReplayController } from '@fluidframework/replay-driver';
10
+
11
+ /* Excluded from this release type: DebuggerUI */
12
+
13
+ /* Excluded from this release type: debuggerUIFactory */
14
+
15
+ /* Excluded from this release type: DebugReplayController */
16
+
17
+ /* Excluded from this release type: Deferred */
18
+
19
+ /* Excluded from this release type: FluidDebugger */
20
+
21
+ /* Excluded from this release type: IDebuggerController */
22
+
23
+ /* Excluded from this release type: IDebuggerUI */
24
+
25
+ /* Excluded from this release type: IDocumentService */
26
+
27
+ /* Excluded from this release type: IDocumentServiceFactory */
28
+
29
+ /* Excluded from this release type: IDocumentStorageService */
30
+
31
+ /* Excluded from this release type: ReadDocumentStorageServiceBase */
32
+
33
+ /* Excluded from this release type: ReplayController */
34
+
35
+ export { }