@turnipxenon/pineapple 3.0.0-alpha.2 → 3.0.0-alpha.5

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,3 +79,17 @@ 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,3 +261,17 @@ 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();
@@ -4,7 +4,6 @@
4
4
  */
5
5
  import type { DialogMapStore } from "../../types/pineapple_fiber/DialogVariableStore";
6
6
  import type { DialogDetail } from "../../types/pineapple_fiber/DialogDetail";
7
- import { DialogManager } from "./DialogManager";
8
7
  /**
9
8
  * Enables the dialogue overlay
10
9
  *
@@ -24,17 +23,3 @@ export declare const enableDialogueOverlay: import("svelte/store").Writable<bool
24
23
  export declare const dialogVariableStore: DialogMapStore;
25
24
  export declare const updateRate: number;
26
25
  export declare const defaultDialogMessage: DialogDetail[];
27
- /**
28
- * strictly must be declared last! or you might receive a weird error that looks like:
29
- *
30
- * 2:04:21 AM [vite] Error when evaluating SSR module /src/lib/components/dialog_manager/DialogManagerStore.ts:
31
- * |- TypeError: Cannot read properties of undefined (reading '0')
32
- * at <instance_members_initializer> (/src/lib/components/dialog_manager/DialogManager.ts:38:67)
33
- * at new DialogManager (/src/lib/components/dialog_manager/DialogManager.ts:53:14)
34
- * at eval (/src/lib/components/dialog_manager/DialogManagerStore.ts:15:23)
35
- * at async instantiateModule (file:///C:/Users/Pumpkin/Projects/Web/pineapple/node_modules/vite/dist/node/chunks/dep-934dbc7c.js:54360:9)
36
- *
37
- * what this means is that one member of dialogManager cannot be initialized. in our case, it was the
38
- * defaultDialogMessage not yet being initialized
39
- */
40
- export declare const dialogManager: DialogManager;
@@ -4,7 +4,6 @@
4
4
  */
5
5
  import { createNewMapStore } from "../../types/pineapple_fiber/DialogVariableStore";
6
6
  import { writable } from "svelte/store";
7
- import { DialogManager } from "./DialogManager";
8
7
  /**
9
8
  * Enables the dialogue overlay
10
9
  *
@@ -29,17 +28,3 @@ export const defaultDialogMessage = [
29
28
  textContent: `<p>I don't really have anything to say. Have you drank water? Or perhaps, you've checked out <a target="_blank" class="external-link" href="http://crouton.net">one of the best webpages</a> out there?`
30
29
  }
31
30
  ];
32
- /**
33
- * strictly must be declared last! or you might receive a weird error that looks like:
34
- *
35
- * 2:04:21 AM [vite] Error when evaluating SSR module /src/lib/components/dialog_manager/DialogManagerStore.ts:
36
- * |- TypeError: Cannot read properties of undefined (reading '0')
37
- * at <instance_members_initializer> (/src/lib/components/dialog_manager/DialogManager.ts:38:67)
38
- * at new DialogManager (/src/lib/components/dialog_manager/DialogManager.ts:53:14)
39
- * at eval (/src/lib/components/dialog_manager/DialogManagerStore.ts:15:23)
40
- * at async instantiateModule (file:///C:/Users/Pumpkin/Projects/Web/pineapple/node_modules/vite/dist/node/chunks/dep-934dbc7c.js:54360:9)
41
- *
42
- * what this means is that one member of dialogManager cannot be initialized. in our case, it was the
43
- * defaultDialogMessage not yet being initialized
44
- */
45
- export const dialogManager = new DialogManager();
@@ -1,7 +1,7 @@
1
1
  import { BehaviorStatus } from "../../core/BehaviorStatus";
2
2
  import { SetVariableNode } from "../SetVariableNode";
3
- import { dialogManager } from "../../../DialogManagerStore";
4
3
  import { btreeUtils } from "../../core/BTreeUtils";
4
+ import { dialogManager } from "../../../DialogManager";
5
5
  export class JumpCommand {
6
6
  setVariableNode = new SetVariableNode();
7
7
  process(nodeArgs) {
@@ -1,8 +1,8 @@
1
1
  <script lang="ts">
2
2
  import AresHappy from "../../assets/characters/ares/ares_happy.webp";
3
3
  import { onMount } from "svelte";
4
- import { dialogManager } from "../dialog_manager/DialogManagerStore";
5
4
  import { DialogState } from "../../types/pineapple_fiber/DialogState";
5
+ import { dialogManager } from "../dialog_manager/DialogManager";
6
6
 
7
7
  let currentMessage = $state("");
8
8
  dialogManager.currentMessage.subscribe((value) => {
@@ -16,10 +16,11 @@
16
16
  import AresLogo from "../../assets/characters/ares/ares_logo.webp";
17
17
  import FABIcon from "../../assets/bg_tiled/bg_tiled_turnip.png";
18
18
  import CloseIcon from "../../assets/icons/close.svg";
19
- import { dialogManager, enableDialogueOverlay } from "../dialog_manager/DialogManagerStore";
19
+ import { enableDialogueOverlay } from "../dialog_manager/DialogManagerStore";
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
24
 
24
25
  interface Props {
25
26
  showDialogByDefault?: boolean;
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.2",
4
+ "version": "3.0.0-alpha.5",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
7
7
  "build": "vite build && yarn package",
@@ -18,12 +18,9 @@
18
18
  "to-dev": "git checkout main && git pull origin main && git branch -d turnip/dev && git checkout -b turnip/dev"
19
19
  },
20
20
  "devDependencies": {
21
- "@inlang/paraglide-js": "2.0.0-beta.30",
22
21
  "@sveltejs/adapter-auto": "^3.1.1",
23
22
  "@sveltejs/kit": "^2.5.27",
24
23
  "@sveltejs/package": "^2.3.7",
25
- "@tailwindcss/forms": "^0.5.3",
26
- "@tailwindcss/typography": "^0.5.9",
27
24
  "@typescript-eslint/eslint-plugin": "^5.45.0",
28
25
  "@typescript-eslint/parser": "^5.45.0",
29
26
  "eslint": "^8.28.0",
@@ -32,16 +29,14 @@
32
29
  "prettier": "^3.2.5",
33
30
  "prettier-plugin-svelte": "^3.2.6",
34
31
  "prisma": "^5.12.1",
35
- "shiki-transformer-copy-button": "0.0.3",
36
- "svelte": "^5.0.0",
37
32
  "svelte-check": "^4.0.0",
38
33
  "svelte2tsx": "^0.6.20",
39
- "tailwindcss": "^4.0.14",
40
34
  "tslib": "^2.4.1",
41
35
  "typescript": "^5.5.0",
42
36
  "vite": "^5.4.4"
43
37
  },
44
38
  "dependencies": {
39
+ "@inlang/paraglide-js": "2.0.0-beta.30",
45
40
  "@prisma/client": "^5.12.1",
46
41
  "@skeletonlabs/skeleton": "^3.1.0",
47
42
  "@skeletonlabs/skeleton-svelte": "^1.0.0",
@@ -56,9 +51,11 @@
56
51
  "node-html-parser": "^6.1.5",
57
52
  "publint": "^0.2.7",
58
53
  "shiki": "^3.2.1",
54
+ "shiki-transformer-copy-button": "0.0.3",
59
55
  "string-width": "^7.1.0",
60
56
  "svelte": "^5.0.0",
61
57
  "svelte-modals": "^2.0.1",
58
+ "tailwindcss": "^4.0.14",
62
59
  "ts-node": "^10.9.1"
63
60
  },
64
61
  "exports": {