@deep-eye/core 1.3.27 → 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 +13 -0
- package/dist/components/chat/mdoc/bentoEmbed.d.ts +6 -0
- package/dist/components/chat/mdoc/bentoEmbed.d.ts.map +1 -1
- package/dist/{index-D7S0Wjud.cjs → index-49QFKgUx.cjs} +1 -1
- package/dist/{index-CLy-2eGN.js → index-Am-8UQhV.js} +1 -1
- package/dist/{index-TXVZErTw.cjs → index-B3zJWhE7.cjs} +182 -182
- package/dist/{index-DctiqJts.js → index-DPjVSofA.js} +19312 -19218
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,19 @@
|
|
|
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
|
+
|
|
13
|
+
## [1.3.28] - 2026-09-15
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- **bento 课件 `theme.palette`**:壳 `bootWith` 会读 `doc.theme.palette`,画布会读 `doc.size.width`。规范课件缺 `theme` / `size`(或 `size` 写成 `[w,h]`)时会抛 `TypeError`。灌入前补上默认 theme / `{ width, height }`。
|
|
18
|
+
- **bento 课件其余启动必崩字段**:壳还会无保护地读 `title.replace`、`text.html.indexOf`、`table.columns.reduce` / `rows` / `cells`、`comments.forEach`,以及遍历 `layouts` / `fonts`。灌入前丢掉非对象的 slide/element 空洞,补 `html` / 表格行列 / `title`,并把 `layouts`、`fonts`、`comments` 收成数组。
|
|
19
|
+
|
|
7
20
|
## [1.3.27] - 2026-09-14
|
|
8
21
|
|
|
9
22
|
### Fixed
|
|
@@ -66,8 +66,14 @@ 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.
|
|
73
|
+
* `theme` and `size` are filled the same way: `bootWith` reads
|
|
74
|
+
* `doc.theme.palette` and the canvas reads `doc.size.width` with no fallback.
|
|
75
|
+
* Remaining boot reads (`title.replace`, `text.html.indexOf`, table
|
|
76
|
+
* `columns`/`rows`/`cells`, `comments`, `layouts`, `fonts`) are hardened too.
|
|
71
77
|
*/
|
|
72
78
|
export declare function normalizeBentoDoc(doc: unknown): unknown;
|
|
73
79
|
/**
|
|
@@ -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,cAAe,SAAQ,KAAK;gBAC3B,OAAO,EAAE,MAAM;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AAM,CAAC;IAAC,MAAM,CAAC,EAAE,WAAW,CAAA;CAAO,GAClF,OAAO,CAAC,IAAI,CAAC,CAmCf;AAED;;;;;;;;;;;GAWG;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-
|
|
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>
|