wiki-plugin-shoppe 0.0.36 → 0.0.38

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wiki-plugin-shoppe",
3
- "version": "0.0.36",
3
+ "version": "0.0.38",
4
4
  "description": "Multi-tenant digital goods shoppe for federated wiki, powered by Sanora",
5
5
  "keywords": [
6
6
  "wiki",
package/server/server.js CHANGED
@@ -3180,6 +3180,8 @@ async function startServer(params) {
3180
3180
  ? `${ebookUrl}?pubKey=${encodeURIComponent(buyerPubKey)}&timestamp=${encodeURIComponent(buyerTimestamp)}&signature=${encodeURIComponent(buyerSignature)}`
3181
3181
  : ebookUrl;
3182
3182
 
3183
+ const clipUrl = `${wikiOrigin}${req.path}?${new URLSearchParams(req.query).toString()}`;
3184
+
3183
3185
  const html = fillTemplate(templateHtml, {
3184
3186
  title: product.title || title,
3185
3187
  description: product.description || '',
@@ -3196,7 +3198,8 @@ async function startServer(params) {
3196
3198
  shoppeUrl,
3197
3199
  payees,
3198
3200
  tenantUuid: tenant.uuid,
3199
- keywords: extractKeywords(product)
3201
+ keywords: extractKeywords(product),
3202
+ clipUrl,
3200
3203
  });
3201
3204
 
3202
3205
  res.set('Content-Type', 'text/html');
@@ -6,7 +6,7 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.00, maximum-scale=1.00, minimum-scale=1.00">
7
7
  <!-- Shoppere App Clip — triggers on iOS Safari when user visits this buy page -->
8
8
  <meta name="apple-itunes-app"
9
- content="app-id=6760954663, app-clip-bundle-id=app.foures.shoppere.clip, app-clip-display=card">
9
+ content="app-id=6760954663, app-clip-bundle-id=app.foures.shoppere.shoppere, app-clip-display=card, app-clip-url={{clipUrl}}">
10
10
  <meta name="twitter:title" content="{{title}}">
11
11
  <meta name="description" content="{{description}}">
12
12
  <meta name="keywords" content="{{keywords}}">
@@ -171,6 +171,10 @@
171
171
  </div>
172
172
 
173
173
  </div><!-- #main-container -->
174
+ <div id="clip-debug" style="position:fixed;bottom:0;left:0;right:0;background:#111;color:#7ec8e3;font-family:monospace;font-size:10px;padding:6px 10px;z-index:9999;border-top:1px solid #333;word-break:break-all;">
175
+ <strong>clip-bundle-id:</strong> app.foures.shoppere.shoppere &nbsp;|&nbsp;
176
+ <strong>app-clip-url:</strong> {{clipUrl}}
177
+ </div>
174
178
 
175
179
  <!-- ── Shared payees param parser ─────────────────────────────────────────── -->
176
180
  <script>