@open-slide/core 2.0.0 → 2.1.0
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-Cu5_qRyE.js → build-COxfoC_P.js} +1 -1
- package/dist/cli/bin.js +105 -15
- package/dist/{config-BQ6rD2iE.js → config-CNhYSo4C.js} +79 -896
- package/dist/{config-GMR1QUlM.d.ts → config-DHPbCCnt.d.ts} +1 -1
- package/dist/{dev-BK641O5e.js → dev-CujpTS3T.js} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -3
- package/dist/locale/index.d.ts +5 -2
- package/dist/locale/index.js +2 -2
- package/dist/{preview-BuCI-RMW.js → preview-kU5R6QXJ.js} +1 -1
- package/dist/{types-BcbaKTNY.d.ts → types-BGUi9COY.d.ts} +1 -1
- package/dist/update-CPBitJQq.js +905 -0
- package/dist/vite/index.d.ts +1 -1
- package/dist/vite/index.js +1 -1
- package/dist/{zh-tw-DlZoAc2-.js → zh-tw-BbFb4PZW.js} +519 -1
- package/package.json +4 -4
- package/skills/apply-comments/SKILL.md +1 -0
- package/skills/create-slide/SKILL.md +2 -0
- package/skills/current-slide/SKILL.md +1 -0
- package/skills/slide-authoring/SKILL.md +31 -1
- package/src/app/app.tsx +2 -0
- package/src/app/assets/open-slide.svg +39 -0
- package/src/app/components/command/command-menu.tsx +1 -3
- package/src/app/components/history-provider.tsx +25 -3
- package/src/app/components/inspector/inspector-provider.tsx +179 -21
- package/src/app/components/panel/editor-sidebar.tsx +1 -1
- package/src/app/components/panel/save-card.tsx +6 -2
- package/src/app/components/preview-step-host.tsx +16 -0
- package/src/app/components/sidebar/sidebar.tsx +2 -2
- package/src/app/components/slide-transition-layer.tsx +1 -1
- package/src/app/components/style-panel/style-panel.tsx +3 -2
- package/src/app/components/thumbnail-rail.tsx +37 -0
- package/src/app/favicon.ico +0 -0
- package/src/app/favicon.svg +39 -0
- package/src/app/index.html +2 -1
- package/src/app/lib/keys.ts +3 -0
- package/src/app/lib/locale-store.ts +6 -1
- package/src/app/lib/print-ready.ts +9 -6
- package/src/app/routes/presenter.tsx +1 -16
- package/src/app/routes/preview.tsx +169 -0
- package/src/app/routes/slide.tsx +113 -65
- package/src/locale/es.ts +548 -0
- package/src/locale/index.ts +1 -0
- package/src/locale/types.ts +1 -1
- package/src/app/assets/open-slide.png +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as printUrls, i as printShortcutsHint, n as formatError, o as shortcutsEnabled, r as printHeader, s as startupDuration, t as createCliLogger } from "./cli/bin.js";
|
|
2
|
-
import { n as DEV_SUPERVISED_ENV, t as createViteConfig } from "./config-
|
|
2
|
+
import { n as DEV_SUPERVISED_ENV, t as createViteConfig } from "./config-CNhYSo4C.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { existsSync } from "node:fs";
|
|
5
5
|
import { fork } from "node:child_process";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as Plural, t as Locale } from "./types-
|
|
2
|
-
import { t as OpenSlideConfig } from "./config-
|
|
1
|
+
import { n as Plural, t as Locale } from "./types-BGUi9COY.js";
|
|
2
|
+
import { t as OpenSlideConfig } from "./config-DHPbCCnt.js";
|
|
3
3
|
import { CSSProperties, ComponentType, HTMLAttributes, PropsWithChildren, ReactNode } from "react";
|
|
4
4
|
//#region src/app/components/image-placeholder.d.ts
|
|
5
5
|
type ImagePlaceholderProps = {
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as en, i as es, n as zhCN, r as ja, t as zhTW } from "./zh-tw-BbFb4PZW.js";
|
|
2
2
|
import { n as defaultDesign, r as designToCssVars, t as cssVarsToString } from "./design-Cpqx7SJs.js";
|
|
3
3
|
import { Children, cloneElement, createContext, isValidElement, useCallback, useContext, useEffect, useLayoutEffect, useRef, useState, useSyncExternalStore } from "react";
|
|
4
4
|
import { toast } from "sonner";
|
|
@@ -85,12 +85,13 @@ const LOCALES = {
|
|
|
85
85
|
en,
|
|
86
86
|
"zh-TW": zhTW,
|
|
87
87
|
"zh-CN": zhCN,
|
|
88
|
-
ja
|
|
88
|
+
ja,
|
|
89
|
+
es
|
|
89
90
|
};
|
|
90
91
|
const STORAGE_KEY = "open-slide:locale";
|
|
91
92
|
const configLocale = config.locale;
|
|
92
93
|
function isLocaleId(value) {
|
|
93
|
-
return value === "en" || value === "zh-TW" || value === "zh-CN" || value === "ja";
|
|
94
|
+
return value === "en" || value === "zh-TW" || value === "zh-CN" || value === "ja" || value === "es";
|
|
94
95
|
}
|
|
95
96
|
function readStored() {
|
|
96
97
|
try {
|
package/dist/locale/index.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { n as Plural, t as Locale } from "../types-
|
|
1
|
+
import { n as Plural, t as Locale } from "../types-BGUi9COY.js";
|
|
2
2
|
//#region src/locale/en.d.ts
|
|
3
3
|
declare const en: Locale;
|
|
4
4
|
//#endregion
|
|
5
|
+
//#region src/locale/es.d.ts
|
|
6
|
+
declare const es: Locale;
|
|
7
|
+
//#endregion
|
|
5
8
|
//#region src/locale/format.d.ts
|
|
6
9
|
declare function format(template: string, vars: Record<string, string | number>): string;
|
|
7
10
|
declare function plural(count: number, forms: Plural): string;
|
|
@@ -15,4 +18,4 @@ declare const zhCN: Locale;
|
|
|
15
18
|
//#region src/locale/zh-tw.d.ts
|
|
16
19
|
declare const zhTW: Locale;
|
|
17
20
|
//#endregion
|
|
18
|
-
export { type Locale, type Plural, en, format, ja, plural, zhCN, zhTW };
|
|
21
|
+
export { type Locale, type Plural, en, es, format, ja, plural, zhCN, zhTW };
|
package/dist/locale/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as en, i as es, n as zhCN, r as ja, t as zhTW } from "../zh-tw-BbFb4PZW.js";
|
|
2
2
|
//#region src/locale/format.ts
|
|
3
3
|
function format(template, vars) {
|
|
4
4
|
return template.replace(/\{(\w+)\}/g, (m, key) => {
|
|
@@ -10,4 +10,4 @@ function plural(count, forms) {
|
|
|
10
10
|
return count === 1 ? forms.one : forms.other;
|
|
11
11
|
}
|
|
12
12
|
//#endregion
|
|
13
|
-
export { en, format, ja, plural, zhCN, zhTW };
|
|
13
|
+
export { en, es, format, ja, plural, zhCN, zhTW };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as printUrls, i as printShortcutsHint, o as shortcutsEnabled, r as printHeader, s as startupDuration, t as createCliLogger } from "./cli/bin.js";
|
|
2
|
-
import { t as createViteConfig } from "./config-
|
|
2
|
+
import { t as createViteConfig } from "./config-CNhYSo4C.js";
|
|
3
3
|
import { mergeConfig, preview as preview$1 } from "vite";
|
|
4
4
|
//#region src/cli/preview.ts
|
|
5
5
|
async function preview(opts = {}) {
|