@my-games/sudoku-vue 0.0.0-stage → 0.0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 xyj2156
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,27 @@
1
- # Temporary Holding Version
1
+ # @my-games/sudoku-vue
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ > 数独的 Vue 3 组件适配器。**当前为 `0.0.0` 占位版本**,`GameSudoku` 仅渲染占位文案。
4
+
5
+ ```bash
6
+ pnpm add @my-games/sudoku-vue vue
7
+ ```
8
+
9
+ ```vue
10
+ <script setup lang="ts">
11
+ import { GameSudoku } from '@my-games/sudoku-vue';
12
+ import '@my-games/sudoku-vue/style.css';
13
+ </script>
14
+
15
+ <template>
16
+ <GameSudoku title="Sudoku" />
17
+ </template>
18
+ ```
19
+
20
+ **样式需显式引入**:vite lib build 把内部 CSS import 抽到 `dist/index.css`。
21
+ 真实棋盘组件与 `useGame()` composable 随引擎后续提交补入。
22
+
23
+ 完整说明见仓库根 README:<https://github.com/my-gam/sudoku#readme>
24
+
25
+ ## License
26
+
27
+ MIT.
@@ -0,0 +1,9 @@
1
+ interface Props {
2
+ title?: string;
3
+ }
4
+ declare const __VLS_export: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
5
+ title: string;
6
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ //# sourceMappingURL=GameSudoku.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GameSudoku.vue.d.ts","sourceRoot":"","sources":["../src/GameSudoku.vue"],"names":[],"mappings":"AAqBA,OAAO,iCAAiC,CAAC;AAGzC,UAAU,KAAK;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AA2BD,QAAA,MAAM,YAAY;;6EAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
package/dist/index.css ADDED
@@ -0,0 +1,18 @@
1
+ /*
2
+ * @my-games/sudoku-core —— 0.0.0 占位样式表(单数命名 ./style.css)。
3
+ *
4
+ * 空骨架阶段只放最小基类,保证三包各自构建能产出非空 dist/index.css
5
+ * (verify:dist 守卫要求 vue/react 的 index.css 存在且非 0 字节)。
6
+ * 真实棋盘样式(3×3 宫格布局、题面/用户/冲突配色、铅笔笔记迷你格)随引擎补入。
7
+ */
8
+
9
+ .game-sudoku {
10
+ display: inline-flex;
11
+ flex-direction: column;
12
+ gap: 8px;
13
+ font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
14
+ color: #1f2d3d;
15
+ user-select: none;
16
+ -webkit-tap-highlight-color: transparent;
17
+ }
18
+ /*$vite$:1*/
@@ -0,0 +1,4 @@
1
+ export { default as GameSudoku } from './GameSudoku.vue';
2
+ export declare const SUDOKU_PACKAGE: "sudoku-vue";
3
+ export declare const SUDOKU_STAGE: "0.0.0";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEzD,eAAO,MAAM,cAAc,EAAG,YAAqB,CAAC;AACpD,eAAO,MAAM,YAAY,EAAG,OAAgB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,19 @@
1
+ import { createElementBlock, createElementVNode, defineComponent, openBlock, toDisplayString } from "vue";
2
+ // src/GameSudoku.vue?vue&type=script&setup=true&lang.ts
3
+ var _hoisted_1 = { class: "game-sudoku" };
4
+ // src/GameSudoku.vue
5
+ var GameSudoku_default = /* @__PURE__ */ defineComponent({
6
+ __name: "GameSudoku",
7
+ props: { title: { default: "Sudoku" } },
8
+ setup(__props) {
9
+ return (_ctx, _cache) => {
10
+ return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("p", null, toDisplayString(__props.title) + " · Vue 占位组件(0.0.0)。真实棋盘随引擎后续提交补入。", 1)]);
11
+ };
12
+ }
13
+ });
14
+ // src/index.ts
15
+ var SUDOKU_PACKAGE = "sudoku-vue";
16
+ var SUDOKU_STAGE = "0.0.0";
17
+ export { GameSudoku_default as GameSudoku, SUDOKU_PACKAGE, SUDOKU_STAGE };
18
+
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["_openBlock","_createElementBlock","_createElementVNode","_toDisplayString","_sfc_main"],"sources":["../src/GameSudoku.vue","../src/GameSudoku.vue","../src/index.ts"],"sourcesContent":["<script setup lang=\"ts\">\n// 0.0.0 空骨架占位组件:仅 import core 样式以让 vite lib build 抽出非空\n// dist/index.css(verify:dist 守卫要求)。真实棋盘/键盘输入/触摸/提示 UI 随引擎补入。\nimport '@my-games/sudoku-core/style.css';\n\ninterface Props {\n title?: string;\n}\nwithDefaults(defineProps<Props>(), { title: 'Sudoku' });\n</script>\n\n<template>\n <div class=\"game-sudoku\">\n <p>{{ title }} · Vue 占位组件(0.0.0)。真实棋盘随引擎后续提交补入。</p>\n </div>\n</template>\n","<script setup lang=\"ts\">\n// 0.0.0 空骨架占位组件:仅 import core 样式以让 vite lib build 抽出非空\n// dist/index.css(verify:dist 守卫要求)。真实棋盘/键盘输入/触摸/提示 UI 随引擎补入。\nimport '@my-games/sudoku-core/style.css';\n\ninterface Props {\n title?: string;\n}\nwithDefaults(defineProps<Props>(), { title: 'Sudoku' });\n</script>\n\n<template>\n <div class=\"game-sudoku\">\n <p>{{ title }} · Vue 占位组件(0.0.0)。真实棋盘随引擎后续提交补入。</p>\n </div>\n</template>\n","export { default as GameSudoku } from './GameSudoku.vue';\n\nexport const SUDOKU_PACKAGE = 'sudoku-vue' as const;\nexport const SUDOKU_STAGE = '0.0.0' as const;\n"],"mappings":";;;;;;;;;GAYE,OAAAA,UAAA,GAAAC,mBAEM,OAFN,YAEM,CADJC,mBAAmD,KAAA,MAAAC,gBAA7C,QAAA,KAAK,IAAG,qCAAiC,CAAA,C;;;;;AEXnD,IAAa,iBAAiB;AAC9B,IAAa,eAAe"}
package/package.json CHANGED
@@ -1,6 +1,75 @@
1
1
  {
2
2
  "name": "@my-games/sudoku-vue",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.0.0",
4
+ "description": "Vue 3 SFC adapter for the @my-games/sudoku-core game engine — Composition API, mobile-ready, with a backtracking solver hint hook. 数独的 Vue 3 组件适配器。",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ },
14
+ "./style.css": "./dist/index.css",
15
+ "./package.json": "./package.json"
16
+ },
17
+ "files": [
18
+ "dist",
19
+ "src",
20
+ "README.md"
21
+ ],
22
+ "sideEffects": false,
23
+ "peerDependencies": {
24
+ "vue": "^3.4.0"
25
+ },
26
+ "dependencies": {
27
+ "@my-games/sudoku-core": "0.0.0"
28
+ },
29
+ "devDependencies": {
30
+ "@vitejs/plugin-vue": "^6.0.10",
31
+ "@vue/language-core": "^3.3.13",
32
+ "typescript": "^7.0.2",
33
+ "vite": "^8.3.5",
34
+ "vite-plugin-dts": "^5.1.2",
35
+ "vue": "^3.5.44"
36
+ },
37
+ "engines": {
38
+ "node": ">=18"
39
+ },
40
+ "keywords": [
41
+ "sudoku",
42
+ "vue",
43
+ "vue3",
44
+ "vue-component",
45
+ "sfc",
46
+ "composition-api",
47
+ "game",
48
+ "puzzle",
49
+ "h5",
50
+ "mobile-web",
51
+ "solver",
52
+ "generator"
53
+ ],
54
+ "license": "MIT",
55
+ "author": {
56
+ "name": "xyj2156"
57
+ },
58
+ "repository": {
59
+ "type": "git",
60
+ "url": "git+https://github.com/my-gam/sudoku.git",
61
+ "directory": "packages/vue"
62
+ },
63
+ "homepage": "https://github.com/my-gam/sudoku/tree/main/packages/vue#readme",
64
+ "bugs": {
65
+ "url": "https://github.com/my-gam/sudoku/issues"
66
+ },
67
+ "publishConfig": {
68
+ "access": "public"
69
+ },
70
+ "scripts": {
71
+ "build": "vite build --mode lib",
72
+ "dev": "vite build --mode lib --watch",
73
+ "typecheck": "tsc --noEmit -p tsconfig.json"
74
+ }
6
75
  }
@@ -0,0 +1,16 @@
1
+ <script setup lang="ts">
2
+ // 0.0.0 空骨架占位组件:仅 import core 样式以让 vite lib build 抽出非空
3
+ // dist/index.css(verify:dist 守卫要求)。真实棋盘/键盘输入/触摸/提示 UI 随引擎补入。
4
+ import '@my-games/sudoku-core/style.css';
5
+
6
+ interface Props {
7
+ title?: string;
8
+ }
9
+ withDefaults(defineProps<Props>(), { title: 'Sudoku' });
10
+ </script>
11
+
12
+ <template>
13
+ <div class="game-sudoku">
14
+ <p>{{ title }} · Vue 占位组件(0.0.0)。真实棋盘随引擎后续提交补入。</p>
15
+ </div>
16
+ </template>
package/src/index.ts ADDED
@@ -0,0 +1,4 @@
1
+ export { default as GameSudoku } from './GameSudoku.vue';
2
+
3
+ export const SUDOKU_PACKAGE = 'sudoku-vue' as const;
4
+ export const SUDOKU_STAGE = '0.0.0' as const;