@slidejs/context 0.1.5 → 0.1.7
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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.mjs +15 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t="0.1.7";function e(){return{sourceType:"static",sourceId:"",metadata:{title:""},items:[]}}exports.__contextVersion=t;exports.createEmptyContext=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../src/index.ts"],"sourcesContent":["/**\n * @slidejs/context\n *\n * Slide DSL Context 接口定义\n */\n\nexport type {\n SlideContext,\n SlideMetadata,\n ContentItem,\n ContentGroup,\n ContextAdapter,\n} from './types';\n\nimport type { SlideContext } from './types';\n\n// 导出常量以确保生成有效的运行时代码\n// 这个包主要提供类型定义,但需要有效的运行时导出以通过构建验证\nexport const __contextVersion = '0.1.7';\n\n// 导出工具函数以增加运行时内容\nexport function createEmptyContext(): SlideContext {\n return {\n sourceType: 'static',\n sourceId: '',\n metadata: {\n title: '',\n },\n items: [],\n };\n}\n"],"names":["__contextVersion","createEmptyContext"],"mappings":"gFAkBO,MAAMA,EAAmB,QAGzB,SAASC,GAAmC,CACjD,MAAO,CACL,WAAY,SACZ,SAAU,GACV,SAAU,CACR,MAAO,EAAA,EAET,MAAO,CAAA,CAAC,CAEZ"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export declare const __contextVersion = "0.1.7";
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* 内容分组/章节
|
|
3
5
|
*/
|
|
@@ -69,6 +71,8 @@ export declare interface ContextAdapter<TSource = unknown> {
|
|
|
69
71
|
transform(source: TSource): SlideContext;
|
|
70
72
|
}
|
|
71
73
|
|
|
74
|
+
export declare function createEmptyContext(): SlideContext;
|
|
75
|
+
|
|
72
76
|
/**
|
|
73
77
|
* @slidejs/context - Slide DSL Context 接口定义
|
|
74
78
|
*
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
const t = "0.1.7";
|
|
2
|
+
function e() {
|
|
3
|
+
return {
|
|
4
|
+
sourceType: "static",
|
|
5
|
+
sourceId: "",
|
|
6
|
+
metadata: {
|
|
7
|
+
title: ""
|
|
8
|
+
},
|
|
9
|
+
items: []
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
t as __contextVersion,
|
|
14
|
+
e as createEmptyContext
|
|
15
|
+
};
|
|
2
16
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../src/index.ts"],"sourcesContent":["/**\n * @slidejs/context\n *\n * Slide DSL Context 接口定义\n */\n\nexport type {\n SlideContext,\n SlideMetadata,\n ContentItem,\n ContentGroup,\n ContextAdapter,\n} from './types';\n\nimport type { SlideContext } from './types';\n\n// 导出常量以确保生成有效的运行时代码\n// 这个包主要提供类型定义,但需要有效的运行时导出以通过构建验证\nexport const __contextVersion = '0.1.7';\n\n// 导出工具函数以增加运行时内容\nexport function createEmptyContext(): SlideContext {\n return {\n sourceType: 'static',\n sourceId: '',\n metadata: {\n title: '',\n },\n items: [],\n };\n}\n"],"names":["__contextVersion","createEmptyContext"],"mappings":"AAkBO,MAAMA,IAAmB;AAGzB,SAASC,IAAmC;AACjD,SAAO;AAAA,IACL,YAAY;AAAA,IACZ,UAAU;AAAA,IACV,UAAU;AAAA,MACR,OAAO;AAAA,IAAA;AAAA,IAET,OAAO,CAAA;AAAA,EAAC;AAEZ;"}
|