@ederzeel/nuxt-schema-form-nightly 0.1.0-28989865.c565459 → 0.1.0-28997862.98d468b
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/module.cjs +5 -0
- package/dist/module.d.mts +13 -0
- package/dist/module.d.ts +13 -0
- package/dist/module.json +13 -0
- package/dist/module.mjs +28 -0
- package/{src → dist}/runtime/components/SComponent.vue +6 -20
- package/dist/runtime/types/utils.d.ts +27 -0
- package/dist/runtime/types/utils.js +0 -0
- package/dist/types.d.mts +1 -0
- package/dist/types.d.ts +1 -0
- package/package.json +13 -2
- package/.github/semantic.yml +0 -15
- package/.github/workflows/ci.yml +0 -79
- package/.github/workflows/release.yml +0 -62
- package/eslint.config.mjs +0 -73
- package/playground/app.vue +0 -5
- package/playground/assets/schema-custom.json +0 -111
- package/playground/assets/schema-easy.json +0 -16
- package/playground/assets/schema.json +0 -116
- package/playground/components/ColorMode.vue +0 -26
- package/playground/components/CustomInput.vue +0 -7
- package/playground/components/MultiStage.vue +0 -164
- package/playground/components/Stepper.vue +0 -63
- package/playground/nuxt.config.ts +0 -13
- package/playground/package.json +0 -8
- package/playground/pages/index.vue +0 -32
- package/playground/tailwind.config.js +0 -1
- package/playground/tsconfig.json +0 -4
- package/pnpm-workspace.yaml +0 -2
- package/prettier.config.mjs +0 -8
- package/scripts/bump-nightly.ts +0 -25
- package/scripts/release-nightly.sh +0 -24
- package/scripts/release.sh +0 -21
- package/src/defaults.ts +0 -3
- package/src/module.ts +0 -35
- package/src/plugins/app-config.ts +0 -24
- package/src/plugins/components.ts +0 -68
- package/src/plugins/nuxt-environment.ts +0 -40
- package/src/runtime/types/utils.ts +0 -44
- package/src/unplugin.ts +0 -46
- package/tsconfig.json +0 -9
- /package/{src → dist}/runtime/components/SForm.vue +0 -0
- /package/{src → dist}/runtime/components/SInputField.vue +0 -0
- /package/{src → dist}/runtime/components/SObject.vue +0 -0
- /package/{src → dist}/runtime/components/SSelect.vue +0 -0
- /package/{src → dist}/runtime/components/STextarea.vue +0 -0
- /package/{src → dist}/runtime/components/SToggle.vue +0 -0
package/src/unplugin.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { fileURLToPath } from 'node:url'
|
|
2
|
-
|
|
3
|
-
import { join, normalize } from 'pathe'
|
|
4
|
-
import { createUnplugin } from 'unplugin'
|
|
5
|
-
import AutoImport from 'unplugin-auto-import'
|
|
6
|
-
import { defu } from 'defu'
|
|
7
|
-
// import tailwind from '@tailwindcss/vite'
|
|
8
|
-
// import type colors from 'tailwindcss/colors'
|
|
9
|
-
|
|
10
|
-
// import type * as ui from '#build/ui'
|
|
11
|
-
|
|
12
|
-
import { defaultOptions } from './defaults'
|
|
13
|
-
import type { ModuleOptions } from './module'
|
|
14
|
-
|
|
15
|
-
// import TemplatePlugin from './plugins/templates'
|
|
16
|
-
// import PluginsPlugin from './plugins/plugins'
|
|
17
|
-
import AppConfigPlugin from './plugins/app-config'
|
|
18
|
-
import ComponentImportPlugin from './plugins/components'
|
|
19
|
-
import NuxtEnvironmentPlugin from './plugins/nuxt-environment'
|
|
20
|
-
|
|
21
|
-
// import type { DeepPartial } from './runtime/types/utils'
|
|
22
|
-
|
|
23
|
-
// type AppConfigUI = DeepPartial<typeof ui>
|
|
24
|
-
|
|
25
|
-
export interface NuxtUIOptions extends Omit<ModuleOptions, 'fonts' | 'colorMode'> {
|
|
26
|
-
ui?: object
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export const runtimeDir = normalize(fileURLToPath(new URL('./runtime', import.meta.url)))
|
|
30
|
-
|
|
31
|
-
export const NuxtUIPlugin = createUnplugin<NuxtUIOptions | undefined>((_options = {}, meta) => {
|
|
32
|
-
const options = defu(_options, { fonts: false, devtools: { enabled: false } }, defaultOptions)
|
|
33
|
-
|
|
34
|
-
const appConfig = { ui: options.ui }
|
|
35
|
-
|
|
36
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
37
|
-
return [
|
|
38
|
-
NuxtEnvironmentPlugin(),
|
|
39
|
-
...ComponentImportPlugin(meta.framework, options),
|
|
40
|
-
AutoImport[meta.framework]({ dts: true, dirs: [join(runtimeDir, 'composables')] }),
|
|
41
|
-
// tailwind(),
|
|
42
|
-
// PluginsPlugin(options),
|
|
43
|
-
// TemplatePlugin(options, appConfig),
|
|
44
|
-
AppConfigPlugin(options, appConfig)
|
|
45
|
-
]
|
|
46
|
-
})
|
package/tsconfig.json
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|