triiiceratops 0.1.0 → 0.3.1

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/package.json CHANGED
@@ -1,8 +1,16 @@
1
1
  {
2
2
  "name": "triiiceratops",
3
- "private": false,
4
- "version": "0.1.0",
3
+ "version": "0.3.1",
5
4
  "type": "module",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/d-flood/triiiceratops.git"
8
+ },
9
+ "publishConfig": {
10
+ "access": "public",
11
+ "provenance": true
12
+ },
13
+ "private": false,
6
14
  "files": [
7
15
  "dist"
8
16
  ],
@@ -22,16 +30,30 @@
22
30
  "./element.iife": "./dist/triiiceratops-element.iife.js"
23
31
  },
24
32
  "peerDependencies": {
25
- "svelte": "^5.0.0",
33
+ "manifesto.js": "^4.0.0",
26
34
  "openseadragon": "^5.0.0",
27
- "manifesto.js": "^4.0.0"
35
+ "svelte": "^5.0.0"
28
36
  },
29
37
  "peerDependenciesMeta": {
30
38
  "svelte": {
31
39
  "optional": true
32
40
  }
33
41
  },
42
+ "scripts": {
43
+ "dev": "vite",
44
+ "build": "vite build",
45
+ "build:lib": "vite build --config vite.config.lib.ts",
46
+ "build:element": "vite build --config vite.config.element.ts",
47
+ "build:demo": "vite build --config vite.config.demo.ts",
48
+ "build:all": "pnpm build:lib && pnpm build:element && pnpm build:demo",
49
+ "preview": "vite preview",
50
+ "check": "svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json",
51
+ "test": "vitest",
52
+ "test:e2e": "playwright test",
53
+ "changeset": "changeset"
54
+ },
34
55
  "devDependencies": {
56
+ "@changesets/cli": "^2.29.8",
35
57
  "@inlang/paraglide-js": "^2.5.0",
36
58
  "@inlang/paraglide-vite": "^1.4.0",
37
59
  "@playwright/test": "^1.57.0",
@@ -41,6 +63,8 @@
41
63
  "happy-dom": "^20.0.11",
42
64
  "jsdom": "^27.3.0",
43
65
  "phosphor-svelte": "^3.0.1",
66
+ "prettier": "^3.7.4",
67
+ "prettier-plugin-svelte": "^3.4.0",
44
68
  "svelte": "^5.43.8",
45
69
  "svelte-check": "^4.3.4",
46
70
  "typescript": "~5.9.3",
@@ -49,24 +73,10 @@
49
73
  "vitest": "^4.0.15"
50
74
  },
51
75
  "dependencies": {
52
- "@annotorious/annotorious": "^3.7.19",
53
- "@annotorious/openseadragon": "^3.7.19",
54
76
  "@tailwindcss/vite": "^4.1.17",
55
77
  "daisyui": "^5.5.8",
56
78
  "manifesto.js": "^4.3.0",
57
79
  "openseadragon": "^5.0.1",
58
80
  "tailwindcss": "^4.1.17"
59
- },
60
- "scripts": {
61
- "dev": "vite",
62
- "build": "vite build",
63
- "build:lib": "vite build --config vite.config.lib.ts",
64
- "build:element": "vite build --config vite.config.element.ts",
65
- "build:demo": "vite build --config vite.config.demo.ts",
66
- "build:all": "pnpm build:lib && pnpm build:element && pnpm build:demo",
67
- "preview": "vite preview",
68
- "check": "svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json",
69
- "test": "vitest",
70
- "test:e2e": "playwright test"
71
81
  }
72
82
  }
@@ -1 +0,0 @@
1
- export function hello_world(): string;
@@ -1,3 +0,0 @@
1
- export function hello_world(params?: {}, options?: {
2
- languageTag?: "en";
3
- }): string;
@@ -1,52 +0,0 @@
1
- /**
2
- * Check if something is an available language tag.
3
- *
4
- * @example
5
- * if (isAvailableLanguageTag(params.locale)) {
6
- * setLanguageTag(params.locale)
7
- * } else {
8
- * setLanguageTag("en")
9
- * }
10
- *
11
- * @param {any} thing
12
- * @returns {thing is AvailableLanguageTag}
13
- */
14
- export function isAvailableLanguageTag(thing: any): thing is AvailableLanguageTag;
15
- /**
16
- * The project's source language tag.
17
- *
18
- * @example
19
- * if (newlySelectedLanguageTag === sourceLanguageTag){
20
- * // do nothing as the source language tag is the default language
21
- * return
22
- * }
23
- */
24
- export const sourceLanguageTag: "en";
25
- /**
26
- * The project's available language tags.
27
- *
28
- * @example
29
- * if (availableLanguageTags.includes(userSelectedLanguageTag) === false){
30
- * throw new Error("Language tag not available")
31
- * }
32
- */
33
- export const availableLanguageTags: readonly ["en"];
34
- /**
35
- * Get the current language tag.
36
- *
37
- * @example
38
- * if (languageTag() === "de"){
39
- * console.log("Germany 🇩🇪")
40
- * } else if (languageTag() === "nl"){
41
- * console.log("Netherlands 🇳🇱")
42
- * }
43
- *
44
- * @type {() => AvailableLanguageTag}
45
- */
46
- export let languageTag: () => AvailableLanguageTag;
47
- export function setLanguageTag(tag: AvailableLanguageTag | (() => AvailableLanguageTag)): void;
48
- export function onSetLanguageTag(fn: (languageTag: AvailableLanguageTag) => void): void;
49
- /**
50
- * A language tag that is available in the project.
51
- */
52
- export type AvailableLanguageTag = (typeof availableLanguageTags)[number];