@minus-ai/create-skill 0.1.0-windows-canary.1 → 0.1.0-windows-canary.3

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@minus-ai/create-skill",
3
- "version": "0.1.0-windows-canary.1",
3
+ "version": "0.1.0-windows-canary.3",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "create-skill": "index.mjs"
@@ -4,7 +4,6 @@ import { FlowApp, I18nProvider, mergeMessages, useT, type StepConfig } from '@mi
4
4
  import { AmazonSearchBar, CountrySelect, SearchSubmitButton, validateAsins, platformWidgetMessages } from '@minus/platform-widgets';
5
5
  import { Toaster } from 'sonner';
6
6
  import zhCN from './locales/zh-CN.json';
7
- import enUS from './locales/en-US.json';
8
7
 
9
8
  /*
10
9
  * 防御性编码提示(适用于所有 step render 函数):
@@ -71,7 +70,7 @@ function Home({ title, description, useCases, tags, onStart }: { title: string;
71
70
  const rootEl = document.getElementById('root');
72
71
  if (!rootEl) throw new Error('#root not found');
73
72
 
74
- const skillMessages = mergeMessages(platformWidgetMessages, { 'zh-CN': zhCN as Record<string, string>, 'en-US': enUS as Record<string, string> });
73
+ const skillMessages = mergeMessages(platformWidgetMessages, { 'zh-CN': zhCN as Record<string, string> });
75
74
 
76
75
  function SkillRoot() {
77
76
  const t = useT();
@@ -4,7 +4,6 @@ import { FlowApp, I18nProvider, mergeMessages, useT, type StepConfig } from '@mi
4
4
  import { platformWidgetMessages } from '@minus/platform-widgets';
5
5
  import { Toaster } from 'sonner';
6
6
  import zhCN from './locales/zh-CN.json';
7
- import enUS from './locales/en-US.json';
8
7
 
9
8
  /*
10
9
  * 防御性编码提示(适用于所有 step render 函数):
@@ -68,7 +67,7 @@ function Home({ title, description, useCases, tags, onStart }: { title: string;
68
67
  const rootEl = document.getElementById('root');
69
68
  if (!rootEl) throw new Error('#root not found');
70
69
 
71
- const skillMessages = mergeMessages(platformWidgetMessages, { 'zh-CN': zhCN as Record<string, string>, 'en-US': enUS as Record<string, string> });
70
+ const skillMessages = mergeMessages(platformWidgetMessages, { 'zh-CN': zhCN as Record<string, string> });
72
71
 
73
72
  function SkillRoot() {
74
73
  const t = useT();
@@ -4,7 +4,6 @@ import { FlowApp, I18nProvider, mergeMessages, useT, type StepConfig } from '@mi
4
4
  import { CompletionPanel, platformWidgetMessages } from '@minus/platform-widgets';
5
5
  import { Toaster } from 'sonner';
6
6
  import zhCN from './locales/zh-CN.json';
7
- import enUS from './locales/en-US.json';
8
7
 
9
8
  /*
10
9
  * 防御性编码提示(适用于所有 step render 函数):
@@ -61,7 +60,7 @@ if (!rootEl) throw new Error('#root not found');
61
60
 
62
61
  const skillMessages = mergeMessages(
63
62
  platformWidgetMessages,
64
- { 'zh-CN': zhCN as Record<string, string>, 'en-US': enUS as Record<string, string> },
63
+ { 'zh-CN': zhCN as Record<string, string> },
65
64
  );
66
65
 
67
66
  function SkillRoot() {
@@ -4,7 +4,6 @@ import { FlowApp, I18nProvider, mergeMessages, useT, type StepConfig } from '@mi
4
4
  import { FilePicker, uploadFile, platformWidgetMessages } from '@minus/platform-widgets';
5
5
  import { Toaster } from 'sonner';
6
6
  import zhCN from './locales/zh-CN.json';
7
- import enUS from './locales/en-US.json';
8
7
 
9
8
  /*
10
9
  * 防御性编码提示(适用于所有 step render 函数):
@@ -79,7 +78,7 @@ function Home({ title, description, useCases, tags, onStart }: { title: string;
79
78
  const rootEl = document.getElementById('root');
80
79
  if (!rootEl) throw new Error('#root not found');
81
80
 
82
- const skillMessages = mergeMessages(platformWidgetMessages, { 'zh-CN': zhCN as Record<string, string>, 'en-US': enUS as Record<string, string> });
81
+ const skillMessages = mergeMessages(platformWidgetMessages, { 'zh-CN': zhCN as Record<string, string> });
83
82
 
84
83
  function SkillRoot() {
85
84
  const t = useT();
@@ -4,7 +4,6 @@ import { FlowApp, I18nProvider, mergeMessages, useT, type StepConfig } from '@mi
4
4
  import { AmazonSearchBar, CountrySelect, SearchSubmitButton, validateKeywords, platformWidgetMessages } from '@minus/platform-widgets';
5
5
  import { Toaster } from 'sonner';
6
6
  import zhCN from './locales/zh-CN.json';
7
- import enUS from './locales/en-US.json';
8
7
 
9
8
  /*
10
9
  * 防御性编码提示(适用于所有 step render 函数):
@@ -71,7 +70,7 @@ function Home({ title, description, useCases, tags, onStart }: { title: string;
71
70
  const rootEl = document.getElementById('root');
72
71
  if (!rootEl) throw new Error('#root not found');
73
72
 
74
- const skillMessages = mergeMessages(platformWidgetMessages, { 'zh-CN': zhCN as Record<string, string>, 'en-US': enUS as Record<string, string> });
73
+ const skillMessages = mergeMessages(platformWidgetMessages, { 'zh-CN': zhCN as Record<string, string> });
75
74
 
76
75
  function SkillRoot() {
77
76
  const t = useT();
@@ -4,7 +4,6 @@ import { FlowApp, I18nProvider, mergeMessages, useT, type StepConfig, type StepR
4
4
  import { AmazonSearchBar, CompletionPanel, CountrySelect, SearchSubmitButton, validateAsins, validateKeywords, platformWidgetMessages } from '@minus/platform-widgets';
5
5
  import { Toaster } from 'sonner';
6
6
  import zhCN from './locales/zh-CN.json';
7
- import enUS from './locales/en-US.json';
8
7
 
9
8
  type InputType = 'keyword' | 'asin';
10
9
 
@@ -146,7 +145,7 @@ if (!rootEl) throw new Error('#root not found');
146
145
 
147
146
  const skillMessages = mergeMessages(
148
147
  platformWidgetMessages,
149
- { 'zh-CN': zhCN as Record<string, string>, 'en-US': enUS as Record<string, string> },
148
+ { 'zh-CN': zhCN as Record<string, string> },
150
149
  );
151
150
 
152
151
  function SkillRoot() {