c15t 1.3.0 → 1.3.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/CHANGELOG.md +22 -0
- package/dist/index.cjs +10 -11
- package/dist/index.js +10 -11
- package/dist/libs/fetch-consent-banner.d.ts.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# c15t
|
|
2
2
|
|
|
3
|
+
## 1.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7fecb81: refactor(nextjs): fetch inital data from backend in c15t mode instead of duplicate logic
|
|
8
|
+
fix: incorrect link to quickstart
|
|
9
|
+
fix(issue-274): include nextjs externals in rslib
|
|
10
|
+
fix(core): fall back to API call if initialData promise is empty
|
|
11
|
+
chore: add translation for zh
|
|
12
|
+
- Updated dependencies [7fecb81]
|
|
13
|
+
- @c15t/translations@1.3.1
|
|
14
|
+
- @c15t/backend@1.3.1
|
|
15
|
+
|
|
16
|
+
## 1.3.1-canary-20250618084038
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- 95edb35: fix(core): fall back to API call if initialData promise is empty
|
|
21
|
+
- Updated dependencies [5da2f28]
|
|
22
|
+
- @c15t/translations@1.3.1-canary-20250618084038
|
|
23
|
+
- @c15t/backend@1.3.1-canary-20250618084038
|
|
24
|
+
|
|
3
25
|
## 1.3.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
package/dist/index.cjs
CHANGED
|
@@ -929,20 +929,19 @@ async function fetchConsentBannerInfo(config) {
|
|
|
929
929
|
});
|
|
930
930
|
const hasLocalStorageAccess = checkLocalStorageAccess(set);
|
|
931
931
|
if (!hasLocalStorageAccess) return;
|
|
932
|
-
if (initialData) {
|
|
933
|
-
set({
|
|
934
|
-
isLoadingConsentInfo: true
|
|
935
|
-
});
|
|
936
|
-
const showConsentBanner = await initialData;
|
|
937
|
-
set({
|
|
938
|
-
isLoadingConsentInfo: false
|
|
939
|
-
});
|
|
940
|
-
updateStore(showConsentBanner, config, true);
|
|
941
|
-
return showConsentBanner;
|
|
942
|
-
}
|
|
943
932
|
set({
|
|
944
933
|
isLoadingConsentInfo: true
|
|
945
934
|
});
|
|
935
|
+
if (initialData) {
|
|
936
|
+
const showConsentBanner = await initialData;
|
|
937
|
+
if (showConsentBanner) {
|
|
938
|
+
set({
|
|
939
|
+
isLoadingConsentInfo: false
|
|
940
|
+
});
|
|
941
|
+
updateStore(showConsentBanner, config, true);
|
|
942
|
+
return showConsentBanner;
|
|
943
|
+
}
|
|
944
|
+
}
|
|
946
945
|
try {
|
|
947
946
|
const { data, error } = await manager.showConsentBanner({
|
|
948
947
|
onError: callbacks.onError ? (context)=>{
|
package/dist/index.js
CHANGED
|
@@ -889,20 +889,19 @@ async function fetchConsentBannerInfo(config) {
|
|
|
889
889
|
});
|
|
890
890
|
const hasLocalStorageAccess = checkLocalStorageAccess(set);
|
|
891
891
|
if (!hasLocalStorageAccess) return;
|
|
892
|
-
if (initialData) {
|
|
893
|
-
set({
|
|
894
|
-
isLoadingConsentInfo: true
|
|
895
|
-
});
|
|
896
|
-
const showConsentBanner = await initialData;
|
|
897
|
-
set({
|
|
898
|
-
isLoadingConsentInfo: false
|
|
899
|
-
});
|
|
900
|
-
updateStore(showConsentBanner, config, true);
|
|
901
|
-
return showConsentBanner;
|
|
902
|
-
}
|
|
903
892
|
set({
|
|
904
893
|
isLoadingConsentInfo: true
|
|
905
894
|
});
|
|
895
|
+
if (initialData) {
|
|
896
|
+
const showConsentBanner = await initialData;
|
|
897
|
+
if (showConsentBanner) {
|
|
898
|
+
set({
|
|
899
|
+
isLoadingConsentInfo: false
|
|
900
|
+
});
|
|
901
|
+
updateStore(showConsentBanner, config, true);
|
|
902
|
+
return showConsentBanner;
|
|
903
|
+
}
|
|
904
|
+
}
|
|
906
905
|
try {
|
|
907
906
|
const { data, error } = await manager.showConsentBanner({
|
|
908
907
|
onError: callbacks.onError ? (context)=>{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-consent-banner.d.ts","sourceRoot":"","sources":["../../src/libs/fetch-consent-banner.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EACN,KAAK,iBAAiB,EAEtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEzD,KAAK,qBAAqB,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC;AAEvE;;GAEG;AACH,UAAU,wBAAwB;IACjC,OAAO,EAAE,uBAAuB,CAAC;IACjC,WAAW,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC;IACjE,wBAAwB,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACtD,GAAG,EAAE,QAAQ,CAAC,mBAAmB,CAAC,CAAC,UAAU,CAAC,CAAC;IAC/C,GAAG,EAAE,QAAQ,CAAC,mBAAmB,CAAC,CAAC,UAAU,CAAC,CAAC;CAC/C;AA8ED;;;;;GAKG;AACH,wBAAsB,sBAAsB,CAC3C,MAAM,EAAE,wBAAwB,GAC9B,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"fetch-consent-banner.d.ts","sourceRoot":"","sources":["../../src/libs/fetch-consent-banner.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EACN,KAAK,iBAAiB,EAEtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEzD,KAAK,qBAAqB,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC;AAEvE;;GAEG;AACH,UAAU,wBAAwB;IACjC,OAAO,EAAE,uBAAuB,CAAC;IACjC,WAAW,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC;IACjE,wBAAwB,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACtD,GAAG,EAAE,QAAQ,CAAC,mBAAmB,CAAC,CAAC,UAAU,CAAC,CAAC;IAC/C,GAAG,EAAE,QAAQ,CAAC,mBAAmB,CAAC,CAAC,UAAU,CAAC,CAAC;CAC/C;AA8ED;;;;;GAKG;AACH,wBAAsB,sBAAsB,CAC3C,MAAM,EAAE,wBAAwB,GAC9B,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC,CA0E5C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "c15t",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"license": "GPL-3.0-only",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"@orpc/client": "1.2.0",
|
|
23
23
|
"@orpc/server": "1.2.0",
|
|
24
24
|
"zustand": "^5.0.3",
|
|
25
|
-
"@c15t/backend": "1.3.
|
|
26
|
-
"@c15t/translations": "1.3.
|
|
25
|
+
"@c15t/backend": "1.3.1",
|
|
26
|
+
"@c15t/translations": "1.3.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"vitest-localstorage-mock": "^0.1.2",
|