abckit 0.0.36 → 0.0.38

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.mjs CHANGED
@@ -42,6 +42,11 @@ function getModuleDependencies(nuxt) {
42
42
  };
43
43
  }
44
44
 
45
+ const CAPACITOR_EXTERNAL_PACKAGES = [
46
+ "@capacitor/preferences",
47
+ "@capacitor/app",
48
+ "@capacitor/network"
49
+ ];
45
50
  const VITE_EXCLUDE_PACKAGES = [
46
51
  "abckit",
47
52
  "shadcn-nuxt",
@@ -69,6 +74,7 @@ const VITE_EXCLUDE_PACKAGES = [
69
74
  "@capacitor/network",
70
75
  "@capacitor/push-notifications",
71
76
  "@capacitor/device",
77
+ "@capacitor/app",
72
78
  "capacitor-native-settings",
73
79
  "@capacitor/haptics",
74
80
  "@unovis/vue"
@@ -283,6 +289,14 @@ function setupVite(nuxt) {
283
289
  const excludeSet = new Set(nuxt.options.vite.optimizeDeps.exclude);
284
290
  VITE_EXCLUDE_PACKAGES.forEach((pkg) => excludeSet.add(pkg));
285
291
  nuxt.options.vite.optimizeDeps.exclude = Array.from(excludeSet);
292
+ nuxt.options.vite.build = nuxt.options.vite.build || {};
293
+ nuxt.options.vite.build.rollupOptions = nuxt.options.vite.build.rollupOptions || {};
294
+ const existingExternal = nuxt.options.vite.build.rollupOptions.external;
295
+ const externalSet = new Set(
296
+ Array.isArray(existingExternal) ? existingExternal.filter((e) => typeof e === "string") : []
297
+ );
298
+ CAPACITOR_EXTERNAL_PACKAGES.forEach((pkg) => externalSet.add(pkg));
299
+ nuxt.options.vite.build.rollupOptions.external = Array.from(externalSet);
286
300
  if (nuxt.options.dev) {
287
301
  nuxt.options.vite.server = nuxt.options.vite.server || {};
288
302
  nuxt.options.vite.server.allowedHosts = true;
@@ -9,19 +9,19 @@ type __VLS_Slots = {} & {
9
9
  };
10
10
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
11
  "update:modelValue": (value: import("reka-ui").AcceptableValue) => any;
12
+ entryFocus: (event: CustomEvent<any>) => any;
12
13
  highlight: (payload: {
13
14
  ref: HTMLElement;
14
15
  value: import("reka-ui").AcceptableValue;
15
16
  } | undefined) => any;
16
- entryFocus: (event: CustomEvent<any>) => any;
17
17
  leave: (event: Event) => any;
18
18
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
19
19
  "onUpdate:modelValue"?: ((value: import("reka-ui").AcceptableValue) => any) | undefined;
20
+ onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
20
21
  onHighlight?: ((payload: {
21
22
  ref: HTMLElement;
22
23
  value: import("reka-ui").AcceptableValue;
23
24
  } | undefined) => any) | undefined;
24
- onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
25
25
  onLeave?: ((event: Event) => any) | undefined;
26
26
  }>, {
27
27
  modelValue: import("reka-ui").AcceptableValue | import("reka-ui").AcceptableValue[];
@@ -9,19 +9,19 @@ type __VLS_Slots = {} & {
9
9
  };
10
10
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
11
  "update:modelValue": (value: import("reka-ui").AcceptableValue) => any;
12
+ entryFocus: (event: CustomEvent<any>) => any;
12
13
  highlight: (payload: {
13
14
  ref: HTMLElement;
14
15
  value: import("reka-ui").AcceptableValue;
15
16
  } | undefined) => any;
16
- entryFocus: (event: CustomEvent<any>) => any;
17
17
  leave: (event: Event) => any;
18
18
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
19
19
  "onUpdate:modelValue"?: ((value: import("reka-ui").AcceptableValue) => any) | undefined;
20
+ onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
20
21
  onHighlight?: ((payload: {
21
22
  ref: HTMLElement;
22
23
  value: import("reka-ui").AcceptableValue;
23
24
  } | undefined) => any) | undefined;
24
- onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
25
25
  onLeave?: ((event: Event) => any) | undefined;
26
26
  }>, {
27
27
  modelValue: import("reka-ui").AcceptableValue | import("reka-ui").AcceptableValue[];
@@ -1,2 +1,2 @@
1
- declare const _default: import("nitropack").NitroAppPlugin;
1
+ declare const _default: any;
2
2
  export default _default;
@@ -1,8 +1,10 @@
1
- import { defineNitroPlugin, useRuntimeConfig, useStorage } from "nitropack/runtime";
1
+ import { useRuntimeConfig } from "nitro/runtime-config";
2
+ import { definePlugin } from "nitro";
3
+ import { useStorage } from "nitro/storage";
2
4
  import fs from "unstorage/drivers/fs-lite";
3
5
  import redisDriver from "unstorage/drivers/redis";
4
6
  import s3Driver from "unstorage/drivers/s3";
5
- export default defineNitroPlugin(() => {
7
+ export default definePlugin(() => {
6
8
  const config = useRuntimeConfig();
7
9
  const storage = useStorage();
8
10
  const storageConfig = config.storage;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "abckit",
3
3
  "type": "module",
4
- "version": "0.0.36",
4
+ "version": "0.0.38",
5
5
  "description": "Nuxt 4 module — UI components, auth, storage, GraphQL",
6
6
  "author": "productdevbook",
7
7
  "license": "MIT",
@@ -132,7 +132,7 @@
132
132
  "graphql-yoga": "^5.18.0",
133
133
  "md-editor-v3": "^6.2.1",
134
134
  "nitro-graphql": "^1.8.0",
135
- "nitropack": "^2.12.9",
135
+ "nitro": "https://pkg.pr.new/nitrojs/nitro@99691fc",
136
136
  "notivue": "^2.4.5",
137
137
  "pg": "^8.16.3",
138
138
  "pinia": "^3.0.4",
@@ -228,7 +228,7 @@
228
228
  "h3": "^1.15.4",
229
229
  "md-editor-v3": "^6.2.1",
230
230
  "nitro-graphql": "^1.8.0",
231
- "nitropack": "^2.12.9",
231
+ "nitro": "^3.0.0",
232
232
  "notivue": "^2.4.5",
233
233
  "nuxt": "^4.2.2",
234
234
  "pg": "^8.16.3",