@turnipxenon/pineapple 2.4.49 → 2.4.50

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.
@@ -4,9 +4,7 @@
4
4
  <option name="autoReloadType" value="SELECTIVE" />
5
5
  </component>
6
6
  <component name="ChangeListManager">
7
- <list default="true" id="accb6ba2-c343-4f84-ad30-6e2d71eceee5" name="Changes" comment="Add back gameSectionFirst behaviour">
8
- <change beforePath="$PROJECT_DIR$/src/lib/template/seaweed/SeaweedTemplate.svelte" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/template/seaweed/SeaweedTemplate.svelte" afterDir="false" />
9
- </list>
7
+ <list default="true" id="accb6ba2-c343-4f84-ad30-6e2d71eceee5" name="Changes" comment="Put parseQTTerms in afterUpdate instead of onMount" />
10
8
  <option name="SHOW_DIALOG" value="false" />
11
9
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
12
10
  <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@@ -324,23 +322,8 @@
324
322
  <workItem from="1712476456680" duration="329000" />
325
323
  <workItem from="1712476890510" duration="1084000" />
326
324
  <workItem from="1712532951966" duration="51000" />
327
- <workItem from="1712533167568" duration="73000" />
328
- </task>
329
- <task id="LOCAL-00113" summary="Fix default page sorting">
330
- <option name="closed" value="true" />
331
- <created>1711499848251</created>
332
- <option name="number" value="00113" />
333
- <option name="presentableId" value="LOCAL-00113" />
334
- <option name="project" value="LOCAL" />
335
- <updated>1711499848251</updated>
336
- </task>
337
- <task id="LOCAL-00114" summary="Fix double dor parsing issue in NavigationComponent">
338
- <option name="closed" value="true" />
339
- <created>1711587709413</created>
340
- <option name="number" value="00114" />
341
- <option name="presentableId" value="LOCAL-00114" />
342
- <option name="project" value="LOCAL" />
343
- <updated>1711587709414</updated>
325
+ <workItem from="1712533167568" duration="339000" />
326
+ <workItem from="1712533592123" duration="650000" />
344
327
  </task>
345
328
  <task id="LOCAL-00115" summary="Layout adjustments to PineappleBaseLayout">
346
329
  <option name="closed" value="true" />
@@ -718,7 +701,23 @@
718
701
  <option name="project" value="LOCAL" />
719
702
  <updated>1712477820038</updated>
720
703
  </task>
721
- <option name="localTasksCounter" value="162" />
704
+ <task id="LOCAL-00162" summary="Delay parsing for query terms after page transformation">
705
+ <option name="closed" value="true" />
706
+ <created>1712533399159</created>
707
+ <option name="number" value="00162" />
708
+ <option name="presentableId" value="LOCAL-00162" />
709
+ <option name="project" value="LOCAL" />
710
+ <updated>1712533399160</updated>
711
+ </task>
712
+ <task id="LOCAL-00163" summary="Put parseQTTerms in afterUpdate instead of onMount">
713
+ <option name="closed" value="true" />
714
+ <created>1712533946790</created>
715
+ <option name="number" value="00163" />
716
+ <option name="presentableId" value="LOCAL-00163" />
717
+ <option name="project" value="LOCAL" />
718
+ <updated>1712533946790</updated>
719
+ </task>
720
+ <option name="localTasksCounter" value="164" />
722
721
  <servers />
723
722
  </component>
724
723
  <component name="TypeScriptGeneratedFilesManager">
@@ -776,8 +775,6 @@
776
775
  </option>
777
776
  </component>
778
777
  <component name="VcsManagerConfiguration">
779
- <MESSAGE value="Correct app_build_command in Azure SWA GithubActions&#10;&#10;app_build_command by default runs npm install when it should be running yarn install" />
780
- <MESSAGE value="Add resolutions to use Node 20 in Azure SWA GithubActions" />
781
778
  <MESSAGE value="Add resolutions to use Node 20 in Azure SWA GithubActions&#10;&#10;Reference: https://github.com/Azure/static-web-apps-cli/issues/756#issuecomment-1775748572" />
782
779
  <MESSAGE value="Migrate from azure swa adapter to node adapter" />
783
780
  <MESSAGE value="Add cdktf" />
@@ -801,6 +798,8 @@
801
798
  <MESSAGE value="Fix yarn dependencies" />
802
799
  <MESSAGE value="Support swappable group for backwards compatibility" />
803
800
  <MESSAGE value="Add back gameSectionFirst behaviour" />
804
- <option name="LAST_COMMIT_MESSAGE" value="Add back gameSectionFirst behaviour" />
801
+ <MESSAGE value="Delay parsing for query terms after page transformation" />
802
+ <MESSAGE value="Put parseQTTerms in afterUpdate instead of onMount" />
803
+ <option name="LAST_COMMIT_MESSAGE" value="Put parseQTTerms in afterUpdate instead of onMount" />
805
804
  </component>
806
805
  </project>
@@ -1,4 +1,4 @@
1
- <script>import { onMount } from "svelte";
1
+ <script>import { afterUpdate, onMount } from "svelte";
2
2
  import EntryOrderConfig from "./entry_order_config/EntryOrderConfig.svelte";
3
3
  import { runChaos } from "./RunChaos";
4
4
  import SocialSection from "../../components/SocialSection.svelte";
@@ -123,7 +123,12 @@ onMount(async () => {
123
123
  if (letChaos) {
124
124
  runChaos(document.body);
125
125
  chaosDone = true;
126
- } else {
126
+ }
127
+ });
128
+ let isParsed = false;
129
+ afterUpdate(async () => {
130
+ if (!letChaos && !isParsed) {
131
+ isParsed = true;
127
132
  await parseQTTerms();
128
133
  }
129
134
  });
@@ -1,4 +1,4 @@
1
- <script>import { onMount } from "svelte";
1
+ <script>import { afterUpdate, onMount } from "svelte";
2
2
  import EntryOrderConfig from "./entry_order_config/EntryOrderConfig.svelte";
3
3
  import { runChaos } from "./RunChaos";
4
4
  import SocialSection from "../../components/SocialSection.svelte";
@@ -123,7 +123,12 @@ onMount(async () => {
123
123
  if (letChaos) {
124
124
  runChaos(document.body);
125
125
  chaosDone = true;
126
- } else {
126
+ }
127
+ });
128
+ let isParsed = false;
129
+ afterUpdate(async () => {
130
+ if (!letChaos && !isParsed) {
131
+ isParsed = true;
127
132
  await parseQTTerms();
128
133
  }
129
134
  });
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": "2.4.49",
4
+ "version": "2.4.50",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
7
7
  "build": "vite build && yarn package",
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { type ComponentType, onMount } from "svelte";
2
+ import { afterUpdate, type ComponentType, onMount } from "svelte";
3
3
  import EntryOrderConfig from "$pkg/template/seaweed/entry_order_config/EntryOrderConfig.svelte";
4
4
  import { runChaos } from "$pkg/template/seaweed/RunChaos";
5
5
  import SocialSection from "$pkg/components/SocialSection.svelte";
@@ -184,7 +184,15 @@
184
184
  if (letChaos) {
185
185
  runChaos(document.body);
186
186
  chaosDone = true;
187
- } else {
187
+ }
188
+ });
189
+
190
+ // the page may not yet be updated in onMount, so let's wait for the page to render according to what we
191
+ // want before proceeding the parsing the page
192
+ let isParsed = false;
193
+ afterUpdate(async () => {
194
+ if (!letChaos && !isParsed) {
195
+ isParsed = true;
188
196
  await parseQTTerms();
189
197
  }
190
198
  });