@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/dist/built-in/index.d.ts +19 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/src/built-in/index.ts +16 -0
package/dist/built-in/index.d.ts
CHANGED
|
@@ -2937,6 +2937,25 @@ declare class _TopicsManager extends OBC.Component {
|
|
|
2937
2937
|
* backfilling viewpoint worlds by hand.
|
|
2938
2938
|
*/
|
|
2939
2939
|
init(client: PlatformClient): Promise<void>;
|
|
2940
|
+
/**
|
|
2941
|
+
* Saving is the app's: the issues panel keeps what is made or changed as a draft, marks each such issue as not saved
|
|
2942
|
+
* yet, and writes nothing to the project until the app calls this — from its own Save, or its Ctrl+S, together with
|
|
2943
|
+
* whatever else it saves. A set never saved before needs a name the first time.
|
|
2944
|
+
*/
|
|
2945
|
+
persist(name?: string): Promise<void>;
|
|
2946
|
+
/** Whether there is something to save (the topics changed since the project last kept them). */
|
|
2947
|
+
get dirty(): boolean;
|
|
2948
|
+
/** Whether leaving the page now would lose work: for an app's «leave the page?» warning. */
|
|
2949
|
+
get unsavedWork(): boolean;
|
|
2950
|
+
/** The issues made or changed and not saved yet, by guid (the panel marks them with a grey sign). */
|
|
2951
|
+
unsavedTopics(): ReadonlySet<string>;
|
|
2952
|
+
/** 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. */
|
|
2953
|
+
readonly onSetChanged: OBC.Event<void>;
|
|
2954
|
+
/** The open set: its folder (null until saved the first time) and its name. */
|
|
2955
|
+
get set(): {
|
|
2956
|
+
folderId: string | null;
|
|
2957
|
+
name: string;
|
|
2958
|
+
} | null;
|
|
2940
2959
|
private _firstWorld;
|
|
2941
2960
|
}
|
|
2942
2961
|
/**
|