@onerjs/gui-editor 8.52.6 → 8.52.8

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.
@@ -3362,6 +3362,10 @@ export type ModularToolOptions = {
3362
3362
  * will be resolved from this parent.
3363
3363
  */
3364
3364
  parentContainer?: ServiceContainer;
3365
+ /**
3366
+ * When true, all teaching moments are disabled and will not be shown.
3367
+ */
3368
+ disableTeachingMoments?: boolean;
3365
3369
  } & ShellServiceOptions;
3366
3370
  /**
3367
3371
  * Creates a modular tool with a base set of common tool services, including the toolbar/side pane basic UI layout.
@@ -4880,6 +4884,24 @@ export class BuiltInsExtensionFeed implements IExtensionFeed {
4880
4884
  getExtensionModuleAsync(name: string): Promise<ExtensionModule | undefined>;
4881
4885
  }
4882
4886
 
4887
+ }
4888
+ declare module "@onerjs/gui-editor/modularTool/contexts/teachingMomentsContext" {
4889
+ type TeachingMomentsContext = {
4890
+ /**
4891
+ * When true, all teaching moments are suppressed regardless of any caller-supplied
4892
+ * `suppress` argument and regardless of whether the user has previously dismissed
4893
+ * the teaching moment.
4894
+ */
4895
+ disabled: boolean;
4896
+ };
4897
+ export const TeachingMomentsContext: import("react").Context<TeachingMomentsContext>;
4898
+ /**
4899
+ * Returns the teaching moments context provided by the surrounding modular tool framework.
4900
+ * @returns The current teaching moments context.
4901
+ */
4902
+ export function useTeachingMomentsContext(): TeachingMomentsContext;
4903
+ export {};
4904
+
4883
4905
  }
4884
4906
  declare module "@onerjs/gui-editor/modularTool/contexts/settingsContext" {
4885
4907
  import { ISettingsStore } from "@onerjs/gui-editor/modularTool/services/settingsStore";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onerjs/gui-editor",
3
- "version": "8.52.6",
3
+ "version": "8.52.8",
4
4
  "main": "dist/babylon.guiEditor.js",
5
5
  "module": "dist/babylon.guiEditor.js",
6
6
  "esnext": "dist/babylon.guiEditor.js",
@@ -24,8 +24,8 @@
24
24
  "@types/react-dom": ">=16.0.9"
25
25
  },
26
26
  "devDependencies": {
27
- "@onerjs/core": "8.52.6",
28
- "@onerjs/gui": "8.52.6",
27
+ "@onerjs/core": "8.52.8",
28
+ "@onerjs/gui": "8.52.8",
29
29
  "react": "^18.2.0",
30
30
  "react-dom": "^18.2.0"
31
31
  },