@strivacity/sdk-nuxt 4.0.0-beta.1 → 4.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.
- package/README.md +171 -101
- package/dist/module.mjs +5 -4
- package/package.json +2 -2
- package/project.json +3 -0
- package/src/module.ts +7 -3
- package/src/runtime/composables/use-native-login.ts +27 -159
- package/src/runtime/composables/use-strivacity.ts +217 -67
- package/src/runtime/middleware/auth.server.ts +10 -1
- package/src/runtime/plugins/strivacity.client.ts +17 -0
- package/src/runtime/server/plugins/auth.server.ts +66 -30
- package/src/runtime/storages/default.ts +22 -67
- package/src/runtime/types.ts +7 -36
- package/src/runtime/utils/core.ts +2 -0
- package/testing/stubs/app.ts +8 -0
- package/testing/tests/composables.spec.ts +104 -3
- package/testing/tests/module.spec.ts +46 -0
- package/testing/tests/server/plugin.spec.ts +48 -10
- package/testing/tests/server/routes.spec.ts +2 -2
- package/.nuxt/app-component.mjs +0 -1
- package/.nuxt/app.config.mjs +0 -21
- package/.nuxt/component-chunk.mjs +0 -1
- package/.nuxt/component-names.mjs +0 -1
- package/.nuxt/components.d.ts +0 -66
- package/.nuxt/components.islands.mjs +0 -8
- package/.nuxt/components.plugin.mjs +0 -5
- package/.nuxt/css.mjs +0 -0
- package/.nuxt/error-component.mjs +0 -1
- package/.nuxt/fetch.d.ts +0 -1
- package/.nuxt/fetch.mjs +0 -8
- package/.nuxt/global-polyfills.mjs +0 -4
- package/.nuxt/imports.d.ts +0 -41
- package/.nuxt/imports.mjs +0 -42
- package/.nuxt/island-renderer.mjs +0 -2
- package/.nuxt/layouts.mjs +0 -2
- package/.nuxt/manifest/meta/b2d6b125-90fd-44d4-9916-0898f71676da.json +0 -1
- package/.nuxt/middleware.mjs +0 -7
- package/.nuxt/nitro.client.mjs +0 -2
- package/.nuxt/nuxt.config.mjs +0 -103
- package/.nuxt/nuxt.d.ts +0 -19
- package/.nuxt/nuxt.node.d.ts +0 -13
- package/.nuxt/nuxt.shared.d.ts +0 -7
- package/.nuxt/pages.mjs +0 -2
- package/.nuxt/paths.mjs +0 -15
- package/.nuxt/plugins.client.mjs +0 -14
- package/.nuxt/plugins.server.mjs +0 -10
- package/.nuxt/root-component.mjs +0 -1
- package/.nuxt/route-rules.mjs +0 -22
- package/.nuxt/router.options.mjs +0 -2
- package/.nuxt/schema/nuxt.schema.d.ts +0 -17
- package/.nuxt/schema/nuxt.schema.json +0 -3
- package/.nuxt/test-component-wrapper.mjs +0 -1
- package/.nuxt/tsconfig.app.json +0 -211
- package/.nuxt/tsconfig.json +0 -212
- package/.nuxt/tsconfig.node.json +0 -117
- package/.nuxt/tsconfig.server.json +0 -161
- package/.nuxt/tsconfig.shared.json +0 -165
- package/.nuxt/types/app.config.d.ts +0 -35
- package/.nuxt/types/build.d.ts +0 -0
- package/.nuxt/types/builder-env.d.ts +0 -1
- package/.nuxt/types/components.d.ts +0 -71
- package/.nuxt/types/imports.d.ts +0 -2
- package/.nuxt/types/layouts.d.ts +0 -16
- package/.nuxt/types/middleware.d.ts +0 -11
- package/.nuxt/types/modules.d.ts +0 -59
- package/.nuxt/types/nitro-config.d.ts +0 -14
- package/.nuxt/types/nitro-imports.d.ts +0 -20
- package/.nuxt/types/nitro-layouts.d.ts +0 -17
- package/.nuxt/types/nitro-nuxt.d.ts +0 -75
- package/.nuxt/types/nitro-routes.d.ts +0 -38
- package/.nuxt/types/nitro.d.ts +0 -3
- package/.nuxt/types/plugins.d.ts +0 -30
- package/.nuxt/types/runtime-config.d.ts +0 -38
- package/.nuxt/types/shared-app.config.d.ts +0 -28
- package/.nuxt/types/shared-imports.d.ts +0 -2
- package/.nuxt/types/vue-shim.d.ts +0 -0
- package/.nuxt/unhead-options.mjs +0 -5
- package/.nuxt/unhead.config.mjs +0 -1
- package/dist/module.d.mts +0 -7
- package/dist/module.json +0 -9
- package/dist/module.mjs.map +0 -1
- package/dist/runtime/composables/use-native-login-context.d.ts +0 -10
- package/dist/runtime/composables/use-native-login-context.js +0 -9
- package/dist/runtime/composables/use-native-login.d.ts +0 -10
- package/dist/runtime/composables/use-native-login.js +0 -143
- package/dist/runtime/composables/use-session.d.ts +0 -8
- package/dist/runtime/composables/use-session.js +0 -2
- package/dist/runtime/composables/use-strivacity.d.ts +0 -9
- package/dist/runtime/composables/use-strivacity.js +0 -77
- package/dist/runtime/middleware/auth.server.d.ts +0 -2
- package/dist/runtime/middleware/auth.server.js +0 -12
- package/dist/runtime/server/api/auth/backchannel-logout.get.d.ts +0 -2
- package/dist/runtime/server/api/auth/backchannel-logout.get.js +0 -2
- package/dist/runtime/server/api/auth/callback.get.d.ts +0 -2
- package/dist/runtime/server/api/auth/callback.get.js +0 -2
- package/dist/runtime/server/api/auth/entry.get.d.ts +0 -2
- package/dist/runtime/server/api/auth/entry.get.js +0 -2
- package/dist/runtime/server/api/auth/login.get.d.ts +0 -2
- package/dist/runtime/server/api/auth/login.get.js +0 -2
- package/dist/runtime/server/api/auth/logout.get.d.ts +0 -2
- package/dist/runtime/server/api/auth/logout.get.js +0 -2
- package/dist/runtime/server/api/auth/refresh.get.d.ts +0 -2
- package/dist/runtime/server/api/auth/refresh.get.js +0 -2
- package/dist/runtime/server/api/auth/register.get.d.ts +0 -2
- package/dist/runtime/server/api/auth/register.get.js +0 -2
- package/dist/runtime/server/api/auth/revoke.get.d.ts +0 -2
- package/dist/runtime/server/api/auth/revoke.get.js +0 -2
- package/dist/runtime/server/composables/use-strivacity.d.ts +0 -2
- package/dist/runtime/server/composables/use-strivacity.js +0 -9
- package/dist/runtime/server/plugins/auth.server.d.ts +0 -10
- package/dist/runtime/server/plugins/auth.server.js +0 -66
- package/dist/runtime/server/utils/helpers.d.ts +0 -18
- package/dist/runtime/server/utils/helpers.js +0 -39
- package/dist/runtime/storages/core.d.ts +0 -1
- package/dist/runtime/storages/core.js +0 -13
- package/dist/runtime/storages/default.d.ts +0 -21
- package/dist/runtime/storages/default.js +0 -71
- package/dist/runtime/types.d.ts +0 -219
- package/dist/runtime/types.js +0 -1
- package/dist/runtime/utils/core.d.ts +0 -1
- package/dist/runtime/utils/core.js +0 -64
- package/dist/runtime/utils/noop.d.ts +0 -1
- package/dist/runtime/utils/noop.js +0 -3
- package/dist/types.d.mts +0 -9
- /package/src/runtime/server/api/auth/{backchannel-logout.get.ts → backchannel-logout.post.ts} +0 -0
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import type { AppConfigInput, CustomAppConfig } from 'nuxt/schema'
|
|
3
|
-
import type { Defu } from 'defu'
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare global {
|
|
7
|
-
const defineAppConfig: <C extends AppConfigInput> (config: C) => C
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
declare const inlineConfig = {
|
|
11
|
-
"nuxt": {}
|
|
12
|
-
}
|
|
13
|
-
type ResolvedAppConfig = Defu<typeof inlineConfig, []>
|
|
14
|
-
type IsAny<T> = 0 extends 1 & T ? true : false
|
|
15
|
-
|
|
16
|
-
type MergedAppConfig<Resolved extends Record<string, unknown>, Custom extends Record<string, unknown>> = {
|
|
17
|
-
[K in keyof (Resolved & Custom)]: K extends keyof Custom
|
|
18
|
-
? unknown extends Custom[K]
|
|
19
|
-
? Resolved[K]
|
|
20
|
-
: IsAny<Custom[K]> extends true
|
|
21
|
-
? Resolved[K]
|
|
22
|
-
: Custom[K] extends Record<string, any>
|
|
23
|
-
? Resolved[K] extends Record<string, any>
|
|
24
|
-
? MergedAppConfig<Resolved[K], Custom[K]>
|
|
25
|
-
: Exclude<Custom[K], undefined>
|
|
26
|
-
: Exclude<Custom[K], undefined>
|
|
27
|
-
: Resolved[K]
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
declare module 'nuxt/schema' {
|
|
31
|
-
interface AppConfig extends MergedAppConfig<ResolvedAppConfig, CustomAppConfig> { }
|
|
32
|
-
}
|
|
33
|
-
declare module '@nuxt/schema' {
|
|
34
|
-
interface AppConfig extends MergedAppConfig<ResolvedAppConfig, CustomAppConfig> { }
|
|
35
|
-
}
|
package/.nuxt/types/build.d.ts
DELETED
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "@nuxt/schema/builder-env";
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import type { DefineComponent, SlotsType } from 'vue'
|
|
3
|
-
type IslandComponent<T> = DefineComponent<{}, {refresh: () => Promise<void>}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, SlotsType<{ fallback: { error: unknown } }>> & T
|
|
4
|
-
|
|
5
|
-
type HydrationStrategies = {
|
|
6
|
-
hydrateOnVisible?: IntersectionObserverInit | true
|
|
7
|
-
hydrateOnIdle?: number | true
|
|
8
|
-
hydrateOnInteraction?: keyof HTMLElementEventMap | Array<keyof HTMLElementEventMap> | true
|
|
9
|
-
hydrateOnMediaQuery?: string
|
|
10
|
-
hydrateAfter?: number
|
|
11
|
-
hydrateWhen?: boolean
|
|
12
|
-
hydrateNever?: true
|
|
13
|
-
}
|
|
14
|
-
type LazyComponent<T> = DefineComponent<HydrationStrategies, {}, {}, {}, {}, {}, {}, { hydrated: () => void }> & T
|
|
15
|
-
|
|
16
|
-
interface _GlobalComponents {
|
|
17
|
-
NuxtWelcome: typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/components/welcome.vue")['default']
|
|
18
|
-
NuxtLayout: typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/components/nuxt-layout")['default']
|
|
19
|
-
NuxtErrorBoundary: typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/components/nuxt-error-boundary.vue")['default']
|
|
20
|
-
ClientOnly: typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/components/client-only")['default']
|
|
21
|
-
DevOnly: typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/components/dev-only")['default']
|
|
22
|
-
ServerPlaceholder: typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/components/server-placeholder")['default']
|
|
23
|
-
NuxtLink: typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/components/nuxt-link")['default']
|
|
24
|
-
NuxtLoadingIndicator: typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/components/nuxt-loading-indicator")['default']
|
|
25
|
-
NuxtTime: typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/components/nuxt-time.vue")['default']
|
|
26
|
-
NuxtRouteAnnouncer: typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/components/nuxt-route-announcer")['default']
|
|
27
|
-
NuxtAnnouncer: typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/components/nuxt-announcer")['default']
|
|
28
|
-
NuxtImg: typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/components/nuxt-stubs")['NuxtImg']
|
|
29
|
-
NuxtPicture: typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/components/nuxt-stubs")['NuxtPicture']
|
|
30
|
-
NuxtPage: typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/pages/runtime/page-placeholder")['default']
|
|
31
|
-
NoScript: typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/head/runtime/components")['NoScript']
|
|
32
|
-
Link: typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/head/runtime/components")['Link']
|
|
33
|
-
Base: typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/head/runtime/components")['Base']
|
|
34
|
-
Title: typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/head/runtime/components")['Title']
|
|
35
|
-
Meta: typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/head/runtime/components")['Meta']
|
|
36
|
-
Style: typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/head/runtime/components")['Style']
|
|
37
|
-
Head: typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/head/runtime/components")['Head']
|
|
38
|
-
Html: typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/head/runtime/components")['Html']
|
|
39
|
-
Body: typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/head/runtime/components")['Body']
|
|
40
|
-
NuxtIsland: typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/components/nuxt-island")['default']
|
|
41
|
-
LazyNuxtWelcome: LazyComponent<typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/components/welcome.vue")['default']>
|
|
42
|
-
LazyNuxtLayout: LazyComponent<typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/components/nuxt-layout")['default']>
|
|
43
|
-
LazyNuxtErrorBoundary: LazyComponent<typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/components/nuxt-error-boundary.vue")['default']>
|
|
44
|
-
LazyClientOnly: LazyComponent<typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/components/client-only")['default']>
|
|
45
|
-
LazyDevOnly: LazyComponent<typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/components/dev-only")['default']>
|
|
46
|
-
LazyServerPlaceholder: LazyComponent<typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/components/server-placeholder")['default']>
|
|
47
|
-
LazyNuxtLink: LazyComponent<typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/components/nuxt-link")['default']>
|
|
48
|
-
LazyNuxtLoadingIndicator: LazyComponent<typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/components/nuxt-loading-indicator")['default']>
|
|
49
|
-
LazyNuxtTime: LazyComponent<typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/components/nuxt-time.vue")['default']>
|
|
50
|
-
LazyNuxtRouteAnnouncer: LazyComponent<typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/components/nuxt-route-announcer")['default']>
|
|
51
|
-
LazyNuxtAnnouncer: LazyComponent<typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/components/nuxt-announcer")['default']>
|
|
52
|
-
LazyNuxtImg: LazyComponent<typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/components/nuxt-stubs")['NuxtImg']>
|
|
53
|
-
LazyNuxtPicture: LazyComponent<typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/components/nuxt-stubs")['NuxtPicture']>
|
|
54
|
-
LazyNuxtPage: LazyComponent<typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/pages/runtime/page-placeholder")['default']>
|
|
55
|
-
LazyNoScript: LazyComponent<typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/head/runtime/components")['NoScript']>
|
|
56
|
-
LazyLink: LazyComponent<typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/head/runtime/components")['Link']>
|
|
57
|
-
LazyBase: LazyComponent<typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/head/runtime/components")['Base']>
|
|
58
|
-
LazyTitle: LazyComponent<typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/head/runtime/components")['Title']>
|
|
59
|
-
LazyMeta: LazyComponent<typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/head/runtime/components")['Meta']>
|
|
60
|
-
LazyStyle: LazyComponent<typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/head/runtime/components")['Style']>
|
|
61
|
-
LazyHead: LazyComponent<typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/head/runtime/components")['Head']>
|
|
62
|
-
LazyHtml: LazyComponent<typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/head/runtime/components")['Html']>
|
|
63
|
-
LazyBody: LazyComponent<typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/head/runtime/components")['Body']>
|
|
64
|
-
LazyNuxtIsland: LazyComponent<typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/components/nuxt-island")['default']>
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
declare module 'vue' {
|
|
68
|
-
export interface GlobalComponents extends _GlobalComponents { }
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export {}
|
package/.nuxt/types/imports.d.ts
DELETED
package/.nuxt/types/layouts.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { ComputedRef, MaybeRef } from "vue";
|
|
2
|
-
import type { ComponentProps } from "../../../../node_modules/.pnpm/vue-component-type-helpers@3.3.11/node_modules/vue-component-type-helpers/index.js";
|
|
3
|
-
|
|
4
|
-
declare module 'nuxt/app' {
|
|
5
|
-
interface NuxtLayouts {
|
|
6
|
-
}
|
|
7
|
-
export type LayoutKey = keyof NuxtLayouts extends never ? string : keyof NuxtLayouts
|
|
8
|
-
interface PageMeta {
|
|
9
|
-
layout?: MaybeRef<LayoutKey | false> | ComputedRef<LayoutKey | false> | {
|
|
10
|
-
[K in LayoutKey]: {
|
|
11
|
-
name?: MaybeRef<K | false> | ComputedRef<K | false>
|
|
12
|
-
props?: NuxtLayouts[K]
|
|
13
|
-
}
|
|
14
|
-
}[LayoutKey]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
declare module 'nitropack/types' {
|
|
2
|
-
interface NitroRouteConfig {
|
|
3
|
-
appMiddleware?: string | string[] | Record<string, boolean>
|
|
4
|
-
}
|
|
5
|
-
}
|
|
6
|
-
declare module 'nitropack' {
|
|
7
|
-
interface NitroRouteConfig {
|
|
8
|
-
appMiddleware?: string | string[] | Record<string, boolean>
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {}
|
package/.nuxt/types/modules.d.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { NuxtModule, ModuleDependencyMeta } from '@nuxt/schema'
|
|
2
|
-
declare module '@nuxt/schema' {
|
|
3
|
-
interface ModuleDependencies {
|
|
4
|
-
["@strivacity/sdk-nuxt"]?: ModuleDependencyMeta<typeof import("/home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/module").default extends NuxtModule<infer O> ? O | false : Record<string, unknown>> | false
|
|
5
|
-
["@nuxt/devtools"]?: ModuleDependencyMeta<typeof import("@nuxt/devtools").default extends NuxtModule<infer O> ? O | false : Record<string, unknown>> | false
|
|
6
|
-
}
|
|
7
|
-
interface NuxtOptions {
|
|
8
|
-
/**
|
|
9
|
-
* Configuration for `/home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/module`
|
|
10
|
-
*/
|
|
11
|
-
["strivacity"]: typeof import("/home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/module").default extends NuxtModule<infer O, unknown, boolean> ? O | false : Record<string, any> | false
|
|
12
|
-
/**
|
|
13
|
-
* Configuration for `@nuxt/devtools`
|
|
14
|
-
*/
|
|
15
|
-
["devtools"]: typeof import("@nuxt/devtools").default extends NuxtModule<infer O, unknown, boolean> ? O | false : Record<string, any> | false
|
|
16
|
-
}
|
|
17
|
-
interface NuxtConfig {
|
|
18
|
-
/**
|
|
19
|
-
* Configuration for `/home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/module`
|
|
20
|
-
*/
|
|
21
|
-
["strivacity"]?: typeof import("/home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/module").default extends NuxtModule<infer O, unknown, boolean> ? Partial<O> | false : Record<string, any> | false
|
|
22
|
-
/**
|
|
23
|
-
* Configuration for `@nuxt/devtools`
|
|
24
|
-
*/
|
|
25
|
-
["devtools"]?: typeof import("@nuxt/devtools").default extends NuxtModule<infer O, unknown, boolean> ? Partial<O> | false : Record<string, any> | false
|
|
26
|
-
modules?: (undefined | null | false | NuxtModule<any> | string | [NuxtModule | string, Record<string, any>] | ["/home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/module", Exclude<NuxtConfig["strivacity"], boolean>] | ["@nuxt/devtools", Exclude<NuxtConfig["devtools"], boolean>])[],
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
declare module 'nuxt/schema' {
|
|
30
|
-
interface ModuleDependencies {
|
|
31
|
-
["@strivacity/sdk-nuxt"]?: ModuleDependencyMeta<typeof import("/home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/module").default extends NuxtModule<infer O> ? O | false : Record<string, unknown>> | false
|
|
32
|
-
["@nuxt/devtools"]?: ModuleDependencyMeta<typeof import("@nuxt/devtools").default extends NuxtModule<infer O> ? O | false : Record<string, unknown>> | false
|
|
33
|
-
}
|
|
34
|
-
interface NuxtOptions {
|
|
35
|
-
/**
|
|
36
|
-
* Configuration for `/home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/module`
|
|
37
|
-
* @see https://www.npmjs.com/package//home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/module
|
|
38
|
-
*/
|
|
39
|
-
["strivacity"]: typeof import("/home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/module").default extends NuxtModule<infer O, unknown, boolean> ? O | false : Record<string, any> | false
|
|
40
|
-
/**
|
|
41
|
-
* Configuration for `@nuxt/devtools`
|
|
42
|
-
* @see https://www.npmjs.com/package/@nuxt/devtools
|
|
43
|
-
*/
|
|
44
|
-
["devtools"]: typeof import("@nuxt/devtools").default extends NuxtModule<infer O, unknown, boolean> ? O | false : Record<string, any> | false
|
|
45
|
-
}
|
|
46
|
-
interface NuxtConfig {
|
|
47
|
-
/**
|
|
48
|
-
* Configuration for `/home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/module`
|
|
49
|
-
* @see https://www.npmjs.com/package//home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/module
|
|
50
|
-
*/
|
|
51
|
-
["strivacity"]?: typeof import("/home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/module").default extends NuxtModule<infer O, unknown, boolean> ? Partial<O> | false : Record<string, any> | false
|
|
52
|
-
/**
|
|
53
|
-
* Configuration for `@nuxt/devtools`
|
|
54
|
-
* @see https://www.npmjs.com/package/@nuxt/devtools
|
|
55
|
-
*/
|
|
56
|
-
["devtools"]?: typeof import("@nuxt/devtools").default extends NuxtModule<infer O, unknown, boolean> ? Partial<O> | false : Record<string, any> | false
|
|
57
|
-
modules?: (undefined | null | false | NuxtModule<any> | string | [NuxtModule | string, Record<string, any>] | ["/home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/module", Exclude<NuxtConfig["strivacity"], boolean>] | ["@nuxt/devtools", Exclude<NuxtConfig["devtools"], boolean>])[],
|
|
58
|
-
}
|
|
59
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
export { H3Event, H3Error, 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';
|
|
3
|
-
export { useNitroApp } from 'nitropack/runtime/internal/app';
|
|
4
|
-
export { useRuntimeConfig } from 'nitropack/runtime/internal/config';
|
|
5
|
-
export { defineNitroPlugin, nitroPlugin } from 'nitropack/runtime/internal/plugin';
|
|
6
|
-
export { defineCachedFunction, defineCachedEventHandler, cachedFunction, cachedEventHandler } from 'nitropack/runtime/internal/cache';
|
|
7
|
-
export { useStorage } from 'nitropack/runtime/internal/storage';
|
|
8
|
-
export { defineRenderHandler } from 'nitropack/runtime/internal/renderer';
|
|
9
|
-
export { defineRouteMeta } from 'nitropack/runtime/internal/meta';
|
|
10
|
-
export { getRouteRules } from 'nitropack/runtime/internal/route-rules';
|
|
11
|
-
export { useEvent } from 'nitropack/runtime/internal/context';
|
|
12
|
-
export { defineTask, runTask } from 'nitropack/runtime/internal/task';
|
|
13
|
-
export { defineNitroErrorHandler } from 'nitropack/runtime/internal/error/utils';
|
|
14
|
-
export { buildAssetsURL as __buildAssetsURL, publicAssetsURL as __publicAssetsURL } from '/home/runner/work/sdk-js/sdk-js/node_modules/.pnpm/@nuxt+nitro-server@4.5.2_@babel+plugin-proposal-decorators@7.29.7_@babel+core@7.29.7_su_f01f79d0a261870c3832f7874a24e3de/node_modules/@nuxt/nitro-server/dist/runtime/utils/paths';
|
|
15
|
-
export { defineAppConfig } from '/home/runner/work/sdk-js/sdk-js/node_modules/.pnpm/@nuxt+nitro-server@4.5.2_@babel+plugin-proposal-decorators@7.29.7_@babel+core@7.29.7_su_f01f79d0a261870c3832f7874a24e3de/node_modules/@nuxt/nitro-server/dist/runtime/utils/config';
|
|
16
|
-
export { useAppConfig } from '/home/runner/work/sdk-js/sdk-js/node_modules/.pnpm/@nuxt+nitro-server@4.5.2_@babel+plugin-proposal-decorators@7.29.7_@babel+core@7.29.7_su_f01f79d0a261870c3832f7874a24e3de/node_modules/@nuxt/nitro-server/dist/runtime/utils/app-config';
|
|
17
|
-
export { useStrivacity } from '/home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/runtime/server/composables/use-strivacity';
|
|
18
|
-
export { proxyResponse, getLocaleFromEvent, toSafeRedirect } from '/home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/runtime/server/utils/helpers';
|
|
19
|
-
export { COOKIE_CONTEXT, COOKIE_CHUNK_SIZE, createCacheAPIStorage, createIndexedDBStorage, createLocalStorage, createMemoryStorage, createServerMemoryStorage, createSessionStorage, createWorkerStorage, handleWorkerStorageRequests, createServerStateStorage } from '/home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/runtime/storages/core';
|
|
20
|
-
export { createSessionIdCookieStorage, createEncryptedCookieStorage } from '/home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/runtime/storages/default';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export type LayoutKey = string
|
|
2
|
-
declare module 'nitropack' {
|
|
3
|
-
interface NitroRouteConfig {
|
|
4
|
-
appLayout?: LayoutKey | false
|
|
5
|
-
}
|
|
6
|
-
interface NitroRouteRules {
|
|
7
|
-
appLayout?: LayoutKey | false
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
declare module 'nitropack/types' {
|
|
11
|
-
interface NitroRouteConfig {
|
|
12
|
-
appLayout?: LayoutKey | false
|
|
13
|
-
}
|
|
14
|
-
interface NitroRouteRules {
|
|
15
|
-
appLayout?: LayoutKey | false
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/// <reference path="nitro-layouts.d.ts" />
|
|
3
|
-
/// <reference path="shared-app.config.d.ts" />
|
|
4
|
-
/// <reference path="runtime-config.d.ts" />
|
|
5
|
-
/// <reference path="../../../../node_modules/.pnpm/@nuxt+nitro-server@4.5.2_@babel+plugin-proposal-decorators@7.29.7_@babel+core@7.29.7_su_f01f79d0a261870c3832f7874a24e3de/node_modules/@nuxt/nitro-server/dist/augments.d.mts" />
|
|
6
|
-
/// <reference path="middleware.d.ts" />
|
|
7
|
-
/// <reference path="../schema/nuxt.schema.d.ts" />
|
|
8
|
-
|
|
9
|
-
import type { RuntimeConfig } from 'nuxt/schema'
|
|
10
|
-
import type { H3Event } from 'h3'
|
|
11
|
-
import type { LogObject } from 'consola'
|
|
12
|
-
import type { NuxtIslandContext, NuxtIslandResponse, NuxtRenderChunkContext, NuxtRenderCloseContext, NuxtRenderHTMLContext, NuxtRenderRouteContext } from '#app/types'
|
|
13
|
-
|
|
14
|
-
declare module 'nitropack' {
|
|
15
|
-
interface NitroRuntimeConfigApp {
|
|
16
|
-
buildAssetsDir: string
|
|
17
|
-
cdnURL: string
|
|
18
|
-
}
|
|
19
|
-
interface NitroRuntimeConfig extends RuntimeConfig {}
|
|
20
|
-
interface NitroRouteConfig {
|
|
21
|
-
ssr?: boolean
|
|
22
|
-
streaming?: boolean
|
|
23
|
-
noScripts?: boolean
|
|
24
|
-
/** @deprecated Use `noScripts` instead */
|
|
25
|
-
experimentalNoScripts?: boolean
|
|
26
|
-
}
|
|
27
|
-
interface NitroRouteRules {
|
|
28
|
-
ssr?: boolean
|
|
29
|
-
streaming?: boolean
|
|
30
|
-
noScripts?: boolean
|
|
31
|
-
/** @deprecated Use `noScripts` instead */
|
|
32
|
-
experimentalNoScripts?: boolean
|
|
33
|
-
appMiddleware?: Record<string, boolean>
|
|
34
|
-
appLayout?: string | false
|
|
35
|
-
}
|
|
36
|
-
interface NitroRuntimeHooks {
|
|
37
|
-
'dev:ssr-logs': (ctx: { logs: LogObject[], path: string }) => void | Promise<void>
|
|
38
|
-
'render:html': (htmlContext: NuxtRenderHTMLContext, context: { event: H3Event, streaming?: boolean }) => void | Promise<void>
|
|
39
|
-
'render:html:chunk': (chunkContext: NuxtRenderChunkContext, context: { event: H3Event }) => void | Promise<void>
|
|
40
|
-
'render:html:close': (closeContext: NuxtRenderCloseContext, context: { event: H3Event }) => void | Promise<void>
|
|
41
|
-
'render:route': (renderRouteContext: NuxtRenderRouteContext, context: { event: H3Event }) => void | Promise<void>
|
|
42
|
-
'render:island': (islandResponse: NuxtIslandResponse, context: { event: H3Event, islandContext: NuxtIslandContext }) => void | Promise<void>
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
declare module 'nitropack/types' {
|
|
46
|
-
interface NitroRuntimeConfigApp {
|
|
47
|
-
buildAssetsDir: string
|
|
48
|
-
cdnURL: string
|
|
49
|
-
}
|
|
50
|
-
interface NitroRuntimeConfig extends RuntimeConfig {}
|
|
51
|
-
interface NitroRouteConfig {
|
|
52
|
-
ssr?: boolean
|
|
53
|
-
streaming?: boolean
|
|
54
|
-
noScripts?: boolean
|
|
55
|
-
/** @deprecated Use `noScripts` instead */
|
|
56
|
-
experimentalNoScripts?: boolean
|
|
57
|
-
}
|
|
58
|
-
interface NitroRouteRules {
|
|
59
|
-
ssr?: boolean
|
|
60
|
-
streaming?: boolean
|
|
61
|
-
noScripts?: boolean
|
|
62
|
-
/** @deprecated Use `noScripts` instead */
|
|
63
|
-
experimentalNoScripts?: boolean
|
|
64
|
-
appMiddleware?: Record<string, boolean>
|
|
65
|
-
appLayout?: string | false
|
|
66
|
-
}
|
|
67
|
-
interface NitroRuntimeHooks {
|
|
68
|
-
'dev:ssr-logs': (ctx: { logs: LogObject[], path: string }) => void | Promise<void>
|
|
69
|
-
'render:html': (htmlContext: NuxtRenderHTMLContext, context: { event: H3Event, streaming?: boolean }) => void | Promise<void>
|
|
70
|
-
'render:html:chunk': (chunkContext: NuxtRenderChunkContext, context: { event: H3Event }) => void | Promise<void>
|
|
71
|
-
'render:html:close': (closeContext: NuxtRenderCloseContext, context: { event: H3Event }) => void | Promise<void>
|
|
72
|
-
'render:route': (renderRouteContext: NuxtRenderRouteContext, context: { event: H3Event }) => void | Promise<void>
|
|
73
|
-
'render:island': (islandResponse: NuxtIslandResponse, context: { event: H3Event, islandContext: NuxtIslandContext }) => void | Promise<void>
|
|
74
|
-
}
|
|
75
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// Generated by nitro
|
|
2
|
-
import type { Serialize, Simplify } from "nitropack/types";
|
|
3
|
-
declare module "nitropack/types" {
|
|
4
|
-
type Awaited<T> = T extends PromiseLike<infer U> ? Awaited<U> : T
|
|
5
|
-
interface InternalApi {
|
|
6
|
-
'/__nuxt_error': {
|
|
7
|
-
'default': Simplify<Serialize<Awaited<ReturnType<typeof import('../../../../node_modules/.pnpm/@nuxt+nitro-server@4.5.2_@babel+plugin-proposal-decorators@7.29.7_@babel+core@7.29.7_su_f01f79d0a261870c3832f7874a24e3de/node_modules/@nuxt/nitro-server/dist/runtime/handlers/renderer').default>>>>
|
|
8
|
-
}
|
|
9
|
-
'/auth/login': {
|
|
10
|
-
'get': Simplify<Serialize<Awaited<ReturnType<typeof import('../../src/runtime/server/api/auth/login.get').default>>>>
|
|
11
|
-
}
|
|
12
|
-
'/auth/register': {
|
|
13
|
-
'get': Simplify<Serialize<Awaited<ReturnType<typeof import('../../src/runtime/server/api/auth/register.get').default>>>>
|
|
14
|
-
}
|
|
15
|
-
'/auth/callback': {
|
|
16
|
-
'get': Simplify<Serialize<Awaited<ReturnType<typeof import('../../src/runtime/server/api/auth/callback.get').default>>>>
|
|
17
|
-
}
|
|
18
|
-
'/auth/refresh': {
|
|
19
|
-
'get': Simplify<Serialize<Awaited<ReturnType<typeof import('../../src/runtime/server/api/auth/refresh.get').default>>>>
|
|
20
|
-
}
|
|
21
|
-
'/auth/revoke': {
|
|
22
|
-
'get': Simplify<Serialize<Awaited<ReturnType<typeof import('../../src/runtime/server/api/auth/revoke.get').default>>>>
|
|
23
|
-
}
|
|
24
|
-
'/auth/entry': {
|
|
25
|
-
'get': Simplify<Serialize<Awaited<ReturnType<typeof import('../../src/runtime/server/api/auth/entry.get').default>>>>
|
|
26
|
-
}
|
|
27
|
-
'/auth/logout': {
|
|
28
|
-
'get': Simplify<Serialize<Awaited<ReturnType<typeof import('../../src/runtime/server/api/auth/logout.get').default>>>>
|
|
29
|
-
}
|
|
30
|
-
'/auth/backchannel-logout': {
|
|
31
|
-
'get': Simplify<Serialize<Awaited<ReturnType<typeof import('../../src/runtime/server/api/auth/backchannel-logout.get').default>>>>
|
|
32
|
-
}
|
|
33
|
-
'/__nuxt_island/**': {
|
|
34
|
-
'default': Simplify<Serialize<Awaited<ReturnType<typeof import('../../server/#internal/nuxt/island-renderer').default>>>>
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
export {}
|
package/.nuxt/types/nitro.d.ts
DELETED
package/.nuxt/types/plugins.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// Generated by Nuxt'
|
|
2
|
-
import type { Plugin } from '#app'
|
|
3
|
-
|
|
4
|
-
type Decorate<T extends Record<string, any>> = { [K in keyof T as K extends string ? `$${K}` : never]: T[K] }
|
|
5
|
-
|
|
6
|
-
type InjectionType<A extends Plugin> = A extends {default: Plugin<infer T>} ? Decorate<T> : unknown
|
|
7
|
-
|
|
8
|
-
type NuxtAppInjections =
|
|
9
|
-
InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/plugins/revive-payload.client.js")> &
|
|
10
|
-
InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/head/runtime/plugins/unhead.server.js")> &
|
|
11
|
-
InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/head/runtime/plugins/unhead.client.js")> &
|
|
12
|
-
InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/plugins/router.js")> &
|
|
13
|
-
InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/plugins/navigation-repaint.client.js")> &
|
|
14
|
-
InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/plugins/check-outdated-build.client.js")> &
|
|
15
|
-
InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@4.5.2_6ed97a1f3ddf9a9523af906298c85ee8/node_modules/nuxt/dist/app/plugins/revive-payload.server.js")> &
|
|
16
|
-
InjectionType<typeof import("../components.plugin.mjs")>
|
|
17
|
-
|
|
18
|
-
declare module '#app' {
|
|
19
|
-
interface NuxtApp extends NuxtAppInjections { }
|
|
20
|
-
|
|
21
|
-
interface NuxtAppLiterals {
|
|
22
|
-
pluginName: 'nuxt:revive-payload:client' | 'nuxt:head' | 'nuxt:head' | 'nuxt:router' | 'nuxt:revive-payload:server' | 'nuxt:global-components'
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
declare module 'vue' {
|
|
27
|
-
interface ComponentCustomProperties extends NuxtAppInjections { }
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export { }
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { RuntimeConfig as UserRuntimeConfig, PublicRuntimeConfig as UserPublicRuntimeConfig } from 'nuxt/schema'
|
|
2
|
-
interface SharedRuntimeConfig {
|
|
3
|
-
app: {
|
|
4
|
-
buildId: string,
|
|
5
|
-
|
|
6
|
-
baseURL: string,
|
|
7
|
-
|
|
8
|
-
buildAssetsDir: string,
|
|
9
|
-
|
|
10
|
-
cdnURL: string,
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
strivacity: {
|
|
14
|
-
authUrlPrefix: string,
|
|
15
|
-
|
|
16
|
-
serverSessionUri: string,
|
|
17
|
-
},
|
|
18
|
-
}
|
|
19
|
-
interface SharedPublicRuntimeConfig {
|
|
20
|
-
strivacity: {
|
|
21
|
-
authUrlPrefix: string,
|
|
22
|
-
|
|
23
|
-
serverSessionUri: string,
|
|
24
|
-
},
|
|
25
|
-
}
|
|
26
|
-
declare module '@nuxt/schema' {
|
|
27
|
-
interface RuntimeConfig extends UserRuntimeConfig {}
|
|
28
|
-
interface PublicRuntimeConfig extends UserPublicRuntimeConfig {}
|
|
29
|
-
}
|
|
30
|
-
declare module 'nuxt/schema' {
|
|
31
|
-
interface RuntimeConfig extends SharedRuntimeConfig {}
|
|
32
|
-
interface PublicRuntimeConfig extends SharedPublicRuntimeConfig {}
|
|
33
|
-
}
|
|
34
|
-
declare module 'vue' {
|
|
35
|
-
interface ComponentCustomProperties {
|
|
36
|
-
$config: UserRuntimeConfig
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import type { CustomAppConfig } from 'nuxt/schema'
|
|
3
|
-
|
|
4
|
-
declare const inlineConfig = {
|
|
5
|
-
"nuxt": {}
|
|
6
|
-
}
|
|
7
|
-
type IsAny<T> = 0 extends 1 & T ? true : false
|
|
8
|
-
|
|
9
|
-
type MergedAppConfig<Resolved extends Record<string, unknown>, Custom extends Record<string, unknown>> = {
|
|
10
|
-
[K in keyof (Resolved & Custom)]: K extends keyof Custom
|
|
11
|
-
? unknown extends Custom[K]
|
|
12
|
-
? Resolved[K]
|
|
13
|
-
: IsAny<Custom[K]> extends true
|
|
14
|
-
? Resolved[K]
|
|
15
|
-
: Custom[K] extends Record<string, any>
|
|
16
|
-
? Resolved[K] extends Record<string, any>
|
|
17
|
-
? MergedAppConfig<Resolved[K], Custom[K]>
|
|
18
|
-
: Exclude<Custom[K], undefined>
|
|
19
|
-
: Exclude<Custom[K], undefined>
|
|
20
|
-
: Resolved[K]
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
declare module 'nuxt/schema' {
|
|
24
|
-
interface AppConfig extends MergedAppConfig<typeof inlineConfig, CustomAppConfig> { }
|
|
25
|
-
}
|
|
26
|
-
declare module '@nuxt/schema' {
|
|
27
|
-
interface AppConfig extends MergedAppConfig<typeof inlineConfig, CustomAppConfig> { }
|
|
28
|
-
}
|
|
File without changes
|
package/.nuxt/unhead-options.mjs
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { legacyPlugins } from "/home/runner/work/sdk-js/sdk-js/node_modules/.pnpm/@unhead+vue@3.4.0_@oxc-project+types@0.147.0_esbuild@0.28.2_lightningcss@1.33.0_oxc-par_02dfb1aaca74e15bbdf0130491c83cdb/node_modules/@unhead/vue/dist/legacy.mjs";
|
|
2
|
-
export default {
|
|
3
|
-
disableDefaults: true,
|
|
4
|
-
plugins: legacyPlugins,
|
|
5
|
-
}
|
package/.nuxt/unhead.config.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const renderSSRHeadOptions = {"omitLineBreaks":true}
|
package/dist/module.d.mts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
-
import { NuxtServerSDKInitConfig } from '../dist/runtime/types.js';
|
|
3
|
-
export * from '../dist/runtime/types.js';
|
|
4
|
-
|
|
5
|
-
declare const _default: _nuxt_schema.NuxtModule<NuxtServerSDKInitConfig, NuxtServerSDKInitConfig, false>;
|
|
6
|
-
|
|
7
|
-
export { _default as default };
|
package/dist/module.json
DELETED
package/dist/module.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"module.mjs","sources":["../src/module.ts"],"sourcesContent":["import type { NuxtServerSDKInitConfig } from './runtime/types';\nimport {\n\tdefineNuxtModule,\n\tresolvePath,\n\tcreateResolver,\n\taddImportsDir,\n\taddServerImportsDir,\n\taddServerHandler,\n\taddServerPlugin,\n\taddRouteMiddleware,\n} from '@nuxt/kit';\n\nexport type * from './runtime/types';\n\nexport default defineNuxtModule<NuxtServerSDKInitConfig>({\n\tmeta: {\n\t\tname: '@strivacity/sdk-nuxt',\n\t\tconfigKey: 'strivacity',\n\t},\n\tsetup: async (options, nuxt) => {\n\t\tconst resolver = createResolver(import.meta.url);\n\n\t\tif (!options.authUrlPrefix) {\n\t\t\toptions.authUrlPrefix = '/auth';\n\t\t}\n\t\tif (typeof options.serverSessionUri === 'undefined') {\n\t\t\toptions.serverSessionUri = `${options.authUrlPrefix}/login`;\n\t\t}\n\n\t\t// eslint-disable-next-line @typescript-eslint/no-unused-vars\n\t\tconst { secret, storageFactoryPath, stateStorageFactoryPath, loggingFactoryPath, httpClientFactoryPath, ...publicOptions } = options;\n\t\tconst noop = resolver.resolve('./runtime/utils/noop');\n\n\t\tnuxt.options.runtimeConfig.strivacity = options;\n\t\tnuxt.options.runtimeConfig.public.strivacity = publicOptions;\n\t\tnuxt.options.alias = nuxt.options.alias || {};\n\t\tnuxt.options.nitro.alias = nuxt.options.nitro.alias || {};\n\n\t\tconst loggingPath = options.loggingFactoryPath ? await resolvePath(options.loggingFactoryPath) : noop;\n\t\tconst httpClientPath = options.httpClientFactoryPath ? await resolvePath(options.httpClientFactoryPath) : noop;\n\t\tconst storagePath = options.storageFactoryPath ? await resolvePath(options.storageFactoryPath) : noop;\n\t\tconst stateStoragePath = options.stateStorageFactoryPath ? await resolvePath(options.stateStorageFactoryPath) : noop;\n\n\t\tnuxt.options.alias['#strivacity-options-logging'] = loggingPath;\n\t\tnuxt.options.alias['#strivacity-options-httpClient'] = httpClientPath;\n\t\tnuxt.options.alias['#strivacity-options-storage'] = storagePath;\n\t\tnuxt.options.alias['#strivacity-options-stateStorage'] = stateStoragePath;\n\t\tnuxt.options.nitro.alias['#strivacity-options-logging'] = loggingPath;\n\t\tnuxt.options.nitro.alias['#strivacity-options-httpClient'] = httpClientPath;\n\t\tnuxt.options.nitro.alias['#strivacity-options-storage'] = storagePath;\n\t\tnuxt.options.nitro.alias['#strivacity-options-stateStorage'] = stateStoragePath;\n\n\t\taddImportsDir(resolver.resolve('./runtime/composables'));\n\t\taddImportsDir(resolver.resolve('./runtime/storages'));\n\t\taddImportsDir(resolver.resolve('./runtime/utils'));\n\n\t\tif (options.serverSessionUri) {\n\t\t\taddServerImportsDir(resolver.resolve('./runtime/server/composables'));\n\t\t\taddServerImportsDir(resolver.resolve('./runtime/server/utils'));\n\t\t\taddServerImportsDir(resolver.resolve('./runtime/storages'));\n\n\t\t\taddServerPlugin(resolver.resolve('./runtime/server/plugins/auth.server'));\n\t\t\taddRouteMiddleware({ name: 'strivacity', path: resolver.resolve('./runtime/middleware/auth.server'), global: true });\n\n\t\t\taddServerHandler({\n\t\t\t\tmethod: 'get',\n\t\t\t\troute: `${options.authUrlPrefix}/login`,\n\t\t\t\thandler: resolver.resolve('./runtime/server/api/auth/login.get'),\n\t\t\t});\n\t\t\taddServerHandler({\n\t\t\t\tmethod: 'get',\n\t\t\t\troute: `${options.authUrlPrefix}/register`,\n\t\t\t\thandler: resolver.resolve('./runtime/server/api/auth/register.get'),\n\t\t\t});\n\t\t\taddServerHandler({\n\t\t\t\tmethod: 'get',\n\t\t\t\troute: `${options.authUrlPrefix}/callback`,\n\t\t\t\thandler: resolver.resolve('./runtime/server/api/auth/callback.get'),\n\t\t\t});\n\t\t\taddServerHandler({\n\t\t\t\tmethod: 'get',\n\t\t\t\troute: `${options.authUrlPrefix}/refresh`,\n\t\t\t\thandler: resolver.resolve('./runtime/server/api/auth/refresh.get'),\n\t\t\t});\n\t\t\taddServerHandler({\n\t\t\t\tmethod: 'get',\n\t\t\t\troute: `${options.authUrlPrefix}/revoke`,\n\t\t\t\thandler: resolver.resolve('./runtime/server/api/auth/revoke.get'),\n\t\t\t});\n\t\t\taddServerHandler({\n\t\t\t\tmethod: 'get',\n\t\t\t\troute: `${options.authUrlPrefix}/entry`,\n\t\t\t\thandler: resolver.resolve('./runtime/server/api/auth/entry.get'),\n\t\t\t});\n\t\t\taddServerHandler({\n\t\t\t\tmethod: 'get',\n\t\t\t\troute: `${options.authUrlPrefix}/logout`,\n\t\t\t\thandler: resolver.resolve('./runtime/server/api/auth/logout.get'),\n\t\t\t});\n\t\t\taddServerHandler({\n\t\t\t\tmethod: 'get',\n\t\t\t\troute: `${options.authUrlPrefix}/backchannel-logout`,\n\t\t\t\thandler: resolver.resolve('./runtime/server/api/auth/backchannel-logout.get'),\n\t\t\t});\n\t\t}\n\t},\n});\n"],"names":[],"mappings":";;AAcA,iBAAe,gBAAA,CAA0C;AAAA,EACxD,IAAA,EAAM;AAAA,IACL,IAAA,EAAM,sBAAA;AAAA,IACN,SAAA,EAAW;AAAA,GACZ;AAAA,EACA,KAAA,EAAO,OAAO,OAAA,EAAS,IAAA,KAAS;AAC/B,IAAA,MAAM,QAAA,GAAW,cAAA,CAAe,MAAA,CAAA,IAAA,CAAY,GAAG,CAAA;AAE/C,IAAA,IAAI,CAAC,QAAQ,aAAA,EAAe;AAC3B,MAAA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AA,CAAS,OAAA,CAAQ,qCAAqC;AAAA,OAC/D,CAAA;AACD,MAAA,gBAAA,CAAiB;AAAA,QAChB,MAAA,EAAQ,KAAA;AAAA,QACR,KAAA,EAAO,CAAA,EAAG,OAAA,CAAQ,aAAa,CAAA,OAAA,CAAA;AAAA,QAC/B,OAAA,EAAS,QAAA,CAAS,OAAA,CAAQ,sCAAsC;AAAA,OAChE,CAAA;AACD,MAAA,gBAAA,CAAiB;AAAA,QAChB,MAAA,EAAQ,KAAA;AAAA,QACR,KAAA,EAAO,CAAA,EAAG,OAAA,CAAQ,aAAa,CAAA,mBAAA,CAAA;AAAA,QAC/B,OAAA,EAAS,QAAA,CAAS,OAAA,CAAQ,kDAAkD;AAAA,OAC5E,CAAA;AAAA,IACF;AAAA,EACD;AACD,CAAC,CAAA;;"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type InjectionKey } from 'vue';
|
|
2
|
-
import type { LoginContext } from '../types.js';
|
|
3
|
-
export declare const STRIVACITY_LOGIN_CONTEXT: InjectionKey<LoginContext>;
|
|
4
|
-
/**
|
|
5
|
-
* A composable to access the Strivacity SDK context specifically for native login flow.
|
|
6
|
-
*
|
|
7
|
-
* @returns {LoginContext} - The native flow context.
|
|
8
|
-
* @throws {Error} - If the Strivacity SDK context is not found.
|
|
9
|
-
*/
|
|
10
|
-
export declare const useNativeLoginContext: () => LoginContext;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { inject } from "vue";
|
|
2
|
-
export const STRIVACITY_LOGIN_CONTEXT = Symbol("strivacity-login-context");
|
|
3
|
-
export const useNativeLoginContext = () => {
|
|
4
|
-
const context = inject(STRIVACITY_LOGIN_CONTEXT);
|
|
5
|
-
if (!context) {
|
|
6
|
-
throw new Error("Missing SDK native login context");
|
|
7
|
-
}
|
|
8
|
-
return context;
|
|
9
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { UseNativeLoginOptions } from '../types.js';
|
|
2
|
-
import { type useNativeLoginContext } from './use-native-login-context.js';
|
|
3
|
-
/**
|
|
4
|
-
* A composable that manages a native login flow session.
|
|
5
|
-
*
|
|
6
|
-
* @param {UseNativeLoginOptions} [options] - Optional options for the login session.
|
|
7
|
-
* @returns {LoginContext} - The native flow context.
|
|
8
|
-
* @throws {Error} - If the Strivacity SDK context is not found.
|
|
9
|
-
*/
|
|
10
|
-
export declare function useNativeLogin(options?: UseNativeLoginOptions): ReturnType<typeof useNativeLoginContext>;
|