@feelflow/ffid-sdk 4.3.0 → 5.0.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 +33 -0
- package/dist/FFIDCookieLink-VYI2cSAB.d.cts +878 -0
- package/dist/FFIDCookieLink-VYI2cSAB.d.ts +878 -0
- package/dist/{chunk-5MO7G2JW.cjs → chunk-223MPEBU.cjs} +1 -1
- package/dist/chunk-IIC2LBD2.cjs +1836 -0
- package/dist/chunk-VSHBWZXK.js +1776 -0
- package/dist/{chunk-35UOD62N.js → chunk-YOJJ433H.js} +1 -1
- package/dist/components/index.cjs +8 -8
- package/dist/components/index.js +1 -1
- package/dist/consent/index.cjs +242 -0
- package/dist/consent/index.d.cts +166 -0
- package/dist/consent/index.d.ts +166 -0
- package/dist/consent/index.js +1 -0
- package/dist/index.cjs +97 -32
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -2
- package/dist/server/index.cjs +99 -1
- package/dist/server/index.d.cts +149 -1
- package/dist/server/index.d.ts +149 -1
- package/dist/server/index.js +93 -2
- package/package.json +8 -2
package/README.md
CHANGED
|
@@ -21,6 +21,39 @@ pnpm add @feelflow/ffid-sdk
|
|
|
21
21
|
|
|
22
22
|
サービスを FFID Platform に統合する詳細なガイドは **[Integration Guide](./docs/INTEGRATION_GUIDE.md)** を参照してください。OAuth フロー、フロントエンド/バックエンド実装パターン、セキュリティチェックリスト、アンチパターン集を網羅しています。
|
|
23
23
|
|
|
24
|
+
### Cookie 同意管理基盤 (v5.0.0+)
|
|
25
|
+
|
|
26
|
+
GDPR / ePrivacy / 改正電気通信事業法 / APPI 準拠の Cookie 同意 UI を **15 分以内** に導入できます (opt-in、v4.x 完全互換)。
|
|
27
|
+
|
|
28
|
+
- **[Cookie Consent Integration Guide](./docs/cookie-consent-guide.md)** — 17 章の詳細統合手順 (App Router / Pages Router / Vite / Consent Mode v2 / Sentry replay / RSC / i18n / A11y / エラーハンドリング)
|
|
29
|
+
- **[v4 → v5 Migration Guide](./docs/MIGRATION_v5.md)** — minimal / full アップグレード手順、自前 gtag からの移譲、Rollback
|
|
30
|
+
- **[Troubleshooting Q&A](./docs/cookie-consent-troubleshooting.md)** — Banner / GA / Cookie / TypeScript / API / Sentry のよくある詰まりポイント
|
|
31
|
+
- **動作サンプル**: [App Router](./examples/cookie-consent/nextjs-app-router/) / [Pages Router](./examples/cookie-consent/nextjs-pages-router/) / [Vite + React](./examples/cookie-consent/vite-react/)
|
|
32
|
+
|
|
33
|
+
```tsx
|
|
34
|
+
// app/layout.tsx (App Router、最短 3 ステップ)
|
|
35
|
+
import {
|
|
36
|
+
FFIDProvider,
|
|
37
|
+
FFIDAnalyticsProvider,
|
|
38
|
+
FFIDCookieBanner,
|
|
39
|
+
} from '@feelflow/ffid-sdk'
|
|
40
|
+
|
|
41
|
+
export default function RootLayout({ children }) {
|
|
42
|
+
return (
|
|
43
|
+
<FFIDProvider serviceCode="your-service">
|
|
44
|
+
<FFIDAnalyticsProvider
|
|
45
|
+
baseUrl={process.env.NEXT_PUBLIC_FFID_BASE_URL!}
|
|
46
|
+
serviceApiKey={process.env.FFID_SERVICE_API_KEY!}
|
|
47
|
+
gaMeasurementId={process.env.NEXT_PUBLIC_GA_ID ?? null}
|
|
48
|
+
>
|
|
49
|
+
{children}
|
|
50
|
+
<FFIDCookieBanner />
|
|
51
|
+
</FFIDAnalyticsProvider>
|
|
52
|
+
</FFIDProvider>
|
|
53
|
+
)
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
|
|
24
57
|
## クイックスタート
|
|
25
58
|
|
|
26
59
|
### 1. プロバイダーを設定(5行で完了!)
|