@turnipxenon/pineapple 3.0.0-alpha.4 → 3.0.0-alpha.6

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.
@@ -79,17 +79,3 @@ export declare class DialogManager {
79
79
  toggleDialogOverlay(): void;
80
80
  parseAndSetDialogTree(dialogYarn: string): Promise<DialogDetail[]>;
81
81
  }
82
- /**
83
- * strictly must be declared last! or you might receive a weird error that looks like:
84
- *
85
- * 2:04:21 AM [vite] Error when evaluating SSR module /src/lib/components/dialog_manager/DialogManagerStore.ts:
86
- * |- TypeError: Cannot read properties of undefined (reading '0')
87
- * at <instance_members_initializer> (/src/lib/components/dialog_manager/DialogManager.ts:38:67)
88
- * at new DialogManager (/src/lib/components/dialog_manager/DialogManager.ts:53:14)
89
- * at eval (/src/lib/components/dialog_manager/DialogManagerStore.ts:15:23)
90
- * at async instantiateModule (file:///C:/Users/Pumpkin/Projects/Web/pineapple/node_modules/vite/dist/node/chunks/dep-934dbc7c.js:54360:9)
91
- *
92
- * what this means is that one member of dialogManager cannot be initialized. in our case, it was the
93
- * defaultDialogMessage not yet being initialized
94
- */
95
- export declare const dialogManager: DialogManager;
@@ -261,17 +261,3 @@ export class DialogManager {
261
261
  });
262
262
  }
263
263
  }
264
- /**
265
- * strictly must be declared last! or you might receive a weird error that looks like:
266
- *
267
- * 2:04:21 AM [vite] Error when evaluating SSR module /src/lib/components/dialog_manager/DialogManagerStore.ts:
268
- * |- TypeError: Cannot read properties of undefined (reading '0')
269
- * at <instance_members_initializer> (/src/lib/components/dialog_manager/DialogManager.ts:38:67)
270
- * at new DialogManager (/src/lib/components/dialog_manager/DialogManager.ts:53:14)
271
- * at eval (/src/lib/components/dialog_manager/DialogManagerStore.ts:15:23)
272
- * at async instantiateModule (file:///C:/Users/Pumpkin/Projects/Web/pineapple/node_modules/vite/dist/node/chunks/dep-934dbc7c.js:54360:9)
273
- *
274
- * what this means is that one member of dialogManager cannot be initialized. in our case, it was the
275
- * defaultDialogMessage not yet being initialized
276
- */
277
- export const dialogManager = new DialogManager();
@@ -0,0 +1,15 @@
1
+ import { DialogManager } from "./DialogManager";
2
+ /**
3
+ * strictly must be declared last! or you might receive a weird error that looks like:
4
+ *
5
+ * 2:04:21 AM [vite] Error when evaluating SSR module /src/lib/components/dialog_manager/DialogManagerStore.ts:
6
+ * |- TypeError: Cannot read properties of undefined (reading '0')
7
+ * at <instance_members_initializer> (/src/lib/components/dialog_manager/DialogManager.ts:38:67)
8
+ * at new DialogManager (/src/lib/components/dialog_manager/DialogManager.ts:53:14)
9
+ * at eval (/src/lib/components/dialog_manager/DialogManagerStore.ts:15:23)
10
+ * at async instantiateModule (file:///C:/Users/Pumpkin/Projects/Web/pineapple/node_modules/vite/dist/node/chunks/dep-934dbc7c.js:54360:9)
11
+ *
12
+ * what this means is that one member of dialogManager cannot be initialized. in our case, it was the
13
+ * defaultDialogMessage not yet being initialized
14
+ */
15
+ export declare const dialogManager: DialogManager;
@@ -0,0 +1,15 @@
1
+ import { DialogManager } from "./DialogManager";
2
+ /**
3
+ * strictly must be declared last! or you might receive a weird error that looks like:
4
+ *
5
+ * 2:04:21 AM [vite] Error when evaluating SSR module /src/lib/components/dialog_manager/DialogManagerStore.ts:
6
+ * |- TypeError: Cannot read properties of undefined (reading '0')
7
+ * at <instance_members_initializer> (/src/lib/components/dialog_manager/DialogManager.ts:38:67)
8
+ * at new DialogManager (/src/lib/components/dialog_manager/DialogManager.ts:53:14)
9
+ * at eval (/src/lib/components/dialog_manager/DialogManagerStore.ts:15:23)
10
+ * at async instantiateModule (file:///C:/Users/Pumpkin/Projects/Web/pineapple/node_modules/vite/dist/node/chunks/dep-934dbc7c.js:54360:9)
11
+ *
12
+ * what this means is that one member of dialogManager cannot be initialized. in our case, it was the
13
+ * defaultDialogMessage not yet being initialized
14
+ */
15
+ export const dialogManager = new DialogManager();
@@ -1,7 +1,7 @@
1
1
  import { BehaviorStatus } from "../../core/BehaviorStatus";
2
2
  import { SetVariableNode } from "../SetVariableNode";
3
3
  import { btreeUtils } from "../../core/BTreeUtils";
4
- import { dialogManager } from "../../../../..";
4
+ import { dialogManager } from "../../../DialogMangerInit";
5
5
  export class JumpCommand {
6
6
  setVariableNode = new SetVariableNode();
7
7
  process(nodeArgs) {
@@ -2,7 +2,7 @@
2
2
  import AresHappy from "../../assets/characters/ares/ares_happy.webp";
3
3
  import { onMount } from "svelte";
4
4
  import { DialogState } from "../../types/pineapple_fiber/DialogState";
5
- import { dialogManager } from "../dialog_manager/DialogManager";
5
+ import { dialogManager } from "../dialog_manager/DialogMangerInit";
6
6
 
7
7
  let currentMessage = $state("");
8
8
  dialogManager.currentMessage.subscribe((value) => {
@@ -20,7 +20,7 @@
20
20
  import Toast from "./toast/Toast.svelte";
21
21
  import DialogOverlay from "../dialog_overlay/DialogOverlay.svelte";
22
22
  import { fade } from "svelte/transition";
23
- import { dialogManager } from "../dialog_manager/DialogManager";
23
+ import { dialogManager } from "../dialog_manager/DialogMangerInit";
24
24
 
25
25
  interface Props {
26
26
  showDialogByDefault?: boolean;
package/dist/index.d.ts CHANGED
@@ -11,3 +11,4 @@ export * from "./types/pineapple_fiber/DialogDetail";
11
11
  export * from "./util/util";
12
12
  export * from "./api/index";
13
13
  export * from "./template/seaweed/index";
14
+ export { dialogManager } from "./components/dialog_manager/DialogMangerInit";
package/dist/index.js CHANGED
@@ -12,3 +12,4 @@ export * from "./types/pineapple_fiber/DialogDetail";
12
12
  export * from "./util/util";
13
13
  export * from "./api/index";
14
14
  export * from "./template/seaweed/index";
15
+ export { dialogManager } from "./components/dialog_manager/DialogMangerInit";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@turnipxenon/pineapple",
3
3
  "description": "personal package for base styling for other personal projects",
4
- "version": "3.0.0-alpha.4",
4
+ "version": "3.0.0-alpha.6",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
7
7
  "build": "vite build && yarn package",