@turnipxenon/pineapple 3.1.0-alpha.2 → 3.1.0-alpha.4

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/README.md CHANGED
@@ -27,7 +27,12 @@ You can preview the production build with `yarn preview`.
27
27
 
28
28
  > To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
29
29
 
30
- ## Installing as a package
30
+
31
+ ## Installation as a package
32
+
33
+ TODO: If you're curious how to install this on a fresh package or a package not using Skeleton, you can ask me to document the steps but I haven't explored that since I'm focused in migrating my projects. It should just be installing Skeleton v3 and then seeing the steps below.
34
+
35
+ ## Migration from v2 to v3
31
36
 
32
37
  ```bash
33
38
  yarn add @turnipxenon2/pineapple
@@ -37,20 +42,23 @@ yarn add @turnipxenon2/pineapple
37
42
 
38
43
  We still have to do some manual set up to our project to make it work.
39
44
 
40
- 1. **Configure Tailwind.** Open your global stylesheet in `/src/app.css` and add the following imports:
45
+ 1. Follow these steps here: https://www.skeleton.dev/docs/get-started/migrate-from-v2
46
+
47
+ 2. **Configure Tailwind.** Open your global stylesheet in `/src/styles/app.css` and add the following imports:
41
48
 
42
49
  ```css
43
50
  @import 'tailwindcss';
44
- @import '@skeletonlabs/skeleton/optional/presets';
45
- @import '@skeletonlabs/skeleton';
46
- @import '@skeletonlabs/skeleton/themes/cerberus';
47
- @import '../node_modules/@turnipxenon/pineapple/dist/styles/app.css';
51
+ @import "@skeletonlabs/skeleton";
52
+ @import "@skeletonlabs/skeleton/optional/presets";
53
+ @import "@skeletonlabs/skeleton/themes/legacy";
54
+ @import '../../../node_modules/@turnipxenon/pineapple/dist/styles/app.css';
55
+ @import '../../../node_modules/@turnipxenon/pineapple/dist/styles/turnip-theme.css';
56
+
57
+ @source "../../../node_modules/@skeletonlabs/skeleton-svelte/dist";
58
+ @source '../../../node_modules/@turnipxenon/pineapple/dist/';
48
59
 
49
60
  @plugin '@tailwindcss/forms';
50
61
  @plugin '@tailwindcss/typography';
51
-
52
- @source '../node_modules/@skeletonlabs/skeleton-svelte/dist';
53
- @source '../node_modules/@turnipxenon/pineapple/dist/styles'
54
62
  ```
55
63
 
56
64
  2. **Set Active Theme.** Open /src/app.html, then set the data-theme attribute on the HTML tag to define the active theme.
@@ -1,3 +1,7 @@
1
+ <!--
2
+ @component
3
+ @deprecated
4
+ -->
1
5
  <script lang="ts">
2
6
  import BgTiledAres from "../assets/bg_tiled/bg_tiled_ares.png";
3
7
  import BgTiledCorn from "../assets/bg_tiled/bg_tiled_corn.png";
@@ -1,6 +1,7 @@
1
1
  interface Props {
2
2
  enable: any;
3
3
  }
4
+ /** @deprecated */
4
5
  declare const RandomizedBackground: import("svelte").Component<Props, {}, "">;
5
6
  type RandomizedBackground = ReturnType<typeof RandomizedBackground>;
6
7
  export default RandomizedBackground;
@@ -15,7 +15,7 @@ export declare class DialogManager implements IDialogManager {
15
15
  currentIndex: number;
16
16
  previousTimestamp: number;
17
17
  isDoneTransition: boolean;
18
- currentPortrait: import("svelte/store").Writable<unknown>;
18
+ currentPortrait: import("svelte/store").Writable<string>;
19
19
  portraitMap: Map<string, any>;
20
20
  currentState: DialogState;
21
21
  currentReadableState: import("svelte/store").Writable<DialogState>;
@@ -28,7 +28,7 @@ export class DialogManager {
28
28
  currentIndex = 0;
29
29
  previousTimestamp = 0;
30
30
  isDoneTransition = false;
31
- currentPortrait = writable();
31
+ currentPortrait = writable("");
32
32
  portraitMap = new Map();
33
33
  currentState = DialogState.Visible;
34
34
  currentReadableState = writable(this.currentState);
@@ -1,2 +1,2 @@
1
1
  import type { IDialogManager } from "./IDialogManager";
2
- export declare const getDialogManager: () => Promise<IDialogManager | undefined>;
2
+ export declare const getDialogManager: () => Promise<IDialogManager>;
@@ -0,0 +1 @@
1
+ export * from "./DialogMangerInit";
@@ -0,0 +1 @@
1
+ export * from "./DialogMangerInit";
@@ -44,8 +44,7 @@ const pineappleWeaverRun = () => {
44
44
  const template = `// this file was generated by PineappleWeaver.ts
45
45
  // do not edit!
46
46
 
47
- import type { DialogDetail } from "@turnipxenon/pineapple";
48
- import { dialogManager, PortraitType } from "@turnipxenon/pineapple";
47
+ import { type DialogDetail, getDialogManager, PortraitType } from "@turnipxenon/pineapple";
49
48
 
50
49
  class _${fileName}Yarn {
51
50
  dialogList: DialogDetail[] = [
@@ -54,7 +53,7 @@ ${dialogDetailListToString(dialogDetailList)}
54
53
 
55
54
  /* Remember to call DialogManager.subscribeToSetDialogChoice before calling this in Svelte */
56
55
  setDialogTree = () => {
57
- dialogManager.setDialogTree(this.dialogList);
56
+ getDialogManager().then((dm) => dm?.setDialogTree(this.dialogList));
58
57
  };
59
58
  }
60
59
 
@@ -9,7 +9,7 @@
9
9
  import BgTiledTurnip from '../../../assets/bg_tiled/bg_tiled_turnip.png';
10
10
  import RandomizedImage from './RandomizedImage.svelte';
11
11
  import { generatedDailySeed, mulberry32Generator } from '../../../util/util';
12
- import { appState } from "../../templates/index";
12
+ import { appState } from "../../templates/PinyaPageLayout/runes.svelte";
13
13
 
14
14
  let { enabled }: {
15
15
  enabled: 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.1.0-alpha.2",
4
+ "version": "3.1.0-alpha.4",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
7
7
  "build": "vite build && yarn package",