@finema/core 1.4.106 → 1.4.107

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.d.mts CHANGED
@@ -28,6 +28,7 @@ interface ModuleOptions {
28
28
  * @default false
29
29
  */
30
30
  global?: boolean;
31
+ securityDisabled?: boolean;
31
32
  }
32
33
  type CORE = {
33
34
  strategy?: 'merge' | 'override';
package/dist/module.d.ts CHANGED
@@ -28,6 +28,7 @@ interface ModuleOptions {
28
28
  * @default false
29
29
  */
30
30
  global?: boolean;
31
+ securityDisabled?: boolean;
31
32
  }
32
33
  type CORE = {
33
34
  strategy?: 'merge' | 'override';
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "1.4.106",
3
+ "version": "1.4.107",
4
4
  "configKey": "core",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.7.4"
package/dist/module.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineNuxtModule, createResolver, installModule, addPlugin, addComponentsDir, addImportsDir } from '@nuxt/kit';
2
2
 
3
3
  const name = "@finema/core";
4
- const version = "1.4.106";
4
+ const version = "1.4.107";
5
5
 
6
6
  const colors = {
7
7
  black: "#20243E",
@@ -398,7 +398,9 @@ const module = defineNuxtModule({
398
398
  };
399
399
  await installModule("@pinia/nuxt");
400
400
  await installModule("@vee-validate/nuxt", veeValidateNuxtOptions);
401
- await installModule("nuxt-security", nuxtSecurityOptions);
401
+ if (!options.securityDisabled) {
402
+ await installModule("nuxt-security", nuxtSecurityOptions);
403
+ }
402
404
  addPlugin({
403
405
  src: resolve(runtimeDir, "plugin")
404
406
  });
@@ -13,7 +13,6 @@ import type { ButtonColor, ButtonSize, ButtonVariant } from '#ui/types/button'
13
13
  import type { PropType } from 'vue'
14
14
 
15
15
  defineProps({
16
- ...UButton.props,
17
16
  label: {
18
17
  type: String,
19
18
  },
@@ -2,7 +2,7 @@
2
2
  <div
3
3
  v-if="isLoading"
4
4
  :class="[
5
- 'flex items-center justify-center',
5
+ 'flex w-full items-center justify-center',
6
6
  $attrs.class,
7
7
  {
8
8
  'min-h-[200px]': !$attrs.class,
@@ -1,21 +1,22 @@
1
- <template>
2
- <QrcodeVue :value="value" :level="level" :render-as="renderAs" class="size-[350px]" />
3
- </template>
4
- <script lang="ts" setup>
5
- import QrcodeVue from 'qrcode.vue'
6
-
7
- defineProps({
8
- value: {
9
- type: String,
10
- required: true,
11
- },
12
- level: {
13
- type: String,
14
- default: 'M',
15
- },
16
- renderAs: {
17
- type: String,
18
- default: 'svg',
19
- },
20
- })
21
- </script>
1
+ <template>
2
+ <QrcodeVue :value="value" :level="level" :render-as="renderAs" class="size-[350px]" />
3
+ </template>
4
+ <script lang="ts" setup>
5
+ import QrcodeVue, { type RenderAs } from 'qrcode.vue'
6
+ import { type PropType } from 'vue'
7
+
8
+ defineProps({
9
+ value: {
10
+ type: String,
11
+ required: true,
12
+ },
13
+ level: {
14
+ type: String,
15
+ default: 'M',
16
+ },
17
+ renderAs: {
18
+ type: String as PropType<RenderAs>,
19
+ default: 'svg',
20
+ },
21
+ })
22
+ </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "1.4.106",
3
+ "version": "1.4.107",
4
4
  "repository": "https://gitlab.finema.co/finema/ui-kit",
5
5
  "license": "MIT",
6
6
  "author": "Finema Dev Core Team",
@@ -23,8 +23,10 @@
23
23
  "scripts": {
24
24
  "prepack": "nuxt-module-build build",
25
25
  "dev": "nuxi dev playground",
26
+ "docs": "nuxi dev docs",
26
27
  "dev:build": "nuxi build playground",
27
- "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
28
+ "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground && nuxi prepare docs",
29
+ "docs:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare docs",
28
30
  "lint": "eslint . --cache",
29
31
  "lint:fix": "eslint . --fix --cache",
30
32
  "test": "vitest run",