@open-slide/core 1.0.4 → 1.0.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.
- package/dist/{build-DqfKmw9h.js → build-CoON6kTb.js} +1 -1
- package/dist/cli/bin.js +3 -3
- package/dist/{config-CN7J0RDO.js → config-Bxtztw-H.js} +373 -221
- package/dist/{config-DweCbRkQ.d.ts → config-D2y1AXaN.d.ts} +3 -0
- package/dist/{dev-jWxtWHAG.js → dev-IezNC17X.js} +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/locale/index.d.ts +24 -0
- package/dist/locale/index.js +1189 -0
- package/dist/{preview-CSA05Gfm.js → preview-BwYjtENY.js} +1 -1
- package/dist/types-BVvl_xup.d.ts +314 -0
- package/dist/vite/index.d.ts +2 -1
- package/dist/vite/index.js +1 -1
- package/package.json +7 -1
- package/src/app/app.tsx +6 -2
- package/src/app/components/asset-view.tsx +87 -64
- package/src/app/components/click-nav-zones.tsx +4 -2
- package/src/app/components/inspector/comment-widget.tsx +9 -7
- package/src/app/components/inspector/inspector-panel.tsx +68 -39
- package/src/app/components/inspector/inspector-provider.tsx +185 -58
- package/src/app/components/inspector/save-bar.tsx +6 -2
- package/src/app/components/panel/save-card.tsx +12 -9
- package/src/app/components/pdf-progress-toast.tsx +11 -4
- package/src/app/components/present/control-bar.tsx +17 -10
- package/src/app/components/present/help-overlay.tsx +18 -17
- package/src/app/components/present/overview-grid.tsx +6 -4
- package/src/app/components/sidebar/folder-item.tsx +16 -7
- package/src/app/components/sidebar/icon-picker.tsx +4 -2
- package/src/app/components/sidebar/sidebar.tsx +87 -25
- package/src/app/components/style-panel/style-panel.tsx +26 -18
- package/src/app/components/theme-toggle.tsx +7 -5
- package/src/app/components/thumbnail-rail.tsx +4 -2
- package/src/app/favicon.ico +0 -0
- package/src/app/lib/inspector/use-editor.ts +9 -7
- package/src/app/lib/use-locale.ts +20 -0
- package/src/app/routes/home.tsx +90 -45
- package/src/app/routes/presenter.tsx +45 -25
- package/src/app/routes/slide.tsx +37 -24
- package/src/app/styles.css +28 -0
- package/src/app/virtual.d.ts +4 -0
- package/src/locale/en.ts +303 -0
- package/src/locale/format.ts +12 -0
- package/src/locale/index.ts +6 -0
- package/src/locale/ja.ts +307 -0
- package/src/locale/types.ts +323 -0
- package/src/locale/zh-cn.ts +303 -0
- package/src/locale/zh-tw.ts +303 -0
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Locale } from "./types-BVvl_xup.js";
|
|
2
|
+
|
|
1
3
|
//#region src/config.d.ts
|
|
2
4
|
type OpenSlideBuildConfig = {
|
|
3
5
|
showSlideBrowser?: boolean;
|
|
@@ -7,6 +9,7 @@ type OpenSlideBuildConfig = {
|
|
|
7
9
|
type OpenSlideConfig = {
|
|
8
10
|
slidesDir?: string;
|
|
9
11
|
port?: number;
|
|
12
|
+
locale?: Locale;
|
|
10
13
|
build?: OpenSlideBuildConfig;
|
|
11
14
|
}; //#endregion
|
|
12
15
|
export { OpenSlideConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Locale, Plural } from "./types-BVvl_xup.js";
|
|
2
|
+
import { OpenSlideConfig } from "./config-D2y1AXaN.js";
|
|
2
3
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
4
|
import { CSSProperties, ComponentType, HTMLAttributes } from "react";
|
|
4
5
|
|
|
@@ -60,4 +61,4 @@ declare const CANVAS_WIDTH = 1920;
|
|
|
60
61
|
declare const CANVAS_HEIGHT = 1080;
|
|
61
62
|
|
|
62
63
|
//#endregion
|
|
63
|
-
export { CANVAS_HEIGHT, CANVAS_WIDTH, DesignFonts, DesignPalette, DesignSystem, DesignTypeScale, ImagePlaceholder, ImagePlaceholderProps, OpenSlideConfig, Page, SlideMeta, SlideModule, cssVarsToString, defaultDesign, designToCssVars };
|
|
64
|
+
export { CANVAS_HEIGHT, CANVAS_WIDTH, DesignFonts, DesignPalette, DesignSystem, DesignTypeScale, ImagePlaceholder, ImagePlaceholderProps, Locale, OpenSlideConfig, Page, Plural, SlideMeta, SlideModule, cssVarsToString, defaultDesign, designToCssVars };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Locale, Plural } from "../types-BVvl_xup.js";
|
|
2
|
+
|
|
3
|
+
//#region src/locale/en.d.ts
|
|
4
|
+
declare const en: Locale;
|
|
5
|
+
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/locale/format.d.ts
|
|
8
|
+
declare function format(template: string, vars: Record<string, string | number>): string;
|
|
9
|
+
declare function plural(count: number, forms: Plural): string;
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/locale/ja.d.ts
|
|
13
|
+
declare const ja: Locale;
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/locale/zh-cn.d.ts
|
|
17
|
+
declare const zhCN: Locale;
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/locale/zh-tw.d.ts
|
|
21
|
+
declare const zhTW: Locale;
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { Locale, Plural, en, format, ja, plural, zhCN, zhTW };
|