@yellowcode/mod 0.2.0-beta.2 → 0.2.0-beta.3

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.
Files changed (2) hide show
  1. package/index.d.ts +5 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  import type { KeyEvent, RGBA } from "@opentui/core"
3
3
  import type { Component, JSX } from "solid-js"
4
4
 
5
- export declare const apiVersion = "0.2.0"
5
+ export declare const apiVersion = "0.2.1"
6
6
 
7
7
  export type ModTheme = {
8
8
  readonly background: RGBA | null
@@ -268,6 +268,7 @@ export type ModFence = {
268
268
  width: number
269
269
  },
270
270
  ) => JSX.Element
271
+ instructions?: string
271
272
  }
272
273
  export type ModOverridePoints = {
273
274
  "user-message": {
@@ -371,6 +372,9 @@ export type ModApi<S extends ModSettingDefinitions = ModSettingDefinitions> = {
371
372
  readonly fences: {
372
373
  add(fence: ModFence): Dispose
373
374
  }
375
+ readonly instructions: {
376
+ add(text: string): Dispose
377
+ }
374
378
  readonly toolRows: {
375
379
  add(renderer: ModRowRenderer): Dispose
376
380
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yellowcode/mod",
3
- "version": "0.2.0-beta.2",
3
+ "version": "0.2.0-beta.3",
4
4
  "description": "Types of the YellowCode mod API",
5
5
  "license": "GPL-3.0-only",
6
6
  "author": "Arda Sarı",