@deep-eye/core 1.3.28 → 1.3.29

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.29] - 2026-09-15
8
+
9
+ ### Fixed
10
+
11
+ - **bento `pages` 课件被壳拒绝**:`deck.json` 常见形态是 `pages` + `theme.colors` + 元素 `position`,没有 `format`/`slides`。壳 `parseDoc()` 要求 `format === "bento/slides"` 且 `slides` 非空,会报 `rejected the document as invalid`。灌入前把 `pages` 收成 `slides`,摊平 `position`/`theme.colors`/`fill.color`/`text.size`。
12
+
7
13
  ## [1.3.28] - 2026-09-15
8
14
 
9
15
  ### Fixed
@@ -66,6 +66,8 @@ export declare function parseBentoDoc(docJson: string): unknown;
66
66
  * 课件 files often omit `format` and store text-element copy in `text`
67
67
  * instead of `html`. Agent-generated decks use `type` / `element` /
68
68
  * `content` instead of the canonical `format` / `type` / `html` fields.
69
+ * `slides` written as an object, a root array, `pages`, or `[]` is coerced
70
+ * into a non-empty array; `format` is always set to `bento/slides`.
69
71
  * Every slide/layout gets an `elements` array — the shell iterates it
70
72
  * unconditionally and throws if the value is missing, null, or an object.
71
73
  * `theme` and `size` are filled the same way: `bootWith` reads
@@ -1 +1 @@
1
- {"version":3,"file":"bentoEmbed.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/mdoc/bentoEmbed.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,sFAAsF;AACtF,eAAO,MAAM,qBAAqB,4BAA4B,CAAA;AAK9D;;;;;;;;;GASG;AACH,eAAO,MAAM,2BAA2B,8hBAiC9B,CAAA;AAKV,eAAO,MAAM,kBAAkB,QAEnB,CAAA;AAKZ,qBAAa,kBAAmB,SAAQ,KAAK;gBAC/B,OAAO,EAAE,MAAM;CAI5B;AAED,qBAAa,c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AACH,wBAAsB,YAAY,CAChC,QAAQ,EAAE,iBAAiB,EAC3B,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,OAAO,EACZ,OAAO,GAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,WAAW,CAAA;CAAO,GAClF,OAAO,CAAC,IAAI,CAAC,CAoBf;AAED;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAY/D"}
@@ -1,4 +1,4 @@
1
- "use strict";const sp=require("./index-8U8GHDY-.cjs"),GO=require("vue");function Uat(hr,Ba){for(var Qe=0;Qe<Ba.length;Qe++){const Tn=Ba[Qe];if(typeof Tn!="string"&&!Array.isArray(Tn)){for(const pr in Tn)if(pr!=="default"&&!(pr in hr)){const lo=Object.getOwnPropertyDescriptor(Tn,pr);lo&&Object.defineProperty(hr,pr,lo.get?lo:{enumerable:!0,get:()=>Tn[pr]})}}}return Object.freeze(Object.defineProperty(hr,Symbol.toStringTag,{value:"Module"}))}var WO={exports:{}},ow={},FO;function Xat(){return FO||(FO=1,function(hr){var Ba=GO;Object.keys(Ba).forEach(function(Qe){hr[Qe]=Ba[Qe]}),hr.set=function(Qe,Tn,pr){return Array.isArray(Qe)?(Qe.length=Math.max(Qe.length,Tn),Qe.splice(Tn,1,pr),pr):(Qe[Tn]=pr,pr)},hr.del=function(Qe,Tn){if(Array.isArray(Qe)){Qe.splice(Tn,1);return}delete Qe[Tn]},hr.Vue=Ba,hr.Vue2=void 0,hr.isVue2=!1,hr.isVue3=!0,hr.install=function(){}}(ow)),ow}(function(hr,Ba){(function(Qe,Tn){hr.exports=Tn(Xat(),GO)})(sp.commonjsGlobal,function(Qe,Tn){var pr=function(n,e){return pr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])},pr(n,e)};function lo(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");pr(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Dt=function(){return Dt=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n},Dt.apply(this,arguments)};function vn(n,e,t,r){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(c){try{u(r.next(c))}catch(h){a(h)}}function l(c){try{u(r.throw(c))}catch(h){a(h)}}function u(c){c.done?o(c.value):i(c.value).then(s,l)}u((r=r.apply(n,[])).next())})}function yn(n,e){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(t=0)),t;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,i=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){t.label=u[1];break}if(u[0]===6&&t.label<o[1]){t.label=o[1],o=u;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(u);break}o[2]&&t.ops.pop(),t.trys.pop();continue}u=e.call(n,t)}catch(c){u=[6,c],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Bu(n,e,t){for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return n.concat(o||Array.prototype.slice.call(e))}typeof SuppressedError=="function"&&SuppressedError;var uo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof sp.commonjsGlobal<"u"?sp.commonjsGlobal:typeof self<"u"?self:{};function HO(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function lp(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var aw={exports:{}};/*!
1
+ "use strict";const sp=require("./index-B3zJWhE7.cjs"),GO=require("vue");function Uat(hr,Ba){for(var Qe=0;Qe<Ba.length;Qe++){const Tn=Ba[Qe];if(typeof Tn!="string"&&!Array.isArray(Tn)){for(const pr in Tn)if(pr!=="default"&&!(pr in hr)){const lo=Object.getOwnPropertyDescriptor(Tn,pr);lo&&Object.defineProperty(hr,pr,lo.get?lo:{enumerable:!0,get:()=>Tn[pr]})}}}return Object.freeze(Object.defineProperty(hr,Symbol.toStringTag,{value:"Module"}))}var WO={exports:{}},ow={},FO;function Xat(){return FO||(FO=1,function(hr){var Ba=GO;Object.keys(Ba).forEach(function(Qe){hr[Qe]=Ba[Qe]}),hr.set=function(Qe,Tn,pr){return Array.isArray(Qe)?(Qe.length=Math.max(Qe.length,Tn),Qe.splice(Tn,1,pr),pr):(Qe[Tn]=pr,pr)},hr.del=function(Qe,Tn){if(Array.isArray(Qe)){Qe.splice(Tn,1);return}delete Qe[Tn]},hr.Vue=Ba,hr.Vue2=void 0,hr.isVue2=!1,hr.isVue3=!0,hr.install=function(){}}(ow)),ow}(function(hr,Ba){(function(Qe,Tn){hr.exports=Tn(Xat(),GO)})(sp.commonjsGlobal,function(Qe,Tn){var pr=function(n,e){return pr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])},pr(n,e)};function lo(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");pr(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Dt=function(){return Dt=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n},Dt.apply(this,arguments)};function vn(n,e,t,r){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(c){try{u(r.next(c))}catch(h){a(h)}}function l(c){try{u(r.throw(c))}catch(h){a(h)}}function u(c){c.done?o(c.value):i(c.value).then(s,l)}u((r=r.apply(n,[])).next())})}function yn(n,e){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(t=0)),t;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,i=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){t.label=u[1];break}if(u[0]===6&&t.label<o[1]){t.label=o[1],o=u;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(u);break}o[2]&&t.ops.pop(),t.trys.pop();continue}u=e.call(n,t)}catch(c){u=[6,c],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Bu(n,e,t){for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return n.concat(o||Array.prototype.slice.call(e))}typeof SuppressedError=="function"&&SuppressedError;var uo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof sp.commonjsGlobal<"u"?sp.commonjsGlobal:typeof self<"u"?self:{};function HO(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function lp(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var aw={exports:{}};/*!
2
2
 
3
3
  JSZip v3.10.1 - A JavaScript class for generating and reading zip files
4
4
  <http://stuartk.com/jszip>
@@ -1,4 +1,4 @@
1
- import { g as Uat, c as fv } from "./index-BqBNAwic.js";
1
+ import { g as Uat, c as fv } from "./index-DPjVSofA.js";
2
2
  import * as WO from "vue";
3
3
  function Xat(hr, Ba) {
4
4
  for (var Qe = 0; Qe < Ba.length; Qe++) {