@refrakt-md/storytelling 0.8.3 → 0.8.5

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAUrD,eAAO,MAAM,YAAY,EAAE,WAoJ1B,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAUrD,eAAO,MAAM,YAAY,EAAE,WAkK1B,CAAC;AAEF,eAAe,YAAY,CAAC"}
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import { config } from './config.js';
9
9
  export const storytelling = {
10
10
  name: 'storytelling',
11
11
  displayName: 'Storytelling',
12
- version: '0.8.3',
12
+ version: '0.8.5',
13
13
  runes: {
14
14
  'character': {
15
15
  transform: character,
@@ -17,6 +17,8 @@ export const storytelling = {
17
17
  description: 'Character profile with portrait, role, status, and sectioned details. Headings become sections.',
18
18
  seoType: 'Person',
19
19
  reinterprets: { heading: 'character detail section', paragraph: 'description', image: 'portrait', list: 'traits or inventory' },
20
+ category: 'Semantic',
21
+ snippet: ['{% character name="${1:Name}" role="${2|protagonist,antagonist,supporting,minor|}" status="${3|alive,dead,unknown,missing|}" %}', '## Backstory', '', '${4:Character background.}', '', '## Abilities', '', '- ${5:Ability one}', '{% /character %}'],
20
22
  fixture: `{% character name="Veshra" role="antagonist" status="alive" aliases="The Bone Witch" tags="magic-user" %}
21
23
  ## Backstory
22
24
 
@@ -39,6 +41,8 @@ Raised in the shadow of the Ashen Spire, Veshra discovered her gift for necroman
39
41
  description: 'Location or realm description with scene image, scale, and sectioned details. Headings become sections.',
40
42
  seoType: 'Place',
41
43
  reinterprets: { heading: 'realm detail section', paragraph: 'description', image: 'scene image', list: 'features or inhabitants' },
44
+ category: 'Semantic',
45
+ snippet: ['{% realm name="${1:Name}" type="${2:sanctuary}" %}', '${3:Description of the location.}', '{% /realm %}'],
42
46
  fixture: `{% realm name="Rivendell" type="sanctuary" scale="settlement" parent="Eriador" %}
43
47
  ![Scene](/images/rivendell.jpg)
44
48
 
@@ -65,6 +69,8 @@ A hidden valley in the foothills of the Misty Mountains.
65
69
  description: 'Faction or organization within a story world with alignment, size, and sectioned details.',
66
70
  seoType: 'Organization',
67
71
  reinterprets: { heading: 'faction detail section', paragraph: 'description', list: 'members or resources' },
72
+ category: 'Semantic',
73
+ snippet: ['{% faction name="${1:Name}" type="${2:guild}" %}', '${3:Faction description.}', '{% /faction %}'],
68
74
  fixture: `{% faction name="The Silver Order" type="knightly order" alignment="lawful" size="large" %}
69
75
  A prestigious order of knights sworn to protect the realm.
70
76
 
@@ -90,6 +96,8 @@ Their fortress overlooks the capital city from the northern cliffs.
90
96
  description: 'Lore entry for world-building details, legends, or historical records. Supports spoiler mode.',
91
97
  seoType: 'Article',
92
98
  reinterprets: { heading: 'lore title', paragraph: 'content', blockquote: 'in-world quote' },
99
+ category: 'Semantic',
100
+ snippet: ['{% lore title="${1:Title}" category="${2:history}" %}', '${3:Lore content.}', '{% /lore %}'],
93
101
  fixture: `{% lore title="The Prophecy of the Chosen One" category="prophecy" spoiler=true %}
94
102
  An ancient text found in the ruins of the First Temple.
95
103
 
@@ -105,6 +113,8 @@ The prophecy has been interpreted differently by various factions throughout his
105
113
  description: 'Plot arc with sequential beats. Lists with [x]/[>]/[ ]/[-] markers become beat checkpoints.',
106
114
  seoType: 'CreativeWork',
107
115
  reinterprets: { heading: 'plot title', paragraph: 'summary', list: 'beat checkpoints (with status markers)' },
116
+ category: 'Semantic',
117
+ snippet: ['{% plot title="${1:Arc Title}" %}', '${2:Plot summary.}', '', '- [ ] **${3:Beat One}** \\u2014 ${4:Description}', '- [ ] **${5:Beat Two}** \\u2014 ${6:Description}', '{% /plot %}'],
108
118
  fixture: `{% plot title="The Quest for the Crown" type="quest" structure="linear" %}
109
119
  The heroes must recover the lost crown before the solstice.
110
120
 
@@ -124,6 +134,8 @@ The heroes must recover the lost crown before the solstice.
124
134
  aliases: ['relationship'],
125
135
  description: 'Relationship between two named entities with type, status, and directional indicator.',
126
136
  reinterprets: { paragraph: 'relationship description' },
137
+ category: 'Semantic',
138
+ snippet: ['{% bond from="${1:Entity A}" to="${2:Entity B}" type="${3:alliance}" %}', '${4:Relationship description.}', '{% /bond %}'],
127
139
  fixture: `{% bond from="Aragorn" to="Legolas" type="fellowship" status="active" %}
128
140
  Forged during the Council of Elrond, their bond was tested through the
129
141
  War of the Ring. Despite their different backgrounds, they developed
@@ -135,6 +147,8 @@ a deep mutual respect.
135
147
  aliases: ['comic'],
136
148
  description: 'Comic/storyboard layout where images become panels and paragraphs become captions',
137
149
  reinterprets: { image: 'panel visual', paragraph: 'caption/dialogue' },
150
+ category: 'Semantic',
151
+ snippet: ['{% storyboard %}', '![${1:Panel 1}](${2:/path/to/image1.png})', '', '${3:Caption for panel 1}', '', '![${4:Panel 2}](${5:/path/to/image2.png})', '', '${6:Caption for panel 2}', '{% /storyboard %}'],
138
152
  fixture: `{% storyboard variant="clean" columns="3" %}
139
153
  ![Panel 1](/images/panel1.jpg)
140
154
  The hero surveys the landscape from atop the hill.
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,IA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,EAAE,EAAE,EAAE,0BAA0B,EAAE,EAAE,EAAE,2CAA2C,EAAE,EAAE,EAAE,0BAA0B,EAAE,mBAAmB,CAAC;YAChN,OAAO,EAAE;;;;;;;;;kBASG;SACb;QACD,kBAAkB,EAAE;YAClB,SAAS,EAAE,eAAe;YAC1B,WAAW,EAAE,sCAAsC;SACpD;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE,MAA4D;KACpE;CACF,CAAC;AAEF,eAAe,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@refrakt-md/storytelling",
3
3
  "description": "Storytelling runes for refrakt.md — characters, realms, factions, plots, and more",
4
- "version": "0.8.3",
4
+ "version": "0.8.5",
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.3",
25
- "@refrakt-md/transform": "0.8.3",
26
- "@refrakt-md/runes": "0.8.3",
24
+ "@refrakt-md/types": "0.8.5",
25
+ "@refrakt-md/transform": "0.8.5",
26
+ "@refrakt-md/runes": "0.8.5",
27
27
  "@markdoc/markdoc": "0.4.0",
28
28
  "reflect-metadata": "^0.2.0"
29
29
  }