@turnipxenon/pineapple 5.3.0-alpha.4 → 5.3.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.
Files changed (24) hide show
  1. package/dist/external/paraglide/messages/_index.d.ts +2 -8
  2. package/dist/external/paraglide/messages/_index.d.ts.map +1 -1
  3. package/dist/external/paraglide/messages/_index.js +2 -50
  4. package/dist/external/paraglide/messages/example_message.d.ts +6 -0
  5. package/dist/external/paraglide/messages/example_message.d.ts.map +1 -0
  6. package/dist/external/paraglide/messages/example_message.js +38 -0
  7. package/dist/external/paraglide/messages/settings.d.ts +4 -0
  8. package/dist/external/paraglide/messages/settings.d.ts.map +1 -0
  9. package/dist/external/paraglide/messages/settings.js +37 -0
  10. package/dist/ui/modules/NavigationMenu/NavigationMenu.svelte +5 -0
  11. package/dist/ui/modules/NavigationMenu/NavigationMenu.svelte.d.ts.map +1 -1
  12. package/dist/ui/templates/blog_template/BlogTemplateInner.svelte +7 -6
  13. package/dist/ui/templates/blog_template/BlogTemplateInner.svelte.d.ts +1 -1
  14. package/dist/ui/templates/blog_template/BlogTemplateInner.svelte.d.ts.map +1 -1
  15. package/package.json +1 -1
  16. package/dist/external/paraglide/messages/en.d.ts +0 -5
  17. package/dist/external/paraglide/messages/en.d.ts.map +0 -1
  18. package/dist/external/paraglide/messages/en.js +0 -10
  19. package/dist/external/paraglide/messages/fr.d.ts +0 -5
  20. package/dist/external/paraglide/messages/fr.d.ts.map +0 -1
  21. package/dist/external/paraglide/messages/fr.js +0 -10
  22. package/dist/external/paraglide/messages/tl.d.ts +0 -5
  23. package/dist/external/paraglide/messages/tl.d.ts.map +0 -1
  24. package/dist/external/paraglide/messages/tl.js +0 -7
@@ -1,9 +1,3 @@
1
- export function example_message(inputs: {
2
- username: NonNullable<unknown>;
3
- }, options?: {
4
- locale?: "en" | "fr" | "tl";
5
- }): string;
6
- export function settings(inputs?: {}, options?: {
7
- locale?: "en" | "fr" | "tl";
8
- }): string;
1
+ export * from "./example_message.js";
2
+ export * from "./settings.js";
9
3
  //# sourceMappingURL=_index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"_index.d.ts","sourceRoot":"","sources":["../../../../src/lib/external/paraglide/messages/_index.js"],"names":[],"mappings":"AAkBO,wCALG;IAAE,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;CAAE,YAClC;IAAE,MAAM,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;CAAE,GAC7B,MAAM,CAYjB;AAcM,kCALG,EAAE,YACF;IAAE,MAAM,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;CAAE,GAC7B,MAAM,CAYjB"}
1
+ {"version":3,"file":"_index.d.ts","sourceRoot":"","sources":["../../../../src/lib/external/paraglide/messages/_index.js"],"names":[],"mappings":""}
@@ -1,51 +1,3 @@
1
1
  /* eslint-disable */
2
- import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from "../runtime.js"
3
- import * as en from "./en.js"
4
- import * as fr from "./fr.js"
5
- import * as tl from "./tl.js"
6
- /**
7
- * This function has been compiled by [Paraglide JS](https://inlang.com/m/gerre34r).
8
- *
9
- * - Changing this function will be over-written by the next build.
10
- *
11
- * - If you want to change the translations, you can either edit the source files e.g. `en.json`, or
12
- * use another inlang app like [Fink](https://inlang.com/m/tdozzpar) or the [VSCode extension Sherlock](https://inlang.com/m/r7kp499g).
13
- *
14
- * @param {{ username: NonNullable<unknown> }} inputs
15
- * @param {{ locale?: "en" | "fr" | "tl" }} options
16
- * @returns {string}
17
- */
18
- /* @__NO_SIDE_EFFECTS__ */
19
- export const example_message = (inputs, options = {}) => {
20
- if (experimentalMiddlewareLocaleSplitting && isServer === false) {
21
- return /** @type {any} */ (globalThis).__paraglide_ssr.example_message(inputs)
22
- }
23
- const locale = options.locale ?? getLocale()
24
- trackMessageCall("example_message", locale)
25
- if (locale === "en") return en.example_message(inputs)
26
- if (locale === "fr") return fr.example_message(inputs)
27
- return tl.example_message(inputs)
28
- };
29
- /**
30
- * This function has been compiled by [Paraglide JS](https://inlang.com/m/gerre34r).
31
- *
32
- * - Changing this function will be over-written by the next build.
33
- *
34
- * - If you want to change the translations, you can either edit the source files e.g. `en.json`, or
35
- * use another inlang app like [Fink](https://inlang.com/m/tdozzpar) or the [VSCode extension Sherlock](https://inlang.com/m/r7kp499g).
36
- *
37
- * @param {{}} inputs
38
- * @param {{ locale?: "en" | "fr" | "tl" }} options
39
- * @returns {string}
40
- */
41
- /* @__NO_SIDE_EFFECTS__ */
42
- export const settings = (inputs = {}, options = {}) => {
43
- if (experimentalMiddlewareLocaleSplitting && isServer === false) {
44
- return /** @type {any} */ (globalThis).__paraglide_ssr.settings(inputs)
45
- }
46
- const locale = options.locale ?? getLocale()
47
- trackMessageCall("settings", locale)
48
- if (locale === "en") return en.settings(inputs)
49
- if (locale === "fr") return fr.settings(inputs)
50
- return tl.settings(inputs)
51
- };
2
+ export * from './example_message.js'
3
+ export * from './settings.js'
@@ -0,0 +1,6 @@
1
+ export function example_message(inputs: {
2
+ username: NonNullable<unknown>;
3
+ }, options?: {
4
+ locale?: "en" | "fr" | "tl";
5
+ }): string;
6
+ //# sourceMappingURL=example_message.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"example_message.d.ts","sourceRoot":"","sources":["../../../../src/lib/external/paraglide/messages/example_message.js"],"names":[],"mappings":"AA4BO,wCALG;IAAE,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;CAAE,YAClC;IAAE,MAAM,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;CAAE,GAC7B,MAAM,CAYjB"}
@@ -0,0 +1,38 @@
1
+ /* eslint-disable */
2
+ import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
3
+
4
+ const en_example_message = /** @type {(inputs: { username: NonNullable<unknown> }) => string} */ (i) => {
5
+ return `Hello world ${i.username}`
6
+ };
7
+
8
+ const fr_example_message = /** @type {(inputs: { username: NonNullable<unknown> }) => string} */ (i) => {
9
+ return `Bonjour ${i.username}`
10
+ };
11
+
12
+ const tl_example_message = /** @type {(inputs: { username: NonNullable<unknown> }) => string} */ (i) => {
13
+ return `Kamusta ${i.username}`
14
+ };
15
+
16
+ /**
17
+ * This function has been compiled by [Paraglide JS](https://inlang.com/m/gerre34r).
18
+ *
19
+ * - Changing this function will be over-written by the next build.
20
+ *
21
+ * - If you want to change the translations, you can either edit the source files e.g. `en.json`, or
22
+ * use another inlang app like [Fink](https://inlang.com/m/tdozzpar) or the [VSCode extension Sherlock](https://inlang.com/m/r7kp499g).
23
+ *
24
+ * @param {{ username: NonNullable<unknown> }} inputs
25
+ * @param {{ locale?: "en" | "fr" | "tl" }} options
26
+ * @returns {string}
27
+ */
28
+ /* @__NO_SIDE_EFFECTS__ */
29
+ export const example_message = (inputs, options = {}) => {
30
+ if (experimentalMiddlewareLocaleSplitting && isServer === false) {
31
+ return /** @type {any} */ (globalThis).__paraglide_ssr.example_message(inputs)
32
+ }
33
+ const locale = options.locale ?? getLocale()
34
+ trackMessageCall("example_message", locale)
35
+ if (locale === "en") return en_example_message(inputs)
36
+ if (locale === "fr") return fr_example_message(inputs)
37
+ return tl_example_message(inputs)
38
+ };
@@ -0,0 +1,4 @@
1
+ export function settings(inputs?: {}, options?: {
2
+ locale?: "en" | "fr" | "tl";
3
+ }): string;
4
+ //# sourceMappingURL=settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/lib/external/paraglide/messages/settings.js"],"names":[],"mappings":"AA2BO,kCALG,EAAE,YACF;IAAE,MAAM,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;CAAE,GAC7B,MAAM,CAYjB"}
@@ -0,0 +1,37 @@
1
+ /* eslint-disable */
2
+ import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
3
+
4
+ const en_settings = /** @type {(inputs: {}) => string} */ () => {
5
+ return `Settings`
6
+ };
7
+
8
+ const fr_settings = /** @type {(inputs: {}) => string} */ () => {
9
+ return `Paramètres`
10
+ };
11
+
12
+ /** @type {(inputs: {}) => string} */
13
+ const tl_settings = en_settings;
14
+
15
+ /**
16
+ * This function has been compiled by [Paraglide JS](https://inlang.com/m/gerre34r).
17
+ *
18
+ * - Changing this function will be over-written by the next build.
19
+ *
20
+ * - If you want to change the translations, you can either edit the source files e.g. `en.json`, or
21
+ * use another inlang app like [Fink](https://inlang.com/m/tdozzpar) or the [VSCode extension Sherlock](https://inlang.com/m/r7kp499g).
22
+ *
23
+ * @param {{}} inputs
24
+ * @param {{ locale?: "en" | "fr" | "tl" }} options
25
+ * @returns {string}
26
+ */
27
+ /* @__NO_SIDE_EFFECTS__ */
28
+ export const settings = (inputs = {}, options = {}) => {
29
+ if (experimentalMiddlewareLocaleSplitting && isServer === false) {
30
+ return /** @type {any} */ (globalThis).__paraglide_ssr.settings(inputs)
31
+ }
32
+ const locale = options.locale ?? getLocale()
33
+ trackMessageCall("settings", locale)
34
+ if (locale === "en") return en_settings(inputs)
35
+ if (locale === "fr") return fr_settings(inputs)
36
+ return tl_settings(inputs)
37
+ };
@@ -1,6 +1,7 @@
1
1
  <!-- TODO: Documentation: consider documentation showcase -->
2
2
 
3
3
  <script lang="ts">
4
+ import { browser } from "$app/environment";
4
5
  import { page } from "$app/state";
5
6
  import type { ParsnipOverall } from "../../../modules/parsnip/ParsnipOverall";
6
7
  import NavigationControl from "./NavigationControl.svelte";
@@ -57,6 +58,10 @@
57
58
  }
58
59
  });
59
60
  const hasTagQuery = $derived((() => {
61
+ if (!browser) {
62
+ return false;
63
+ }
64
+
60
65
  const repeatedTags = page.url.searchParams.getAll("tags");
61
66
  if (repeatedTags.length > 0) {
62
67
  return true;
@@ -1 +1 @@
1
- {"version":3,"file":"NavigationMenu.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/ui/modules/NavigationMenu/NavigationMenu.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAE1E,OAAO,EAIL,KAAK,sBAAsB,EAC3B,MAAM,yCAAyC,CAAC;AAMjD,UAAU,KAAK;IACd,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,SAAS,CAAC,EAAE,SAAS,GAAG,sBAAsB,CAAC;IAC/C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;CACzB;AAgLF,QAAA,MAAM,cAAc,oGAAwC,CAAC;AAC7D,KAAK,cAAc,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AACxD,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"NavigationMenu.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/ui/modules/NavigationMenu/NavigationMenu.svelte.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAE1E,OAAO,EAIL,KAAK,sBAAsB,EAC3B,MAAM,yCAAyC,CAAC;AAMjD,UAAU,KAAK;IACd,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,SAAS,CAAC,EAAE,SAAS,GAAG,sBAAsB,CAAC;IAC/C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;CACzB;AAqLF,QAAA,MAAM,cAAc,oGAAwC,CAAC;AAC7D,KAAK,cAAc,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AACxD,eAAe,cAAc,CAAC"}
@@ -1,23 +1,24 @@
1
1
  <!-- TODO: Documentation: consider documentation showcase -->
2
2
 
3
3
  <script lang="ts">
4
- import type { SimplePageMeta } from "../../modules/NavigationMenu/index";
5
4
  import { localizeHref } from "../../../external/paraglide/runtime.js";
5
+ import type { SimplePageMeta } from "../../modules/NavigationMenu/index";
6
6
  import { getWebBaseUrl } from "../../../util/env-getter";
7
+ import { SvelteURLSearchParams } from "svelte/reactivity";
7
8
 
8
9
  interface Props {
9
10
  pageMeta: SimplePageMeta;
10
- children?: import('svelte').Snippet;
11
+ children?: import("svelte").Snippet;
11
12
  }
12
13
 
13
14
  let { pageMeta, children }: Props = $props();
14
15
 
15
- const getTagQueryHref = (tag: string): string => {
16
- const query = new URLSearchParams();
16
+ const getTagQueryHref = $derived((tag: string): string => {
17
+ const query = new SvelteURLSearchParams();
17
18
  query.set("index", "0");
18
19
  query.append("tags", tag);
19
20
  return `${localizeHref(getWebBaseUrl())}?${query.toString()}`;
20
- };
21
+ });
21
22
  </script>
22
23
 
23
24
  <article>
@@ -76,6 +77,6 @@
76
77
  border-color: var(--color-primary-400-600);
77
78
  color: var(--color-surface-900-100);
78
79
  outline: none;
79
- filter: brightness(110%);
80
+ filter: brightness(110%);
80
81
  }
81
82
  </style>
@@ -1,7 +1,7 @@
1
1
  import type { SimplePageMeta } from "../../modules/NavigationMenu/index";
2
2
  interface Props {
3
3
  pageMeta: SimplePageMeta;
4
- children?: import('svelte').Snippet;
4
+ children?: import("svelte").Snippet;
5
5
  }
6
6
  declare const BlogTemplateInner: import("svelte").Component<Props, {}, "">;
7
7
  type BlogTemplateInner = ReturnType<typeof BlogTemplateInner>;
@@ -1 +1 @@
1
- {"version":3,"file":"BlogTemplateInner.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/ui/templates/blog_template/BlogTemplateInner.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAK1E,UAAU,KAAK;IACd,QAAQ,EAAE,cAAc,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,QAAQ,EAAE,OAAO,CAAC;CACpC;AAiDF,QAAA,MAAM,iBAAiB,2CAAwC,CAAC;AAChE,KAAK,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC9D,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"BlogTemplateInner.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/ui/templates/blog_template/BlogTemplateInner.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAK1E,UAAU,KAAK;IACd,QAAQ,EAAE,cAAc,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,QAAQ,EAAE,OAAO,CAAC;CACpC;AAkDF,QAAA,MAAM,iBAAiB,2CAAwC,CAAC;AAChE,KAAK,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC9D,eAAe,iBAAiB,CAAC"}
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": "5.3.0-alpha.4",
4
+ "version": "5.3.0-alpha.5",
5
5
  "devDependencies": {
6
6
  "@commitlint/cli": "^19.8.1",
7
7
  "@commitlint/config-conventional": "^19.8.1",
@@ -1,5 +0,0 @@
1
- export const example_message: (inputs: {
2
- username: NonNullable<unknown>;
3
- }) => string;
4
- export const settings: (inputs: {}) => string;
5
- //# sourceMappingURL=en.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../../src/lib/external/paraglide/messages/en.js"],"names":[],"mappings":"AAGA,8BAA0C,CAAC,MAAM,EAAE;IAAE,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;CAAE,KAAK,MAAM,CAE9F;AAEF,uBAAmC,CAAC,MAAM,EAAE,EAAE,KAAK,MAAM,CAEvD"}
@@ -1,10 +0,0 @@
1
- /* eslint-disable */
2
-
3
-
4
- export const example_message = /** @type {(inputs: { username: NonNullable<unknown> }) => string} */ (i) => {
5
- return `Hello world ${i.username}`
6
- };
7
-
8
- export const settings = /** @type {(inputs: {}) => string} */ () => {
9
- return `Settings`
10
- };
@@ -1,5 +0,0 @@
1
- export const example_message: (inputs: {
2
- username: NonNullable<unknown>;
3
- }) => string;
4
- export const settings: (inputs: {}) => string;
5
- //# sourceMappingURL=fr.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../../../src/lib/external/paraglide/messages/fr.js"],"names":[],"mappings":"AAGA,8BAA0C,CAAC,MAAM,EAAE;IAAE,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;CAAE,KAAK,MAAM,CAE9F;AAEF,uBAAmC,CAAC,MAAM,EAAE,EAAE,KAAK,MAAM,CAEvD"}
@@ -1,10 +0,0 @@
1
- /* eslint-disable */
2
-
3
-
4
- export const example_message = /** @type {(inputs: { username: NonNullable<unknown> }) => string} */ (i) => {
5
- return `Bonjour ${i.username}`
6
- };
7
-
8
- export const settings = /** @type {(inputs: {}) => string} */ () => {
9
- return `Paramètres`
10
- };
@@ -1,5 +0,0 @@
1
- export const example_message: (inputs: {
2
- username: NonNullable<unknown>;
3
- }) => string;
4
- export { settings } from "./en.js";
5
- //# sourceMappingURL=tl.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tl.d.ts","sourceRoot":"","sources":["../../../../src/lib/external/paraglide/messages/tl.js"],"names":[],"mappings":"AAGA,8BAA0C,CAAC,MAAM,EAAE;IAAE,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;CAAE,KAAK,MAAM,CAE9F"}
@@ -1,7 +0,0 @@
1
- /* eslint-disable */
2
-
3
-
4
- export const example_message = /** @type {(inputs: { username: NonNullable<unknown> }) => string} */ (i) => {
5
- return `Kamusta ${i.username}`
6
- };
7
- export { settings } from "./en.js"