veo-sdk 0.6.2 → 0.6.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.
@@ -4961,72 +4961,6 @@ function safeDestroy(renderer) {
4961
4961
  }
4962
4962
  }
4963
4963
 
4964
- // src/plugins/guides/activation-devices.ts
4965
- var MOBILE_MAX_WIDTH = 767;
4966
- function isDeviceAllowed(devices, viewportWidth = typeof window === "undefined" ? 1024 : window.innerWidth) {
4967
- if (!devices || devices === "all") return true;
4968
- const mobile = viewportWidth <= MOBILE_MAX_WIDTH;
4969
- return devices === "mobile" ? mobile : !mobile;
4970
- }
4971
-
4972
- // src/plugins/guides/url-match.ts
4973
- function urlCandidates(pageUrl) {
4974
- const out = [pageUrl];
4975
- try {
4976
- const u = new URL(pageUrl);
4977
- out.push(`${u.pathname}${u.search}${u.hash}`);
4978
- if (u.hash.startsWith("#/")) out.push(u.hash.slice(1));
4979
- } catch {
4980
- }
4981
- return out;
4982
- }
4983
- function matchesUrl(matcher, pageUrl) {
4984
- const candidates = urlCandidates(pageUrl);
4985
- switch (matcher.type) {
4986
- case "exact":
4987
- return candidates.some((c) => c === matcher.pattern);
4988
- case "prefix":
4989
- return candidates.some((c) => c.startsWith(matcher.pattern));
4990
- case "regex":
4991
- try {
4992
- const re = new RegExp(matcher.pattern);
4993
- return candidates.some((c) => re.test(c));
4994
- } catch {
4995
- return false;
4996
- }
4997
- }
4998
- }
4999
- function stepMatchesPage(loc, pageUrl) {
5000
- if (!loc || loc.scope === "sitewide") return true;
5001
- if (loc.scope === "pages") {
5002
- const rules = loc.rules ?? [];
5003
- return rules.some((r) => pageRuleMatches(r, pageUrl));
5004
- }
5005
- if (!loc.pattern) return true;
5006
- return matchesUrl({ type: loc.matchType ?? "prefix", pattern: loc.pattern }, pageUrl);
5007
- }
5008
- function pageRuleMatches(rule, pageUrl) {
5009
- const pattern = rule.pattern.toLowerCase();
5010
- const candidates = urlCandidates(pageUrl).map((c) => c.toLowerCase());
5011
- switch (rule.type) {
5012
- case "exact":
5013
- return candidates.some((c) => c === pattern);
5014
- case "prefix":
5015
- return candidates.some((c) => c.startsWith(pattern));
5016
- case "contains":
5017
- return candidates.some((c) => c.includes(pattern));
5018
- case "regex":
5019
- try {
5020
- const re = new RegExp(rule.pattern, "i");
5021
- return candidates.some((c) => re.test(c));
5022
- } catch {
5023
- return false;
5024
- }
5025
- default:
5026
- return false;
5027
- }
5028
- }
5029
-
5030
4964
  // src/plugins/autocapture/constants.ts
5031
4965
  var DEFAULT_AUTOCAPTURE_CONFIG = {
5032
4966
  enabled: true,
@@ -5038,7 +4972,8 @@ var DEFAULT_AUTOCAPTURE_CONFIG = {
5038
4972
  throttleMs: 100,
5039
4973
  maxTextLength: 200,
5040
4974
  captureElementMetadata: true,
5041
- captureAncestors: 5
4975
+ captureAncestors: 5,
4976
+ captureClickQuality: true
5042
4977
  };
5043
4978
  var MAX_ANCESTORS = 10;
5044
4979
  var ALWAYS_BLOCK_SELECTORS = [
@@ -5160,6 +5095,72 @@ function buildSelectorPath(element, maxAncestors = 5) {
5160
5095
  return parts.join(" > ");
5161
5096
  }
5162
5097
 
5098
+ // src/plugins/guides/activation-devices.ts
5099
+ var MOBILE_MAX_WIDTH = 767;
5100
+ function isDeviceAllowed(devices, viewportWidth = typeof window === "undefined" ? 1024 : window.innerWidth) {
5101
+ if (!devices || devices === "all") return true;
5102
+ const mobile = viewportWidth <= MOBILE_MAX_WIDTH;
5103
+ return devices === "mobile" ? mobile : !mobile;
5104
+ }
5105
+
5106
+ // src/plugins/guides/url-match.ts
5107
+ function urlCandidates(pageUrl) {
5108
+ const out = [pageUrl];
5109
+ try {
5110
+ const u = new URL(pageUrl);
5111
+ out.push(`${u.pathname}${u.search}${u.hash}`);
5112
+ if (u.hash.startsWith("#/")) out.push(u.hash.slice(1));
5113
+ } catch {
5114
+ }
5115
+ return out;
5116
+ }
5117
+ function matchesUrl(matcher, pageUrl) {
5118
+ const candidates = urlCandidates(pageUrl);
5119
+ switch (matcher.type) {
5120
+ case "exact":
5121
+ return candidates.some((c) => c === matcher.pattern);
5122
+ case "prefix":
5123
+ return candidates.some((c) => c.startsWith(matcher.pattern));
5124
+ case "regex":
5125
+ try {
5126
+ const re = new RegExp(matcher.pattern);
5127
+ return candidates.some((c) => re.test(c));
5128
+ } catch {
5129
+ return false;
5130
+ }
5131
+ }
5132
+ }
5133
+ function stepMatchesPage(loc, pageUrl) {
5134
+ if (!loc || loc.scope === "sitewide") return true;
5135
+ if (loc.scope === "pages") {
5136
+ const rules = loc.rules ?? [];
5137
+ return rules.some((r) => pageRuleMatches(r, pageUrl));
5138
+ }
5139
+ if (!loc.pattern) return true;
5140
+ return matchesUrl({ type: loc.matchType ?? "prefix", pattern: loc.pattern }, pageUrl);
5141
+ }
5142
+ function pageRuleMatches(rule, pageUrl) {
5143
+ const pattern = rule.pattern.toLowerCase();
5144
+ const candidates = urlCandidates(pageUrl).map((c) => c.toLowerCase());
5145
+ switch (rule.type) {
5146
+ case "exact":
5147
+ return candidates.some((c) => c === pattern);
5148
+ case "prefix":
5149
+ return candidates.some((c) => c.startsWith(pattern));
5150
+ case "contains":
5151
+ return candidates.some((c) => c.includes(pattern));
5152
+ case "regex":
5153
+ try {
5154
+ const re = new RegExp(rule.pattern, "i");
5155
+ return candidates.some((c) => re.test(c));
5156
+ } catch {
5157
+ return false;
5158
+ }
5159
+ default:
5160
+ return false;
5161
+ }
5162
+ }
5163
+
5163
5164
  export { ALWAYS_BLOCK_SELECTORS, BadgeRenderer, BannerRenderer, CompositeRenderer, CustomRenderer, DEFAULT_AUTOCAPTURE_CONFIG, DEFAULT_TRACKER_BATCH_SIZE, DEFAULT_TRACKER_FLUSH_INTERVAL_MS, DEFAULT_TRACKER_MAX_RETRIES, FREQUENCY_CACHE_KEY_PREFIX, FREQUENCY_CACHE_MAX_ENTRIES, FREQUENCY_CACHE_TTL_MS, FormRenderer, GUIDE_STYLES, InlineCustomRenderer, InlineFormRenderer, InlineRenderer, MAX_ANCESTORS, ModalRenderer, PRIORITY_ATTRIBUTES, RAW_BLOCK_ATTR, SENSITIVE_ATTRIBUTES, TooltipRenderer, WALKTHROUGH_ABANDONMENT_TIMEOUT_MS, WALKTHROUGH_STATE_KEY_PREFIX, WalkthroughRenderer, activationDelayMs, applyBlockStyle, buildContentBlock, buildSelectorPath, clearBuilderToken, clearPreviewToken, closeGuidePreview, filterHumanClasses, getPreviewToken, groupLayout, hasDocument, hasLocalStorage, hasNavigatorSendBeacon, hasWindow, isAutomaticActivation, isBuilderMode, isDeviceAllowed, isSnoozed, previewGuide, resolveBuilderContext, resolveBuilderToken, stepMatchesPage, uuidv7 };
5164
- //# sourceMappingURL=chunk-ZILDR4YE.mjs.map
5165
- //# sourceMappingURL=chunk-ZILDR4YE.mjs.map
5165
+ //# sourceMappingURL=chunk-SZCIXA5X.mjs.map
5166
+ //# sourceMappingURL=chunk-SZCIXA5X.mjs.map