@feelflow/ffid-sdk 1.9.0 → 1.9.1
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 +1 -1
- package/dist/agency/index.cjs +3 -3
- package/dist/agency/index.d.cts +1 -1
- package/dist/agency/index.d.ts +1 -1
- package/dist/agency/index.js +2 -2
- package/dist/announcements/index.cjs +2 -2
- package/dist/announcements/index.d.cts +2 -2
- package/dist/announcements/index.d.ts +2 -2
- package/dist/announcements/index.js +1 -1
- package/dist/{chunk-CBYBTBKA.cjs → chunk-AD2MA4LH.cjs} +3 -3
- package/dist/chunk-QBRM2RRC.js +4 -0
- package/dist/{chunk-H5JRKOD7.js → chunk-S7GPQ4OJ.js} +3 -3
- package/dist/{chunk-P5PPUZGX.cjs → chunk-YUIITYBE.cjs} +1 -1
- package/dist/components/index.cjs +7 -7
- package/dist/components/index.d.cts +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{constants-BeWMWOOd.d.cts → constants-DvTGHPZn.d.cts} +1 -1
- package/dist/{constants-BeWMWOOd.d.ts → constants-DvTGHPZn.d.ts} +1 -1
- package/dist/{index-CTvhqdrH.d.cts → index-DsXjcF0i.d.cts} +1 -1
- package/dist/{index-CTvhqdrH.d.ts → index-DsXjcF0i.d.ts} +1 -1
- package/dist/index.cjs +22 -22
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/legal/index.cjs +3 -3
- package/dist/legal/index.d.cts +3 -3
- package/dist/legal/index.d.ts +3 -3
- package/dist/legal/index.js +2 -2
- package/package.json +4 -3
- package/dist/chunk-P4MLCG4T.js +0 -4
package/README.md
CHANGED
|
@@ -369,7 +369,7 @@ SDK の `package.json` で `react` / `react-dom` は `optional: true` に設定
|
|
|
369
369
|
オプションで環境変数を使用してデフォルト設定を上書きできます:
|
|
370
370
|
|
|
371
371
|
```bash
|
|
372
|
-
NEXT_PUBLIC_FFID_API_URL=https://id.feelflow.
|
|
372
|
+
NEXT_PUBLIC_FFID_API_URL=https://id.feelflow.net
|
|
373
373
|
NEXT_PUBLIC_FFID_SERVICE_CODE=chatbot
|
|
374
374
|
```
|
|
375
375
|
|
package/dist/agency/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkYUIITYBE_cjs = require('../chunk-YUIITYBE.cjs');
|
|
4
4
|
|
|
5
5
|
// src/agency/ffid-agency-client.ts
|
|
6
6
|
var API_PREFIX = "/api/v1/agencies";
|
|
@@ -26,7 +26,7 @@ var consoleLogger = {
|
|
|
26
26
|
error: (...args) => console.error(SDK_LOG_PREFIX, ...args)
|
|
27
27
|
};
|
|
28
28
|
function createFFIDAgencyClient(config = {}) {
|
|
29
|
-
const baseUrl = config.apiBaseUrl ??
|
|
29
|
+
const baseUrl = config.apiBaseUrl ?? chunkYUIITYBE_cjs.DEFAULT_API_BASE_URL;
|
|
30
30
|
const logger = config.logger ?? (config.debug ? consoleLogger : noopLogger);
|
|
31
31
|
function validateIds(...pairs) {
|
|
32
32
|
for (const [value, name] of pairs) {
|
|
@@ -316,7 +316,7 @@ function createFFIDAgencyClient(config = {}) {
|
|
|
316
316
|
|
|
317
317
|
Object.defineProperty(exports, "DEFAULT_API_BASE_URL", {
|
|
318
318
|
enumerable: true,
|
|
319
|
-
get: function () { return
|
|
319
|
+
get: function () { return chunkYUIITYBE_cjs.DEFAULT_API_BASE_URL; }
|
|
320
320
|
});
|
|
321
321
|
exports.FFID_AGENCY_ERROR_CODES = FFID_AGENCY_ERROR_CODES;
|
|
322
322
|
exports.createFFIDAgencyClient = createFFIDAgencyClient;
|
package/dist/agency/index.d.cts
CHANGED
package/dist/agency/index.d.ts
CHANGED
package/dist/agency/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DEFAULT_API_BASE_URL } from '../chunk-
|
|
2
|
-
export { DEFAULT_API_BASE_URL } from '../chunk-
|
|
1
|
+
import { DEFAULT_API_BASE_URL } from '../chunk-QBRM2RRC.js';
|
|
2
|
+
export { DEFAULT_API_BASE_URL } from '../chunk-QBRM2RRC.js';
|
|
3
3
|
|
|
4
4
|
// src/agency/ffid-agency-client.ts
|
|
5
5
|
var API_PREFIX = "/api/v1/agencies";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkYUIITYBE_cjs = require('../chunk-YUIITYBE.cjs');
|
|
4
4
|
|
|
5
5
|
// src/announcements/ffid-announcements-client.ts
|
|
6
6
|
var API_PATH = "/api/v1/announcements";
|
|
@@ -29,7 +29,7 @@ var consoleLogger = {
|
|
|
29
29
|
error: (...args) => console.error(SDK_LOG_PREFIX, ...args)
|
|
30
30
|
};
|
|
31
31
|
function createFFIDAnnouncementsClient(config = {}) {
|
|
32
|
-
const baseUrl = config.apiBaseUrl ??
|
|
32
|
+
const baseUrl = config.apiBaseUrl ?? chunkYUIITYBE_cjs.DEFAULT_API_BASE_URL;
|
|
33
33
|
const logger = config.logger ?? (config.debug ? consoleLogger : quietLogger);
|
|
34
34
|
async function fetchApi(endpoint) {
|
|
35
35
|
const url = `${baseUrl}${endpoint}`;
|
|
@@ -55,7 +55,7 @@ interface ListAnnouncementsOptions {
|
|
|
55
55
|
}
|
|
56
56
|
/** Configuration for the FFID Announcements Client */
|
|
57
57
|
interface FFIDAnnouncementsClientConfig {
|
|
58
|
-
/** FFID API base URL (defaults to https://id.feelflow.
|
|
58
|
+
/** FFID API base URL (defaults to https://id.feelflow.net) */
|
|
59
59
|
apiBaseUrl?: string | undefined;
|
|
60
60
|
/** Enable debug logging */
|
|
61
61
|
debug?: boolean | undefined;
|
|
@@ -118,7 +118,7 @@ type FFIDAnnouncementsServerResponse<T> = {
|
|
|
118
118
|
* import { createFFIDAnnouncementsClient } from '@feelflow/ffid-sdk/announcements'
|
|
119
119
|
*
|
|
120
120
|
* const client = createFFIDAnnouncementsClient({
|
|
121
|
-
* apiBaseUrl: 'https://id.feelflow.
|
|
121
|
+
* apiBaseUrl: 'https://id.feelflow.net',
|
|
122
122
|
* })
|
|
123
123
|
*
|
|
124
124
|
* const { data, error } = await client.listAnnouncements({ limit: 10 })
|
|
@@ -55,7 +55,7 @@ interface ListAnnouncementsOptions {
|
|
|
55
55
|
}
|
|
56
56
|
/** Configuration for the FFID Announcements Client */
|
|
57
57
|
interface FFIDAnnouncementsClientConfig {
|
|
58
|
-
/** FFID API base URL (defaults to https://id.feelflow.
|
|
58
|
+
/** FFID API base URL (defaults to https://id.feelflow.net) */
|
|
59
59
|
apiBaseUrl?: string | undefined;
|
|
60
60
|
/** Enable debug logging */
|
|
61
61
|
debug?: boolean | undefined;
|
|
@@ -118,7 +118,7 @@ type FFIDAnnouncementsServerResponse<T> = {
|
|
|
118
118
|
* import { createFFIDAnnouncementsClient } from '@feelflow/ffid-sdk/announcements'
|
|
119
119
|
*
|
|
120
120
|
* const client = createFFIDAnnouncementsClient({
|
|
121
|
-
* apiBaseUrl: 'https://id.feelflow.
|
|
121
|
+
* apiBaseUrl: 'https://id.feelflow.net',
|
|
122
122
|
* })
|
|
123
123
|
*
|
|
124
124
|
* const { data, error } = await client.listAnnouncements({ limit: 10 })
|
|
@@ -5,7 +5,7 @@ var jose = require('jose');
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
|
|
7
7
|
// src/constants.ts
|
|
8
|
-
var DEFAULT_API_BASE_URL = "https://id.feelflow.
|
|
8
|
+
var DEFAULT_API_BASE_URL = "https://id.feelflow.net";
|
|
9
9
|
|
|
10
10
|
// src/auth/token-store.ts
|
|
11
11
|
var STORAGE_KEY = "ffid_tokens";
|
|
@@ -181,7 +181,7 @@ function mapUserinfoSubscriptionToSession(userinfo, serviceCode) {
|
|
|
181
181
|
];
|
|
182
182
|
}
|
|
183
183
|
var JWKS_ENDPOINT = "/.well-known/jwks.json";
|
|
184
|
-
var JWT_ISSUER = "https://id.feelflow.
|
|
184
|
+
var JWT_ISSUER = "https://id.feelflow.net";
|
|
185
185
|
var JWT_ALGORITHM = "ES256";
|
|
186
186
|
var JWT_CLOCK_TOLERANCE_SECONDS = 30;
|
|
187
187
|
function createJwtVerifier(deps) {
|
|
@@ -453,7 +453,7 @@ function createBillingMethods(deps) {
|
|
|
453
453
|
}
|
|
454
454
|
|
|
455
455
|
// src/client/version-check.ts
|
|
456
|
-
var SDK_VERSION = "1.9.
|
|
456
|
+
var SDK_VERSION = "1.9.1";
|
|
457
457
|
var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
|
|
458
458
|
var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
|
|
459
459
|
var LATEST_VERSION_HEADER = "X-FFID-SDK-Latest-Version";
|
|
@@ -3,7 +3,7 @@ import { createRemoteJWKSet, jwtVerify } from 'jose';
|
|
|
3
3
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
5
|
// src/constants.ts
|
|
6
|
-
var DEFAULT_API_BASE_URL = "https://id.feelflow.
|
|
6
|
+
var DEFAULT_API_BASE_URL = "https://id.feelflow.net";
|
|
7
7
|
|
|
8
8
|
// src/auth/token-store.ts
|
|
9
9
|
var STORAGE_KEY = "ffid_tokens";
|
|
@@ -179,7 +179,7 @@ function mapUserinfoSubscriptionToSession(userinfo, serviceCode) {
|
|
|
179
179
|
];
|
|
180
180
|
}
|
|
181
181
|
var JWKS_ENDPOINT = "/.well-known/jwks.json";
|
|
182
|
-
var JWT_ISSUER = "https://id.feelflow.
|
|
182
|
+
var JWT_ISSUER = "https://id.feelflow.net";
|
|
183
183
|
var JWT_ALGORITHM = "ES256";
|
|
184
184
|
var JWT_CLOCK_TOLERANCE_SECONDS = 30;
|
|
185
185
|
function createJwtVerifier(deps) {
|
|
@@ -451,7 +451,7 @@ function createBillingMethods(deps) {
|
|
|
451
451
|
}
|
|
452
452
|
|
|
453
453
|
// src/client/version-check.ts
|
|
454
|
-
var SDK_VERSION = "1.9.
|
|
454
|
+
var SDK_VERSION = "1.9.1";
|
|
455
455
|
var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
|
|
456
456
|
var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
|
|
457
457
|
var LATEST_VERSION_HEADER = "X-FFID-SDK-Latest-Version";
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkAD2MA4LH_cjs = require('../chunk-AD2MA4LH.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "FFIDAnnouncementBadge", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkAD2MA4LH_cjs.FFIDAnnouncementBadge; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "FFIDAnnouncementList", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkAD2MA4LH_cjs.FFIDAnnouncementList; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "FFIDLoginButton", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkAD2MA4LH_cjs.FFIDLoginButton; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "FFIDOrganizationSwitcher", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkAD2MA4LH_cjs.FFIDOrganizationSwitcher; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "FFIDSubscriptionBadge", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkAD2MA4LH_cjs.FFIDSubscriptionBadge; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "FFIDUserMenu", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkAD2MA4LH_cjs.FFIDUserMenu; }
|
|
30
30
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { v as FFIDAnnouncementBadge, S as FFIDAnnouncementBadgeClassNames, T as FFIDAnnouncementBadgeProps, w as FFIDAnnouncementList, V as FFIDAnnouncementListClassNames, W as FFIDAnnouncementListProps, E as FFIDLoginButton, X as FFIDLoginButtonProps, J as FFIDOrganizationSwitcher, Y as FFIDOrganizationSwitcherClassNames, Z as FFIDOrganizationSwitcherProps, M as FFIDSubscriptionBadge, _ as FFIDSubscriptionBadgeClassNames, $ as FFIDSubscriptionBadgeProps, P as FFIDUserMenu, a0 as FFIDUserMenuClassNames, a1 as FFIDUserMenuProps } from '../index-
|
|
1
|
+
export { v as FFIDAnnouncementBadge, S as FFIDAnnouncementBadgeClassNames, T as FFIDAnnouncementBadgeProps, w as FFIDAnnouncementList, V as FFIDAnnouncementListClassNames, W as FFIDAnnouncementListProps, E as FFIDLoginButton, X as FFIDLoginButtonProps, J as FFIDOrganizationSwitcher, Y as FFIDOrganizationSwitcherClassNames, Z as FFIDOrganizationSwitcherProps, M as FFIDSubscriptionBadge, _ as FFIDSubscriptionBadgeClassNames, $ as FFIDSubscriptionBadgeProps, P as FFIDUserMenu, a0 as FFIDUserMenuClassNames, a1 as FFIDUserMenuProps } from '../index-DsXjcF0i.cjs';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { v as FFIDAnnouncementBadge, S as FFIDAnnouncementBadgeClassNames, T as FFIDAnnouncementBadgeProps, w as FFIDAnnouncementList, V as FFIDAnnouncementListClassNames, W as FFIDAnnouncementListProps, E as FFIDLoginButton, X as FFIDLoginButtonProps, J as FFIDOrganizationSwitcher, Y as FFIDOrganizationSwitcherClassNames, Z as FFIDOrganizationSwitcherProps, M as FFIDSubscriptionBadge, _ as FFIDSubscriptionBadgeClassNames, $ as FFIDSubscriptionBadgeProps, P as FFIDUserMenu, a0 as FFIDUserMenuClassNames, a1 as FFIDUserMenuProps } from '../index-
|
|
1
|
+
export { v as FFIDAnnouncementBadge, S as FFIDAnnouncementBadgeClassNames, T as FFIDAnnouncementBadgeProps, w as FFIDAnnouncementList, V as FFIDAnnouncementListClassNames, W as FFIDAnnouncementListProps, E as FFIDLoginButton, X as FFIDLoginButtonProps, J as FFIDOrganizationSwitcher, Y as FFIDOrganizationSwitcherClassNames, Z as FFIDOrganizationSwitcherProps, M as FFIDSubscriptionBadge, _ as FFIDSubscriptionBadgeClassNames, $ as FFIDSubscriptionBadgeProps, P as FFIDUserMenu, a0 as FFIDUserMenuClassNames, a1 as FFIDUserMenuProps } from '../index-DsXjcF0i.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
package/dist/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDSubscriptionBadge, FFIDUserMenu } from '../chunk-
|
|
1
|
+
export { FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDSubscriptionBadge, FFIDUserMenu } from '../chunk-S7GPQ4OJ.js';
|
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
* Centralizing these prevents drift during domain/URL changes.
|
|
6
6
|
*/
|
|
7
7
|
/** Default FFID API base URL (production) */
|
|
8
|
-
declare const DEFAULT_API_BASE_URL = "https://id.feelflow.
|
|
8
|
+
declare const DEFAULT_API_BASE_URL = "https://id.feelflow.net";
|
|
9
9
|
|
|
10
10
|
export { DEFAULT_API_BASE_URL as D };
|
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
* Centralizing these prevents drift during domain/URL changes.
|
|
6
6
|
*/
|
|
7
7
|
/** Default FFID API base URL (production) */
|
|
8
|
-
declare const DEFAULT_API_BASE_URL = "https://id.feelflow.
|
|
8
|
+
declare const DEFAULT_API_BASE_URL = "https://id.feelflow.net";
|
|
9
9
|
|
|
10
10
|
export { DEFAULT_API_BASE_URL as D };
|
|
@@ -457,7 +457,7 @@ interface ListAnnouncementsOptions {
|
|
|
457
457
|
}
|
|
458
458
|
/** Configuration for the FFID Announcements Client */
|
|
459
459
|
interface FFIDAnnouncementsClientConfig {
|
|
460
|
-
/** FFID API base URL (defaults to https://id.feelflow.
|
|
460
|
+
/** FFID API base URL (defaults to https://id.feelflow.net) */
|
|
461
461
|
apiBaseUrl?: string | undefined;
|
|
462
462
|
/** Enable debug logging */
|
|
463
463
|
debug?: boolean | undefined;
|
|
@@ -457,7 +457,7 @@ interface ListAnnouncementsOptions {
|
|
|
457
457
|
}
|
|
458
458
|
/** Configuration for the FFID Announcements Client */
|
|
459
459
|
interface FFIDAnnouncementsClientConfig {
|
|
460
|
-
/** FFID API base URL (defaults to https://id.feelflow.
|
|
460
|
+
/** FFID API base URL (defaults to https://id.feelflow.net) */
|
|
461
461
|
apiBaseUrl?: string | undefined;
|
|
462
462
|
/** Enable debug logging */
|
|
463
463
|
debug?: boolean | undefined;
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkAD2MA4LH_cjs = require('./chunk-AD2MA4LH.cjs');
|
|
4
4
|
var react = require('react');
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
|
|
@@ -46,7 +46,7 @@ function createKVCacheAdapter(kv) {
|
|
|
46
46
|
}
|
|
47
47
|
function withFFIDAuth(Component, options = {}) {
|
|
48
48
|
const WrappedComponent = (props) => {
|
|
49
|
-
const { isLoading, isAuthenticated, login } =
|
|
49
|
+
const { isLoading, isAuthenticated, login } = chunkAD2MA4LH_cjs.useFFIDContext();
|
|
50
50
|
const hasRedirected = react.useRef(false);
|
|
51
51
|
react.useEffect(() => {
|
|
52
52
|
if (!isLoading && !isAuthenticated && options.redirectToLogin && !hasRedirected.current) {
|
|
@@ -71,83 +71,83 @@ function withFFIDAuth(Component, options = {}) {
|
|
|
71
71
|
|
|
72
72
|
Object.defineProperty(exports, "DEFAULT_API_BASE_URL", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkAD2MA4LH_cjs.DEFAULT_API_BASE_URL; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "FFIDAnnouncementBadge", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkAD2MA4LH_cjs.FFIDAnnouncementBadge; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "FFIDAnnouncementList", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkAD2MA4LH_cjs.FFIDAnnouncementList; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "FFIDLoginButton", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkAD2MA4LH_cjs.FFIDLoginButton; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "FFIDOrganizationSwitcher", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkAD2MA4LH_cjs.FFIDOrganizationSwitcher; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "FFIDProvider", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkAD2MA4LH_cjs.FFIDProvider; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "FFIDSubscriptionBadge", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkAD2MA4LH_cjs.FFIDSubscriptionBadge; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "FFIDUserMenu", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkAD2MA4LH_cjs.FFIDUserMenu; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "FFID_ANNOUNCEMENTS_ERROR_CODES", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkAD2MA4LH_cjs.FFID_ANNOUNCEMENTS_ERROR_CODES; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "createFFIDAnnouncementsClient", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkAD2MA4LH_cjs.createFFIDAnnouncementsClient; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "createFFIDClient", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkAD2MA4LH_cjs.createFFIDClient; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "createTokenStore", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkAD2MA4LH_cjs.createTokenStore; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "generateCodeChallenge", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkAD2MA4LH_cjs.generateCodeChallenge; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "generateCodeVerifier", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkAD2MA4LH_cjs.generateCodeVerifier; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "retrieveCodeVerifier", {
|
|
129
129
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkAD2MA4LH_cjs.retrieveCodeVerifier; }
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "storeCodeVerifier", {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkAD2MA4LH_cjs.storeCodeVerifier; }
|
|
135
135
|
});
|
|
136
136
|
Object.defineProperty(exports, "useFFID", {
|
|
137
137
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkAD2MA4LH_cjs.useFFID; }
|
|
139
139
|
});
|
|
140
140
|
Object.defineProperty(exports, "useFFIDAnnouncements", {
|
|
141
141
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunkAD2MA4LH_cjs.useFFIDAnnouncements; }
|
|
143
143
|
});
|
|
144
144
|
Object.defineProperty(exports, "useSubscription", {
|
|
145
145
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunkAD2MA4LH_cjs.useSubscription; }
|
|
147
147
|
});
|
|
148
148
|
Object.defineProperty(exports, "withSubscription", {
|
|
149
149
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunkAD2MA4LH_cjs.withSubscription; }
|
|
151
151
|
});
|
|
152
152
|
exports.createKVCacheAdapter = createKVCacheAdapter;
|
|
153
153
|
exports.createMemoryCacheAdapter = createMemoryCacheAdapter;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FFIDConfig, a as FFIDApiResponse, b as FFIDSessionResponse, c as FFIDError, d as FFIDSubscriptionCheckResponse, e as FFIDCreateCheckoutParams, f as FFIDCheckoutSessionResponse, g as FFIDCreatePortalParams, h as FFIDPortalSessionResponse, i as FFIDOAuthUserInfo, j as FFIDLogger, k as FFIDCacheAdapter, l as FFIDUser, m as FFIDOrganization, n as FFIDSubscription, o as FFIDSubscriptionContextValue, p as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, q as FFIDAnnouncementsApiResponse, A as AnnouncementListResponse, r as FFIDAnnouncementsLogger } from './index-
|
|
2
|
-
export { s as Announcement, t as AnnouncementStatus, u as AnnouncementType, v as FFIDAnnouncementBadge, w as FFIDAnnouncementList, x as FFIDAnnouncementsError, y as FFIDAnnouncementsErrorCode, z as FFIDAnnouncementsServerResponse, B as FFIDCacheConfig, C as FFIDContextValue, D as FFIDJwtClaims, E as FFIDLoginButton, G as FFIDOAuthTokenResponse, H as FFIDOAuthUserInfoMemberRole, I as FFIDOAuthUserInfoSubscription, J as FFIDOrganizationSwitcher, K as FFIDSeatModel, M as FFIDSubscriptionBadge, N as FFIDSubscriptionStatus, O as FFIDTokenIntrospectionResponse, P as FFIDUserMenu, U as UseFFIDAnnouncementsOptions, Q as UseFFIDAnnouncementsReturn, R as useFFIDAnnouncements } from './index-
|
|
1
|
+
import { F as FFIDConfig, a as FFIDApiResponse, b as FFIDSessionResponse, c as FFIDError, d as FFIDSubscriptionCheckResponse, e as FFIDCreateCheckoutParams, f as FFIDCheckoutSessionResponse, g as FFIDCreatePortalParams, h as FFIDPortalSessionResponse, i as FFIDOAuthUserInfo, j as FFIDLogger, k as FFIDCacheAdapter, l as FFIDUser, m as FFIDOrganization, n as FFIDSubscription, o as FFIDSubscriptionContextValue, p as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, q as FFIDAnnouncementsApiResponse, A as AnnouncementListResponse, r as FFIDAnnouncementsLogger } from './index-DsXjcF0i.cjs';
|
|
2
|
+
export { s as Announcement, t as AnnouncementStatus, u as AnnouncementType, v as FFIDAnnouncementBadge, w as FFIDAnnouncementList, x as FFIDAnnouncementsError, y as FFIDAnnouncementsErrorCode, z as FFIDAnnouncementsServerResponse, B as FFIDCacheConfig, C as FFIDContextValue, D as FFIDJwtClaims, E as FFIDLoginButton, G as FFIDOAuthTokenResponse, H as FFIDOAuthUserInfoMemberRole, I as FFIDOAuthUserInfoSubscription, J as FFIDOrganizationSwitcher, K as FFIDSeatModel, M as FFIDSubscriptionBadge, N as FFIDSubscriptionStatus, O as FFIDTokenIntrospectionResponse, P as FFIDUserMenu, U as UseFFIDAnnouncementsOptions, Q as UseFFIDAnnouncementsReturn, R as useFFIDAnnouncements } from './index-DsXjcF0i.cjs';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { ReactNode, ComponentType, FC } from 'react';
|
|
5
5
|
|
|
@@ -10,7 +10,7 @@ import { ReactNode, ComponentType, FC } from 'react';
|
|
|
10
10
|
* Centralizing these prevents drift during domain/URL changes.
|
|
11
11
|
*/
|
|
12
12
|
/** Default FFID API base URL (production) */
|
|
13
|
-
declare const DEFAULT_API_BASE_URL = "https://id.feelflow.
|
|
13
|
+
declare const DEFAULT_API_BASE_URL = "https://id.feelflow.net";
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Token Store
|
|
@@ -322,7 +322,7 @@ declare function withFFIDAuth<P extends object>(Component: ComponentType<P>, opt
|
|
|
322
322
|
* import { createFFIDAnnouncementsClient } from '@feelflow/ffid-sdk/announcements'
|
|
323
323
|
*
|
|
324
324
|
* const client = createFFIDAnnouncementsClient({
|
|
325
|
-
* apiBaseUrl: 'https://id.feelflow.
|
|
325
|
+
* apiBaseUrl: 'https://id.feelflow.net',
|
|
326
326
|
* })
|
|
327
327
|
*
|
|
328
328
|
* const { data, error } = await client.listAnnouncements({ limit: 10 })
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FFIDConfig, a as FFIDApiResponse, b as FFIDSessionResponse, c as FFIDError, d as FFIDSubscriptionCheckResponse, e as FFIDCreateCheckoutParams, f as FFIDCheckoutSessionResponse, g as FFIDCreatePortalParams, h as FFIDPortalSessionResponse, i as FFIDOAuthUserInfo, j as FFIDLogger, k as FFIDCacheAdapter, l as FFIDUser, m as FFIDOrganization, n as FFIDSubscription, o as FFIDSubscriptionContextValue, p as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, q as FFIDAnnouncementsApiResponse, A as AnnouncementListResponse, r as FFIDAnnouncementsLogger } from './index-
|
|
2
|
-
export { s as Announcement, t as AnnouncementStatus, u as AnnouncementType, v as FFIDAnnouncementBadge, w as FFIDAnnouncementList, x as FFIDAnnouncementsError, y as FFIDAnnouncementsErrorCode, z as FFIDAnnouncementsServerResponse, B as FFIDCacheConfig, C as FFIDContextValue, D as FFIDJwtClaims, E as FFIDLoginButton, G as FFIDOAuthTokenResponse, H as FFIDOAuthUserInfoMemberRole, I as FFIDOAuthUserInfoSubscription, J as FFIDOrganizationSwitcher, K as FFIDSeatModel, M as FFIDSubscriptionBadge, N as FFIDSubscriptionStatus, O as FFIDTokenIntrospectionResponse, P as FFIDUserMenu, U as UseFFIDAnnouncementsOptions, Q as UseFFIDAnnouncementsReturn, R as useFFIDAnnouncements } from './index-
|
|
1
|
+
import { F as FFIDConfig, a as FFIDApiResponse, b as FFIDSessionResponse, c as FFIDError, d as FFIDSubscriptionCheckResponse, e as FFIDCreateCheckoutParams, f as FFIDCheckoutSessionResponse, g as FFIDCreatePortalParams, h as FFIDPortalSessionResponse, i as FFIDOAuthUserInfo, j as FFIDLogger, k as FFIDCacheAdapter, l as FFIDUser, m as FFIDOrganization, n as FFIDSubscription, o as FFIDSubscriptionContextValue, p as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, q as FFIDAnnouncementsApiResponse, A as AnnouncementListResponse, r as FFIDAnnouncementsLogger } from './index-DsXjcF0i.js';
|
|
2
|
+
export { s as Announcement, t as AnnouncementStatus, u as AnnouncementType, v as FFIDAnnouncementBadge, w as FFIDAnnouncementList, x as FFIDAnnouncementsError, y as FFIDAnnouncementsErrorCode, z as FFIDAnnouncementsServerResponse, B as FFIDCacheConfig, C as FFIDContextValue, D as FFIDJwtClaims, E as FFIDLoginButton, G as FFIDOAuthTokenResponse, H as FFIDOAuthUserInfoMemberRole, I as FFIDOAuthUserInfoSubscription, J as FFIDOrganizationSwitcher, K as FFIDSeatModel, M as FFIDSubscriptionBadge, N as FFIDSubscriptionStatus, O as FFIDTokenIntrospectionResponse, P as FFIDUserMenu, U as UseFFIDAnnouncementsOptions, Q as UseFFIDAnnouncementsReturn, R as useFFIDAnnouncements } from './index-DsXjcF0i.js';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { ReactNode, ComponentType, FC } from 'react';
|
|
5
5
|
|
|
@@ -10,7 +10,7 @@ import { ReactNode, ComponentType, FC } from 'react';
|
|
|
10
10
|
* Centralizing these prevents drift during domain/URL changes.
|
|
11
11
|
*/
|
|
12
12
|
/** Default FFID API base URL (production) */
|
|
13
|
-
declare const DEFAULT_API_BASE_URL = "https://id.feelflow.
|
|
13
|
+
declare const DEFAULT_API_BASE_URL = "https://id.feelflow.net";
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Token Store
|
|
@@ -322,7 +322,7 @@ declare function withFFIDAuth<P extends object>(Component: ComponentType<P>, opt
|
|
|
322
322
|
* import { createFFIDAnnouncementsClient } from '@feelflow/ffid-sdk/announcements'
|
|
323
323
|
*
|
|
324
324
|
* const client = createFFIDAnnouncementsClient({
|
|
325
|
-
* apiBaseUrl: 'https://id.feelflow.
|
|
325
|
+
* apiBaseUrl: 'https://id.feelflow.net',
|
|
326
326
|
* })
|
|
327
327
|
*
|
|
328
328
|
* const { data, error } = await client.listAnnouncements({ limit: 10 })
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useFFIDContext } from './chunk-
|
|
2
|
-
export { DEFAULT_API_BASE_URL, FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDProvider, FFIDSubscriptionBadge, FFIDUserMenu, FFID_ANNOUNCEMENTS_ERROR_CODES, createFFIDAnnouncementsClient, createFFIDClient, createTokenStore, generateCodeChallenge, generateCodeVerifier, retrieveCodeVerifier, storeCodeVerifier, useFFID, useFFIDAnnouncements, useSubscription, withSubscription } from './chunk-
|
|
1
|
+
import { useFFIDContext } from './chunk-S7GPQ4OJ.js';
|
|
2
|
+
export { DEFAULT_API_BASE_URL, FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDProvider, FFIDSubscriptionBadge, FFIDUserMenu, FFID_ANNOUNCEMENTS_ERROR_CODES, createFFIDAnnouncementsClient, createFFIDClient, createTokenStore, generateCodeChallenge, generateCodeVerifier, retrieveCodeVerifier, storeCodeVerifier, useFFID, useFFIDAnnouncements, useSubscription, withSubscription } from './chunk-S7GPQ4OJ.js';
|
|
3
3
|
import { useRef, useEffect } from 'react';
|
|
4
4
|
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
|
package/dist/legal/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkYUIITYBE_cjs = require('../chunk-YUIITYBE.cjs');
|
|
4
4
|
|
|
5
5
|
// src/legal/ffid-legal-client.ts
|
|
6
6
|
var API_PREFIX = "/api/v1/legal/ext";
|
|
@@ -37,7 +37,7 @@ function createFFIDLegalClient(config) {
|
|
|
37
37
|
if (!config.apiKey) {
|
|
38
38
|
throw new Error("FFID Legal Client: apiKey \u304C\u672A\u8A2D\u5B9A\u3067\u3059");
|
|
39
39
|
}
|
|
40
|
-
const baseUrl = config.apiBaseUrl ??
|
|
40
|
+
const baseUrl = config.apiBaseUrl ?? chunkYUIITYBE_cjs.DEFAULT_API_BASE_URL;
|
|
41
41
|
const logger = config.logger ?? (config.debug ? consoleLogger : noopLogger);
|
|
42
42
|
async function fetchWithApiKey(endpoint, options = {}) {
|
|
43
43
|
const url = `${baseUrl}${API_PREFIX}${endpoint}`;
|
|
@@ -176,7 +176,7 @@ function createFFIDLegalClient(config) {
|
|
|
176
176
|
|
|
177
177
|
Object.defineProperty(exports, "DEFAULT_API_BASE_URL", {
|
|
178
178
|
enumerable: true,
|
|
179
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunkYUIITYBE_cjs.DEFAULT_API_BASE_URL; }
|
|
180
180
|
});
|
|
181
181
|
exports.FFID_LEGAL_ERROR_CODES = FFID_LEGAL_ERROR_CODES;
|
|
182
182
|
exports.createFFIDLegalClient = createFFIDLegalClient;
|
package/dist/legal/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as DEFAULT_API_BASE_URL } from '../constants-
|
|
1
|
+
export { D as DEFAULT_API_BASE_URL } from '../constants-DvTGHPZn.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* FFID Legal SDK Type Definitions
|
|
@@ -16,7 +16,7 @@ export { D as DEFAULT_API_BASE_URL } from '../constants-BeWMWOOd.cjs';
|
|
|
16
16
|
interface FFIDLegalClientConfig {
|
|
17
17
|
/** Service API key (format: ffid_sk_live_xxx or ffid_sk_test_xxx) */
|
|
18
18
|
apiKey: string;
|
|
19
|
-
/** FFID API base URL (defaults to https://id.feelflow.
|
|
19
|
+
/** FFID API base URL (defaults to https://id.feelflow.net) */
|
|
20
20
|
apiBaseUrl?: string;
|
|
21
21
|
/** Enable debug logging */
|
|
22
22
|
debug?: boolean;
|
|
@@ -293,7 +293,7 @@ declare const FFID_LEGAL_ERROR_CODES: {
|
|
|
293
293
|
* ```typescript
|
|
294
294
|
* const legal = createFFIDLegalClient({
|
|
295
295
|
* apiKey: process.env.FFID_SERVICE_API_KEY!,
|
|
296
|
-
* apiBaseUrl: 'https://id.feelflow.
|
|
296
|
+
* apiBaseUrl: 'https://id.feelflow.net',
|
|
297
297
|
* debug: true,
|
|
298
298
|
* })
|
|
299
299
|
* ```
|
package/dist/legal/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as DEFAULT_API_BASE_URL } from '../constants-
|
|
1
|
+
export { D as DEFAULT_API_BASE_URL } from '../constants-DvTGHPZn.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* FFID Legal SDK Type Definitions
|
|
@@ -16,7 +16,7 @@ export { D as DEFAULT_API_BASE_URL } from '../constants-BeWMWOOd.js';
|
|
|
16
16
|
interface FFIDLegalClientConfig {
|
|
17
17
|
/** Service API key (format: ffid_sk_live_xxx or ffid_sk_test_xxx) */
|
|
18
18
|
apiKey: string;
|
|
19
|
-
/** FFID API base URL (defaults to https://id.feelflow.
|
|
19
|
+
/** FFID API base URL (defaults to https://id.feelflow.net) */
|
|
20
20
|
apiBaseUrl?: string;
|
|
21
21
|
/** Enable debug logging */
|
|
22
22
|
debug?: boolean;
|
|
@@ -293,7 +293,7 @@ declare const FFID_LEGAL_ERROR_CODES: {
|
|
|
293
293
|
* ```typescript
|
|
294
294
|
* const legal = createFFIDLegalClient({
|
|
295
295
|
* apiKey: process.env.FFID_SERVICE_API_KEY!,
|
|
296
|
-
* apiBaseUrl: 'https://id.feelflow.
|
|
296
|
+
* apiBaseUrl: 'https://id.feelflow.net',
|
|
297
297
|
* debug: true,
|
|
298
298
|
* })
|
|
299
299
|
* ```
|
package/dist/legal/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DEFAULT_API_BASE_URL } from '../chunk-
|
|
2
|
-
export { DEFAULT_API_BASE_URL } from '../chunk-
|
|
1
|
+
import { DEFAULT_API_BASE_URL } from '../chunk-QBRM2RRC.js';
|
|
2
|
+
export { DEFAULT_API_BASE_URL } from '../chunk-QBRM2RRC.js';
|
|
3
3
|
|
|
4
4
|
// src/legal/ffid-legal-client.ts
|
|
5
5
|
var API_PREFIX = "/api/v1/legal/ext";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feelflow/ffid-sdk",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.1",
|
|
4
4
|
"description": "FeelFlow ID Platform SDK for React/Next.js applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"feelflow",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"nextjs",
|
|
11
11
|
"authentication"
|
|
12
12
|
],
|
|
13
|
-
"author": "FeelFlow <dev@feelflow.
|
|
13
|
+
"author": "FeelFlow <dev@feelflow.net>",
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"homepage": "https://github.com/feel-flow/feelflow-id-platform/tree/develop/sdk/typescript#readme",
|
|
16
16
|
"bugs": {
|
|
@@ -71,7 +71,8 @@
|
|
|
71
71
|
"test": "vitest run",
|
|
72
72
|
"test:watch": "vitest",
|
|
73
73
|
"test:coverage": "vitest run --coverage",
|
|
74
|
-
"prepublishOnly": "npm run build"
|
|
74
|
+
"prepublishOnly": "npm run build",
|
|
75
|
+
"sdk:publish": "./scripts/publish.sh"
|
|
75
76
|
},
|
|
76
77
|
"dependencies": {
|
|
77
78
|
"jose": "^6.0.0"
|
package/dist/chunk-P4MLCG4T.js
DELETED