zen-flow 2.6.6 → 2.7.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/zenflow.cjs CHANGED
@@ -279,8 +279,8 @@ const removeFabricatorFuel = (id) => `mods.forestry.ThermionicFabricator.removeS
279
279
  const addDict = (dict, ids) => ids.map((id) => `${dict}.add(${id});`).join("\n");
280
280
  const removeDict = (dict, ids) => ids.map((id) => `${dict}.remove(${id});`).join("\n");
281
281
  const withName = (id, name) => `${id}.displayName = ${formatName(name)};`;
282
- const withTooltip = (id, tooltip) => `${id}.addTooltip(${formatTooltip(tooltip)});`;
283
- const withTooltipShift = (id, tooltip) => `${id}.addShiftTooltip(${formatTooltip(tooltip)});`;
282
+ const withTooltip = (id, ...tooltips) => tooltips.map((tooltip) => `${id}.addTooltip(${formatTooltip(tooltip)});`).join("\n");
283
+ const withTooltipShift = (id, ...tooltips) => tooltips.map((tooltip) => `${id}.addShiftTooltip(${formatTooltip(tooltip)});`).join("\n");
284
284
  const withTag = (tag) => (id) => `${id}.withTag(${tag})`;
285
285
  const withEnchantment = (enchantments) => withTag(`{ ench: ${formatList(toArray(enchantments).map(formatEnchantment))} }`);
286
286
 
package/dist/zenflow.d.ts CHANGED
@@ -262,8 +262,8 @@ declare const addDict: (dict: string, ids: string[]) => string;
262
262
  */
263
263
  declare const removeDict: (dict: string, ids: string[]) => string;
264
264
  declare const withName: (id: string, name: Text) => string;
265
- declare const withTooltip: (id: string, tooltip: Text | Text[]) => string;
266
- declare const withTooltipShift: (id: string, tooltip: Text | Text[]) => string;
265
+ declare const withTooltip: (id: string, ...tooltips: Array<Text | Text[]>) => string;
266
+ declare const withTooltipShift: (id: string, ...tooltips: Array<Text | Text[]>) => string;
267
267
  declare const withTag: (tag: string) => (id: string) => string;
268
268
  declare const withEnchantment: (enchantments: Enchantment | Enchantment[]) => (id: string) => string;
269
269
 
package/dist/zenflow.mjs CHANGED
@@ -275,8 +275,8 @@ const removeFabricatorFuel = (id) => `mods.forestry.ThermionicFabricator.removeS
275
275
  const addDict = (dict, ids) => ids.map((id) => `${dict}.add(${id});`).join("\n");
276
276
  const removeDict = (dict, ids) => ids.map((id) => `${dict}.remove(${id});`).join("\n");
277
277
  const withName = (id, name) => `${id}.displayName = ${formatName(name)};`;
278
- const withTooltip = (id, tooltip) => `${id}.addTooltip(${formatTooltip(tooltip)});`;
279
- const withTooltipShift = (id, tooltip) => `${id}.addShiftTooltip(${formatTooltip(tooltip)});`;
278
+ const withTooltip = (id, ...tooltips) => tooltips.map((tooltip) => `${id}.addTooltip(${formatTooltip(tooltip)});`).join("\n");
279
+ const withTooltipShift = (id, ...tooltips) => tooltips.map((tooltip) => `${id}.addShiftTooltip(${formatTooltip(tooltip)});`).join("\n");
280
280
  const withTag = (tag) => (id) => `${id}.withTag(${tag})`;
281
281
  const withEnchantment = (enchantments) => withTag(`{ ench: ${formatList(toArray(enchantments).map(formatEnchantment))} }`);
282
282
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zen-flow",
3
- "version": "2.6.6",
3
+ "version": "2.7.0",
4
4
  "description": "MineTweaker ZenScript made easy.",
5
5
  "main": "dist/zenflow.cjs",
6
6
  "module": "dist/zenflow.mjs",