create-sonamu 0.0.4 → 0.0.6

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": "create-sonamu",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "Create a new Sonamu project",
5
5
  "keywords": [
6
6
  "sonamu",
@@ -8,6 +8,7 @@
8
8
  "scripts": {
9
9
  "dev": "sonamu dev",
10
10
  "build": "sonamu build",
11
+ "postinstall": "sonamu skills sync",
11
12
  "start": "sonamu start",
12
13
  "test": "vitest run",
13
14
  "test:watch": "vitest watch --standalone",
@@ -37,7 +38,7 @@
37
38
  "knex": "^3.1.0",
38
39
  "pg": "^8.16.3",
39
40
  "radashi": "^12.2.0",
40
- "sonamu": "^0.7.45",
41
+ "sonamu": "^0.7.48",
41
42
  "zod": "^4.1.12"
42
43
  },
43
44
  "devDependencies": {
@@ -8,6 +8,7 @@
8
8
  "scripts": {
9
9
  "dev": "sonamu dev",
10
10
  "build": "sonamu build",
11
+ "postinstall": "sonamu skills sync",
11
12
  "start": "sonamu start",
12
13
  "test": "vitest run",
13
14
  "test:watch": "vitest watch --standalone",
@@ -29,8 +29,11 @@ export function createSonamuConfig(): SonamuContextValue<EmptyDictionary> {
29
29
  return [];
30
30
  };
31
31
 
32
- // SD configuration - returns key as-is until i18n is set up
33
- const sd_config = (key: string): any => key;
32
+ // SD configuration - returns a function until i18n is set up
33
+ // Components like Pagination call SD("key")(args), so we must return a function
34
+ const sd_config = (key: string): any => {
35
+ return (..._args: any[]) => key;
36
+ };
34
37
 
35
38
  return { auth: auth_config, uploader: uploader_config, SD: sd_config };
36
39
  }
@@ -51,13 +51,4 @@ export default {
51
51
  `${field} must be at least ${min} characters`,
52
52
  "validation.required": (field: string) => `${field} is required`,
53
53
  "validation.url": "Invalid URL format",
54
- // components
55
- "component.asyncSelect.loading": "Loading...",
56
- "component.asyncSelect.noOptions": "No options",
57
- "component.asyncSelect.noResults": "No results",
58
- "component.asyncSelect.selectPlaceholder": "Select",
59
- "component.datePicker.pickDate": "Pick a date",
60
- "component.datePicker.placeholder": "Pick a date",
61
- "component.fileInput.browseFiles": "Browse Files",
62
- "component.fileInput.dropZone": "Drag and drop files here or click to upload",
63
54
  };
@@ -49,13 +49,4 @@ export default {
49
49
  `${field}은(는) 최소 ${min}자 이상이어야 합니다`,
50
50
  "validation.required": (field: string) => `${josa(field, "은는")} 필수입니다`,
51
51
  "validation.url": "올바른 URL 형식이 아닙니다",
52
- // components
53
- "component.asyncSelect.loading": "로딩 중...",
54
- "component.asyncSelect.noOptions": "옵션이 없습니다",
55
- "component.asyncSelect.noResults": "결과가 없습니다",
56
- "component.asyncSelect.selectPlaceholder": "선택하세요",
57
- "component.datePicker.pickDate": "날짜 선택",
58
- "component.datePicker.placeholder": "날짜 선택",
59
- "component.fileInput.browseFiles": "파일 선택",
60
- "component.fileInput.dropZone": "파일을 드래그하여 업로드하거나 클릭하세요",
61
52
  };