showai-reader 0.9.0-reader.q4ja4waa → 0.9.0-reader.rdnqa6s3
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/README.md +1 -1
- package/chunks/CardGrid-4J43EYBG.js +2 -0
- package/chunks/CommandReference-RURBETEE.js +3 -0
- package/chunks/{ComparisonMatrix-VW2IGVU5.js → ComparisonMatrix-3NPOV2C2.js} +1 -1
- package/chunks/EventTimeline-ZBPOWX5G.js +2 -0
- package/chunks/{ExperimentTracker-MGDLULUF.js → ExperimentTracker-M2MCK3T3.js} +1 -1
- package/chunks/{ExternalDiagram-GBZ7V5UE.js → ExternalDiagram-X2PKL6FZ.js} +1 -1
- package/chunks/Flowchart-DKB2L4BW.js +12 -0
- package/chunks/{G2Chart-7EVLDIBD.js → G2Chart-ZNQ2DX2B.js} +2 -2
- package/chunks/LayerDiagram-4K3MUVMX.js +2 -0
- package/chunks/{Mindmap-4KIEQIOX.js → Mindmap-W34T7QBH.js} +2 -2
- package/chunks/{RichTextEditor-3RHTXHKF.js → RichTextEditor-V22CLVIU.js} +1 -1
- package/chunks/Roadmap-XUE53GDT.js +2 -0
- package/chunks/{Scene3D-UGBYDVQQ.js → Scene3D-J4LQMEHU.js} +2 -2
- package/chunks/SequenceDiagram-OC62QNYE.js +2 -0
- package/chunks/{StatusTree-2D4NMGCP.js → StatusTree-XHA64Z6X.js} +1 -1
- package/chunks/StepGuide-L7B5BISR.js +1 -0
- package/chunks/StructureBrowser-V7D7T4IJ.js +3 -0
- package/chunks/Waterfall-QCPM23JB.js +2 -0
- package/chunks/chunk-3RZMLHCB.js +1 -0
- package/chunks/{chunk-ANLBEZ6Q.js → chunk-4S5THSYJ.js} +2 -2
- package/chunks/chunk-7KLWJ6U4.js +1 -0
- package/chunks/chunk-AIBH6MTQ.js +1 -0
- package/chunks/chunk-D74K2NKW.js +1 -0
- package/chunks/{chunk-YNCGN7XC.js → chunk-DY7XKPRY.js} +1 -1
- package/chunks/chunk-GLP5VV7P.js +1 -0
- package/chunks/chunk-JXKAISUX.js +1 -0
- package/chunks/{chunk-OQ6FTOA6.js → chunk-NF6YPAR6.js} +1 -1
- package/chunks/{chunk-YMCR7XS6.js → chunk-NIXNABQP.js} +1 -1
- package/chunks/chunk-NJBFXE6W.js +1 -0
- package/chunks/chunk-P3JIINVU.js +4 -0
- package/chunks/{chunk-3HD2PTWK.js → chunk-UXI4E4FN.js} +1 -1
- package/chunks/{chunk-IGVOXOPU.js → chunk-XCJENDJI.js} +1 -1
- package/chunks/chunk-YLTLOYBH.js +1 -0
- package/chunks/{chunk-KWOFOCF3.js → chunk-Z26LTCQQ.js} +3 -3
- package/index.js +1 -1
- package/manifest.json +5 -5
- package/package.json +1 -1
- package/reader-RDNQA6S3.js +46 -0
- package/chunks/Flowchart-LXZEZDKL.js +0 -10
- package/chunks/chunk-M3KEZP5Z.js +0 -1
- package/reader-Q4JA4WAA.js +0 -41
- package/chunks/{Flowchart-LXZEZDKL.js.LEGAL.txt → Flowchart-DKB2L4BW.js.LEGAL.txt} +0 -0
- package/chunks/{G2Chart-7EVLDIBD.js.LEGAL.txt → G2Chart-ZNQ2DX2B.js.LEGAL.txt} +0 -0
- package/chunks/{Scene3D-UGBYDVQQ.js.LEGAL.txt → Scene3D-J4LQMEHU.js.LEGAL.txt} +0 -0
- package/chunks/{chunk-ANLBEZ6Q.js.LEGAL.txt → chunk-4S5THSYJ.js.LEGAL.txt} +0 -0
- package/chunks/{chunk-KWOFOCF3.js.LEGAL.txt → chunk-Z26LTCQQ.js.LEGAL.txt} +1 -1
- /package/{reader-Q4JA4WAA.js.LEGAL.txt → reader-RDNQA6S3.js.LEGAL.txt} +0 -0
package/chunks/chunk-M3KEZP5Z.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var d=new Set(["request","skill","decision","reference","query","result"]),l=new Set(["__proto__","prototype","constructor"]);function i(o,t,n=!1,e=1e4){if(!(o===void 0&&!n)&&(typeof o!="string"||o.length>e||n&&!o.trim()))throw new Error(`${t} must be ${n?"non-empty ":""}text.`)}function s(o,t,n){if(!Array.isArray(o)||o.length>n)throw new Error(`${t} must contain at most ${n} items.`);let e=new Set;for(let r of o){if(!r||typeof r!="object"||Array.isArray(r))throw new Error(`${t} requires objects.`);if(i(r.id,`${t}.id`,!0,200),l.has(r.id)||e.has(r.id))throw new Error(`${t} requires unique, non-reserved IDs.`);e.add(r.id)}return e}function c(o){if(i(o.title,"flowchart.title"),i(o.description,"flowchart.description"),o.height!==void 0&&(!Number.isFinite(o.height)||o.height<360||o.height>1200))throw new Error("Flowchart height must be between 360 and 1200.");s(o.flows,"flowchart.flows",20);for(let t of o.flows){if(i(t.label,"flow.label",!0,200),i(t.description,"flow.description"),t.direction!==void 0&&!["TB","LR"].includes(t.direction))throw new Error("Flow direction must be TB or LR.");let n=s(t.nodes,"flow.nodes",200);s(t.edges,"flow.edges",400);for(let e of t.nodes){i(e.label,"node.label",!0,200),i(e.subtitle,"node.subtitle",!1,300),i(e.detail,"node.detail");for(let r of["sourceSide","targetSide"])if(e[r]!==void 0&&!["top","bottom","left","right"].includes(e[r]))throw new Error(`${r} must be a valid connection side.`);if(e.kind!==void 0&&!d.has(e.kind))throw new Error("Unsupported flow node kind.");for(let r of["commands","references"])if(e[r]!==void 0){if(!Array.isArray(e[r])||e[r].length>30)throw new Error(`${r} must have at most 30 entries.`);e[r].forEach(f=>i(f,r,!0,3e3))}if(e.position&&(!Number.isFinite(e.position.x)||!Number.isFinite(e.position.y)))throw new Error("Node positions must be finite.")}for(let e of t.edges){if(!n.has(e.source)||!n.has(e.target))throw new Error(`Flow edge ${e.id} references a missing node.`);i(e.label,"edge.label",!1,300)}}return o}export{c as a};
|