@logto/vue 2.0.3 → 2.1.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/lib/index.cjs CHANGED
@@ -129,6 +129,10 @@ Object.defineProperty(exports, 'OidcError', {
129
129
  enumerable: true,
130
130
  get: function () { return LogtoClient.OidcError; }
131
131
  });
132
+ Object.defineProperty(exports, 'PersistKey', {
133
+ enumerable: true,
134
+ get: function () { return LogtoClient.PersistKey; }
135
+ });
132
136
  Object.defineProperty(exports, 'Prompt', {
133
137
  enumerable: true,
134
138
  get: function () { return LogtoClient.Prompt; }
@@ -141,6 +145,18 @@ Object.defineProperty(exports, 'UserScope', {
141
145
  enumerable: true,
142
146
  get: function () { return LogtoClient.UserScope; }
143
147
  });
148
+ Object.defineProperty(exports, 'buildOrganizationUrn', {
149
+ enumerable: true,
150
+ get: function () { return LogtoClient.buildOrganizationUrn; }
151
+ });
152
+ Object.defineProperty(exports, 'getOrganizationIdFromUrn', {
153
+ enumerable: true,
154
+ get: function () { return LogtoClient.getOrganizationIdFromUrn; }
155
+ });
156
+ Object.defineProperty(exports, 'organizationUrnPrefix', {
157
+ enumerable: true,
158
+ get: function () { return LogtoClient.organizationUrnPrefix; }
159
+ });
144
160
  exports.createLogto = createLogto;
145
161
  exports.useHandleSignInCallback = useHandleSignInCallback;
146
162
  exports.useLogto = useLogto;
package/lib/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { IdTokenClaims, LogtoConfig, UserInfoResponse } from '@logto/browser';
2
2
  import type { App, Ref } from 'vue';
3
3
  export type { LogtoConfig, IdTokenClaims, UserInfoResponse, LogtoErrorCode, LogtoClientErrorCode, InteractionMode, } from '@logto/browser';
4
- export { LogtoError, LogtoClientError, LogtoRequestError, OidcError, Prompt, ReservedScope, UserScope, } from '@logto/browser';
4
+ export { LogtoError, LogtoRequestError, LogtoClientError, OidcError, Prompt, ReservedScope, UserScope, organizationUrnPrefix, buildOrganizationUrn, getOrganizationIdFromUrn, PersistKey, } from '@logto/browser';
5
5
  type LogtoVuePlugin = {
6
6
  install: (app: App, config: LogtoConfig) => void;
7
7
  };
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import LogtoClient from '@logto/browser';
2
- export { LogtoClientError, LogtoError, LogtoRequestError, OidcError, Prompt, ReservedScope, UserScope } from '@logto/browser';
2
+ export { LogtoClientError, LogtoError, LogtoRequestError, OidcError, PersistKey, Prompt, ReservedScope, UserScope, buildOrganizationUrn, getOrganizationIdFromUrn, organizationUrnPrefix } from '@logto/browser';
3
3
  import { readonly, inject, watchEffect } from 'vue';
4
4
  import { contextInjectionKey, logtoInjectionKey } from './consts.js';
5
5
  import { createContext, throwContextError } from './context.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logto/vue",
3
- "version": "2.0.3",
3
+ "version": "2.1.0",
4
4
  "type": "module",
5
5
  "main": "./lib/index.cjs",
6
6
  "module": "./lib/index.js",
@@ -21,7 +21,7 @@
21
21
  "directory": "packages/vue"
22
22
  },
23
23
  "dependencies": {
24
- "@logto/browser": "^2.1.2"
24
+ "@logto/browser": "^2.2.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@silverhand/eslint-config": "^4.0.1",
@@ -31,8 +31,8 @@
31
31
  "@types/jest": "^29.5.0",
32
32
  "eslint": "^8.44.0",
33
33
  "jest": "^29.5.0",
34
- "lint-staged": "^14.0.0",
35
- "postcss": "^8.4.6",
34
+ "lint-staged": "^15.0.0",
35
+ "postcss": "^8.4.31",
36
36
  "prettier": "^3.0.0",
37
37
  "stylelint": "^15.0.0",
38
38
  "typescript": "^5.0.0",