Skip to content

Commit 5adac6e

Browse files
authored
chore: upgrade mono and fix path mapping in declaration (#2)
1 parent 07b72fb commit 5adac6e

14 files changed

Lines changed: 263 additions & 261 deletions

File tree

Taskfile.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,3 @@ tasks:
3939
- task: build
4040
- task: doc
4141
- pnpm publish --access public
42-
43-

package.json

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"name": "@pistonite/celera",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"type": "module",
5+
"private": true,
56
"description": "In-house UI framework",
67
"homepage": "https://github.com/Pistonite/celera",
78
"bugs": {
@@ -13,25 +14,41 @@
1314
"dist/**/*",
1415
"src/**/*"
1516
],
16-
"exports": "./dist/index.js",
17-
"types": "./dist/_dts_/src/index.d.ts",
17+
"pistonight/mono-dev": {
18+
"lib": true,
19+
"publish": true
20+
},
21+
"exports": {
22+
".": {
23+
"import": "./dist/index.js",
24+
"types": "./dist/_dts_/src/index.d.ts"
25+
}
26+
},
1827
"repository": {
1928
"type": "git",
2029
"url": "git+https://github.com/Pistonite/celera.git"
2130
},
2231
"devDependencies": {
2332
"@types/react": "^19.2.14",
2433
"eslint": "^9",
25-
"mono-dev": "github:pistonight/mono-dev#main"
34+
"mono-dev": "github:Pistonight/mono-dev#dist"
2635
},
2736
"peerDependencies": {
2837
"@fluentui/react-components": "^9",
2938
"@fluentui/react-icons": "^2",
3039
"react": "^19"
3140
},
3241
"dependencies": {
33-
"@pistonite/pure": "^0.29.4",
34-
"i18next": "^26.0.6",
42+
"@pistonite/pure": "^0.29.5",
43+
"i18next": "^26.0.8",
3544
"react-i18next": "^17.0.4"
45+
},
46+
"imports": {
47+
"#components": "./src/components/index.ts",
48+
"#hooks": "./src/hooks/index.ts",
49+
"#i18n": "./src/i18n/index.ts",
50+
"#pref": "./src/pref/index.ts",
51+
"#style": "./src/style/index.ts",
52+
"#util": "./src/util/index.ts"
3653
}
3754
}

pnpm-lock.yaml

Lines changed: 221 additions & 233 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/dark_toggle.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Button, Tooltip } from "@fluentui/react-components";
22
import { WeatherMoon20Regular, WeatherSunny20Regular } from "@fluentui/react-icons";
33

4-
import { useDark, setDark } from "self::pref";
5-
import { CELERA_NAMESPACE, useTranslation } from "self::i18n";
4+
import { useDark, setDark } from "#pref";
5+
import { CELERA_NAMESPACE, useTranslation } from "#i18n";
66

77
import { MenuSwitch } from "./menu_switch.tsx";
88

src/components/github_link.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Button, MenuItem } from "@fluentui/react-components";
22

3-
import { useDark } from "self::pref";
3+
import { useDark } from "#pref";
44

55
import GithubMark from "../assets/github-mark.svg";
66
import GithubMarkWhite from "../assets/github-mark-white.svg";

src/components/language_picker.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ import {
99
Tooltip,
1010
} from "@fluentui/react-components";
1111
import { Globe20Regular } from "@fluentui/react-icons";
12+
1213
import {
1314
CELERA_NAMESPACE,
1415
getLocalizedLanguageName,
1516
getSupportedLocales,
1617
setLocale,
1718
useLocale,
1819
useTranslation,
19-
} from "self::i18n";
20-
21-
import type { CommonProps } from "self::util";
20+
} from "#i18n";
21+
import type { CommonProps } from "#util";
2222

2323
/**
2424
* React component for a language picker button or menu

src/env.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
/// <reference lib="dom" />
2-
/// <reference lib="dom.iterable" />
3-
/// <reference types="mono-dev/vite-types" />
2+
/// <reference types="mono-dev/app-types" />

src/hooks/scroll.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useCallback, useEffect, useRef, useState, type RefObject } from "react";
22

3-
import { log } from "self::util";
3+
import { log } from "#util";
44

55
// These are random values I picked that felt good
66
const MAX_SPEED = 200;

src/i18n/backend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { BackendModule } from "i18next";
33
import { convertToSupportedLocale } from "./state.ts";
44
import type { LoadLanguageFn } from "./types.ts";
55

6-
import { log } from "self::util";
6+
import { log } from "#util";
77

88
/** Create an i18next backend module given the loader functions */
99
export const createBackend = (

src/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ export {
1010
type MenuSwitchProps,
1111
type ResizeLayoutProps,
1212
type ResizeLayoutOwnProps,
13-
} from "self::components";
14-
export { useSwappedWheelScrollDirection } from "self::hooks";
13+
} from "#components";
14+
export { useSwappedWheelScrollDirection } from "#hooks";
1515

1616
export {
1717
useLocale,
@@ -33,7 +33,7 @@ export {
3333
type LocaleOptions,
3434
type LoadLanguageFn,
3535
type TranslatorFn,
36-
} from "self::i18n";
36+
} from "#i18n";
3737

3838
export {
3939
prefersDarkMode,
@@ -51,9 +51,9 @@ export {
5151
addDisplayModeSubscriber,
5252
getDisplayMode,
5353
type DisplayModeOptions,
54-
} from "self::pref";
54+
} from "#pref";
5555

56-
export { gale, GALE_BUILTIN_STYLES, injectStyle, ThemeProvider } from "self::style";
56+
export { gale, GALE_BUILTIN_STYLES, injectStyle, ThemeProvider } from "#style";
5757

58-
import { log } from "self::util";
58+
import { log } from "#util";
5959
export { log as celeraLogger };

0 commit comments

Comments
 (0)