@thatopen/services 0.37.2 → 0.37.3

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/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "access": "public"
16
16
  },
17
17
  "private": false,
18
- "version": "0.37.2",
18
+ "version": "0.37.3",
19
19
  "main": "dist/index.cjs.js",
20
20
  "module": "dist/index.es.js",
21
21
  "types": "dist/index.d.ts",
@@ -2957,6 +2957,22 @@ declare class _TopicsManager extends OBC.Component {
2957
2957
  * backfilling viewpoint worlds by hand.
2958
2958
  */
2959
2959
  init(client: PlatformClient): Promise<void>;
2960
+ /**
2961
+ * Saving is the app's: the issues panel keeps what is made or changed as a draft, marks each such issue as not saved
2962
+ * yet, and writes nothing to the project until the app calls this — from its own Save, or its Ctrl+S, together with
2963
+ * whatever else it saves. A set never saved before needs a name the first time.
2964
+ */
2965
+ persist(name?: string): Promise<void>;
2966
+ /** Whether there is something to save (the topics changed since the project last kept them). */
2967
+ get dirty(): boolean;
2968
+ /** Whether leaving the page now would lose work: for an app's «leave the page?» warning. */
2969
+ get unsavedWork(): boolean;
2970
+ /** The issues made or changed and not saved yet, by guid (the panel marks them with a grey sign). */
2971
+ unsavedTopics(): ReadonlySet<string>;
2972
+ /** Fired when the topics or the set change, a change kept or the set saved: an app's Save button can follow `dirty` by it. */
2973
+ readonly onSetChanged: OBC.Event<void>;
2974
+ /** The open set: its folder (null until saved the first time) and its name. */
2975
+ get set(): { folderId: string | null; name: string } | null;
2960
2976
  private _firstWorld;
2961
2977
  }
2962
2978