@syntrologie/adapt-product 2.41.2 → 2.41.3

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/cdn.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  onActivate,
3
3
  runtime
4
- } from "./chunk-E5TZSKZV.js";
4
+ } from "./chunk-A6OGE4OG.js";
5
5
  import "./chunk-Y2QAYCSK.js";
6
6
 
7
7
  // src/cdn.ts
@@ -47,10 +47,13 @@ var utf8Decoder = new TextDecoder("utf-8", { fatal: false });
47
47
 
48
48
  // ../../sdk-contracts/dist/schemas.js
49
49
  import { z } from "zod";
50
+ var NO_CSS_BREAKOUT_PATTERN = /^[^{}]*$/;
50
51
  var AnchorIdZ = z.object({
51
- selector: z.string(),
52
- route: z.union([z.string(), z.array(z.string())])
53
- }).strict();
52
+ selector: z.string().regex(NO_CSS_BREAKOUT_PATTERN, {
53
+ message: 'selector must not contain "{" or "}" \u2014 not valid CSS selector syntax, and content:hideBySelector injects this value directly into a <style> element where these characters would break out of the generated rule.'
54
+ }).describe("CSS selector for the target element"),
55
+ route: z.union([z.string(), z.array(z.string())]).describe("URL path(s) where this element exists")
56
+ }).strict().describe("DOM element target. selector = CSS selector, route = URL path(s) where the element exists.");
54
57
  var AuthoringFieldsZ = {
55
58
  id: z.string().optional().describe('Stable action identifier (e.g. "act_3db6a14d2ab0").'),
56
59
  title: z.string().max(200).optional().describe("Authoring-only: short label shown on the action plan dashboard. Stripped before serving to the runtime SDK."),
@@ -204,10 +207,10 @@ var EventScopeZ = z.object({
204
207
  props: z.record(z.union([z.string(), z.number(), z.boolean()])).optional()
205
208
  });
206
209
  var NotifyZ = z.object({
207
- title: z.string().optional(),
208
- body: z.string().optional(),
209
- icon: z.string().optional()
210
- }).nullable().optional();
210
+ title: z.string().optional().describe("Notification title"),
211
+ body: z.string().optional().describe("Notification body text"),
212
+ icon: z.string().optional().describe("Notification icon (emoji or URL)")
213
+ }).describe("Optional toast notification shown when this action triggers.").nullable().optional();
211
214
 
212
215
  // src/presets-store.ts
213
216
  function presetsWindow() {
@@ -11736,4 +11739,4 @@ export {
11736
11739
  * SPDX-License-Identifier: BSD-3-Clause
11737
11740
  *)
11738
11741
  */
11739
- //# sourceMappingURL=chunk-E5TZSKZV.js.map
11742
+ //# sourceMappingURL=chunk-A6OGE4OG.js.map