@refrakt-md/storytelling 0.7.1 → 0.8.0
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/config.js +1 -1
- package/dist/config.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/schema/bond.d.ts +1 -16
- package/dist/schema/bond.d.ts.map +1 -1
- package/dist/schema/bond.js +1 -1
- package/dist/schema/bond.js.map +1 -1
- package/dist/schema/character.d.ts +0 -17
- package/dist/schema/character.d.ts.map +1 -1
- package/dist/schema/character.js.map +1 -1
- package/dist/schema/faction.d.ts +0 -16
- package/dist/schema/faction.d.ts.map +1 -1
- package/dist/schema/faction.js.map +1 -1
- package/dist/schema/lore.d.ts +1 -14
- package/dist/schema/lore.d.ts.map +1 -1
- package/dist/schema/lore.js +1 -1
- package/dist/schema/lore.js.map +1 -1
- package/dist/schema/plot.d.ts +0 -27
- package/dist/schema/plot.d.ts.map +1 -1
- package/dist/schema/plot.js.map +1 -1
- package/dist/schema/realm.d.ts +0 -17
- package/dist/schema/realm.d.ts.map +1 -1
- package/dist/schema/realm.js.map +1 -1
- package/dist/schema/story-section.d.ts +0 -10
- package/dist/schema/story-section.d.ts.map +1 -1
- package/dist/schema/story-section.js.map +1 -1
- package/dist/schema/storyboard.d.ts +1 -23
- package/dist/schema/storyboard.d.ts.map +1 -1
- package/dist/schema/storyboard.js +1 -1
- package/dist/schema/storyboard.js.map +1 -1
- package/dist/tags/bond.d.ts.map +1 -1
- package/dist/tags/bond.js +24 -49
- package/dist/tags/bond.js.map +1 -1
- package/dist/tags/character.d.ts.map +1 -1
- package/dist/tags/character.js +49 -82
- package/dist/tags/character.js.map +1 -1
- package/dist/tags/faction.d.ts.map +1 -1
- package/dist/tags/faction.js +44 -80
- package/dist/tags/faction.js.map +1 -1
- package/dist/tags/lore.d.ts.map +1 -1
- package/dist/tags/lore.js +26 -43
- package/dist/tags/lore.js.map +1 -1
- package/dist/tags/plot.d.ts.map +1 -1
- package/dist/tags/plot.js +92 -94
- package/dist/tags/plot.js.map +1 -1
- package/dist/tags/realm.d.ts.map +1 -1
- package/dist/tags/realm.js +49 -82
- package/dist/tags/realm.js.map +1 -1
- package/dist/tags/storyboard.d.ts.map +1 -1
- package/dist/tags/storyboard.js +50 -65
- package/dist/tags/storyboard.js.map +1 -1
- package/dist/types.d.ts +20 -20
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +5 -5
- package/dist/types.js.map +1 -1
- package/package.json +4 -4
package/dist/tags/character.js
CHANGED
|
@@ -8,8 +8,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import Markdoc from '@markdoc/markdoc';
|
|
11
|
-
const {
|
|
12
|
-
import {
|
|
11
|
+
const { Tag } = Markdoc;
|
|
12
|
+
import { attribute, Model, createComponentRenderable, createContentModelSchema, createSchema, asNodes, RenderableNodeCursor } from '@refrakt-md/runes';
|
|
13
13
|
import { schema } from '../types.js';
|
|
14
14
|
class StorySectionModel extends Model {
|
|
15
15
|
constructor() {
|
|
@@ -33,55 +33,54 @@ __decorate([
|
|
|
33
33
|
], StorySectionModel.prototype, "name", void 0);
|
|
34
34
|
const roleType = ['protagonist', 'antagonist', 'supporting', 'minor'];
|
|
35
35
|
const statusType = ['alive', 'dead', 'unknown', 'missing'];
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
const
|
|
72
|
-
const
|
|
73
|
-
const statusMeta = new Tag('meta', { content: this.status });
|
|
74
|
-
const aliasesMeta = new Tag('meta', { content: this.aliases });
|
|
75
|
-
const tagsMeta = new Tag('meta', { content: this.tags });
|
|
76
|
-
// Extract portrait image from header
|
|
77
|
-
const portrait = header.tag('img').limit(1);
|
|
36
|
+
export const characterSection = createSchema(StorySectionModel);
|
|
37
|
+
export const character = createContentModelSchema({
|
|
38
|
+
attributes: {
|
|
39
|
+
headingLevel: { type: Number, required: false },
|
|
40
|
+
name: { type: String, required: true },
|
|
41
|
+
role: { type: String, required: false, matches: roleType.slice() },
|
|
42
|
+
status: { type: String, required: false, matches: statusType.slice() },
|
|
43
|
+
aliases: { type: String, required: false },
|
|
44
|
+
tags: { type: String, required: false },
|
|
45
|
+
},
|
|
46
|
+
contentModel: (attrs) => ({
|
|
47
|
+
type: 'sections',
|
|
48
|
+
sectionHeading: attrs.headingLevel ? `heading:${attrs.headingLevel}` : 'heading',
|
|
49
|
+
emitTag: 'character-section',
|
|
50
|
+
emitAttributes: { name: '$heading' },
|
|
51
|
+
fields: [
|
|
52
|
+
{ name: 'portrait', match: 'image', optional: true },
|
|
53
|
+
{ name: 'header', match: 'heading|paragraph', optional: true, greedy: true },
|
|
54
|
+
{ name: 'items', match: 'tag', optional: true, greedy: true },
|
|
55
|
+
],
|
|
56
|
+
sectionModel: {
|
|
57
|
+
type: 'sequence',
|
|
58
|
+
fields: [{ name: 'body', match: 'any', optional: true, greedy: true }],
|
|
59
|
+
},
|
|
60
|
+
}),
|
|
61
|
+
transform(resolved, attrs, config) {
|
|
62
|
+
// Combine explicit child tags (preamble items) with emitted section tags
|
|
63
|
+
const allItems = [...asNodes(resolved.items), ...asNodes(resolved.sections)];
|
|
64
|
+
const sectionNodes = new RenderableNodeCursor(Markdoc.transform(allItems, config));
|
|
65
|
+
const nameTag = new Tag('span', {}, [attrs.name ?? '']);
|
|
66
|
+
const roleMeta = new Tag('meta', { content: attrs.role ?? 'supporting' });
|
|
67
|
+
const statusMeta = new Tag('meta', { content: attrs.status ?? 'alive' });
|
|
68
|
+
const aliasesMeta = new Tag('meta', { content: attrs.aliases ?? '' });
|
|
69
|
+
const tagsMeta = new Tag('meta', { content: attrs.tags ?? '' });
|
|
70
|
+
// Extract portrait image from preamble
|
|
71
|
+
const portraitNodes = new RenderableNodeCursor(Markdoc.transform(asNodes(resolved.portrait), config));
|
|
72
|
+
const portrait = portraitNodes.tag('img').limit(1);
|
|
78
73
|
const hasPortrait = portrait.count() > 0;
|
|
79
74
|
const portraitDiv = hasPortrait ? portrait.wrap('div') : undefined;
|
|
80
|
-
const sections =
|
|
75
|
+
const sections = sectionNodes.tag('div').typeof('CharacterSection');
|
|
81
76
|
const hasSections = sections.count() > 0;
|
|
82
77
|
const children = [nameTag, roleMeta, statusMeta, aliasesMeta, tagsMeta];
|
|
83
78
|
if (portraitDiv)
|
|
84
79
|
children.push(portraitDiv.next());
|
|
80
|
+
const schemaMap = {
|
|
81
|
+
name: nameTag,
|
|
82
|
+
jobTitle: roleMeta,
|
|
83
|
+
};
|
|
85
84
|
if (hasSections) {
|
|
86
85
|
const sectionsContainer = sections.wrap('div');
|
|
87
86
|
children.push(sectionsContainer.next());
|
|
@@ -100,11 +99,12 @@ class CharacterModel extends Model {
|
|
|
100
99
|
...(portraitDiv ? { portrait: portraitDiv } : {}),
|
|
101
100
|
sections: sectionsContainer,
|
|
102
101
|
},
|
|
102
|
+
schema: schemaMap,
|
|
103
103
|
children,
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
106
|
else {
|
|
107
|
-
const body =
|
|
107
|
+
const body = sectionNodes.wrap('div');
|
|
108
108
|
children.push(body.next());
|
|
109
109
|
return createComponentRenderable(schema.Character, {
|
|
110
110
|
tag: 'article',
|
|
@@ -120,43 +120,10 @@ class CharacterModel extends Model {
|
|
|
120
120
|
...(portraitDiv ? { portrait: portraitDiv } : {}),
|
|
121
121
|
body,
|
|
122
122
|
},
|
|
123
|
+
schema: schemaMap,
|
|
123
124
|
children,
|
|
124
125
|
});
|
|
125
126
|
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
__decorate([
|
|
129
|
-
attribute({ type: Number, required: false }),
|
|
130
|
-
__metadata("design:type", Object)
|
|
131
|
-
], CharacterModel.prototype, "headingLevel", void 0);
|
|
132
|
-
__decorate([
|
|
133
|
-
attribute({ type: String, required: true }),
|
|
134
|
-
__metadata("design:type", String)
|
|
135
|
-
], CharacterModel.prototype, "name", void 0);
|
|
136
|
-
__decorate([
|
|
137
|
-
attribute({ type: String, required: false, matches: roleType.slice() }),
|
|
138
|
-
__metadata("design:type", Object)
|
|
139
|
-
], CharacterModel.prototype, "role", void 0);
|
|
140
|
-
__decorate([
|
|
141
|
-
attribute({ type: String, required: false, matches: statusType.slice() }),
|
|
142
|
-
__metadata("design:type", Object)
|
|
143
|
-
], CharacterModel.prototype, "status", void 0);
|
|
144
|
-
__decorate([
|
|
145
|
-
attribute({ type: String, required: false }),
|
|
146
|
-
__metadata("design:type", String)
|
|
147
|
-
], CharacterModel.prototype, "aliases", void 0);
|
|
148
|
-
__decorate([
|
|
149
|
-
attribute({ type: String, required: false }),
|
|
150
|
-
__metadata("design:type", String)
|
|
151
|
-
], CharacterModel.prototype, "tags", void 0);
|
|
152
|
-
__decorate([
|
|
153
|
-
group({ include: ['heading', 'paragraph', 'image'] }),
|
|
154
|
-
__metadata("design:type", NodeStream)
|
|
155
|
-
], CharacterModel.prototype, "header", void 0);
|
|
156
|
-
__decorate([
|
|
157
|
-
group({ include: ['tag'] }),
|
|
158
|
-
__metadata("design:type", NodeStream)
|
|
159
|
-
], CharacterModel.prototype, "itemgroup", void 0);
|
|
160
|
-
export const characterSection = createSchema(StorySectionModel);
|
|
161
|
-
export const character = createSchema(CharacterModel);
|
|
127
|
+
},
|
|
128
|
+
});
|
|
162
129
|
//# sourceMappingURL=character.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"character.js","sourceRoot":"","sources":["../../src/tags/character.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,OAAO,MAAM,kBAAkB,CAAC;AAEvC,MAAM,EAAE,GAAG,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"character.js","sourceRoot":"","sources":["../../src/tags/character.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,OAAO,MAAM,kBAAkB,CAAC;AAEvC,MAAM,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,YAAY,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACvJ,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,iBAAkB,SAAQ,KAAK;IAArC;;QAEC,SAAI,GAAW,EAAE,CAAC;IAanB,CAAC;IAXA,SAAS;QACR,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,MAAM,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QACjD,MAAM,IAAI,GAAG,IAAI,CAAC,iBAAiB,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAElD,OAAO,yBAAyB,CAAC,MAAM,CAAC,gBAAgB,EAAE;YACzD,GAAG,EAAE,KAAK;YACV,UAAU,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;YAC7B,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;YAC/B,QAAQ,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;SAChC,CAAC,CAAC;IACJ,CAAC;CACD;AAbA;IADC,SAAS,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EA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"faction.d.ts","sourceRoot":"","sources":["../../src/tags/faction.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,kBAAkB,CAAC;AAuBvC,eAAO,MAAM,cAAc,gBAAoC,CAAC;AAEhE,eAAO,MAAM,OAAO,gBAoFlB,CAAC"}
|
package/dist/tags/faction.js
CHANGED
|
@@ -8,8 +8,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import Markdoc from '@markdoc/markdoc';
|
|
11
|
-
const {
|
|
12
|
-
import {
|
|
11
|
+
const { Tag } = Markdoc;
|
|
12
|
+
import { attribute, Model, createComponentRenderable, createContentModelSchema, createSchema, asNodes, RenderableNodeCursor } from '@refrakt-md/runes';
|
|
13
13
|
import { schema } from '../types.js';
|
|
14
14
|
class FactionSectionModel extends Model {
|
|
15
15
|
constructor() {
|
|
@@ -31,49 +31,45 @@ __decorate([
|
|
|
31
31
|
attribute({ type: String, required: true }),
|
|
32
32
|
__metadata("design:type", String)
|
|
33
33
|
], FactionSectionModel.prototype, "name", void 0);
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
const
|
|
68
|
-
const itemStream = this.itemgroup.transform();
|
|
69
|
-
const nameTag = new Tag('span', {}, [this.name]);
|
|
70
|
-
const factionTypeMeta = new Tag('meta', { content: this.type });
|
|
71
|
-
const alignmentMeta = new Tag('meta', { content: this.alignment });
|
|
72
|
-
const sizeMeta = new Tag('meta', { content: this.size });
|
|
73
|
-
const tagsMeta = new Tag('meta', { content: this.tags });
|
|
74
|
-
const sections = itemStream.tag('div').typeof('FactionSection');
|
|
34
|
+
export const factionSection = createSchema(FactionSectionModel);
|
|
35
|
+
export const faction = createContentModelSchema({
|
|
36
|
+
attributes: {
|
|
37
|
+
headingLevel: { type: Number, required: false },
|
|
38
|
+
name: { type: String, required: true },
|
|
39
|
+
type: { type: String, required: false },
|
|
40
|
+
alignment: { type: String, required: false },
|
|
41
|
+
size: { type: String, required: false },
|
|
42
|
+
tags: { type: String, required: false },
|
|
43
|
+
},
|
|
44
|
+
contentModel: (attrs) => ({
|
|
45
|
+
type: 'sections',
|
|
46
|
+
sectionHeading: attrs.headingLevel ? `heading:${attrs.headingLevel}` : 'heading',
|
|
47
|
+
emitTag: 'faction-section',
|
|
48
|
+
emitAttributes: { name: '$heading' },
|
|
49
|
+
fields: [
|
|
50
|
+
{ name: 'header', match: 'heading|paragraph|image', optional: true, greedy: true },
|
|
51
|
+
{ name: 'items', match: 'tag', optional: true, greedy: true },
|
|
52
|
+
],
|
|
53
|
+
sectionModel: {
|
|
54
|
+
type: 'sequence',
|
|
55
|
+
fields: [{ name: 'body', match: 'any', optional: true, greedy: true }],
|
|
56
|
+
},
|
|
57
|
+
}),
|
|
58
|
+
transform(resolved, attrs, config) {
|
|
59
|
+
// Combine explicit child tags (preamble items) with emitted section tags
|
|
60
|
+
const allItems = [...asNodes(resolved.items), ...asNodes(resolved.sections)];
|
|
61
|
+
const sectionNodes = new RenderableNodeCursor(Markdoc.transform(allItems, config));
|
|
62
|
+
const nameTag = new Tag('span', {}, [attrs.name ?? '']);
|
|
63
|
+
const factionTypeMeta = new Tag('meta', { content: attrs.type ?? '' });
|
|
64
|
+
const alignmentMeta = new Tag('meta', { content: attrs.alignment ?? '' });
|
|
65
|
+
const sizeMeta = new Tag('meta', { content: attrs.size ?? '' });
|
|
66
|
+
const tagsMeta = new Tag('meta', { content: attrs.tags ?? '' });
|
|
67
|
+
const sections = sectionNodes.tag('div').typeof('FactionSection');
|
|
75
68
|
const hasSections = sections.count() > 0;
|
|
76
69
|
const children = [nameTag, factionTypeMeta, alignmentMeta, sizeMeta, tagsMeta];
|
|
70
|
+
const schemaMap = {
|
|
71
|
+
name: nameTag,
|
|
72
|
+
};
|
|
77
73
|
if (hasSections) {
|
|
78
74
|
const sectionsContainer = sections.wrap('div');
|
|
79
75
|
children.push(sectionsContainer.next());
|
|
@@ -89,11 +85,12 @@ class FactionModel extends Model {
|
|
|
89
85
|
section: sections,
|
|
90
86
|
},
|
|
91
87
|
refs: { sections: sectionsContainer },
|
|
88
|
+
schema: schemaMap,
|
|
92
89
|
children,
|
|
93
90
|
});
|
|
94
91
|
}
|
|
95
92
|
else {
|
|
96
|
-
const body =
|
|
93
|
+
const body = sectionNodes.wrap('div');
|
|
97
94
|
children.push(body.next());
|
|
98
95
|
return createComponentRenderable(schema.Faction, {
|
|
99
96
|
tag: 'article',
|
|
@@ -106,43 +103,10 @@ class FactionModel extends Model {
|
|
|
106
103
|
tags: tagsMeta,
|
|
107
104
|
},
|
|
108
105
|
refs: { body },
|
|
106
|
+
schema: schemaMap,
|
|
109
107
|
children,
|
|
110
108
|
});
|
|
111
109
|
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
__decorate([
|
|
115
|
-
attribute({ type: Number, required: false }),
|
|
116
|
-
__metadata("design:type", Object)
|
|
117
|
-
], FactionModel.prototype, "headingLevel", void 0);
|
|
118
|
-
__decorate([
|
|
119
|
-
attribute({ type: String, required: true }),
|
|
120
|
-
__metadata("design:type", String)
|
|
121
|
-
], FactionModel.prototype, "name", void 0);
|
|
122
|
-
__decorate([
|
|
123
|
-
attribute({ type: String, required: false }),
|
|
124
|
-
__metadata("design:type", String)
|
|
125
|
-
], FactionModel.prototype, "type", void 0);
|
|
126
|
-
__decorate([
|
|
127
|
-
attribute({ type: String, required: false }),
|
|
128
|
-
__metadata("design:type", String)
|
|
129
|
-
], FactionModel.prototype, "alignment", void 0);
|
|
130
|
-
__decorate([
|
|
131
|
-
attribute({ type: String, required: false }),
|
|
132
|
-
__metadata("design:type", String)
|
|
133
|
-
], FactionModel.prototype, "size", void 0);
|
|
134
|
-
__decorate([
|
|
135
|
-
attribute({ type: String, required: false }),
|
|
136
|
-
__metadata("design:type", String)
|
|
137
|
-
], FactionModel.prototype, "tags", void 0);
|
|
138
|
-
__decorate([
|
|
139
|
-
group({ include: ['heading', 'paragraph', 'image'] }),
|
|
140
|
-
__metadata("design:type", NodeStream)
|
|
141
|
-
], FactionModel.prototype, "header", void 0);
|
|
142
|
-
__decorate([
|
|
143
|
-
group({ include: ['tag'] }),
|
|
144
|
-
__metadata("design:type", NodeStream)
|
|
145
|
-
], FactionModel.prototype, "itemgroup", void 0);
|
|
146
|
-
export const factionSection = createSchema(FactionSectionModel);
|
|
147
|
-
export const faction = createSchema(FactionModel);
|
|
110
|
+
},
|
|
111
|
+
});
|
|
148
112
|
//# sourceMappingURL=faction.js.map
|
package/dist/tags/faction.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"faction.js","sourceRoot":"","sources":["../../src/tags/faction.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,OAAO,MAAM,kBAAkB,CAAC;AAEvC,MAAM,EAAE,GAAG,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"faction.js","sourceRoot":"","sources":["../../src/tags/faction.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,OAAO,MAAM,kBAAkB,CAAC;AAEvC,MAAM,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,YAAY,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACvJ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O,EAAE,QAAQ;iBACjB;gBACD,IAAI,EAAE,EAAE,QAAQ,EAAE,iBAAiB,EAAE;gBACrC,MAAM,EAAE,SAAS;gBACjB,QAAQ;aACR,CAAC,CAAC;QACJ,CAAC;aAAM,CAAC;YACP,MAAM,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACtC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;YAE3B,OAAO,yBAAyB,CAAC,MAAM,CAAC,OAAO,EAAE;gBAChD,GAAG,EAAE,SAAS;gBACd,QAAQ,EAAE,gBAAgB;gBAC1B,UAAU,EAAE;oBACX,IAAI,EAAE,OAAO;oBACb,WAAW,EAAE,eAAe;oBAC5B,SAAS,EAAE,aAAa;oBACxB,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,QAAQ;iBACd;gBACD,IAAI,EAAE,EAAE,IAAI,EAAE;gBACd,MAAM,EAAE,SAAS;gBACjB,QAAQ;aACR,CAAC,CAAC;QACJ,CAAC;IACF,CAAC;CACD,CAAC,CAAC"}
|
package/dist/tags/lore.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lore.d.ts","sourceRoot":"","sources":["../../src/tags/lore.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"lore.d.ts","sourceRoot":"","sources":["../../src/tags/lore.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,kBAAkB,CAAC;AAMvC,eAAO,MAAM,IAAI,gBAyCf,CAAC"}
|
package/dist/tags/lore.js
CHANGED
|
@@ -1,30 +1,26 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
1
|
import Markdoc from '@markdoc/markdoc';
|
|
11
2
|
const { Tag } = Markdoc;
|
|
12
|
-
import {
|
|
3
|
+
import { createContentModelSchema, createComponentRenderable, asNodes, RenderableNodeCursor } from '@refrakt-md/runes';
|
|
13
4
|
import { schema } from '../types.js';
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
5
|
+
export const lore = createContentModelSchema({
|
|
6
|
+
attributes: {
|
|
7
|
+
title: { type: String, required: true },
|
|
8
|
+
category: { type: String, required: false },
|
|
9
|
+
spoiler: { type: Boolean, required: false },
|
|
10
|
+
tags: { type: String, required: false },
|
|
11
|
+
},
|
|
12
|
+
contentModel: {
|
|
13
|
+
type: 'sequence',
|
|
14
|
+
fields: [
|
|
15
|
+
{ name: 'body', match: 'any', optional: true, greedy: true },
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
transform(resolved, attrs, config) {
|
|
19
|
+
const titleTag = new Tag('span', {}, [attrs.title ?? '']);
|
|
20
|
+
const categoryMeta = new Tag('meta', { content: attrs.category ?? '' });
|
|
21
|
+
const spoilerMeta = new Tag('meta', { content: String(attrs.spoiler ?? false) });
|
|
22
|
+
const tagsMeta = new Tag('meta', { content: attrs.tags ?? '' });
|
|
23
|
+
const body = new RenderableNodeCursor(Markdoc.transform(asNodes(resolved.body), config)).wrap('div');
|
|
28
24
|
return createComponentRenderable(schema.Lore, {
|
|
29
25
|
tag: 'article',
|
|
30
26
|
property: 'contentSection',
|
|
@@ -37,25 +33,12 @@ class LoreModel extends Model {
|
|
|
37
33
|
refs: {
|
|
38
34
|
body: body.tag('div'),
|
|
39
35
|
},
|
|
36
|
+
schema: {
|
|
37
|
+
headline: titleTag,
|
|
38
|
+
articleSection: categoryMeta,
|
|
39
|
+
},
|
|
40
40
|
children: [titleTag, categoryMeta, spoilerMeta, tagsMeta, body.next()],
|
|
41
41
|
});
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
__decorate([
|
|
45
|
-
attribute({ type: String, required: true }),
|
|
46
|
-
__metadata("design:type", String)
|
|
47
|
-
], LoreModel.prototype, "title", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
attribute({ type: String, required: false }),
|
|
50
|
-
__metadata("design:type", String)
|
|
51
|
-
], LoreModel.prototype, "category", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
attribute({ type: Boolean, required: false }),
|
|
54
|
-
__metadata("design:type", Boolean)
|
|
55
|
-
], LoreModel.prototype, "spoiler", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
attribute({ type: String, required: false }),
|
|
58
|
-
__metadata("design:type", String)
|
|
59
|
-
], LoreModel.prototype, "tags", void 0);
|
|
60
|
-
export const lore = createSchema(LoreModel);
|
|
42
|
+
},
|
|
43
|
+
});
|
|
61
44
|
//# sourceMappingURL=lore.js.map
|
package/dist/tags/lore.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lore.js","sourceRoot":"","sources":["../../src/tags/lore.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lore.js","sourceRoot":"","sources":["../../src/tags/lore.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,kBAAkB,CAAC;AAEvC,MAAM,EAAE,GAAG,EAAE,GAAG,O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AAE,EAAE,CAAC,CAAC;QAChE,MAAM,IAAI,GAAG,IAAI,oBAAoB,CACpC,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAyB,CACzE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAEd,OAAO,yBAAyB,CAAC,MAAM,CAAC,IAAI,EAAE;YAC7C,GAAG,EAAE,SAAS;YACd,QAAQ,EAAE,gBAAgB;YAC1B,UAAU,EAAE;gBACX,KAAK,EAAE,QAAQ;gBACf,QAAQ,EAAE,YAAY;gBACtB,OAAO,EAAE,WAAW;gBACpB,IAAI,EAAE,QAAQ;aACd;YACD,IAAI,EAAE;gBACL,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;aACrB;YACD,MAAM,EAAE;gBACP,QAAQ,EAAE,QAAQ;gBAClB,cAAc,EAAE,YAAY;aAC5B;YACD,QAAQ,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;SACtE,CAAC,CAAC;IACJ,CAAC;CACD,CAAC,CAAC"}
|
package/dist/tags/plot.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plot.d.ts","sourceRoot":"","sources":["../../src/tags/plot.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"plot.d.ts","sourceRoot":"","sources":["../../src/tags/plot.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,kBAAkB,CAAC;AAoHvC,eAAO,MAAM,IAAI,gBAA0B,CAAC;AAE5C,eAAO,MAAM,IAAI,gBAkEf,CAAC"}
|