@refrakt-md/learning 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/index.js +1 -1
- package/dist/schema/howto.d.ts +1 -13
- package/dist/schema/howto.d.ts.map +1 -1
- package/dist/schema/howto.js.map +1 -1
- package/dist/schema/recipe.d.ts +1 -25
- package/dist/schema/recipe.d.ts.map +1 -1
- package/dist/schema/recipe.js.map +1 -1
- package/dist/tags/howto.d.ts.map +1 -1
- package/dist/tags/howto.js +64 -53
- package/dist/tags/howto.js.map +1 -1
- package/dist/tags/recipe.d.ts.map +1 -1
- package/dist/tags/recipe.js +56 -53
- package/dist/tags/recipe.js.map +1 -1
- package/dist/types.d.ts +5 -5
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +2 -2
- package/dist/types.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
package/dist/schema/howto.d.ts
CHANGED
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PageSection } from "@refrakt-md/types";
|
|
2
2
|
export declare class HowTo extends PageSection {
|
|
3
3
|
estimatedTime: string;
|
|
4
4
|
difficulty: string;
|
|
5
5
|
}
|
|
6
|
-
export interface HowToProperties extends PageSectionProperties {
|
|
7
|
-
estimatedTime: 'meta';
|
|
8
|
-
difficulty: 'meta';
|
|
9
|
-
}
|
|
10
|
-
export interface HowToComponent extends ComponentType<HowTo> {
|
|
11
|
-
tag: 'article';
|
|
12
|
-
properties: HowToProperties;
|
|
13
|
-
refs: {
|
|
14
|
-
tools: 'ul';
|
|
15
|
-
steps: 'ol';
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
6
|
//# sourceMappingURL=howto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"howto.d.ts","sourceRoot":"","sources":["../../src/schema/howto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"howto.d.ts","sourceRoot":"","sources":["../../src/schema/howto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,qBAAa,KAAM,SAAQ,WAAW;IACrC,aAAa,EAAE,MAAM,CAAM;IAC3B,UAAU,EAAE,MAAM,CAAM;CACxB"}
|
package/dist/schema/howto.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"howto.js","sourceRoot":"","sources":["../../src/schema/howto.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"howto.js","sourceRoot":"","sources":["../../src/schema/howto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACC,kBAAa,GAAW,EAAE,CAAC;QAC3B,eAAU,GAAW,EAAE,CAAC;IACzB,CAAC;CAAA"}
|
package/dist/schema/recipe.d.ts
CHANGED
|
@@ -1,37 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PageSection } from "@refrakt-md/types";
|
|
2
2
|
export declare class RecipeIngredient {
|
|
3
3
|
amount: string;
|
|
4
4
|
unit: string;
|
|
5
5
|
name: string;
|
|
6
6
|
}
|
|
7
|
-
export interface RecipeIngredientComponent extends ComponentType<RecipeIngredient> {
|
|
8
|
-
tag: 'li';
|
|
9
|
-
properties: {
|
|
10
|
-
amount: 'span';
|
|
11
|
-
unit: 'span';
|
|
12
|
-
name: 'span';
|
|
13
|
-
};
|
|
14
|
-
refs: {};
|
|
15
|
-
}
|
|
16
7
|
export declare class Recipe extends PageSection {
|
|
17
8
|
prepTime: string;
|
|
18
9
|
cookTime: string;
|
|
19
10
|
servings: number | undefined;
|
|
20
11
|
difficulty: string;
|
|
21
12
|
}
|
|
22
|
-
export interface RecipeProperties extends PageSectionProperties {
|
|
23
|
-
prepTime: 'meta';
|
|
24
|
-
cookTime: 'meta';
|
|
25
|
-
servings: 'meta';
|
|
26
|
-
difficulty: 'meta';
|
|
27
|
-
}
|
|
28
|
-
export interface RecipeComponent extends ComponentType<Recipe> {
|
|
29
|
-
tag: 'article';
|
|
30
|
-
properties: RecipeProperties;
|
|
31
|
-
refs: {
|
|
32
|
-
ingredients: 'ul';
|
|
33
|
-
steps: 'ol';
|
|
34
|
-
tips: 'div';
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
13
|
//# sourceMappingURL=recipe.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipe.d.ts","sourceRoot":"","sources":["../../src/schema/recipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"recipe.d.ts","sourceRoot":"","sources":["../../src/schema/recipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,qBAAa,gBAAgB;IAC5B,MAAM,EAAE,MAAM,CAAM;IACpB,IAAI,EAAE,MAAM,CAAM;IAClB,IAAI,EAAE,MAAM,CAAM;CAClB;AAED,qBAAa,MAAO,SAAQ,WAAW;IACtC,QAAQ,EAAE,MAAM,CAAM;IACtB,QAAQ,EAAE,MAAM,CAAM;IACtB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAa;IACzC,UAAU,EAAE,MAAM,CAAY;CAC9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipe.js","sourceRoot":"","sources":["../../src/schema/recipe.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"recipe.js","sourceRoot":"","sources":["../../src/schema/recipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,OAAO,gBAAgB;IAA7B;QACC,WAAM,GAAW,EAAE,CAAC;QACpB,SAAI,GAAW,EAAE,CAAC;QAClB,SAAI,GAAW,EAAE,CAAC;IACnB,CAAC;CAAA;AAED,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACC,aAAQ,GAAW,EAAE,CAAC;QACtB,aAAQ,GAAW,EAAE,CAAC;QACtB,aAAQ,GAAuB,SAAS,CAAC;QACzC,eAAU,GAAW,QAAQ,CAAC;IAC/B,CAAC;CAAA"}
|
package/dist/tags/howto.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"howto.d.ts","sourceRoot":"","sources":["../../src/tags/howto.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"howto.d.ts","sourceRoot":"","sources":["../../src/tags/howto.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,kBAAkB,CAAC;AAqBvC,eAAO,MAAM,KAAK,gBAmGhB,CAAC"}
|
package/dist/tags/howto.js
CHANGED
|
@@ -1,35 +1,45 @@
|
|
|
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 { createContentModelSchema, createComponentRenderable, asNodes, resolveSequence, RenderableNodeCursor, pageSectionProperties, headingsToList } from '@refrakt-md/runes';
|
|
13
4
|
import { schema } from '../types.js';
|
|
5
|
+
function tagText(nodes) {
|
|
6
|
+
return nodes.map((n) => {
|
|
7
|
+
if (typeof n === 'string')
|
|
8
|
+
return n;
|
|
9
|
+
if (Markdoc.Tag.isTag(n))
|
|
10
|
+
return tagText(n.children);
|
|
11
|
+
return '';
|
|
12
|
+
}).join('').trim();
|
|
13
|
+
}
|
|
14
14
|
const difficultyType = ['easy', 'medium', 'hard'];
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
15
|
+
const bodyFields = [
|
|
16
|
+
{ name: 'header', match: 'heading|paragraph|image', greedy: true, optional: true },
|
|
17
|
+
{ name: 'body', match: 'list|tag', greedy: true, optional: true },
|
|
18
|
+
];
|
|
19
|
+
export const howto = createContentModelSchema({
|
|
20
|
+
attributes: {
|
|
21
|
+
estimatedTime: { type: String, required: false, default: '' },
|
|
22
|
+
difficulty: { type: String, required: false, matches: difficultyType.slice() },
|
|
23
|
+
headingLevel: { type: Number, required: false },
|
|
24
|
+
},
|
|
25
|
+
contentModel: {
|
|
26
|
+
type: 'custom',
|
|
27
|
+
description: 'Optionally converts headings to list items, then resolves header/body sequence',
|
|
28
|
+
processChildren(nodes, attrs) {
|
|
29
|
+
let processed = nodes;
|
|
30
|
+
if (attrs.headingLevel != null) {
|
|
31
|
+
processed = headingsToList({ level: attrs.headingLevel })(processed);
|
|
32
|
+
}
|
|
33
|
+
return processed;
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
transform(resolved, attrs, config) {
|
|
37
|
+
// Custom model gives us raw children — resolve the header/body sequence manually
|
|
38
|
+
const inner = resolveSequence(resolved.children, bodyFields);
|
|
39
|
+
const header = new RenderableNodeCursor(Markdoc.transform(asNodes(inner.header), config));
|
|
40
|
+
const body = new RenderableNodeCursor(Markdoc.transform(asNodes(inner.body), config));
|
|
41
|
+
const estimatedTimeMeta = new Tag('meta', { content: attrs.estimatedTime });
|
|
42
|
+
const difficultyMeta = new Tag('meta', { content: attrs.difficulty ?? '' });
|
|
33
43
|
// Separate unordered lists (tools/materials) and ordered lists (steps)
|
|
34
44
|
const allNodes = body.toArray();
|
|
35
45
|
const tools = [];
|
|
@@ -44,6 +54,23 @@ class HowToModel extends Model {
|
|
|
44
54
|
}
|
|
45
55
|
}
|
|
46
56
|
}
|
|
57
|
+
// Annotate tool lis as HowToTool
|
|
58
|
+
for (const li of tools) {
|
|
59
|
+
if (Markdoc.Tag.isTag(li)) {
|
|
60
|
+
li.attributes.typeof = 'HowToTool';
|
|
61
|
+
li.attributes.property = 'tool';
|
|
62
|
+
li.children.push(new Tag('meta', { property: 'name', content: tagText(li.children) }));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
// Annotate step lis as HowToStep
|
|
66
|
+
for (const li of steps) {
|
|
67
|
+
if (Markdoc.Tag.isTag(li)) {
|
|
68
|
+
li.attributes.typeof = 'HowToStep';
|
|
69
|
+
li.attributes.property = 'step';
|
|
70
|
+
li.children.push(new Tag('meta', { property: 'text', content: tagText(li.children) }));
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
const sectionProps = pageSectionProperties(header);
|
|
47
74
|
const toolsList = new Tag('ul', {}, tools);
|
|
48
75
|
const stepsList = new Tag('ol', {}, steps);
|
|
49
76
|
const children = [
|
|
@@ -59,7 +86,7 @@ class HowToModel extends Model {
|
|
|
59
86
|
tag: 'article',
|
|
60
87
|
property: 'contentSection',
|
|
61
88
|
properties: {
|
|
62
|
-
...
|
|
89
|
+
...sectionProps,
|
|
63
90
|
estimatedTime: estimatedTimeMeta,
|
|
64
91
|
difficulty: difficultyMeta,
|
|
65
92
|
},
|
|
@@ -67,29 +94,13 @@ class HowToModel extends Model {
|
|
|
67
94
|
tools: toolsList,
|
|
68
95
|
steps: stepsList,
|
|
69
96
|
},
|
|
97
|
+
schema: {
|
|
98
|
+
name: sectionProps.headline,
|
|
99
|
+
description: sectionProps.blurb,
|
|
100
|
+
totalTime: estimatedTimeMeta,
|
|
101
|
+
},
|
|
70
102
|
children,
|
|
71
103
|
});
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
__decorate([
|
|
75
|
-
attribute({ type: String, required: false }),
|
|
76
|
-
__metadata("design:type", String)
|
|
77
|
-
], HowToModel.prototype, "estimatedTime", void 0);
|
|
78
|
-
__decorate([
|
|
79
|
-
attribute({ type: String, required: false, matches: difficultyType.slice() }),
|
|
80
|
-
__metadata("design:type", String)
|
|
81
|
-
], HowToModel.prototype, "difficulty", void 0);
|
|
82
|
-
__decorate([
|
|
83
|
-
attribute({ type: Number, required: false }),
|
|
84
|
-
__metadata("design:type", Object)
|
|
85
|
-
], HowToModel.prototype, "headingLevel", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
group({ include: ['heading', 'paragraph', 'image'] }),
|
|
88
|
-
__metadata("design:type", NodeStream)
|
|
89
|
-
], HowToModel.prototype, "header", void 0);
|
|
90
|
-
__decorate([
|
|
91
|
-
group({ include: ['list', 'tag'] }),
|
|
92
|
-
__metadata("design:type", NodeStream)
|
|
93
|
-
], HowToModel.prototype, "body", void 0);
|
|
94
|
-
export const howto = createSchema(HowToModel);
|
|
104
|
+
},
|
|
105
|
+
});
|
|
95
106
|
//# sourceMappingURL=howto.js.map
|
package/dist/tags/howto.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"howto.js","sourceRoot":"","sources":["../../src/tags/howto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"howto.js","sourceRoot":"","sources":["../../src/tags/howto.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,kBAAkB,CAAC;AAEvC,MAAM,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1
|
+
{"version":3,"file":"recipe.d.ts","sourceRoot":"","sources":["../../src/tags/recipe.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,kBAAkB,CAAC;AAgBvC,eAAO,MAAM,MAAM,gBAyGjB,CAAC"}
|
package/dist/tags/recipe.js
CHANGED
|
@@ -1,32 +1,38 @@
|
|
|
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, pageSectionProperties } from '@refrakt-md/runes';
|
|
13
4
|
import { schema } from '../types.js';
|
|
5
|
+
function tagText(nodes) {
|
|
6
|
+
return nodes.map((n) => {
|
|
7
|
+
if (typeof n === 'string')
|
|
8
|
+
return n;
|
|
9
|
+
if (Markdoc.Tag.isTag(n))
|
|
10
|
+
return tagText(n.children);
|
|
11
|
+
return '';
|
|
12
|
+
}).join('').trim();
|
|
13
|
+
}
|
|
14
14
|
const difficultyType = ['easy', 'medium', 'hard'];
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
15
|
+
export const recipe = createContentModelSchema({
|
|
16
|
+
attributes: {
|
|
17
|
+
prepTime: { type: String, required: false, default: '' },
|
|
18
|
+
cookTime: { type: String, required: false, default: '' },
|
|
19
|
+
servings: { type: Number, required: false },
|
|
20
|
+
difficulty: { type: String, required: false, matches: difficultyType.slice(), default: 'medium' },
|
|
21
|
+
},
|
|
22
|
+
contentModel: {
|
|
23
|
+
type: 'sequence',
|
|
24
|
+
fields: [
|
|
25
|
+
{ name: 'header', match: 'heading|paragraph|image', greedy: true, optional: true },
|
|
26
|
+
{ name: 'body', match: 'list|tag|blockquote', greedy: true, optional: true },
|
|
27
|
+
],
|
|
28
|
+
},
|
|
29
|
+
transform(resolved, attrs, config) {
|
|
30
|
+
const header = new RenderableNodeCursor(Markdoc.transform(asNodes(resolved.header), config));
|
|
31
|
+
const body = new RenderableNodeCursor(Markdoc.transform(asNodes(resolved.body), config));
|
|
32
|
+
const prepTimeMeta = new Tag('meta', { content: attrs.prepTime });
|
|
33
|
+
const cookTimeMeta = new Tag('meta', { content: attrs.cookTime });
|
|
34
|
+
const servingsMeta = new Tag('meta', { content: attrs.servings != null ? String(attrs.servings) : '' });
|
|
35
|
+
const difficultyMeta = new Tag('meta', { content: attrs.difficulty });
|
|
30
36
|
// Separate unordered lists (ingredients), ordered lists (steps), and blockquotes (tips)
|
|
31
37
|
const allNodes = body.toArray();
|
|
32
38
|
const ingredients = [];
|
|
@@ -45,6 +51,21 @@ class RecipeModel extends Model {
|
|
|
45
51
|
}
|
|
46
52
|
}
|
|
47
53
|
}
|
|
54
|
+
// Annotate ingredient lis with recipeIngredient property
|
|
55
|
+
for (const li of ingredients) {
|
|
56
|
+
if (Markdoc.Tag.isTag(li)) {
|
|
57
|
+
li.attributes.property = 'recipeIngredient';
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
// Annotate step lis as HowToStep with recipeInstructions property
|
|
61
|
+
for (const li of steps) {
|
|
62
|
+
if (Markdoc.Tag.isTag(li)) {
|
|
63
|
+
li.attributes.typeof = 'HowToStep';
|
|
64
|
+
li.attributes.property = 'recipeInstructions';
|
|
65
|
+
li.children.push(new Tag('meta', { property: 'text', content: tagText(li.children) }));
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
const sectionProps = pageSectionProperties(header);
|
|
48
69
|
const ingredientsList = new Tag('ul', {}, ingredients);
|
|
49
70
|
const stepsList = new Tag('ol', {}, steps);
|
|
50
71
|
const tipsDiv = new Tag('div', {}, tips);
|
|
@@ -64,7 +85,7 @@ class RecipeModel extends Model {
|
|
|
64
85
|
tag: 'article',
|
|
65
86
|
property: 'contentSection',
|
|
66
87
|
properties: {
|
|
67
|
-
...
|
|
88
|
+
...sectionProps,
|
|
68
89
|
prepTime: prepTimeMeta,
|
|
69
90
|
cookTime: cookTimeMeta,
|
|
70
91
|
servings: servingsMeta,
|
|
@@ -75,33 +96,15 @@ class RecipeModel extends Model {
|
|
|
75
96
|
steps: stepsList,
|
|
76
97
|
tips: tipsDiv,
|
|
77
98
|
},
|
|
99
|
+
schema: {
|
|
100
|
+
name: sectionProps.headline,
|
|
101
|
+
description: sectionProps.blurb,
|
|
102
|
+
prepTime: prepTimeMeta,
|
|
103
|
+
cookTime: cookTimeMeta,
|
|
104
|
+
recipeYield: servingsMeta,
|
|
105
|
+
},
|
|
78
106
|
children,
|
|
79
107
|
});
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
__decorate([
|
|
83
|
-
attribute({ type: String, required: false }),
|
|
84
|
-
__metadata("design:type", String)
|
|
85
|
-
], RecipeModel.prototype, "prepTime", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
attribute({ type: String, required: false }),
|
|
88
|
-
__metadata("design:type", String)
|
|
89
|
-
], RecipeModel.prototype, "cookTime", void 0);
|
|
90
|
-
__decorate([
|
|
91
|
-
attribute({ type: Number, required: false }),
|
|
92
|
-
__metadata("design:type", Object)
|
|
93
|
-
], RecipeModel.prototype, "servings", void 0);
|
|
94
|
-
__decorate([
|
|
95
|
-
attribute({ type: String, required: false, matches: difficultyType.slice() }),
|
|
96
|
-
__metadata("design:type", Object)
|
|
97
|
-
], RecipeModel.prototype, "difficulty", void 0);
|
|
98
|
-
__decorate([
|
|
99
|
-
group({ include: ['heading', 'paragraph', 'image'] }),
|
|
100
|
-
__metadata("design:type", NodeStream)
|
|
101
|
-
], RecipeModel.prototype, "header", void 0);
|
|
102
|
-
__decorate([
|
|
103
|
-
group({ include: ['list', 'tag', 'blockquote'] }),
|
|
104
|
-
__metadata("design:type", NodeStream)
|
|
105
|
-
], RecipeModel.prototype, "body", void 0);
|
|
106
|
-
export const recipe = createSchema(RecipeModel);
|
|
108
|
+
},
|
|
109
|
+
});
|
|
107
110
|
//# sourceMappingURL=recipe.js.map
|
package/dist/tags/recipe.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipe.js","sourceRoot":"","sources":["../../src/tags/recipe.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"recipe.js","sourceRoot":"","sources":["../../src/tags/recipe.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,kBAAkB,CAAC;AAEvC,MAAM,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC;AACxB,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC9I,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,SAAS,OAAO,CAAC,KAAY;IAC5B,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE;QAC3B,IAAI,OAAO,CAAC,KAAK,QAAQ;YAAE,OAAO,CAAC,CAAC;QACpC,IAAI,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;YAA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AM,QAAQ,GAAU;YACvB,YAAY;YACZ,YAAY;YACZ,YAAY;YACZ,cAAc;YACd,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE;YAC5B,eAAe;YACf,SAAS;SACT,CAAC;QAEF,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACrB,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxB,CAAC;QAED,OAAO,yBAAyB,CAAC,MAAM,CAAC,MAAM,EAAE;YAC/C,GAAG,EAAE,SAAS;YACd,QAAQ,EAAE,gBAAgB;YAC1B,UAAU,EAAE;gBACX,GAAG,YAAY;gBACf,QAAQ,EAAE,YAAY;gBACtB,QAAQ,EAAE,YAAY;gBACtB,QAAQ,EAAE,YAAY;gBACtB,UAAU,EAAE,cAAc;aAC1B;YACD,IAAI,EAAE;gBACL,WAAW,EAAE,eAAe;gBAC5B,KAAK,EAAE,SAAS;gBAChB,IAAI,EAAE,OAAO;aACb;YACD,MAAM,EAAE;gBACP,IAAI,EAAE,YAAY,CAAC,QAAQ;gBAC3B,WAAW,EAAE,YAAY,CAAC,KAAK;gBAC/B,QAAQ,EAAE,YAAY;gBACtB,QAAQ,EAAE,YAAY;gBACtB,WAAW,EAAE,YAAY;aACzB;YACD,QAAQ;SACR,CAAC,CAAC;IACJ,CAAC;CACD,CAAC,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Recipe, RecipeIngredient } from './schema/recipe.js';
|
|
2
|
+
import { HowTo } from './schema/howto.js';
|
|
3
3
|
export declare const schema: {
|
|
4
|
-
Recipe: import("@refrakt-md/types").Type<
|
|
5
|
-
RecipeIngredient: import("@refrakt-md/types").Type<
|
|
6
|
-
HowTo: import("@refrakt-md/types").Type<
|
|
4
|
+
Recipe: import("@refrakt-md/types").Type<Recipe>;
|
|
5
|
+
RecipeIngredient: import("@refrakt-md/types").Type<RecipeIngredient>;
|
|
6
|
+
HowTo: import("@refrakt-md/types").Type<HowTo>;
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,MAAM,EAAE,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAExC,eAAO,MAAM,MAAM;;;;CAIlB,CAAC"}
|
package/dist/types.js
CHANGED
|
@@ -2,8 +2,8 @@ import { useSchema } from '@refrakt-md/types';
|
|
|
2
2
|
import { Recipe, RecipeIngredient } from './schema/recipe.js';
|
|
3
3
|
import { HowTo } from './schema/howto.js';
|
|
4
4
|
export const schema = {
|
|
5
|
-
Recipe: useSchema(Recipe).defineType('Recipe'),
|
|
5
|
+
Recipe: useSchema(Recipe).defineType('Recipe', {}, 'Recipe'),
|
|
6
6
|
RecipeIngredient: useSchema(RecipeIngredient).defineType('RecipeIngredient'),
|
|
7
|
-
HowTo: useSchema(HowTo).defineType('HowTo'),
|
|
7
|
+
HowTo: useSchema(HowTo).defineType('HowTo', {}, 'HowTo'),
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=types.js.map
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAC,MAAM,EAAE,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAExC,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,UAAU,CAAC,QAAQ,EAAE,EAAE,EAAE,QAAQ,CAAC;IAC5D,gBAAgB,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAC5E,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,EAAE,OAAO,CAAC;CACzD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@refrakt-md/learning",
|
|
3
3
|
"description": "Learning runes for refrakt.md — how-to guides and recipes",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.8.0",
|
|
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.
|
|
25
|
-
"@refrakt-md/transform": "0.
|
|
26
|
-
"@refrakt-md/runes": "0.
|
|
24
|
+
"@refrakt-md/types": "0.8.0",
|
|
25
|
+
"@refrakt-md/transform": "0.8.0",
|
|
26
|
+
"@refrakt-md/runes": "0.8.0",
|
|
27
27
|
"@markdoc/markdoc": "0.4.0",
|
|
28
28
|
"reflect-metadata": "^0.2.0"
|
|
29
29
|
}
|