@refrakt-md/places 0.8.0 → 0.8.1
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.js +1 -1
- package/dist/tags/itinerary.d.ts.map +1 -1
- package/dist/tags/itinerary.js +96 -167
- package/dist/tags/itinerary.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"itinerary.d.ts","sourceRoot":"","sources":["../../src/tags/itinerary.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"itinerary.d.ts","sourceRoot":"","sources":["../../src/tags/itinerary.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,kBAAkB,CAAC;AAOvC,eAAO,MAAM,aAAa,gBAwCxB,CAAC;AAEH,eAAO,MAAM,YAAY,gBA6DvB,CAAC;AAEH,eAAO,MAAM,SAAS,gBAuEpB,CAAC"}
|
package/dist/tags/itinerary.js
CHANGED
|
@@ -1,43 +1,29 @@
|
|
|
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
|
-
const {
|
|
12
|
-
import {
|
|
2
|
+
const { Tag } = Markdoc;
|
|
3
|
+
import { createComponentRenderable, createContentModelSchema, asNodes, pageSectionProperties } from '@refrakt-md/runes';
|
|
13
4
|
import { RenderableNodeCursor } from '@refrakt-md/runes';
|
|
14
5
|
import { schema } from '../types.js';
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
const durationMeta = new Tag('meta', { content: this.duration });
|
|
37
|
-
const activityMeta = new Tag('meta', { content: this.activity });
|
|
38
|
-
const latMeta = new Tag('meta', { content: this.lat });
|
|
39
|
-
const lngMeta = new Tag('meta', { content: this.lng });
|
|
40
|
-
const body = this.transformChildren().wrap('div');
|
|
6
|
+
export const itineraryStop = createContentModelSchema({
|
|
7
|
+
attributes: {
|
|
8
|
+
time: { type: String, required: false },
|
|
9
|
+
location: { type: String, required: false },
|
|
10
|
+
duration: { type: String, required: false },
|
|
11
|
+
activity: { type: String, required: false },
|
|
12
|
+
lat: { type: String, required: false },
|
|
13
|
+
lng: { type: String, required: false },
|
|
14
|
+
},
|
|
15
|
+
contentModel: {
|
|
16
|
+
type: 'sequence',
|
|
17
|
+
fields: [{ name: 'body', match: 'any', optional: true, greedy: true }],
|
|
18
|
+
},
|
|
19
|
+
transform(resolved, attrs, config) {
|
|
20
|
+
const timeTag = new Tag('time', {}, [attrs.time ?? '']);
|
|
21
|
+
const locationTag = new Tag('span', {}, [attrs.location ?? '']);
|
|
22
|
+
const durationMeta = new Tag('meta', { content: attrs.duration ?? '' });
|
|
23
|
+
const activityMeta = new Tag('meta', { content: attrs.activity ?? '' });
|
|
24
|
+
const latMeta = new Tag('meta', { content: attrs.lat ?? '' });
|
|
25
|
+
const lngMeta = new Tag('meta', { content: attrs.lng ?? '' });
|
|
26
|
+
const body = new RenderableNodeCursor(Markdoc.transform(asNodes(resolved.body), config)).wrap('div');
|
|
41
27
|
return createComponentRenderable(schema.ItineraryStop, {
|
|
42
28
|
tag: 'li',
|
|
43
29
|
properties: {
|
|
@@ -53,45 +39,41 @@ class ItineraryStopModel extends Model {
|
|
|
53
39
|
},
|
|
54
40
|
children: [timeTag, locationTag, durationMeta, activityMeta, latMeta, lngMeta, body.next()],
|
|
55
41
|
});
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
const
|
|
90
|
-
|
|
91
|
-
const headerNodes = allChildren.tag('p');
|
|
92
|
-
const stopsStream = allChildren.tag('li').typeof('ItineraryStop');
|
|
93
|
-
const labelTag = new Tag('h3', {}, [this.label]);
|
|
94
|
-
const dateMeta = new Tag('meta', { content: this.date });
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
export const itineraryDay = createContentModelSchema({
|
|
45
|
+
attributes: {
|
|
46
|
+
label: { type: String, required: false },
|
|
47
|
+
date: { type: String, required: false },
|
|
48
|
+
},
|
|
49
|
+
contentModel: {
|
|
50
|
+
type: 'sections',
|
|
51
|
+
sectionHeading: 'heading',
|
|
52
|
+
fields: [
|
|
53
|
+
{ name: 'header', match: 'paragraph', optional: true, greedy: true },
|
|
54
|
+
],
|
|
55
|
+
sectionModel: {
|
|
56
|
+
type: 'sequence',
|
|
57
|
+
fields: [{ name: 'body', match: 'any', optional: true, greedy: true }],
|
|
58
|
+
},
|
|
59
|
+
emitTag: 'itinerary-stop',
|
|
60
|
+
headingExtract: {
|
|
61
|
+
fields: [
|
|
62
|
+
{ name: 'time', match: 'text', pattern: /^(.+?)\s*[-–—]\s*/ },
|
|
63
|
+
{ name: 'location', match: 'text', pattern: 'remainder' },
|
|
64
|
+
],
|
|
65
|
+
},
|
|
66
|
+
emitAttributes: {
|
|
67
|
+
time: '$time',
|
|
68
|
+
location: '$location',
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
transform(resolved, attrs, config) {
|
|
72
|
+
const headerNodes = new RenderableNodeCursor(Markdoc.transform(asNodes(resolved.header), config));
|
|
73
|
+
const stopsRendered = new RenderableNodeCursor(Markdoc.transform(asNodes(resolved.sections), config));
|
|
74
|
+
const stopsStream = stopsRendered.tag('li').typeof('ItineraryStop');
|
|
75
|
+
const labelTag = new Tag('h3', {}, [attrs.label ?? '']);
|
|
76
|
+
const dateMeta = new Tag('meta', { content: attrs.date ?? '' });
|
|
95
77
|
const stopsList = new Tag('ol', {}, stopsStream.toArray());
|
|
96
78
|
const children = [labelTag, dateMeta];
|
|
97
79
|
if (headerNodes.count() > 0) {
|
|
@@ -110,116 +92,63 @@ class ItineraryDayModel extends Model {
|
|
|
110
92
|
},
|
|
111
93
|
children,
|
|
112
94
|
});
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
__decorate([
|
|
116
|
-
attribute({ type: String, required: false }),
|
|
117
|
-
__metadata("design:type", String)
|
|
118
|
-
], ItineraryDayModel.prototype, "label", void 0);
|
|
119
|
-
__decorate([
|
|
120
|
-
attribute({ type: String, required: false }),
|
|
121
|
-
__metadata("design:type", String)
|
|
122
|
-
], ItineraryDayModel.prototype, "date", void 0);
|
|
123
|
-
// Convert headings at a given level into stop tags with time/location parsing
|
|
124
|
-
function convertStops(nodes, headingLevel) {
|
|
125
|
-
const level = headingLevel ?? nodes.find(n => n.type === 'heading')?.attributes.level;
|
|
126
|
-
if (!level)
|
|
127
|
-
return nodes;
|
|
128
|
-
const grouped = headingsToList({ level })(nodes);
|
|
129
|
-
const result = [];
|
|
130
|
-
for (const node of grouped) {
|
|
131
|
-
if (node.type === 'list') {
|
|
132
|
-
for (const item of node.children) {
|
|
133
|
-
const heading = item.children[0];
|
|
134
|
-
const headingText = extractText(heading);
|
|
135
|
-
const match = headingText.match(TIME_LOCATION_PATTERN);
|
|
136
|
-
const time = match ? match[1].trim() : '';
|
|
137
|
-
const location = match ? match[2].trim() : headingText;
|
|
138
|
-
result.push(new Ast.Node('tag', { time, location }, item.children.slice(1), 'itinerary-stop'));
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
else {
|
|
142
|
-
result.push(node);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
return result;
|
|
146
|
-
}
|
|
147
|
-
// Two-mode conversion: day-by-day (h2 present) or flat
|
|
148
|
-
function convertItineraryChildren(nodes, attributes) {
|
|
149
|
-
const headingLevel = attributes.headingLevel;
|
|
150
|
-
const nodeArr = nodes;
|
|
151
|
-
const hasH2 = nodeArr.some(n => n.type === 'heading' && n.attributes.level === 2);
|
|
152
|
-
if (hasH2) {
|
|
153
|
-
// Day-by-day mode: h2 headings become days, nested headings become stops
|
|
154
|
-
const grouped = headingsToList({ level: 2 })(nodeArr);
|
|
155
|
-
const result = [];
|
|
156
|
-
for (const node of grouped) {
|
|
157
|
-
if (node.type === 'list') {
|
|
158
|
-
for (const item of node.children) {
|
|
159
|
-
const heading = item.children[0];
|
|
160
|
-
const headingText = extractText(heading);
|
|
161
|
-
// Convert h3s within this day to stop tags
|
|
162
|
-
const dayChildren = convertStops(item.children.slice(1), headingLevel);
|
|
163
|
-
result.push(new Ast.Node('tag', { label: headingText }, dayChildren, 'itinerary-day'));
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
else {
|
|
167
|
-
result.push(node);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
return result;
|
|
171
|
-
}
|
|
172
|
-
// Flat mode: create a single implicit day wrapping all stops
|
|
173
|
-
const stops = convertStops(nodeArr, headingLevel);
|
|
174
|
-
const headingNodes = stops.filter(n => n.type === 'heading' || n.type === 'paragraph');
|
|
175
|
-
const tagNodes = stops.filter(n => n.type === 'tag');
|
|
176
|
-
if (tagNodes.length === 0)
|
|
177
|
-
return stops;
|
|
178
|
-
return [...headingNodes, new Ast.Node('tag', { label: '' }, tagNodes, 'itinerary-day')];
|
|
179
|
-
}
|
|
180
|
-
export const itineraryStop = createSchema(ItineraryStopModel);
|
|
181
|
-
export const itineraryDay = createSchema(ItineraryDayModel);
|
|
95
|
+
},
|
|
96
|
+
});
|
|
182
97
|
export const itinerary = createContentModelSchema({
|
|
183
98
|
attributes: {
|
|
184
|
-
headingLevel: { type: Number, required: false },
|
|
185
99
|
variant: { type: String, required: false },
|
|
186
100
|
direction: { type: String, required: false },
|
|
187
101
|
},
|
|
188
102
|
contentModel: {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
103
|
+
when: [
|
|
104
|
+
{
|
|
105
|
+
condition: { hasChild: 'heading:2' },
|
|
106
|
+
model: {
|
|
107
|
+
type: 'sections',
|
|
108
|
+
sectionHeading: 'heading:2',
|
|
109
|
+
fields: [
|
|
110
|
+
{ name: 'header', match: 'heading|paragraph', optional: true, greedy: true },
|
|
111
|
+
],
|
|
112
|
+
sectionModel: {
|
|
113
|
+
type: 'sequence',
|
|
114
|
+
fields: [{ name: 'body', match: 'any', optional: true, greedy: true }],
|
|
115
|
+
},
|
|
116
|
+
emitTag: 'itinerary-day',
|
|
117
|
+
emitAttributes: {
|
|
118
|
+
label: '$heading',
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
],
|
|
123
|
+
default: {
|
|
124
|
+
type: 'sections',
|
|
125
|
+
sectionHeading: 'heading:2',
|
|
126
|
+
fields: [],
|
|
127
|
+
sectionModel: {
|
|
128
|
+
type: 'sequence',
|
|
129
|
+
fields: [],
|
|
130
|
+
},
|
|
131
|
+
emitTag: 'itinerary-day',
|
|
132
|
+
implicitSection: { attributes: { label: '' } },
|
|
133
|
+
},
|
|
193
134
|
},
|
|
194
135
|
transform(resolved, attrs, config) {
|
|
195
|
-
const
|
|
196
|
-
|
|
197
|
-
const headerAst = [];
|
|
198
|
-
const bodyAst = [];
|
|
199
|
-
for (const child of allChildren) {
|
|
200
|
-
if (child.type === 'tag') {
|
|
201
|
-
bodyAst.push(child);
|
|
202
|
-
}
|
|
203
|
-
else if (child.type === 'heading' || child.type === 'paragraph') {
|
|
204
|
-
headerAst.push(child);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
const header = new RenderableNodeCursor(Markdoc.transform(headerAst, config));
|
|
208
|
-
const bodyStream = new RenderableNodeCursor(Markdoc.transform(bodyAst, config));
|
|
136
|
+
const headerNodes = new RenderableNodeCursor(Markdoc.transform(asNodes(resolved.header), config));
|
|
137
|
+
const bodyStream = new RenderableNodeCursor(Markdoc.transform(asNodes(resolved.sections), config));
|
|
209
138
|
const variantMeta = new Tag('meta', { content: attrs.variant ?? 'day-by-day' });
|
|
210
139
|
const directionMeta = new Tag('meta', { content: attrs.direction ?? 'vertical' });
|
|
211
140
|
const days = bodyStream.tag('article').typeof('ItineraryDay');
|
|
212
141
|
const daysContainer = new Tag('div', {}, days.toArray());
|
|
213
142
|
const children = [variantMeta, directionMeta];
|
|
214
|
-
if (
|
|
215
|
-
children.push(
|
|
143
|
+
if (headerNodes.count() > 0) {
|
|
144
|
+
children.push(headerNodes.wrap('header').next());
|
|
216
145
|
}
|
|
217
146
|
children.push(daysContainer);
|
|
218
147
|
return createComponentRenderable(schema.Itinerary, {
|
|
219
148
|
tag: 'section',
|
|
220
149
|
property: 'contentSection',
|
|
221
150
|
properties: {
|
|
222
|
-
...pageSectionProperties(
|
|
151
|
+
...pageSectionProperties(headerNodes),
|
|
223
152
|
variant: variantMeta,
|
|
224
153
|
direction: directionMeta,
|
|
225
154
|
day: days,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"itinerary.js","sourceRoot":"","sources":["../../src/tags/itinerary.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"itinerary.js","sourceRoot":"","sources":["../../src/tags/itinerary.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,kBAAkB,CAAC;AAEvC,MAAM,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC;AACxB,OAAO,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AACxH,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,CAAC,MAAM,aAAa,GAAG,wBAAwB,CAAC;IACrD,UAAU,EAAE;QACX,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE;QACvC,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE;QAC3C,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE;QAC3C,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE;QAC3C,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE;QACtC,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE;KACtC;IACD,YAAY,EAAE;QACb,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,E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C;IACJ,CAAC;CACD,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@refrakt-md/places",
|
|
3
3
|
"description": "Places runes for refrakt.md — events, maps, and itineraries",
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"build": "tsc"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@refrakt-md/types": "0.8.
|
|
25
|
-
"@refrakt-md/transform": "0.8.
|
|
26
|
-
"@refrakt-md/runes": "0.8.
|
|
24
|
+
"@refrakt-md/types": "0.8.1",
|
|
25
|
+
"@refrakt-md/transform": "0.8.1",
|
|
26
|
+
"@refrakt-md/runes": "0.8.1",
|
|
27
27
|
"@markdoc/markdoc": "0.4.0",
|
|
28
28
|
"reflect-metadata": "^0.2.0"
|
|
29
29
|
}
|