@strivacity/sdk-nuxt 1.0.1 → 2.0.0-beta.2

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.
Files changed (44) hide show
  1. package/.nuxt/app-component.mjs +1 -1
  2. package/.nuxt/component-names.mjs +1 -1
  3. package/.nuxt/components.d.ts +110 -92
  4. package/.nuxt/error-component.mjs +1 -1
  5. package/.nuxt/global-polyfills.mjs +4 -0
  6. package/.nuxt/imports.d.ts +7 -6
  7. package/.nuxt/imports.mjs +7 -6
  8. package/.nuxt/layouts.mjs +1 -0
  9. package/.nuxt/manifest/meta/ba93f89b-30bd-4721-919e-d2c0fdc150d7.json +1 -0
  10. package/.nuxt/middleware.mjs +1 -1
  11. package/.nuxt/nuxt.d.ts +1 -2
  12. package/.nuxt/plugins.client.mjs +18 -0
  13. package/.nuxt/plugins.server.mjs +10 -0
  14. package/.nuxt/root-component.mjs +1 -1
  15. package/.nuxt/router.options.mjs +2 -0
  16. package/.nuxt/strivacity-sdk-storage.d.ts +3 -3
  17. package/.nuxt/strivacity-sdk-storage.mjs +1 -1
  18. package/.nuxt/test-component-wrapper.mjs +1 -1
  19. package/.nuxt/types/app-defaults.d.ts +1 -1
  20. package/.nuxt/types/builder-env.d.ts +1 -0
  21. package/.nuxt/types/nitro-config.d.ts +2 -2
  22. package/.nuxt/types/nitro-imports.d.ts +13 -3
  23. package/.nuxt/types/nitro-nuxt.d.ts +5 -0
  24. package/.nuxt/types/nitro-routes.d.ts +6 -3
  25. package/.nuxt/types/plugins.d.ts +10 -11
  26. package/.nuxt/unhead-options.mjs +6 -0
  27. package/CHANGELOG.md +24 -0
  28. package/README.md +432 -22
  29. package/dist/module.d.mts +68 -15
  30. package/dist/module.json +3 -3
  31. package/dist/module.mjs +10 -4
  32. package/dist/module.mjs.map +1 -1
  33. package/dist/runtime/composables.d.ts +3 -3
  34. package/dist/runtime/composables.js +11 -1
  35. package/dist/runtime/login-renderer.vue +163 -0
  36. package/dist/runtime/login-renderer.vue.d.ts +32 -0
  37. package/dist/types.d.mts +15 -1
  38. package/package.json +5 -6
  39. package/.nuxt/plugins/client.mjs +0 -18
  40. package/.nuxt/plugins/server.mjs +0 -10
  41. package/.nuxt/unhead-plugins.mjs +0 -2
  42. package/dist/module.cjs +0 -5
  43. package/dist/module.d.ts +0 -128
  44. package/dist/types.d.ts +0 -1
@@ -2,9 +2,9 @@
2
2
  import type { SDKStorage } from '@strivacity/sdk-core';
3
3
 
4
4
  declare class CustomStorage implements SDKStorage {
5
- get(key: string): string | null;
6
- delete(key: string): void;
7
- set(key: string, value: string): void;
5
+ get(key: string): Promise<string | null>;
6
+ delete(key: string): Promise<void>;
7
+ set(key: string, value: string): Promise<void>;
8
8
  }
9
9
 
10
10
  export default CustomStorage
@@ -1 +1 @@
1
- export default class l{get(o){var e,t;return(t=(e=globalThis==null?void 0:globalThis.window)==null?void 0:e.localStorage)==null?void 0:t.getItem(o)}delete(o){var e;(e=globalThis==null?void 0:globalThis.window)==null||e.localStorage.removeItem(o)}set(o,e){var t;(t=globalThis==null?void 0:globalThis.window)==null||t.localStorage.setItem(o,e)}}
1
+ export default class t{async get(o){var e,a;return await Promise.resolve((a=(e=globalThis==null?void 0:globalThis.window)==null?void 0:e.localStorage)==null?void 0:a.getItem(o))}async delete(o){var e;await Promise.resolve((e=globalThis==null?void 0:globalThis.window)==null?void 0:e.localStorage.removeItem(o))}async set(o,e){var a;await Promise.resolve((a=globalThis==null?void 0:globalThis.window)==null?void 0:a.localStorage.setItem(o,e))}}
@@ -1 +1 @@
1
- export { default } from "/home/runner/work/sdk-js/sdk-js/node_modules/.pnpm/nuxt@3.13.2_@parcel+watcher@2.4.1_@types+node@20.14.14_encoding@0.1.13_eslint@8.57.0_ioredis@_75nr233rh375h7xk6r7jtwnphe/node_modules/nuxt/dist/app/components/test-component-wrapper";
1
+ export { default } from "/home/runner/work/sdk-js/sdk-js/node_modules/.pnpm/nuxt@3.17.5_@capacitor+preferences@7.0.1_@capacitor+core@7.4.1__@parcel+watcher@2.4.1_@types+_xnsjdrbl5oy7hr3kak5ugxarny/node_modules/nuxt/dist/app/components/test-component-wrapper";
@@ -1,5 +1,5 @@
1
1
 
2
- declare module '#app/defaults' {
2
+ declare module 'nuxt/app/defaults' {
3
3
  type DefaultAsyncDataErrorValue = null
4
4
  type DefaultAsyncDataValue = null
5
5
  type DefaultErrorValue = null
@@ -0,0 +1 @@
1
+ import "@nuxt/schema/builder-env";
@@ -7,8 +7,8 @@ import type { Defu } from 'defu'
7
7
 
8
8
  type UserAppConfig = Defu<{}, []>
9
9
 
10
- declare module 'nitropack' {
10
+ declare module "nitropack/types" {
11
11
  interface AppConfig extends UserAppConfig {}
12
+
12
13
  }
13
-
14
14
  export {}
@@ -1,5 +1,15 @@
1
1
 
2
- export { defineCachedFunction, defineCachedEventHandler, cachedFunction, cachedEventHandler, useRuntimeConfig, useStorage, useNitroApp, defineNitroPlugin, nitroPlugin, defineRenderHandler, getRouteRules, useAppConfig, useEvent, defineTask, runTask, defineNitroErrorHandler } from '../../../../node_modules/.pnpm/nitropack@2.9.7_encoding@0.1.13_magicast@0.3.5_webpack-sources@3.2.3/node_modules/nitropack/dist/runtime';
2
+ export { useNitroApp } from 'nitropack/runtime/internal/app';
3
+ export { useRuntimeConfig, useAppConfig } from 'nitropack/runtime/internal/config';
4
+ export { defineNitroPlugin, nitroPlugin } from 'nitropack/runtime/internal/plugin';
5
+ export { defineCachedFunction, defineCachedEventHandler, cachedFunction, cachedEventHandler } from 'nitropack/runtime/internal/cache';
6
+ export { useStorage } from 'nitropack/runtime/internal/storage';
7
+ export { defineRenderHandler } from 'nitropack/runtime/internal/renderer';
8
+ export { defineRouteMeta } from 'nitropack/runtime/internal/meta';
9
+ export { getRouteRules } from 'nitropack/runtime/internal/route-rules';
10
+ export { useEvent } from 'nitropack/runtime/internal/context';
11
+ export { defineTask, runTask } from 'nitropack/runtime/internal/task';
12
+ export { defineNitroErrorHandler } from 'nitropack/runtime/internal/error/utils';
3
13
  export { appendCorsHeaders, appendCorsPreflightHeaders, appendHeader, appendHeaders, appendResponseHeader, appendResponseHeaders, assertMethod, callNodeListener, clearResponseHeaders, clearSession, createApp, createAppEventHandler, createError, createEvent, createEventStream, createRouter, defaultContentType, defineEventHandler, defineLazyEventHandler, defineNodeListener, defineNodeMiddleware, defineRequestMiddleware, defineResponseMiddleware, defineWebSocket, defineWebSocketHandler, deleteCookie, dynamicEventHandler, eventHandler, fetchWithEvent, fromNodeMiddleware, fromPlainHandler, fromWebHandler, getCookie, getHeader, getHeaders, getMethod, getProxyRequestHeaders, getQuery, getRequestFingerprint, getRequestHeader, getRequestHeaders, getRequestHost, getRequestIP, getRequestPath, getRequestProtocol, getRequestURL, getRequestWebStream, getResponseHeader, getResponseHeaders, getResponseStatus, getResponseStatusText, getRouterParam, getRouterParams, getSession, getValidatedQuery, getValidatedRouterParams, handleCacheHeaders, handleCors, isCorsOriginAllowed, isError, isEvent, isEventHandler, isMethod, isPreflightRequest, isStream, isWebResponse, lazyEventHandler, parseCookies, promisifyNodeListener, proxyRequest, readBody, readFormData, readMultipartFormData, readRawBody, readValidatedBody, removeResponseHeader, sanitizeStatusCode, sanitizeStatusMessage, sealSession, send, sendError, sendIterable, sendNoContent, sendProxy, sendRedirect, sendStream, sendWebResponse, serveStatic, setCookie, setHeader, setHeaders, setResponseHeader, setResponseHeaders, setResponseStatus, splitCookiesString, toEventHandler, toNodeListener, toPlainHandler, toWebHandler, toWebRequest, unsealSession, updateSession, useBase, useSession, writeEarlyHints } from 'h3';
4
- export { buildAssetsURL as __buildAssetsURL, publicAssetsURL as __publicAssetsURL } from '../../../../node_modules/.pnpm/nuxt@3.13.2_@parcel+watcher@2.4.1_@types+node@20.14.14_encoding@0.1.13_eslint@8.57.0_ioredis@_75nr233rh375h7xk6r7jtwnphe/node_modules/nuxt/dist/core/runtime/nitro/paths';
5
- export { defineAppConfig } from '../../../../node_modules/.pnpm/nuxt@3.13.2_@parcel+watcher@2.4.1_@types+node@20.14.14_encoding@0.1.13_eslint@8.57.0_ioredis@_75nr233rh375h7xk6r7jtwnphe/node_modules/nuxt/dist/core/runtime/nitro/config';
14
+ export { buildAssetsURL as __buildAssetsURL, publicAssetsURL as __publicAssetsURL } from '/home/runner/work/sdk-js/sdk-js/node_modules/.pnpm/nuxt@3.17.5_@capacitor+preferences@7.0.1_@capacitor+core@7.4.1__@parcel+watcher@2.4.1_@types+_xnsjdrbl5oy7hr3kak5ugxarny/node_modules/nuxt/dist/core/runtime/nitro/utils/paths';
15
+ export { defineAppConfig } from '/home/runner/work/sdk-js/sdk-js/node_modules/.pnpm/nuxt@3.17.5_@capacitor+preferences@7.0.1_@capacitor+core@7.4.1__@parcel+watcher@2.4.1_@types+_xnsjdrbl5oy7hr3kak5ugxarny/node_modules/nuxt/dist/core/runtime/nitro/utils/config';
@@ -1,4 +1,5 @@
1
1
 
2
+ /// <reference path="middleware.d.ts" />
2
3
  /// <reference path="./schema.d.ts" />
3
4
 
4
5
  import type { RuntimeConfig } from 'nuxt/schema'
@@ -14,10 +15,14 @@ declare module 'nitropack' {
14
15
  interface NitroRuntimeConfig extends RuntimeConfig {}
15
16
  interface NitroRouteConfig {
16
17
  ssr?: boolean
18
+ noScripts?: boolean
19
+ /** @deprecated Use `noScripts` instead */
17
20
  experimentalNoScripts?: boolean
18
21
  }
19
22
  interface NitroRouteRules {
20
23
  ssr?: boolean
24
+ noScripts?: boolean
25
+ /** @deprecated Use `noScripts` instead */
21
26
  experimentalNoScripts?: boolean
22
27
  appMiddleware?: Record<string, boolean>
23
28
  }
@@ -1,10 +1,13 @@
1
1
  // Generated by nitro
2
- import type { Serialize, Simplify } from 'nitropack'
3
- declare module 'nitropack' {
2
+ import type { Serialize, Simplify } from "nitropack/types";
3
+ declare module "nitropack/types" {
4
4
  type Awaited<T> = T extends PromiseLike<infer U> ? Awaited<U> : T
5
5
  interface InternalApi {
6
6
  '/__nuxt_error': {
7
- 'default': Simplify<Serialize<Awaited<ReturnType<typeof import('../../../../node_modules/.pnpm/nuxt@3.13.2_@parcel+watcher@2.4.1_@types+node@20.14.14_encoding@0.1.13_eslint@8.57.0_ioredis@_75nr233rh375h7xk6r7jtwnphe/node_modules/nuxt/dist/core/runtime/nitro/renderer').default>>>>
7
+ 'default': Simplify<Serialize<Awaited<ReturnType<typeof import('../../../../node_modules/.pnpm/nuxt@3.17.5_@capacitor+preferences@7.0.1_@capacitor+core@7.4.1__@parcel+watcher@2.4.1_@types+_xnsjdrbl5oy7hr3kak5ugxarny/node_modules/nuxt/dist/core/runtime/nitro/handlers/renderer').default>>>>
8
+ }
9
+ '/__nuxt_island/**': {
10
+ 'default': Simplify<Serialize<Awaited<ReturnType<typeof import('../../server/#internal/nuxt/island-renderer').default>>>>
8
11
  }
9
12
  }
10
13
  }
@@ -3,19 +3,18 @@ import type { Plugin } from '#app'
3
3
 
4
4
  type Decorate<T extends Record<string, any>> = { [K in keyof T as K extends string ? `$${K}` : never]: T[K] }
5
5
 
6
- type IsAny<T> = 0 extends 1 & T ? true : false
7
- type InjectionType<A extends Plugin> = IsAny<A> extends true ? unknown : A extends Plugin<infer T> ? Decorate<T> : unknown
6
+ type InjectionType<A extends Plugin> = A extends {default: Plugin<infer T>} ? Decorate<T> : unknown
8
7
 
9
8
  type NuxtAppInjections =
10
- InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@3.13.2_@parcel+watcher@2.4.1_@types+node@20.14.14_encoding@0.1.13_eslint@8.57.0_ioredis@_75nr233rh375h7xk6r7jtwnphe/node_modules/nuxt/dist/app/plugins/revive-payload.client.js").default> &
11
- InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@3.13.2_@parcel+watcher@2.4.1_@types+node@20.14.14_encoding@0.1.13_eslint@8.57.0_ioredis@_75nr233rh375h7xk6r7jtwnphe/node_modules/nuxt/dist/head/runtime/plugins/unhead.js").default> &
12
- InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@3.13.2_@parcel+watcher@2.4.1_@types+node@20.14.14_encoding@0.1.13_eslint@8.57.0_ioredis@_75nr233rh375h7xk6r7jtwnphe/node_modules/nuxt/dist/app/plugins/router.js").default> &
13
- InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@3.13.2_@parcel+watcher@2.4.1_@types+node@20.14.14_encoding@0.1.13_eslint@8.57.0_ioredis@_75nr233rh375h7xk6r7jtwnphe/node_modules/nuxt/dist/app/plugins/payload.client.js").default> &
14
- InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@3.13.2_@parcel+watcher@2.4.1_@types+node@20.14.14_encoding@0.1.13_eslint@8.57.0_ioredis@_75nr233rh375h7xk6r7jtwnphe/node_modules/nuxt/dist/app/plugins/navigation-repaint.client.js").default> &
15
- InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@3.13.2_@parcel+watcher@2.4.1_@types+node@20.14.14_encoding@0.1.13_eslint@8.57.0_ioredis@_75nr233rh375h7xk6r7jtwnphe/node_modules/nuxt/dist/app/plugins/check-outdated-build.client.js").default> &
16
- InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@3.13.2_@parcel+watcher@2.4.1_@types+node@20.14.14_encoding@0.1.13_eslint@8.57.0_ioredis@_75nr233rh375h7xk6r7jtwnphe/node_modules/nuxt/dist/app/plugins/revive-payload.server.js").default> &
17
- InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@3.13.2_@parcel+watcher@2.4.1_@types+node@20.14.14_encoding@0.1.13_eslint@8.57.0_ioredis@_75nr233rh375h7xk6r7jtwnphe/node_modules/nuxt/dist/app/plugins/chunk-reload.client.js").default> &
18
- InjectionType<typeof import("../components.plugin.mjs").default>
9
+ InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@3.17.5_@capacitor+preferences@7.0.1_@capacitor+core@7.4.1__@parcel+watcher@2.4.1_@types+_xnsjdrbl5oy7hr3kak5ugxarny/node_modules/nuxt/dist/app/plugins/revive-payload.client.js")> &
10
+ InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@3.17.5_@capacitor+preferences@7.0.1_@capacitor+core@7.4.1__@parcel+watcher@2.4.1_@types+_xnsjdrbl5oy7hr3kak5ugxarny/node_modules/nuxt/dist/head/runtime/plugins/unhead.js")> &
11
+ InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@3.17.5_@capacitor+preferences@7.0.1_@capacitor+core@7.4.1__@parcel+watcher@2.4.1_@types+_xnsjdrbl5oy7hr3kak5ugxarny/node_modules/nuxt/dist/app/plugins/router.js")> &
12
+ InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@3.17.5_@capacitor+preferences@7.0.1_@capacitor+core@7.4.1__@parcel+watcher@2.4.1_@types+_xnsjdrbl5oy7hr3kak5ugxarny/node_modules/nuxt/dist/app/plugins/payload.client.js")> &
13
+ InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@3.17.5_@capacitor+preferences@7.0.1_@capacitor+core@7.4.1__@parcel+watcher@2.4.1_@types+_xnsjdrbl5oy7hr3kak5ugxarny/node_modules/nuxt/dist/app/plugins/navigation-repaint.client.js")> &
14
+ InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@3.17.5_@capacitor+preferences@7.0.1_@capacitor+core@7.4.1__@parcel+watcher@2.4.1_@types+_xnsjdrbl5oy7hr3kak5ugxarny/node_modules/nuxt/dist/app/plugins/check-outdated-build.client.js")> &
15
+ InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@3.17.5_@capacitor+preferences@7.0.1_@capacitor+core@7.4.1__@parcel+watcher@2.4.1_@types+_xnsjdrbl5oy7hr3kak5ugxarny/node_modules/nuxt/dist/app/plugins/revive-payload.server.js")> &
16
+ InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@3.17.5_@capacitor+preferences@7.0.1_@capacitor+core@7.4.1__@parcel+watcher@2.4.1_@types+_xnsjdrbl5oy7hr3kak5ugxarny/node_modules/nuxt/dist/app/plugins/chunk-reload.client.js")> &
17
+ InjectionType<typeof import("../components.plugin.mjs")>
19
18
 
20
19
  declare module '#app' {
21
20
  interface NuxtApp extends NuxtAppInjections { }
@@ -0,0 +1,6 @@
1
+ import { DeprecationsPlugin, PromisesPlugin, TemplateParamsPlugin, AliasSortingPlugin } from "/home/runner/work/sdk-js/sdk-js/node_modules/.pnpm/@unhead+vue@2.0.10_vue@3.5.17_typescript@5.8.3_/node_modules/@unhead/vue/dist/plugins.mjs";
2
+ export default {
3
+ disableDefaults: true,
4
+ disableCapoSorting: false,
5
+ plugins: [DeprecationsPlugin, PromisesPlugin, TemplateParamsPlugin, AliasSortingPlugin],
6
+ }
package/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ ## 2.0.0-beta.2 (2025-07-24)
2
+
3
+ ### 🧱 Updated Dependencies
4
+
5
+ - Updated sdk-core to 2.0.0-beta.2
6
+ - Updated sdk-core to 2.0.0-beta.2
7
+
8
+ ## 2.0.0-beta (2025-07-24)
9
+
10
+ ### 🚀 Features
11
+
12
+ - ionic example app added ([494805a](https://github.com/strivacity/sdk-js/commit/494805a))
13
+ - ⚠️ NativeFlow implemented ([75b353f](https://github.com/strivacity/sdk-js/commit/75b353f))
14
+ - @strivacity/sdk-nuxt package implemented ([1ac0c81](https://github.com/strivacity/sdk-js/commit/1ac0c81))
15
+
16
+ ### ⚠️ Breaking Changes
17
+
18
+ - ⚠️ NativeFlow implemented ([75b353f](https://github.com/strivacity/sdk-js/commit/75b353f))
19
+
20
+ ### 🧱 Updated Dependencies
21
+
22
+ - Updated sdk-core to 2.0.0-beta
23
+ - Updated sdk-core to 2.0.0-beta
24
+
1
25
  ## 1.0.1 (2025-02-03)
2
26
 
3
27