arcy.js 0.1.3 → 0.1.4

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
@@ -1,7 +1,7 @@
1
- import { DESIGN_MODE_PROTOCOL, DESIGN_MODE_EXIT, DESIGN_MODE_SCREENSHOT, DESIGN_MODE_PICK, DESIGN_MODE_READY } from './chunk-7VVKR3AO.js';
2
1
  import { FALLBACK_CHROME, resolveImageUrl, FONT_KEY_PROPERTY, isRenderableImageUrl, readViewport, POLICY_LINK_CLASS, BAR_TRAY_CLASS, ATTACHABLE_TYPES, TOOLTIP_CSS, surfaceWidth, clampOffsetX, dragTransform, carriesFiles, droppedFiles, MOBILE_MARGIN, CHAT_CONTRACT, CHAT_GLOBAL } from './chunk-DW3GUQ6J.js';
3
2
  import { createShellState, safeStore, browserSessionStorage, writeJson, browserLocalStorage, readJson, hasPendingPreview, createFlowRunState, FLOW_CONTRACT, FLOW_GLOBAL } from './chunk-FR6SJSDU.js';
4
3
  import { PICKER_CONTRACT, PICKER_GLOBAL } from './chunk-DKYMIAYF.js';
4
+ import { DESIGN_MODE_PROTOCOL, DESIGN_MODE_EXIT, DESIGN_MODE_SCREENSHOT, DESIGN_MODE_PICK, DESIGN_MODE_READY } from './chunk-GDGE3HLE.js';
5
5
  import { warn, reportCspViolations, releaseHostFocus, Z_INDEX, createShell, injectStyles } from './chunk-LGWYJSYX.js';
6
6
  import { captureEventFingerprint, containsPii } from './chunk-NY3NXM2V.js';
7
7
 
@@ -3998,6 +3998,11 @@ function createArcyInternals(internalOptions = {}) {
3998
3998
  welcomeMessage: text(raw?.welcomeMessage),
3999
3999
  inputPlaceholder: text(raw?.inputPlaceholder),
4000
4000
  welcomeHeadline: text(raw?.welcomeHeadline),
4001
+ // Which copy the three texts above are (ADR 0195). Shape-checked like
4002
+ // everything else read out of the bootstrap (ADR 0050), and anything
4003
+ // that is not one of the two audiences reads as the empty string, which
4004
+ // the panel treats as "not known yet" and never as a change.
4005
+ audience: raw?.audience === "identified" || raw?.audience === "anonymous" ? raw.audience : "",
4001
4006
  // Re-checked here rather than trusted: a rewritten bootstrap must not
4002
4007
  // be able to turn a camera prompt on for an operator who never did
4003
4008
  // (ADR 0050, ADR 0102).
@@ -4717,7 +4722,7 @@ var bundledChunks = {
4717
4722
  cdnBase: null,
4718
4723
  loadChat: (win, timeoutMs, setTimeoutImpl) => importChunk(
4719
4724
  win,
4720
- () => import('./chat-HNE6525R.js'),
4725
+ () => import('./chat-VOYR3S25.js'),
4721
4726
  CHAT_GLOBAL,
4722
4727
  CHAT_CONTRACT,
4723
4728
  "chat panel",
@@ -4735,7 +4740,7 @@ var bundledChunks = {
4735
4740
  ),
4736
4741
  loadPicker: (win, timeoutMs, setTimeoutImpl) => importChunk(
4737
4742
  win,
4738
- () => import('./picker-JPESE6JJ.js'),
4743
+ () => import('./picker-GPZ2GHB4.js'),
4739
4744
  PICKER_GLOBAL,
4740
4745
  PICKER_CONTRACT,
4741
4746
  "design-mode picker",
@@ -1,4 +1,5 @@
1
1
  import { PICKER_CONTRACT, PICKER_GLOBAL } from './chunk-DKYMIAYF.js';
2
+ import { SCREENSHOT_RENDER_BUDGET_MS } from './chunk-GDGE3HLE.js';
2
3
  import { createShell, injectStyles, warn, HOST_ATTRIBUTE } from './chunk-LGWYJSYX.js';
3
4
  import { matchTarget } from './chunk-NIHUDSWK.js';
4
5
  import { resolveInteractiveTarget, createTargetFingerprint, captureEventFingerprint, closestAcrossShadow, isStableId, containsPii, SELECTOR_CANDIDATES_MAX, collectElementsDeep, querySelectorAllDeep } from './chunk-NY3NXM2V.js';
@@ -1665,7 +1666,7 @@ var CROP_MAX_HEIGHT = 1200;
1665
1666
  var OUTPUT_MAX_DPR = 2;
1666
1667
  var OUTPUT_MAX_PIXELS = 26e5;
1667
1668
  var DATA_URL_SOFT_MAX = 36e5;
1668
- var RENDER_TIMEOUT_MS = 8e3;
1669
+ var RENDER_TIMEOUT_MS = SCREENSHOT_RENDER_BUDGET_MS;
1669
1670
  var PII_PATTERNS = [
1670
1671
  /[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g,
1671
1672
  /\b\d{3}-\d{2}-\d{4}\b/g,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arcy.js",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "ARCY — the universal JavaScript utility for embedding an AI agent that talks to, learns from, and acts on behalf of your users.",
5
5
  "license": "MIT",
6
6
  "type": "module",