@cratis/event-models 0.324.3 → 0.325.1

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,6 +1,6 @@
1
1
  import { a as I, c as V, i as _, n as J, o as O, r as w, s as F, t as K, u as Q } from "./defaultStructuredEditorStrings-BPl2XP8A.js";
2
- import { c as j } from "./structuredValue-vqCZttsk.js";
3
- import { t as D } from "./StructuredValueEditor-DUSATTWd.js";
2
+ import { t as j } from "./StructuredValueEditor-DUSATTWd.js";
3
+ import { c as D } from "./structuredValue-vqCZttsk.js";
4
4
  import { useEffect as $, useRef as E, useState as T } from "react";
5
5
  import { Fragment as R, jsx as t, jsxs as l } from "react/jsx-runtime";
6
6
  import { BindingMode as q, BindingSourceKind as s, PropertyValueType as P } from "@cratis/scene.model";
@@ -236,7 +236,7 @@ var u = /* @__PURE__ */ (function(e) {
236
236
  g(i);
237
237
  const C = x(i);
238
238
  h.current = S(C, c), o(C);
239
- }, y = j(r);
239
+ }, y = D(r);
240
240
  return /* @__PURE__ */ l("div", {
241
241
  className: "studio-editor-binding__literal",
242
242
  children: [
@@ -287,7 +287,7 @@ var u = /* @__PURE__ */ (function(e) {
287
287
  })]
288
288
  })] }),
289
289
  a === u.Null && /* @__PURE__ */ t("p", { children: d.literalNull }),
290
- a === u.Json && y && /* @__PURE__ */ t(D, {
290
+ a === u.Json && y && /* @__PURE__ */ t(j, {
291
291
  descriptor: r,
292
292
  value: e,
293
293
  idPrefix: "literal",
@@ -1,5 +1,5 @@
1
- import { a as u, i as D, r as T, t as A } from "./iconDiagnostics-Ds4CnqD0.js";
2
- import { n as P, t as $ } from "./allowedIconChoices-KSkQ6blx.js";
1
+ import { n as T, t as A } from "./allowedIconChoices-KSkQ6blx.js";
2
+ import { a as u, i as D, r as P, t as $ } from "./iconDiagnostics-Ds4CnqD0.js";
3
3
  import { StructuredPropertyEditor as U } from "./StructuredPropertyEditor-Bd-8GBgK.js";
4
4
  import { jsx as n, jsxs as c } from "react/jsx-runtime";
5
5
  import { CollectionOperation as C, DestinationKind as v, PropertyValueType as L, SceneEditKind as O } from "@cratis/scene.model";
@@ -252,7 +252,7 @@ function Y(e) {
252
252
  var ee = ({ context: e }) => {
253
253
  const { session: i } = e;
254
254
  if (!i) return null;
255
- const { controller: t, environment: r, property: s, screenStrings: p } = i, m = e.selection?.id ?? "", I = r.destinations, a = e.lookups.icons, { items: b, fixed: d } = V(s), h = A(a.diagnostics, s.descriptor.path), y = W(s), g = y.fields.destination !== "readonly" || s.editable, k = [...d, ...b].filter((l) => l.destination !== void 0 || l.destinationReference !== void 0 || g), o = T(r, t.document), R = te(o, s), S = (l, f) => {
255
+ const { controller: t, environment: r, property: s, screenStrings: p } = i, m = e.selection?.id ?? "", I = r.destinations, a = e.lookups.icons, { items: b, fixed: d } = V(s), h = $(a.diagnostics, s.descriptor.path), y = W(s), g = y.fields.destination !== "readonly" || s.editable, k = [...d, ...b].filter((l) => l.destination !== void 0 || l.destinationReference !== void 0 || g), o = P(r, t.document), R = te(o, s), S = (l, f) => {
256
256
  t.setCollectionItemDestination(m, s.descriptor.path, l.id, f, p.properties.destination.label);
257
257
  };
258
258
  return /* @__PURE__ */ c("section", {
@@ -263,10 +263,10 @@ var ee = ({ context: e }) => {
263
263
  capabilities: y,
264
264
  destinations: I,
265
265
  validation: h,
266
- renderIconField: (l) => /* @__PURE__ */ n(P, {
266
+ renderIconField: (l) => /* @__PURE__ */ n(T, {
267
267
  value: l.value,
268
268
  onChange: l.onChange,
269
- allowed: $(s.descriptor.item?.properties.find((f) => f.path === "icon")?.choices),
269
+ allowed: A(s.descriptor.item?.properties.find((f) => f.path === "icon")?.choices),
270
270
  catalog: a.catalog,
271
271
  adapters: a.adapters,
272
272
  readOnly: l.readOnly,
@@ -0,0 +1,4 @@
1
+ import type { CrashReportRequest } from './crashReport';
2
+ export type CrashReporter = (request: CrashReportRequest) => void;
3
+ export declare const CrashReporterProvider: import("react").Provider<CrashReporter | undefined>;
4
+ export declare const useCrashReporter: () => CrashReporter | undefined;
@@ -4,6 +4,7 @@ export interface CrashStrings {
4
4
  title: string;
5
5
  /** The line under the heading. */
6
6
  lead: string;
7
+ leadReporting?: string;
7
8
  /** The label of the line that names the surface. */
8
9
  surface: string;
9
10
  /** The label of the line that names the component that threw. */
@@ -69,6 +69,7 @@ export type CrashReportLinkBuilder = (request: CrashReportRequest) => string;
69
69
  * @param builder Makes the address of a report.
70
70
  */
71
71
  export declare function configureCrashReportLinks(builder: CrashReportLinkBuilder): void;
72
+ export declare function crashReportRequest(error: unknown, context: CrashContext, componentStack?: string | null): CrashReportRequest;
72
73
  /**
73
74
  * The address a report opens. The summary is always in it; the full detail is copied to the clipboard as well, because an address has to stay short.
74
75
  *