jaml-ui 0.25.3 → 0.26.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.
@@ -26,8 +26,8 @@ export interface JamlIdeProps {
26
26
  onSearch?: () => void;
27
27
  isSearching?: boolean;
28
28
  onTestSeed?: (seed: string) => void;
29
- jimbolateResult?: "idle" | "match" | "nomatch" | "running" | "error";
30
- jimbolateError?: string | null;
29
+ jamlyzerResult?: "idle" | "match" | "nomatch" | "running" | "error";
30
+ jamlyzerError?: string | null;
31
31
  /**
32
32
  * Controlled visual filter. When provided alongside `onVisualFilterChange`, the Visual tab
33
33
  * is fully controlled by the parent. When absent, the Visual tab auto-derives from the text.
@@ -37,4 +37,4 @@ export interface JamlIdeProps {
37
37
  }
38
38
  export type { JamlVisualFilter } from './JamlIdeVisual.js';
39
39
  export type { JamlVisualClause, JamlZone } from './JamlIdeVisual.js';
40
- export declare function JamlIde({ jaml, defaultJaml, onChange, defaultMode, searchResults, className, style, title, subtitle, compactHeader, actions, codePlaceholder, onSearch, isSearching, onTestSeed, jimbolateResult, jimbolateError, visualFilter, onVisualFilterChange, }: JamlIdeProps): import("react/jsx-runtime").JSX.Element;
40
+ export declare function JamlIde({ jaml, defaultJaml, onChange, defaultMode, searchResults, className, style, title, subtitle, compactHeader, actions, codePlaceholder, onSearch, isSearching, onTestSeed, jamlyzerResult, jamlyzerError, visualFilter, onVisualFilterChange, }: JamlIdeProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- export type JamlIdeMode = "visual" | "code" | "map" | "results" | "jimbolate";
1
+ export type JamlIdeMode = "visual" | "code" | "map" | "results" | "jamlyzer";
2
2
  export interface JamlIdeToolbarProps {
3
3
  mode: JamlIdeMode;
4
4
  onModeChange: (mode: JamlIdeMode) => void;
@@ -0,0 +1,7 @@
1
+ export interface JamlyzerProps {
2
+ jaml: string;
3
+ onTest: (seed: string) => void;
4
+ result: "idle" | "match" | "nomatch" | "running" | "error";
5
+ error?: string | null;
6
+ }
7
+ export declare function Jamlyzer({ jaml, onTest, result, error }: JamlyzerProps): import("react/jsx-runtime").JSX.Element;
package/dist/index.js CHANGED
@@ -3199,8 +3199,8 @@ function bn({ mode: e, onModeChange: t, resultCount: n = 0, className: r = "", o
3199
3199
  label: n > 0 ? `Results (${n})` : "Results"
3200
3200
  },
3201
3201
  {
3202
- id: "jimbolate",
3203
- label: "Jimbolate"
3202
+ id: "jamlyzer",
3203
+ label: "Jamlyzer"
3204
3204
  }
3205
3205
  ];
3206
3206
  return /* @__PURE__ */ A("div", {
@@ -15228,7 +15228,7 @@ function Hg({ value: e, onChange: t, placeholder: n = "", minHeight: r = 320 })
15228
15228
  });
15229
15229
  }
15230
15230
  //#endregion
15231
- //#region src/components/Jimbolate.tsx
15231
+ //#region src/components/Jamlyzer.tsx
15232
15232
  function Ug({ jaml: e, onTest: t, result: n, error: r }) {
15233
15233
  let [i, o] = O(""), s = D(null), c = () => {
15234
15234
  let e = i.trim().toUpperCase();
@@ -15621,7 +15621,7 @@ function i_({ results: e, jaml: t }) {
15621
15621
  })
15622
15622
  });
15623
15623
  }
15624
- function a_({ jaml: e, defaultJaml: t, onChange: n, defaultMode: r = "code", searchResults: i = [], className: a = "", style: o, title: s = "JAML IDE", subtitle: l = "Jimbo's Ante Markup Language", compactHeader: u = !1, actions: d, codePlaceholder: f = "Enter JAML...", onSearch: p, isSearching: m = !1, onTestSeed: h, jimbolateResult: g = "idle", jimbolateError: _, visualFilter: v, onVisualFilterChange: y }) {
15624
+ function a_({ jaml: e, defaultJaml: t, onChange: n, defaultMode: r = "code", searchResults: i = [], className: a = "", style: o, title: s = "JAML IDE", subtitle: l = "Jimbo's Ante Markup Language", compactHeader: u = !1, actions: d, codePlaceholder: f = "Enter JAML...", onSearch: p, isSearching: m = !1, onTestSeed: h, jamlyzerResult: g = "idle", jamlyzerError: _, visualFilter: v, onVisualFilterChange: y }) {
15625
15625
  let [b, x] = O(r), [ee, te] = O(e ?? t ?? ""), [S, ne] = O(e);
15626
15626
  e !== S && (ne(e), e !== void 0 && te(e));
15627
15627
  let C = ee, re = (e) => {
@@ -15743,7 +15743,7 @@ function a_({ jaml: e, defaultJaml: t, onChange: n, defaultMode: r = "code", sea
15743
15743
  jaml: C
15744
15744
  })
15745
15745
  }) : null,
15746
- b === "jimbolate" ? /* @__PURE__ */ k(Ug, {
15746
+ b === "jamlyzer" ? /* @__PURE__ */ k(Ug, {
15747
15747
  jaml: C,
15748
15748
  onTest: (e) => h?.(e),
15749
15749
  result: g,