Skip to content

Commit 0e79e30

Browse files
committed
Merge branch 'main' into formkit-nuxt
# Conflicts: # package.json # pnpm-lock.yaml
2 parents 6ee99eb + 5721a59 commit 0e79e30

File tree

4 files changed

+41
-18
lines changed

4 files changed

+41
-18
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
11
# Changelog
22

33

4+
## v1.1.7
5+
6+
[compare changes](https://github.com/sfxcode/formkit-primevue-nuxt/compare/v1.1.6...v1.1.7)
7+
8+
### 🚀 Enhancements
9+
10+
- **module:** AutoImport FormKit Vue components ([099bb97](https://github.com/sfxcode/formkit-primevue-nuxt/commit/099bb97))
11+
12+
### 📖 Documentation
13+
14+
- Add Link to sfxcode/formkit-primevue ([c9a386e](https://github.com/sfxcode/formkit-primevue-nuxt/commit/c9a386e))
15+
16+
### 🏡 Chore
17+
18+
- **dependencies:** Update to formkit/primevue 2.6.7 ([e629007](https://github.com/sfxcode/formkit-primevue-nuxt/commit/e629007))
19+
20+
### ❤️ Contributors
21+
22+
- Sfxcode ([@sfxcode](http://github.com/sfxcode))
23+
424
## v1.1.6
525

626
[compare changes](https://github.com/sfxcode/formkit-primevue-nuxt/compare/v1.1.5...v1.1.6)

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sfxcode/formkit-primevue-nuxt",
3-
"version": "1.1.6",
3+
"version": "1.1.7",
44
"description": "FormKit PrimeVue nuxt module",
55
"homepage": "https://github.com/sfxcode/formkit-primevue-nuxt",
66
"repository": "https://github.com/sfxcode/formkit-primevue-nuxt",
@@ -37,19 +37,20 @@
3737
"@nuxt/kit": "^3.14.159",
3838
"@nuxtjs/i18n": "^8.5.6",
3939
"@primevue/nuxt-module": "^4.2.2",
40+
"@sfxcode/formkit-primevue": "^2.6.7"
4041
"@formkit/nuxt": "^1.6.9",
4142
"@sfxcode/formkit-primevue": "^2.6.6"
4243
},
4344
"devDependencies": {
4445
"@nuxt/devtools": "^1.6.0",
45-
"@nuxt/eslint-config": "^0.6.1",
46+
"@nuxt/eslint-config": "^0.7.0",
4647
"@nuxt/module-builder": "^0.8.4",
4748
"@nuxt/schema": "^3.14.159",
4849
"@nuxt/test-utils": "^3.14.4",
4950
"@primevue/themes": "^4.2.2",
5051
"@types/node": "latest",
5152
"changelogen": "^0.5.7",
52-
"eslint": "^9.14.0",
53+
"eslint": "9.14.0",
5354
"nuxt": "^3.14.159",
5455
"typescript": "latest",
5556
"vitest": "^2.1.5",

playground/app.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const schema = reactive(
5858
},
5959
{
6060
$formkit: 'primeDatePicker',
61-
name: 'myDatePicker',
61+
name: 'myCalendar',
6262
label: 'Date Picker',
6363
validation: '',
6464
showIcon: true,

src/module.ts

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -51,30 +51,32 @@ export default defineNuxtModule<ModuleOptions>({
5151
}
5252
_nuxt.options.css = css
5353

54-
const names = [
55-
'useFormKitSchema',
56-
'useFormKitRepeater',
57-
'useInputEditor',
58-
'useInputEditorSchema',
59-
]
60-
6154
const NPM_PCK_FORMKIT_PRIMEVUE = '@sfxcode/formkit-primevue'
6255

63-
names.forEach(name =>
56+
const composableNames = ['useFormKitSchema', 'useFormKitRepeater', 'useInputEditor', 'useInputEditorSchema']
57+
composableNames.forEach(name =>
6458
addImports({ name, as: name, from: NPM_PCK_FORMKIT_PRIMEVUE }),
6559
)
6660

67-
const componentNames = [
68-
'FormKitDataEdit',
69-
'FormKitDataView',
70-
'FormKitDataDebug',
71-
]
72-
61+
const componentNames = ['FormKitDataEdit', 'FormKitDataView', 'FormKitDataDebug']
7362
componentNames.forEach(name =>
7463
addComponent({
7564
name,
7665
export: name,
7766
filePath: NPM_PCK_FORMKIT_PRIMEVUE,
67+
chunkName: NPM_PCK_FORMKIT_PRIMEVUE,
68+
}),
69+
)
70+
71+
const NPM_PCK_FORMKIT = '@formkit/vue'
72+
73+
const formKitComponentNames = ['FormKit', 'FormKitProvider', 'FormKitMessages', 'FormKitSummary', 'FormKitSchema']
74+
formKitComponentNames.forEach(name =>
75+
addComponent({
76+
name,
77+
export: name,
78+
filePath: NPM_PCK_FORMKIT,
79+
chunkName: NPM_PCK_FORMKIT,
7880
}),
7981
)
8082
},

0 commit comments

Comments
 (0)