@onlyworlds/sdk 1.4.0 → 1.5.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 CHANGED
@@ -20,9 +20,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
- ELEMENT_FONTAWESOME_ICONS: () => ELEMENT_FONTAWESOME_ICONS,
23
+ ELEMENT_ICONS: () => ELEMENT_ICONS,
24
24
  ELEMENT_LABELS: () => ELEMENT_LABELS,
25
25
  ELEMENT_MATERIAL_ICONS: () => ELEMENT_MATERIAL_ICONS,
26
+ ELEMENT_SECTIONS: () => ELEMENT_SECTIONS,
26
27
  ELEMENT_UNICODE_ICONS: () => ELEMENT_UNICODE_ICONS,
27
28
  ElementType: () => ElementType,
28
29
  FIELD_MAPPINGS: () => FIELD_MAPPINGS,
@@ -32,9 +33,10 @@ __export(index_exports, {
32
33
  createAnyElementId: () => createAnyElementId,
33
34
  createElementId: () => createElementId,
34
35
  createElementIds: () => createElementIds,
35
- getElementFontAwesomeIcon: () => getElementFontAwesomeIcon,
36
+ getElementIcon: () => getElementIcon,
36
37
  getElementLabel: () => getElementLabel,
37
38
  getElementMaterialIcon: () => getElementMaterialIcon,
39
+ getElementSections: () => getElementSections,
38
40
  getElementUnicodeIcon: () => getElementUnicodeIcon
39
41
  });
40
42
  module.exports = __toCommonJS(index_exports);
@@ -212,8 +214,114 @@ var ELEMENT_LABELS = {
212
214
  function getElementLabel(elementType) {
213
215
  return ELEMENT_LABELS[elementType];
214
216
  }
217
+ var ELEMENT_SECTIONS = {
218
+ ["ability" /* Ability */]: [
219
+ { name: "Mechanics", order: 1, fields: ["activation", "duration", "potency", "range", "effects", "challenges", "talents", "requisites"] },
220
+ { name: "World", order: 2, fields: ["prevalence", "tradition", "source", "locus", "instruments", "systems"] }
221
+ ],
222
+ ["character" /* Character */]: [
223
+ { name: "Constitution", order: 1, fields: ["physicality", "mentality", "height", "weight", "species", "traits", "abilities"] },
224
+ { name: "Origins", order: 2, fields: ["background", "motivations", "birth_date", "birthplace", "languages"] },
225
+ { name: "World", order: 3, fields: ["reputation", "location", "objects", "institutions"] },
226
+ { name: "Personality", order: 4, fields: ["charisma", "coercion", "competence", "compassion", "creativity", "courage"] },
227
+ { name: "Social", order: 5, fields: ["family", "friends", "rivals"] },
228
+ { name: "TTRPG", order: 6, fields: ["level", "hit_points", "STR", "DEX", "CON", "INT", "WIS", "CHA"] }
229
+ ],
230
+ ["collective" /* Collective */]: [
231
+ { name: "Formation", order: 1, fields: ["composition", "count", "formation_date", "operator", "equipment"] },
232
+ { name: "Dynamics", order: 2, fields: ["activity", "disposition", "state", "abilities", "symbolism"] },
233
+ { name: "World", order: 3, fields: ["species", "characters", "creatures", "phenomena"] }
234
+ ],
235
+ ["construct" /* Construct */]: [
236
+ { name: "Nature", order: 1, fields: ["rationale", "history", "status", "reach", "start_date", "end_date", "founder", "custodian"] },
237
+ { name: "Involves", order: 2, fields: ["characters", "objects", "locations", "species", "creatures", "institutions", "traits", "collectives", "zones", "abilities", "phenomena", "languages", "families", "relations", "titles", "constructs", "events", "narratives"] }
238
+ ],
239
+ ["creature" /* Creature */]: [
240
+ { name: "Biology", order: 1, fields: ["appearance", "weight", "height", "species"] },
241
+ { name: "Behaviour", order: 2, fields: ["habits", "demeanor", "traits", "abilities", "languages"] },
242
+ { name: "World", order: 3, fields: ["status", "birth_date", "location", "zone"] },
243
+ { name: "TTRPG", order: 4, fields: ["challenge_rating", "hit_points", "armor_class", "speed", "actions"] }
244
+ ],
245
+ ["event" /* Event */]: [
246
+ { name: "Nature", order: 1, fields: ["history", "challenges", "consequences", "start_date", "end_date", "triggers"] },
247
+ { name: "Involves", order: 2, fields: ["characters", "objects", "locations", "species", "creatures", "institutions", "traits", "collectives", "zones", "abilities", "phenomena", "languages", "families", "relations", "titles", "constructs"] }
248
+ ],
249
+ ["family" /* Family */]: [
250
+ { name: "Identity", order: 1, fields: ["spirit", "history", "traditions", "traits", "abilities", "languages", "ancestors"] },
251
+ { name: "World", order: 2, fields: ["reputation", "estates", "governs", "heirlooms", "creatures"] }
252
+ ],
253
+ ["institution" /* Institution */]: [
254
+ { name: "Foundation", order: 1, fields: ["doctrine", "founding_date", "parent_institution"] },
255
+ { name: "Claims", order: 2, fields: ["zones", "objects", "creatures"] },
256
+ { name: "World", order: 3, fields: ["status", "allies", "adversaries", "constructs"] }
257
+ ],
258
+ ["language" /* Language */]: [
259
+ { name: "Structure", order: 1, fields: ["phonology", "grammar", "lexicon", "writing", "classification"] },
260
+ { name: "World", order: 2, fields: ["status", "spread", "dialects"] }
261
+ ],
262
+ ["law" /* Law */]: [
263
+ { name: "Code", order: 1, fields: ["declaration", "purpose", "date", "parent_law", "penalties"] },
264
+ { name: "World", order: 2, fields: ["author", "locations", "zones", "prohibitions", "adjudicators", "enforcers"] }
265
+ ],
266
+ ["location" /* Location */]: [
267
+ { name: "Setting", order: 1, fields: ["form", "function", "founding_date", "parent_location", "populations"] },
268
+ { name: "Politics", order: 2, fields: ["political_climate", "primary_power", "governing_title", "secondary_powers", "zone", "rival", "partner"] },
269
+ { name: "World", order: 3, fields: ["customs", "founders", "cults", "delicacies"] },
270
+ { name: "Production", order: 4, fields: ["extraction_methods", "extraction_goods", "industry_methods", "industry_goods"] },
271
+ { name: "Commerce", order: 5, fields: ["infrastructure", "extraction_markets", "industry_markets", "currencies"] },
272
+ { name: "Construction", order: 6, fields: ["architecture", "buildings", "building_methods"] },
273
+ { name: "Defense", order: 7, fields: ["defensibility", "elevation", "fighters", "defensive_objects"] }
274
+ ],
275
+ ["map" /* Map */]: [
276
+ { name: "Details", order: 1, fields: ["background_color", "hierarchy", "width", "height", "depth", "parent_map", "location"] }
277
+ ],
278
+ ["marker" /* Marker */]: [
279
+ { name: "Details", order: 1, fields: ["map", "zone", "x", "y", "z"] }
280
+ ],
281
+ ["narrative" /* Narrative */]: [
282
+ { name: "Context", order: 1, fields: ["story", "consequences", "start_date", "end_date", "order", "parent_narrative", "protagonist", "antagonist", "narrator", "conservator"] },
283
+ { name: "Involves", order: 2, fields: ["events", "characters", "objects", "locations", "species", "creatures", "institutions", "traits", "collectives", "zones", "abilities", "phenomena", "languages", "families", "relations", "titles", "constructs", "laws"] }
284
+ ],
285
+ ["object" /* Object */]: [
286
+ { name: "Form", order: 1, fields: ["aesthetics", "weight", "amount", "parent_object", "materials", "technology"] },
287
+ { name: "Function", order: 2, fields: ["utility", "effects", "abilities", "consumes"] },
288
+ { name: "World", order: 3, fields: ["origins", "location", "language", "affinities"] }
289
+ ],
290
+ ["phenomenon" /* Phenomenon */]: [
291
+ { name: "Mechanics", order: 1, fields: ["expression", "effects", "duration", "catalysts", "empowerments"] },
292
+ { name: "World", order: 2, fields: ["mythology", "system", "triggers", "wielders", "environments"] }
293
+ ],
294
+ ["pin" /* Pin */]: [
295
+ { name: "Details", order: 1, fields: ["map", "element_type", "element_id", "element", "x", "y", "z"] }
296
+ ],
297
+ ["relation" /* Relation */]: [
298
+ { name: "Nature", order: 1, fields: ["background", "start_date", "end_date", "intensity", "actor", "events"] },
299
+ { name: "Involves", order: 2, fields: ["characters", "objects", "locations", "species", "creatures", "institutions", "traits", "collectives", "zones", "abilities", "phenomena", "languages", "families", "relations", "titles", "constructs", "events", "narratives"] }
300
+ ],
301
+ ["species" /* Species */]: [
302
+ { name: "Biology", order: 1, fields: ["appearance", "life_span", "weight", "nourishment", "reproduction", "adaptations"] },
303
+ { name: "Psychology", order: 2, fields: ["instincts", "sociality", "temperament", "communication", "aggression", "traits"] },
304
+ { name: "World", order: 3, fields: ["role", "parent_species", "locations", "zones", "affinities"] }
305
+ ],
306
+ ["title" /* Title */]: [
307
+ { name: "Mandate", order: 1, fields: ["authority", "eligibility", "grant_date", "revoke_date", "issuer", "body", "superior_title", "holders", "symbols"] },
308
+ { name: "World", order: 2, fields: ["status", "history", "characters", "institutions", "families", "zones", "locations", "objects", "constructs", "laws", "collectives", "creatures", "phenomena", "species", "languages"] }
309
+ ],
310
+ ["trait" /* Trait */]: [
311
+ { name: "Qualitative", order: 1, fields: ["social_effects", "physical_effects", "functional_effects", "personality_effects", "behaviour_effects"] },
312
+ { name: "Quantitative", order: 2, fields: ["charisma", "coercion", "competence", "compassion", "creativity", "courage"] },
313
+ { name: "World", order: 3, fields: ["significance", "anti_trait", "empowered_abilities"] }
314
+ ],
315
+ ["zone" /* Zone */]: [
316
+ { name: "Scope", order: 1, fields: ["role", "start_date", "end_date", "phenomena", "linked_zones"] },
317
+ { name: "World", order: 2, fields: ["context", "populations", "titles", "principles"] }
318
+ ]
319
+ };
320
+ function getElementSections(elementType) {
321
+ return ELEMENT_SECTIONS[elementType] || [];
322
+ }
215
323
  var ONLYWORLDS_VERSION = "00.30.00";
216
- var ELEMENT_MATERIAL_ICONS = {
324
+ var ELEMENT_ICONS = {
217
325
  ["ability" /* Ability */]: "auto_fix_normal",
218
326
  ["character" /* Character */]: "person",
219
327
  ["collective" /* Collective */]: "groups_3",
@@ -237,30 +345,6 @@ var ELEMENT_MATERIAL_ICONS = {
237
345
  ["trait" /* Trait */]: "flaky",
238
346
  ["zone" /* Zone */]: "architecture"
239
347
  };
240
- var ELEMENT_FONTAWESOME_ICONS = {
241
- ["ability" /* Ability */]: "fa-wand-magic-sparkles",
242
- ["character" /* Character */]: "fa-user",
243
- ["collective" /* Collective */]: "fa-people-group",
244
- ["construct" /* Construct */]: "fa-gear",
245
- ["creature" /* Creature */]: "fa-dragon",
246
- ["event" /* Event */]: "fa-calendar-days",
247
- ["family" /* Family */]: "fa-users",
248
- ["institution" /* Institution */]: "fa-building",
249
- ["language" /* Language */]: "fa-language",
250
- ["law" /* Law */]: "fa-gavel",
251
- ["location" /* Location */]: "fa-location-dot",
252
- ["map" /* Map */]: "fa-map",
253
- ["marker" /* Marker */]: "fa-map-marker-alt",
254
- ["narrative" /* Narrative */]: "fa-book",
255
- ["object" /* Object */]: "fa-cube",
256
- ["phenomenon" /* Phenomenon */]: "fa-bolt",
257
- ["pin" /* Pin */]: "fa-thumbtack",
258
- ["relation" /* Relation */]: "fa-link",
259
- ["species" /* Species */]: "fa-dna",
260
- ["title" /* Title */]: "fa-crown",
261
- ["trait" /* Trait */]: "fa-snowflake",
262
- ["zone" /* Zone */]: "fa-layer-group"
263
- };
264
348
  var ELEMENT_UNICODE_ICONS = {
265
349
  ["ability" /* Ability */]: "\u2728",
266
350
  ["character" /* Character */]: "\u{1F464}",
@@ -285,15 +369,14 @@ var ELEMENT_UNICODE_ICONS = {
285
369
  ["trait" /* Trait */]: "\u2744\uFE0F",
286
370
  ["zone" /* Zone */]: "\u{1F5FA}\uFE0F"
287
371
  };
288
- function getElementMaterialIcon(elementType) {
289
- return ELEMENT_MATERIAL_ICONS[elementType];
290
- }
291
- function getElementFontAwesomeIcon(elementType) {
292
- return ELEMENT_FONTAWESOME_ICONS[elementType];
372
+ function getElementIcon(elementType) {
373
+ return ELEMENT_ICONS[elementType];
293
374
  }
294
375
  function getElementUnicodeIcon(elementType) {
295
376
  return ELEMENT_UNICODE_ICONS[elementType];
296
377
  }
378
+ var ELEMENT_MATERIAL_ICONS = ELEMENT_ICONS;
379
+ var getElementMaterialIcon = getElementIcon;
297
380
  var FIELD_SCHEMA = {
298
381
  ability: {
299
382
  // Text fields
@@ -761,9 +844,10 @@ function createAnyElementId(id) {
761
844
  }
762
845
  // Annotate the CommonJS export names for ESM import in node:
763
846
  0 && (module.exports = {
764
- ELEMENT_FONTAWESOME_ICONS,
847
+ ELEMENT_ICONS,
765
848
  ELEMENT_LABELS,
766
849
  ELEMENT_MATERIAL_ICONS,
850
+ ELEMENT_SECTIONS,
767
851
  ELEMENT_UNICODE_ICONS,
768
852
  ElementType,
769
853
  FIELD_MAPPINGS,
@@ -773,8 +857,9 @@ function createAnyElementId(id) {
773
857
  createAnyElementId,
774
858
  createElementId,
775
859
  createElementIds,
776
- getElementFontAwesomeIcon,
860
+ getElementIcon,
777
861
  getElementLabel,
778
862
  getElementMaterialIcon,
863
+ getElementSections,
779
864
  getElementUnicodeIcon
780
865
  });
package/dist/index.mjs CHANGED
@@ -171,8 +171,114 @@ var ELEMENT_LABELS = {
171
171
  function getElementLabel(elementType) {
172
172
  return ELEMENT_LABELS[elementType];
173
173
  }
174
+ var ELEMENT_SECTIONS = {
175
+ ["ability" /* Ability */]: [
176
+ { name: "Mechanics", order: 1, fields: ["activation", "duration", "potency", "range", "effects", "challenges", "talents", "requisites"] },
177
+ { name: "World", order: 2, fields: ["prevalence", "tradition", "source", "locus", "instruments", "systems"] }
178
+ ],
179
+ ["character" /* Character */]: [
180
+ { name: "Constitution", order: 1, fields: ["physicality", "mentality", "height", "weight", "species", "traits", "abilities"] },
181
+ { name: "Origins", order: 2, fields: ["background", "motivations", "birth_date", "birthplace", "languages"] },
182
+ { name: "World", order: 3, fields: ["reputation", "location", "objects", "institutions"] },
183
+ { name: "Personality", order: 4, fields: ["charisma", "coercion", "competence", "compassion", "creativity", "courage"] },
184
+ { name: "Social", order: 5, fields: ["family", "friends", "rivals"] },
185
+ { name: "TTRPG", order: 6, fields: ["level", "hit_points", "STR", "DEX", "CON", "INT", "WIS", "CHA"] }
186
+ ],
187
+ ["collective" /* Collective */]: [
188
+ { name: "Formation", order: 1, fields: ["composition", "count", "formation_date", "operator", "equipment"] },
189
+ { name: "Dynamics", order: 2, fields: ["activity", "disposition", "state", "abilities", "symbolism"] },
190
+ { name: "World", order: 3, fields: ["species", "characters", "creatures", "phenomena"] }
191
+ ],
192
+ ["construct" /* Construct */]: [
193
+ { name: "Nature", order: 1, fields: ["rationale", "history", "status", "reach", "start_date", "end_date", "founder", "custodian"] },
194
+ { name: "Involves", order: 2, fields: ["characters", "objects", "locations", "species", "creatures", "institutions", "traits", "collectives", "zones", "abilities", "phenomena", "languages", "families", "relations", "titles", "constructs", "events", "narratives"] }
195
+ ],
196
+ ["creature" /* Creature */]: [
197
+ { name: "Biology", order: 1, fields: ["appearance", "weight", "height", "species"] },
198
+ { name: "Behaviour", order: 2, fields: ["habits", "demeanor", "traits", "abilities", "languages"] },
199
+ { name: "World", order: 3, fields: ["status", "birth_date", "location", "zone"] },
200
+ { name: "TTRPG", order: 4, fields: ["challenge_rating", "hit_points", "armor_class", "speed", "actions"] }
201
+ ],
202
+ ["event" /* Event */]: [
203
+ { name: "Nature", order: 1, fields: ["history", "challenges", "consequences", "start_date", "end_date", "triggers"] },
204
+ { name: "Involves", order: 2, fields: ["characters", "objects", "locations", "species", "creatures", "institutions", "traits", "collectives", "zones", "abilities", "phenomena", "languages", "families", "relations", "titles", "constructs"] }
205
+ ],
206
+ ["family" /* Family */]: [
207
+ { name: "Identity", order: 1, fields: ["spirit", "history", "traditions", "traits", "abilities", "languages", "ancestors"] },
208
+ { name: "World", order: 2, fields: ["reputation", "estates", "governs", "heirlooms", "creatures"] }
209
+ ],
210
+ ["institution" /* Institution */]: [
211
+ { name: "Foundation", order: 1, fields: ["doctrine", "founding_date", "parent_institution"] },
212
+ { name: "Claims", order: 2, fields: ["zones", "objects", "creatures"] },
213
+ { name: "World", order: 3, fields: ["status", "allies", "adversaries", "constructs"] }
214
+ ],
215
+ ["language" /* Language */]: [
216
+ { name: "Structure", order: 1, fields: ["phonology", "grammar", "lexicon", "writing", "classification"] },
217
+ { name: "World", order: 2, fields: ["status", "spread", "dialects"] }
218
+ ],
219
+ ["law" /* Law */]: [
220
+ { name: "Code", order: 1, fields: ["declaration", "purpose", "date", "parent_law", "penalties"] },
221
+ { name: "World", order: 2, fields: ["author", "locations", "zones", "prohibitions", "adjudicators", "enforcers"] }
222
+ ],
223
+ ["location" /* Location */]: [
224
+ { name: "Setting", order: 1, fields: ["form", "function", "founding_date", "parent_location", "populations"] },
225
+ { name: "Politics", order: 2, fields: ["political_climate", "primary_power", "governing_title", "secondary_powers", "zone", "rival", "partner"] },
226
+ { name: "World", order: 3, fields: ["customs", "founders", "cults", "delicacies"] },
227
+ { name: "Production", order: 4, fields: ["extraction_methods", "extraction_goods", "industry_methods", "industry_goods"] },
228
+ { name: "Commerce", order: 5, fields: ["infrastructure", "extraction_markets", "industry_markets", "currencies"] },
229
+ { name: "Construction", order: 6, fields: ["architecture", "buildings", "building_methods"] },
230
+ { name: "Defense", order: 7, fields: ["defensibility", "elevation", "fighters", "defensive_objects"] }
231
+ ],
232
+ ["map" /* Map */]: [
233
+ { name: "Details", order: 1, fields: ["background_color", "hierarchy", "width", "height", "depth", "parent_map", "location"] }
234
+ ],
235
+ ["marker" /* Marker */]: [
236
+ { name: "Details", order: 1, fields: ["map", "zone", "x", "y", "z"] }
237
+ ],
238
+ ["narrative" /* Narrative */]: [
239
+ { name: "Context", order: 1, fields: ["story", "consequences", "start_date", "end_date", "order", "parent_narrative", "protagonist", "antagonist", "narrator", "conservator"] },
240
+ { name: "Involves", order: 2, fields: ["events", "characters", "objects", "locations", "species", "creatures", "institutions", "traits", "collectives", "zones", "abilities", "phenomena", "languages", "families", "relations", "titles", "constructs", "laws"] }
241
+ ],
242
+ ["object" /* Object */]: [
243
+ { name: "Form", order: 1, fields: ["aesthetics", "weight", "amount", "parent_object", "materials", "technology"] },
244
+ { name: "Function", order: 2, fields: ["utility", "effects", "abilities", "consumes"] },
245
+ { name: "World", order: 3, fields: ["origins", "location", "language", "affinities"] }
246
+ ],
247
+ ["phenomenon" /* Phenomenon */]: [
248
+ { name: "Mechanics", order: 1, fields: ["expression", "effects", "duration", "catalysts", "empowerments"] },
249
+ { name: "World", order: 2, fields: ["mythology", "system", "triggers", "wielders", "environments"] }
250
+ ],
251
+ ["pin" /* Pin */]: [
252
+ { name: "Details", order: 1, fields: ["map", "element_type", "element_id", "element", "x", "y", "z"] }
253
+ ],
254
+ ["relation" /* Relation */]: [
255
+ { name: "Nature", order: 1, fields: ["background", "start_date", "end_date", "intensity", "actor", "events"] },
256
+ { name: "Involves", order: 2, fields: ["characters", "objects", "locations", "species", "creatures", "institutions", "traits", "collectives", "zones", "abilities", "phenomena", "languages", "families", "relations", "titles", "constructs", "events", "narratives"] }
257
+ ],
258
+ ["species" /* Species */]: [
259
+ { name: "Biology", order: 1, fields: ["appearance", "life_span", "weight", "nourishment", "reproduction", "adaptations"] },
260
+ { name: "Psychology", order: 2, fields: ["instincts", "sociality", "temperament", "communication", "aggression", "traits"] },
261
+ { name: "World", order: 3, fields: ["role", "parent_species", "locations", "zones", "affinities"] }
262
+ ],
263
+ ["title" /* Title */]: [
264
+ { name: "Mandate", order: 1, fields: ["authority", "eligibility", "grant_date", "revoke_date", "issuer", "body", "superior_title", "holders", "symbols"] },
265
+ { name: "World", order: 2, fields: ["status", "history", "characters", "institutions", "families", "zones", "locations", "objects", "constructs", "laws", "collectives", "creatures", "phenomena", "species", "languages"] }
266
+ ],
267
+ ["trait" /* Trait */]: [
268
+ { name: "Qualitative", order: 1, fields: ["social_effects", "physical_effects", "functional_effects", "personality_effects", "behaviour_effects"] },
269
+ { name: "Quantitative", order: 2, fields: ["charisma", "coercion", "competence", "compassion", "creativity", "courage"] },
270
+ { name: "World", order: 3, fields: ["significance", "anti_trait", "empowered_abilities"] }
271
+ ],
272
+ ["zone" /* Zone */]: [
273
+ { name: "Scope", order: 1, fields: ["role", "start_date", "end_date", "phenomena", "linked_zones"] },
274
+ { name: "World", order: 2, fields: ["context", "populations", "titles", "principles"] }
275
+ ]
276
+ };
277
+ function getElementSections(elementType) {
278
+ return ELEMENT_SECTIONS[elementType] || [];
279
+ }
174
280
  var ONLYWORLDS_VERSION = "00.30.00";
175
- var ELEMENT_MATERIAL_ICONS = {
281
+ var ELEMENT_ICONS = {
176
282
  ["ability" /* Ability */]: "auto_fix_normal",
177
283
  ["character" /* Character */]: "person",
178
284
  ["collective" /* Collective */]: "groups_3",
@@ -196,30 +302,6 @@ var ELEMENT_MATERIAL_ICONS = {
196
302
  ["trait" /* Trait */]: "flaky",
197
303
  ["zone" /* Zone */]: "architecture"
198
304
  };
199
- var ELEMENT_FONTAWESOME_ICONS = {
200
- ["ability" /* Ability */]: "fa-wand-magic-sparkles",
201
- ["character" /* Character */]: "fa-user",
202
- ["collective" /* Collective */]: "fa-people-group",
203
- ["construct" /* Construct */]: "fa-gear",
204
- ["creature" /* Creature */]: "fa-dragon",
205
- ["event" /* Event */]: "fa-calendar-days",
206
- ["family" /* Family */]: "fa-users",
207
- ["institution" /* Institution */]: "fa-building",
208
- ["language" /* Language */]: "fa-language",
209
- ["law" /* Law */]: "fa-gavel",
210
- ["location" /* Location */]: "fa-location-dot",
211
- ["map" /* Map */]: "fa-map",
212
- ["marker" /* Marker */]: "fa-map-marker-alt",
213
- ["narrative" /* Narrative */]: "fa-book",
214
- ["object" /* Object */]: "fa-cube",
215
- ["phenomenon" /* Phenomenon */]: "fa-bolt",
216
- ["pin" /* Pin */]: "fa-thumbtack",
217
- ["relation" /* Relation */]: "fa-link",
218
- ["species" /* Species */]: "fa-dna",
219
- ["title" /* Title */]: "fa-crown",
220
- ["trait" /* Trait */]: "fa-snowflake",
221
- ["zone" /* Zone */]: "fa-layer-group"
222
- };
223
305
  var ELEMENT_UNICODE_ICONS = {
224
306
  ["ability" /* Ability */]: "\u2728",
225
307
  ["character" /* Character */]: "\u{1F464}",
@@ -244,15 +326,14 @@ var ELEMENT_UNICODE_ICONS = {
244
326
  ["trait" /* Trait */]: "\u2744\uFE0F",
245
327
  ["zone" /* Zone */]: "\u{1F5FA}\uFE0F"
246
328
  };
247
- function getElementMaterialIcon(elementType) {
248
- return ELEMENT_MATERIAL_ICONS[elementType];
249
- }
250
- function getElementFontAwesomeIcon(elementType) {
251
- return ELEMENT_FONTAWESOME_ICONS[elementType];
329
+ function getElementIcon(elementType) {
330
+ return ELEMENT_ICONS[elementType];
252
331
  }
253
332
  function getElementUnicodeIcon(elementType) {
254
333
  return ELEMENT_UNICODE_ICONS[elementType];
255
334
  }
335
+ var ELEMENT_MATERIAL_ICONS = ELEMENT_ICONS;
336
+ var getElementMaterialIcon = getElementIcon;
256
337
  var FIELD_SCHEMA = {
257
338
  ability: {
258
339
  // Text fields
@@ -719,9 +800,10 @@ function createAnyElementId(id) {
719
800
  return id;
720
801
  }
721
802
  export {
722
- ELEMENT_FONTAWESOME_ICONS,
803
+ ELEMENT_ICONS,
723
804
  ELEMENT_LABELS,
724
805
  ELEMENT_MATERIAL_ICONS,
806
+ ELEMENT_SECTIONS,
725
807
  ELEMENT_UNICODE_ICONS,
726
808
  ElementType,
727
809
  FIELD_MAPPINGS,
@@ -731,8 +813,9 @@ export {
731
813
  createAnyElementId,
732
814
  createElementId,
733
815
  createElementIds,
734
- getElementFontAwesomeIcon,
816
+ getElementIcon,
735
817
  getElementLabel,
736
818
  getElementMaterialIcon,
819
+ getElementSections,
737
820
  getElementUnicodeIcon
738
821
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onlyworlds/sdk",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "TypeScript SDK for the OnlyWorlds API - build world-building applications with type safety",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",