@onsvisual/svelte-components 0.1.100-component.toolbar → 0.1.102-component.toolbar

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.
@@ -1,6 +1,8 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
2
  declare const __propDef: {
3
- props: Record<string, never>;
3
+ props: {
4
+ resetHelp?: () => void;
5
+ };
4
6
  events: {
5
7
  [evt: string]: CustomEvent<any>;
6
8
  };
@@ -12,5 +14,6 @@ export type ToolbarsContainerProps = typeof __propDef.props;
12
14
  export type ToolbarsContainerEvents = typeof __propDef.events;
13
15
  export type ToolbarsContainerSlots = typeof __propDef.slots;
14
16
  export default class ToolbarsContainer extends SvelteComponentTyped<ToolbarsContainerProps, ToolbarsContainerEvents, ToolbarsContainerSlots> {
17
+ get resetHelp(): () => void;
15
18
  }
16
19
  export {};
@@ -60,7 +60,7 @@ function nextModal() {
60
60
  const currentIndex = ids.indexOf($activeModalId);
61
61
  if (currentIndex !== -1 && currentIndex < ids.length - 1) {
62
62
  activeModalId.set(ids[currentIndex + 1]);
63
- console.log("Navigating to next modal:", ids[currentIndex + 1]);
63
+ // console.log("Navigating to next modal:", ids[currentIndex + 1]);
64
64
  }
65
65
  if (dontShowMeAgain) {
66
66
  disableHelpModalsPermanently(); // Disable help modals permanently
@@ -80,7 +80,7 @@ function previousModal() {
80
80
  const currentIndex = ids.indexOf($activeModalId);
81
81
  if (currentIndex > 0) {
82
82
  activeModalId.set(ids[currentIndex - 1]);
83
- console.log("Navigating to previous modal:", ids[currentIndex - 1]);
83
+ // console.log("Navigating to previous modal:", ids[currentIndex - 1]);
84
84
  }
85
85
  if (dontShowMeAgain) {
86
86
  disableHelpModalsPermanently(); // Disable help modals permanently
@@ -40,6 +40,10 @@ onMount(() => {
40
40
  });
41
41
  return unsubscribe;
42
42
  });
43
+ export function resetHelp() {
44
+ sessionStorage.setItem("showHelpModals", "true");
45
+ showHelpModals.set(true);
46
+ }
43
47
  </script>
44
48
 
45
49
  <div class="multi-toolbar-container">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onsvisual/svelte-components",
3
- "version": "0.1.100-component.toolbar",
3
+ "version": "0.1.102-component.toolbar",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "homepage": "https://onsvisual.github.io/svelte-components",