create-ampless 1.0.0-alpha.87 → 1.0.0-alpha.89
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/dist/index.js
CHANGED
|
@@ -1858,7 +1858,8 @@ var AMPLESS_PACKAGES = /* @__PURE__ */ new Set([
|
|
|
1858
1858
|
"@ampless/plugin-og-image",
|
|
1859
1859
|
"@ampless/plugin-analytics-ga4",
|
|
1860
1860
|
"@ampless/plugin-gtm",
|
|
1861
|
-
"@ampless/plugin-plausible"
|
|
1861
|
+
"@ampless/plugin-plausible",
|
|
1862
|
+
"@ampless/plugin-cookie-consent"
|
|
1862
1863
|
]);
|
|
1863
1864
|
var AMPLESS_MANAGED_SCRIPTS = /* @__PURE__ */ new Set([
|
|
1864
1865
|
"sandbox",
|
|
@@ -2,6 +2,7 @@ import { defineConfig } from 'ampless'
|
|
|
2
2
|
import seoPlugin from '@ampless/plugin-seo'
|
|
3
3
|
import rssPlugin from '@ampless/plugin-rss'
|
|
4
4
|
// import schemaJsonLdPlugin from '@ampless/plugin-schema-jsonld'
|
|
5
|
+
// import cookieConsentPlugin from '@ampless/plugin-cookie-consent'
|
|
5
6
|
// import analyticsGa4Plugin from '@ampless/plugin-analytics-ga4'
|
|
6
7
|
// import gtmPlugin from '@ampless/plugin-gtm'
|
|
7
8
|
// import plausiblePlugin from '@ampless/plugin-plausible'
|
|
@@ -72,6 +73,21 @@ export default defineConfig({
|
|
|
72
73
|
// ],
|
|
73
74
|
// }),
|
|
74
75
|
//
|
|
76
|
+
// Cookie consent banner. Installs `window.amplessConsent` so other
|
|
77
|
+
// plugins can gate themselves on user consent (see the Consent
|
|
78
|
+
// Convention in `docs/architecture/08-plugin-architecture.md`).
|
|
79
|
+
//
|
|
80
|
+
// IMPORTANT: cookieConsentPlugin() must come BEFORE any analytics
|
|
81
|
+
// plugin in this array — both run `afterInteractive` and the consent
|
|
82
|
+
// API must be installed before analytics scripts read it. (Analytics
|
|
83
|
+
// plugins also wait for `ampless:consent-ready`, so out-of-order
|
|
84
|
+
// registration still works, but in-order is faster.)
|
|
85
|
+
//
|
|
86
|
+
// Categories (analytics / marketing / etc.) are managed live from
|
|
87
|
+
// `/admin/plugins`. Banner text and button labels are also admin-editable.
|
|
88
|
+
//
|
|
89
|
+
// cookieConsentPlugin(),
|
|
90
|
+
//
|
|
75
91
|
// Google Analytics 4. Once registered here, the measurement ID can be
|
|
76
92
|
// edited from `/admin/plugins` without a redeploy — the constructor
|
|
77
93
|
// value below is just the initial default. Pass an empty string to
|
|
@@ -25,10 +25,11 @@
|
|
|
25
25
|
"@tiptap/pm": "^3.23.6",
|
|
26
26
|
"@tiptap/react": "^3.23.6",
|
|
27
27
|
"@tiptap/starter-kit": "^3.23.6",
|
|
28
|
-
"@ampless/plugin-analytics-ga4": "^0.2.0-alpha.
|
|
29
|
-
"@ampless/plugin-
|
|
28
|
+
"@ampless/plugin-analytics-ga4": "^0.2.0-alpha.10",
|
|
29
|
+
"@ampless/plugin-cookie-consent": "^0.1.0-alpha.1",
|
|
30
|
+
"@ampless/plugin-gtm": "^0.2.0-alpha.9",
|
|
30
31
|
"@ampless/plugin-og-image": "^0.2.0-alpha.26",
|
|
31
|
-
"@ampless/plugin-plausible": "^0.
|
|
32
|
+
"@ampless/plugin-plausible": "^0.2.0-alpha.9",
|
|
32
33
|
"@ampless/plugin-rss": "^0.2.0-alpha.26",
|
|
33
34
|
"@ampless/plugin-schema-jsonld": "^0.1.1-alpha.5",
|
|
34
35
|
"@ampless/plugin-seo": "^0.2.0-alpha.26",
|