@lotics/app-sdk 0.117.0 → 0.117.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.
Files changed (2) hide show
  1. package/dist/index.js +8 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -126,7 +126,7 @@ function installVisibleErrorHandlers(container) {
126
126
  container.parentElement?.insertBefore(banner, container);
127
127
  };
128
128
  window.addEventListener("error", (e) => {
129
- showError(`Uncaught error: ${e.message}
129
+ if (e.error !== null && e.error !== void 0) showError(`Uncaught error: ${e.message}
130
130
  ${e.error?.stack ?? ""}`);
131
131
  reportAppError("uncaught", e.error ?? e.message);
132
132
  });
@@ -24277,6 +24277,7 @@ var kitGlyphSchema = zod_default.string().superRefine((name, ctx) => {
24277
24277
  const refused = kitGlyphRefusal(name);
24278
24278
  if (refused !== void 0) ctx.addIssue({ code: "custom", message: refused });
24279
24279
  });
24280
+ var AVATAR_SUBJECTS = ["person", "organization"];
24280
24281
  var optionMarkSchema = zod_default.discriminatedUnion("kind", [
24281
24282
  zod_default.object({
24282
24283
  kind: zod_default.literal("brand"),
@@ -24285,12 +24286,16 @@ var optionMarkSchema = zod_default.discriminatedUnion("kind", [
24285
24286
  zod_default.object({
24286
24287
  kind: zod_default.literal("icon"),
24287
24288
  name: kitGlyphSchema.describe(`A kebab-case glyph from the kit's curated Lucide set, e.g. "wrench"`)
24289
+ }).strict(),
24290
+ zod_default.object({
24291
+ kind: zod_default.literal("avatar"),
24292
+ name: zod_default.enum(AVATAR_SUBJECTS).describe("Who the option IS, drawn as a face from its label: a person's disc or an organization's square")
24288
24293
  }).strict()
24289
24294
  ]).describe(
24290
- `The option's own mark, drawn in place of its colour dot wherever the option is shown: the brand it is ({kind: "brand"}) or a kit glyph ({kind: "icon"}). Every option of a field has one, or none does`
24295
+ `The option's own mark, drawn in place of its colour dot wherever the option is shown: the brand it is ({kind: "brand"}), a kit glyph ({kind: "icon"}) or the face of who it is ({kind: "avatar"}). Every option of a field has one, or none does`
24291
24296
  );
24292
24297
  var storedOptionMarkSchema = zod_default.object({ kind: zod_default.string(), name: zod_default.string() }).describe(
24293
- `The option's own mark, drawn in place of its colour dot wherever the option is shown: the brand it is ({kind: "brand", name: one of ${BRAND_NAMES.join(", ")}}) or a kit glyph ({kind: "icon", name: "wrench"}). Every option of a field has one, or none does. A mark a reader does not draw falls back to the dot`
24298
+ `The option's own mark, drawn in place of its colour dot wherever the option is shown: the brand it is ({kind: "brand", name: one of ${BRAND_NAMES.join(", ")}}) a kit glyph ({kind: "icon", name: "wrench"}) or the face of who it is, drawn from its label ({kind: "avatar", name: "person" or "organization"}). Every option of a field has one, or none does. A mark a reader does not draw falls back to the dot`
24294
24299
  );
24295
24300
  function unevenMarks(options, nameOf2) {
24296
24301
  const bare = options.flatMap((option, index) => option.mark === void 0 ? [nameOf2(index)] : []);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lotics/app-sdk",
3
- "version": "0.117.0",
3
+ "version": "0.117.1",
4
4
  "description": "The SDK a Lotics custom-code app reads and writes through — typed hooks over the host bridge, cell readers, mount() and AppRouter",
5
5
  "type": "module",
6
6
  "exports": {