@deep-eye/core 1.3.22 → 1.3.23

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/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [1.3.23] - 2026-09-11
8
+
9
+ ### Fixed
10
+
11
+ - **bento 侧栏全屏**:幻灯片壳里点放大会 `requestFullscreen()`。此前 iframe `allow` 写成 `fullscreen *`,宿主页默认只有 `'self'`,Chrome 会直接禁用该文档的全屏(`Permissions policy violation: fullscreen is not allowed in this document`)。改为委托 `fullscreen`(`'src'`)。课件 iframe 也不再加 `sandbox`(`allow-scripts` + `allow-same-origin` 本来就能逃逸,沙箱还会让全屏策略失效)。
12
+
7
13
  ## [1.3.22] - 2026-09-11
8
14
 
9
15
  ### Fixed
@@ -1 +1 @@
1
- {"version":3,"file":"BentoRenderer.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/chat/components/document-viewer/bento/BentoRenderer.vue"],"names":[],"mappings":"AAqNA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAajE,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,gBAAgB,CAAA;CAC3B,CAAC;AAoFF,iBAAe,IAAI,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAmBjD;AAED,iBAAe,UAAU,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,CAElD;AAED,iBAAS,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAE1C;AAED,iBAAS,QAAQ,IAAI,IAAI,CAQxB;AAqFD,QAAA,MAAM,YAAY;;;;;;;;;;;kFAIhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"BentoRenderer.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/chat/components/document-viewer/bento/BentoRenderer.vue"],"names":[],"mappings":"AA6NA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAajE,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,gBAAgB,CAAA;CAC3B,CAAC;AAwFF,iBAAe,IAAI,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAmBjD;AAED,iBAAe,UAAU,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,CAElD;AAED,iBAAS,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAE1C;AAED,iBAAS,QAAQ,IAAI,IAAI,CAQxB;AAoFD,QAAA,MAAM,YAAY;;;;;;;;;;;kFAIhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -21,8 +21,8 @@
21
21
  *
22
22
  * `loadDoc()` requires calling into the iframe's `contentWindow`, which the
23
23
  * browser only allows when the iframe is genuinely same-origin with this
24
- * page (real navigation via `iframe.src`, sandboxed with `allow-same-origin`
25
- * — never `srcdoc`, which is always opaque-origin regardless of content).
24
+ * page (real navigation via `iframe.src` — never `srcdoc`, which is always
25
+ * opaque-origin regardless of content).
26
26
  * That means `bentoShellUrl` MUST resolve to the same origin as the host
27
27
  * page: in production, the chat app is deployed on the shell's own origin;
28
28
  * for local dev, proxy the shell path through the dev server (see
@@ -33,8 +33,13 @@
33
33
  export declare const DEFAULT_BENTO_APP_URL = "https://api.yxuer.com:8443/yxuer-bento/index.html";
34
34
  /**
35
35
  * Permissions Policy features delegated to the slides shell iframe.
36
- * Each token is serialized as `feature *` so nested cross-origin embeds
37
- * (YouTube / Vimeo / maps) can inherit the same policy.
36
+ *
37
+ * Features whose default allowlist is already `*` can be re-delegated to
38
+ * nested YouTube / Vimeo as `feature *`. Everything else (fullscreen,
39
+ * clipboard, wake-lock, …) defaults to `'self'` on the host page: asking
40
+ * for `feature *` is a grant the parent cannot make, and Chrome then
41
+ * **disables the feature in this document**. Bare `fullscreen` maps to
42
+ * `'src'` so the shell's own `requestFullscreen()` is allowed.
38
43
  */
39
44
  export declare const BENTO_IFRAME_ALLOW_FEATURES: readonly ["accelerometer", "ambient-light-sensor", "autoplay", "bluetooth", "camera", "clipboard-read", "clipboard-write", "compute-pressure", "display-capture", "encrypted-media", "fullscreen", "gamepad", "geolocation", "gyroscope", "hid", "identity-credentials-get", "idle-detection", "local-fonts", "magnetometer", "microphone", "midi", "otp-credentials", "payment", "picture-in-picture", "publickey-credentials-create", "publickey-credentials-get", "screen-wake-lock", "serial", "speaker-selection", "storage-access", "usb", "web-share", "window-management", "xr-spatial-tracking"];
40
45
  export declare const BENTO_IFRAME_ALLOW: string;
@@ -1 +1 @@
1
- {"version":3,"file":"bentoEmbed.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/bentoEmbed.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,gFAAgF;AAChF,eAAO,MAAM,qBAAqB,sDAAsD,CAAA;AAExF;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,2kBAmC9B,CAAA;AAEV,eAAO,MAAM,kBAAkB,QAE9B,CAAA;AAKD,qBAAa,kBAAmB,SAAQ,KAAK;gBAC/B,OAAO,EAAE,MAAM;CAI5B;AAED,qBAAa,cAAe,SAAQ,KAAK;gBAC3B,OAAO,EAAE,MAAM;CAI5B;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAOtD;AAYD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CA2BvD;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAcvD;AAMD;;;;GAIG;AACH,wBAAsB,aAAa,CACjC,GAAG,EAAE,MAAM,EACX,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