@strivacity/sdk-nuxt 3.0.2 → 4.0.0-beta.0
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/.nuxt/app-component.mjs +1 -1
- package/.nuxt/app.config.mjs +21 -0
- package/.nuxt/component-names.mjs +1 -1
- package/.nuxt/components.d.ts +48 -48
- package/.nuxt/components.islands.mjs +6 -2
- package/.nuxt/error-component.mjs +1 -1
- package/.nuxt/fetch.d.ts +1 -0
- package/.nuxt/fetch.mjs +4 -3
- package/.nuxt/imports.d.ts +15 -5
- package/.nuxt/imports.mjs +15 -5
- package/.nuxt/island-renderer.mjs +2 -0
- package/.nuxt/middleware.mjs +3 -1
- package/.nuxt/nuxt.config.mjs +103 -0
- package/.nuxt/nuxt.d.ts +3 -4
- package/.nuxt/nuxt.node.d.ts +4 -4
- package/.nuxt/nuxt.shared.d.ts +3 -1
- package/.nuxt/plugins.client.mjs +10 -14
- package/.nuxt/plugins.server.mjs +6 -6
- package/.nuxt/root-component.mjs +1 -1
- package/.nuxt/route-rules.mjs +22 -0
- package/.nuxt/test-component-wrapper.mjs +1 -1
- package/.nuxt/tsconfig.app.json +211 -0
- package/.nuxt/tsconfig.json +212 -0
- package/.nuxt/tsconfig.node.json +117 -0
- package/.nuxt/tsconfig.server.json +161 -0
- package/.nuxt/tsconfig.shared.json +165 -0
- package/.nuxt/types/app.config.d.ts +35 -0
- package/.nuxt/types/components.d.ts +48 -48
- package/.nuxt/types/imports.d.ts +1 -1
- package/.nuxt/types/layouts.d.ts +16 -0
- package/.nuxt/types/modules.d.ts +20 -20
- package/.nuxt/types/nitro-imports.d.ts +9 -4
- package/.nuxt/types/nitro-layouts.d.ts +17 -0
- package/.nuxt/types/nitro-nuxt.d.ts +19 -5
- package/.nuxt/types/nitro-routes.d.ts +25 -1
- package/.nuxt/types/plugins.d.ts +8 -9
- package/.nuxt/types/runtime-config.d.ts +6 -12
- package/.nuxt/types/shared-app.config.d.ts +28 -0
- package/.nuxt/types/shared-imports.d.ts +2 -0
- package/.nuxt/unhead-options.mjs +2 -1
- package/.nuxt/unhead.config.mjs +1 -0
- package/CHANGELOG.md +16 -14
- package/README.md +1577 -406
- package/build.config.ts +5 -0
- package/dist/module.d.mts +3 -193
- package/dist/module.json +2 -2
- package/dist/module.mjs +78 -57
- package/dist/module.mjs.map +1 -1
- package/dist/runtime/composables/use-native-login-context.d.ts +10 -0
- package/dist/runtime/composables/use-native-login-context.js +9 -0
- package/dist/runtime/composables/use-native-login.d.ts +10 -0
- package/dist/runtime/composables/use-native-login.js +143 -0
- package/dist/runtime/composables/use-session.d.ts +8 -0
- package/dist/runtime/composables/use-session.js +2 -0
- package/dist/runtime/composables/use-strivacity.d.ts +9 -0
- package/dist/runtime/composables/use-strivacity.js +77 -0
- package/dist/runtime/middleware/auth.server.d.ts +2 -0
- package/dist/runtime/middleware/auth.server.js +12 -0
- package/dist/runtime/server/api/auth/backchannel-logout.get.d.ts +2 -0
- package/dist/runtime/server/api/auth/backchannel-logout.get.js +2 -0
- package/dist/runtime/server/api/auth/callback.get.d.ts +2 -0
- package/dist/runtime/server/api/auth/callback.get.js +2 -0
- package/dist/runtime/server/api/auth/entry.get.d.ts +2 -0
- package/dist/runtime/server/api/auth/entry.get.js +2 -0
- package/dist/runtime/server/api/auth/login.get.d.ts +2 -0
- package/dist/runtime/server/api/auth/login.get.js +2 -0
- package/dist/runtime/server/api/auth/logout.get.d.ts +2 -0
- package/dist/runtime/server/api/auth/logout.get.js +2 -0
- package/dist/runtime/server/api/auth/refresh.get.d.ts +2 -0
- package/dist/runtime/server/api/auth/refresh.get.js +2 -0
- package/dist/runtime/server/api/auth/register.get.d.ts +2 -0
- package/dist/runtime/server/api/auth/register.get.js +2 -0
- package/dist/runtime/server/api/auth/revoke.get.d.ts +2 -0
- package/dist/runtime/server/api/auth/revoke.get.js +2 -0
- package/dist/runtime/server/composables/use-strivacity.d.ts +2 -0
- package/dist/runtime/server/composables/use-strivacity.js +9 -0
- package/dist/runtime/server/plugins/auth.server.d.ts +10 -0
- package/dist/runtime/server/plugins/auth.server.js +66 -0
- package/dist/runtime/server/utils/helpers.d.ts +18 -0
- package/dist/runtime/server/utils/helpers.js +39 -0
- package/dist/runtime/storages/core.d.ts +1 -0
- package/dist/runtime/storages/core.js +13 -0
- package/dist/runtime/storages/default.d.ts +21 -0
- package/dist/runtime/storages/default.js +71 -0
- package/dist/runtime/types.d.ts +219 -0
- package/dist/runtime/types.js +1 -0
- package/dist/runtime/utils/core.d.ts +1 -0
- package/dist/runtime/utils/core.js +64 -0
- package/dist/runtime/utils/noop.d.ts +1 -0
- package/dist/runtime/utils/noop.js +3 -0
- package/dist/types.d.mts +4 -16
- package/eslint.config.mjs +5 -0
- package/nuxt.config.ts +5 -0
- package/package.json +31 -5
- package/project.json +44 -0
- package/src/module.ts +107 -0
- package/src/runtime/composables/use-native-login-context.ts +20 -0
- package/src/runtime/composables/use-native-login.ts +182 -0
- package/src/runtime/composables/use-session.ts +10 -0
- package/src/runtime/composables/use-strivacity.ts +95 -0
- package/src/runtime/middleware/auth.server.ts +16 -0
- package/src/runtime/server/api/auth/backchannel-logout.get.ts +3 -0
- package/src/runtime/server/api/auth/callback.get.ts +3 -0
- package/src/runtime/server/api/auth/entry.get.ts +3 -0
- package/src/runtime/server/api/auth/login.get.ts +3 -0
- package/src/runtime/server/api/auth/logout.get.ts +3 -0
- package/src/runtime/server/api/auth/refresh.get.ts +3 -0
- package/src/runtime/server/api/auth/register.get.ts +3 -0
- package/src/runtime/server/api/auth/revoke.get.ts +3 -0
- package/src/runtime/server/composables/use-strivacity.ts +13 -0
- package/src/runtime/server/plugins/auth.server.ts +84 -0
- package/src/runtime/server/utils/helpers.ts +67 -0
- package/src/runtime/storages/core.ts +13 -0
- package/src/runtime/storages/default.ts +111 -0
- package/src/runtime/types.ts +289 -0
- package/src/runtime/utils/core.ts +64 -0
- package/src/runtime/utils/noop.ts +3 -0
- package/testing/stubs/app.ts +6 -0
- package/testing/stubs/imports.ts +19 -0
- package/testing/stubs/options-httpClient.ts +8 -0
- package/testing/stubs/options-logging.ts +8 -0
- package/testing/stubs/options-stateStorage.ts +8 -0
- package/testing/stubs/options-storage.ts +8 -0
- package/testing/tests/composables.spec.ts +512 -0
- package/testing/tests/server/helpers.spec.ts +86 -0
- package/testing/tests/server/plugin.spec.ts +138 -0
- package/testing/tests/server/routes.spec.ts +34 -0
- package/testing/tests/server/use-strivacity.spec.ts +22 -0
- package/testing/tests/storages-default.spec.ts +151 -0
- package/testing/tests/storages.spec.ts +16 -0
- package/testing/tests/utils.spec.ts +10 -0
- package/testing/utils/common.ts +33 -0
- package/testing/utils/http.ts +58 -0
- package/tsconfig.json +3 -0
- package/vite.config.mts +20 -0
- package/.nuxt/strivacity-sdk-logging.d.ts +0 -13
- package/.nuxt/strivacity-sdk-logging.mjs +0 -1
- package/.nuxt/strivacity-sdk-storage.d.ts +0 -10
- package/.nuxt/strivacity-sdk-storage.mjs +0 -1
- package/dist/runtime/composables.d.ts +0 -12
- package/dist/runtime/composables.js +0 -83
- package/dist/runtime/login-renderer.vue +0 -174
- package/dist/runtime/login-renderer.vue.d.ts +0 -39
- /package/.nuxt/manifest/meta/{b47927c0-b36b-4d2c-b650-8d55c5ec676a.json → cb11df97-b0c9-4a91-9d4b-60c25c918599.json} +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
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';
|
|
2
3
|
export { useNitroApp } from 'nitropack/runtime/internal/app';
|
|
3
|
-
export { useRuntimeConfig
|
|
4
|
+
export { useRuntimeConfig } from 'nitropack/runtime/internal/config';
|
|
4
5
|
export { defineNitroPlugin, nitroPlugin } from 'nitropack/runtime/internal/plugin';
|
|
5
6
|
export { defineCachedFunction, defineCachedEventHandler, cachedFunction, cachedEventHandler } from 'nitropack/runtime/internal/cache';
|
|
6
7
|
export { useStorage } from 'nitropack/runtime/internal/storage';
|
|
@@ -10,6 +11,10 @@ export { getRouteRules } from 'nitropack/runtime/internal/route-rules';
|
|
|
10
11
|
export { useEvent } from 'nitropack/runtime/internal/context';
|
|
11
12
|
export { defineTask, runTask } from 'nitropack/runtime/internal/task';
|
|
12
13
|
export { defineNitroErrorHandler } from 'nitropack/runtime/internal/error/utils';
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
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';
|
|
@@ -0,0 +1,17 @@
|
|
|
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,13 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
/// <reference path="
|
|
2
|
+
/// <reference path="nitro-layouts.d.ts" />
|
|
3
|
+
/// <reference path="shared-app.config.d.ts" />
|
|
3
4
|
/// <reference path="runtime-config.d.ts" />
|
|
4
|
-
/// <reference
|
|
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" />
|
|
5
6
|
/// <reference path="middleware.d.ts" />
|
|
7
|
+
/// <reference path="../schema/nuxt.schema.d.ts" />
|
|
6
8
|
|
|
7
9
|
import type { RuntimeConfig } from 'nuxt/schema'
|
|
8
10
|
import type { H3Event } from 'h3'
|
|
9
11
|
import type { LogObject } from 'consola'
|
|
10
|
-
import type { NuxtIslandContext, NuxtIslandResponse, NuxtRenderHTMLContext } from '
|
|
12
|
+
import type { NuxtIslandContext, NuxtIslandResponse, NuxtRenderChunkContext, NuxtRenderCloseContext, NuxtRenderHTMLContext, NuxtRenderRouteContext } from '#app/types'
|
|
11
13
|
|
|
12
14
|
declare module 'nitropack' {
|
|
13
15
|
interface NitroRuntimeConfigApp {
|
|
@@ -17,20 +19,26 @@ declare module 'nitropack' {
|
|
|
17
19
|
interface NitroRuntimeConfig extends RuntimeConfig {}
|
|
18
20
|
interface NitroRouteConfig {
|
|
19
21
|
ssr?: boolean
|
|
22
|
+
streaming?: boolean
|
|
20
23
|
noScripts?: boolean
|
|
21
24
|
/** @deprecated Use `noScripts` instead */
|
|
22
25
|
experimentalNoScripts?: boolean
|
|
23
26
|
}
|
|
24
27
|
interface NitroRouteRules {
|
|
25
28
|
ssr?: boolean
|
|
29
|
+
streaming?: boolean
|
|
26
30
|
noScripts?: boolean
|
|
27
31
|
/** @deprecated Use `noScripts` instead */
|
|
28
32
|
experimentalNoScripts?: boolean
|
|
29
33
|
appMiddleware?: Record<string, boolean>
|
|
34
|
+
appLayout?: string | false
|
|
30
35
|
}
|
|
31
36
|
interface NitroRuntimeHooks {
|
|
32
37
|
'dev:ssr-logs': (ctx: { logs: LogObject[], path: string }) => void | Promise<void>
|
|
33
|
-
'render:html': (htmlContext: NuxtRenderHTMLContext, context: { event: H3Event }) => 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>
|
|
34
42
|
'render:island': (islandResponse: NuxtIslandResponse, context: { event: H3Event, islandContext: NuxtIslandContext }) => void | Promise<void>
|
|
35
43
|
}
|
|
36
44
|
}
|
|
@@ -42,20 +50,26 @@ declare module 'nitropack/types' {
|
|
|
42
50
|
interface NitroRuntimeConfig extends RuntimeConfig {}
|
|
43
51
|
interface NitroRouteConfig {
|
|
44
52
|
ssr?: boolean
|
|
53
|
+
streaming?: boolean
|
|
45
54
|
noScripts?: boolean
|
|
46
55
|
/** @deprecated Use `noScripts` instead */
|
|
47
56
|
experimentalNoScripts?: boolean
|
|
48
57
|
}
|
|
49
58
|
interface NitroRouteRules {
|
|
50
59
|
ssr?: boolean
|
|
60
|
+
streaming?: boolean
|
|
51
61
|
noScripts?: boolean
|
|
52
62
|
/** @deprecated Use `noScripts` instead */
|
|
53
63
|
experimentalNoScripts?: boolean
|
|
54
64
|
appMiddleware?: Record<string, boolean>
|
|
65
|
+
appLayout?: string | false
|
|
55
66
|
}
|
|
56
67
|
interface NitroRuntimeHooks {
|
|
57
68
|
'dev:ssr-logs': (ctx: { logs: LogObject[], path: string }) => void | Promise<void>
|
|
58
|
-
'render:html': (htmlContext: NuxtRenderHTMLContext, context: { event: H3Event }) => 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>
|
|
59
73
|
'render:island': (islandResponse: NuxtIslandResponse, context: { event: H3Event, islandContext: NuxtIslandContext }) => void | Promise<void>
|
|
60
74
|
}
|
|
61
75
|
}
|
|
@@ -4,7 +4,31 @@ 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+nitro-server@4.
|
|
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>>>>
|
|
8
32
|
}
|
|
9
33
|
'/__nuxt_island/**': {
|
|
10
34
|
'default': Simplify<Serialize<Awaited<ReturnType<typeof import('../../server/#internal/nuxt/island-renderer').default>>>>
|
package/.nuxt/types/plugins.d.ts
CHANGED
|
@@ -6,21 +6,20 @@ type Decorate<T extends Record<string, any>> = { [K in keyof T as K extends stri
|
|
|
6
6
|
type InjectionType<A extends Plugin> = A extends {default: Plugin<infer T>} ? Decorate<T> : unknown
|
|
7
7
|
|
|
8
8
|
type NuxtAppInjections =
|
|
9
|
-
InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@4.
|
|
10
|
-
InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@4.
|
|
11
|
-
InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@4.
|
|
12
|
-
InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@4.
|
|
13
|
-
InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@4.
|
|
14
|
-
InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@4.
|
|
15
|
-
InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@4.
|
|
16
|
-
InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@4.2.1_@capacitor+preferences@7.0.2_@capacitor+core@7.4.4__@parcel+watcher@2.4.1_@t_1d06f86fa43ea6ae8c6fb55b6f4fcdfe/node_modules/nuxt/dist/app/plugins/chunk-reload.client.js")> &
|
|
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")> &
|
|
17
16
|
InjectionType<typeof import("../components.plugin.mjs")>
|
|
18
17
|
|
|
19
18
|
declare module '#app' {
|
|
20
19
|
interface NuxtApp extends NuxtAppInjections { }
|
|
21
20
|
|
|
22
21
|
interface NuxtAppLiterals {
|
|
23
|
-
pluginName: 'nuxt:revive-payload:client' | 'nuxt:head' | 'nuxt:
|
|
22
|
+
pluginName: 'nuxt:revive-payload:client' | 'nuxt:head' | 'nuxt:head' | 'nuxt:router' | 'nuxt:revive-payload:server' | 'nuxt:global-components'
|
|
24
23
|
}
|
|
25
24
|
}
|
|
26
25
|
|
|
@@ -10,23 +10,17 @@ import { RuntimeConfig as UserRuntimeConfig, PublicRuntimeConfig as UserPublicRu
|
|
|
10
10
|
cdnURL: string,
|
|
11
11
|
},
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
strivacity: {
|
|
14
|
+
authUrlPrefix: string,
|
|
15
|
+
|
|
16
|
+
serverSessionUri: string,
|
|
15
17
|
},
|
|
16
18
|
}
|
|
17
19
|
interface SharedPublicRuntimeConfig {
|
|
18
20
|
strivacity: {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
scopes: Array<string>,
|
|
22
|
-
|
|
23
|
-
clientId: string,
|
|
24
|
-
|
|
25
|
-
redirectUri: string,
|
|
26
|
-
|
|
27
|
-
responseType: string,
|
|
21
|
+
authUrlPrefix: string,
|
|
28
22
|
|
|
29
|
-
|
|
23
|
+
serverSessionUri: string,
|
|
30
24
|
},
|
|
31
25
|
}
|
|
32
26
|
declare module '@nuxt/schema' {
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
}
|
package/.nuxt/unhead-options.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
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
2
|
export default {
|
|
3
3
|
disableDefaults: true,
|
|
4
|
+
plugins: legacyPlugins,
|
|
4
5
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const renderSSRHeadOptions = {"omitLineBreaks":true}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## 3.0.3 (2026-08-03)
|
|
2
|
+
|
|
3
|
+
### 🧱 Updated Dependencies
|
|
4
|
+
|
|
5
|
+
- Updated sdk-core to 3.0.3
|
|
6
|
+
|
|
1
7
|
## 3.0.2 (2026-05-12)
|
|
2
8
|
|
|
3
9
|
### 🩹 Fixes
|
|
@@ -22,11 +28,11 @@
|
|
|
22
28
|
|
|
23
29
|
### 🚀 Features
|
|
24
30
|
|
|
25
|
-
- ⚠️
|
|
31
|
+
- ⚠️ NativeFlow entry function now returns an object instead of a string ([9a8942d](https://github.com/Strivacity/sdk-js/commit/9a8942d))
|
|
26
32
|
|
|
27
|
-
### ⚠️
|
|
33
|
+
### ⚠️ Breaking Changes
|
|
28
34
|
|
|
29
|
-
- NativeFlow entry function now returns an object instead of a string
|
|
35
|
+
- NativeFlow entry function now returns an object instead of a string ([9a8942d](https://github.com/Strivacity/sdk-js/commit/9a8942d))
|
|
30
36
|
|
|
31
37
|
### 🧱 Updated Dependencies
|
|
32
38
|
|
|
@@ -36,11 +42,11 @@
|
|
|
36
42
|
|
|
37
43
|
### 🚀 Features
|
|
38
44
|
|
|
39
|
-
- ⚠️
|
|
45
|
+
- ⚠️ NativeFlow entry function now returns an object instead of a string ([9a8942d](https://github.com/Strivacity/sdk-js/commit/9a8942d))
|
|
40
46
|
|
|
41
|
-
### ⚠️
|
|
47
|
+
### ⚠️ Breaking Changes
|
|
42
48
|
|
|
43
|
-
- NativeFlow entry function now returns an object instead of a string
|
|
49
|
+
- NativeFlow entry function now returns an object instead of a string ([9a8942d](https://github.com/Strivacity/sdk-js/commit/9a8942d))
|
|
44
50
|
|
|
45
51
|
### 🧱 Updated Dependencies
|
|
46
52
|
|
|
@@ -138,12 +144,12 @@
|
|
|
138
144
|
### 🚀 Features
|
|
139
145
|
|
|
140
146
|
- ionic example app added ([494805a](https://github.com/strivacity/sdk-js/commit/494805a))
|
|
141
|
-
- ⚠️
|
|
147
|
+
- ⚠️ NativeFlow implemented ([75b353f](https://github.com/strivacity/sdk-js/commit/75b353f))
|
|
142
148
|
- @strivacity/sdk-nuxt package implemented ([1ac0c81](https://github.com/strivacity/sdk-js/commit/1ac0c81))
|
|
143
149
|
|
|
144
|
-
### ⚠️
|
|
150
|
+
### ⚠️ Breaking Changes
|
|
145
151
|
|
|
146
|
-
- ⚠️
|
|
152
|
+
- ⚠️ NativeFlow implemented ([75b353f](https://github.com/strivacity/sdk-js/commit/75b353f))
|
|
147
153
|
|
|
148
154
|
### 🧱 Updated Dependencies
|
|
149
155
|
|
|
@@ -152,7 +158,6 @@
|
|
|
152
158
|
|
|
153
159
|
## 1.0.1 (2025-02-03)
|
|
154
160
|
|
|
155
|
-
|
|
156
161
|
### 🩹 Fixes
|
|
157
162
|
|
|
158
163
|
- publish workflow fixed
|
|
@@ -161,19 +166,16 @@
|
|
|
161
166
|
|
|
162
167
|
- add --access=public to the publish workflow
|
|
163
168
|
|
|
164
|
-
|
|
165
169
|
### 🧱 Updated Dependencies
|
|
166
170
|
|
|
167
171
|
- Updated sdk-core to 1.0.1
|
|
168
172
|
|
|
169
173
|
# 1.0.0 (2024-09-20)
|
|
170
174
|
|
|
171
|
-
|
|
172
175
|
### 🚀 Features
|
|
173
176
|
|
|
174
177
|
- @strivacity/sdk-nuxt package implemented
|
|
175
178
|
|
|
176
|
-
|
|
177
179
|
### 🧱 Updated Dependencies
|
|
178
180
|
|
|
179
|
-
- Updated sdk-core to 1.0.0
|
|
181
|
+
- Updated sdk-core to 1.0.0
|