@nesso-how/plugin 1.0.0-beta.16 → 1.0.0-beta.17

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/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { C as PluginStorageKey, F as ImageRenderOptions, G as resolveRelationTypeLabel, H as ThemeDefinition, I as RenderedImage, J as SavedView, K as GraphSnapshot, L as PluginError, S as PluginStorage, T as PluginStorageScope, X as ViewGraphSnapshot, Y as Selection, Z as VocabDefinition, a as ActionDescriptor, c as PluginI18n, i as ActionContribution, l as PluginManifest, n as ActionBadgeResult, o as ActionIconName, q as NessoOperation, r as ActionContext, s as ActionState, t as ActionBadgeInput, u as actionIconNames, w as PluginStorageRecord, z as LocalizedText } from "./runtime-B6vu2uAB.js";
1
+ import { B as LocalizedText, C as PluginStorage, E as PluginStorageScope, I as ImageRenderOptions, J as NessoOperation, K as resolveRelationTypeLabel, L as RenderedImage, Q as VocabDefinition, R as PluginError, T as PluginStorageRecord, U as ThemeDefinition, X as Selection, Y as SavedView, Z as ViewGraphSnapshot, a as ActionDescriptor, c as PluginI18n, i as ActionContribution, l as PluginManifest, n as ActionBadgeResult, o as ActionIconName, q as GraphSnapshot, r as ActionContext, s as ActionState, t as ActionBadgeInput, u as actionIconNames, w as PluginStorageKey } from "./runtime-D4-WzVaE.js";
2
2
  export { type ActionBadgeInput, type ActionBadgeResult, type ActionContext, type ActionContribution, type ActionDescriptor, type ActionIconName, type ActionState, type GraphSnapshot, type ImageRenderOptions, type LocalizedText, type NessoOperation, PluginError, type PluginI18n, type PluginManifest, type PluginStorage, type PluginStorageKey, type PluginStorageRecord, type PluginStorageScope, type RenderedImage, type SavedView, type Selection, type ThemeDefinition, type ViewGraphSnapshot, type VocabDefinition, actionIconNames, resolveRelationTypeLabel };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { S as PluginError, t as actionIconNames } from "./runtime-D7mWRns_.js";
1
+ import { C as PluginError, t as actionIconNames } from "./runtime-vadDPH4B.js";
2
2
  //#region ../core/dist/vocab.js
3
3
  function resolveRelationTypeLabel(type, vocabs, locale) {
4
4
  for (const vocab of vocabs) {
@@ -66,6 +66,7 @@ export type PluginI18n = DeepReadonly<{
66
66
  [key: string]: LocalizedText | z.infer<typeof metadata>;
67
67
  }>;
68
68
  export declare function parsePluginI18n(value: unknown): PluginI18n;
69
+ export declare const pluginApiVersion = 4;
69
70
  declare const manifest: z.ZodDiscriminatedUnion<[z.ZodObject<{
70
71
  apiVersion: z.ZodLiteral<4>;
71
72
  kind: z.ZodLiteral<"actions">;
@@ -117,8 +117,9 @@ export function parsePluginI18n(value) {
117
117
  checkMessageSize(value, 64 * 1024);
118
118
  return parseOrThrow(pluginI18n, value, 'i18n.');
119
119
  }
120
+ export const pluginApiVersion = 4;
120
121
  const manifestFields = {
121
- apiVersion: z.literal(4),
122
+ apiVersion: z.literal(pluginApiVersion),
122
123
  };
123
124
  const jsEntry = z
124
125
  .string()
package/dist/package.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { c as PluginI18n, l as PluginManifest } from "./runtime-B6vu2uAB.js";
1
+ import { c as PluginI18n, l as PluginManifest } from "./runtime-D4-WzVaE.js";
2
2
  //#region src/package.d.ts
3
3
  export declare const packageLimits: {
4
4
  readonly entry: number;
package/dist/package.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as parseOrThrow, S as PluginError, g as checkMessageSize, o as parsePluginI18n, s as parsePluginManifest, u as sha256Hex, v as parseDefinition } from "./runtime-D7mWRns_.js";
1
+ import { C as PluginError, _ as checkMessageSize, d as sha256Hex, o as parsePluginI18n, s as parsePluginManifest, w as parseOrThrow, y as parseDefinition } from "./runtime-vadDPH4B.js";
2
2
  import { z } from "zod";
3
3
  import parseVersion from "semver/functions/parse.js";
4
4
  import validateName from "validate-npm-package-name";
@@ -518,6 +518,7 @@ type PluginI18n = DeepReadonly<{
518
518
  [key: string]: LocalizedText | z.infer<typeof metadata>;
519
519
  }>;
520
520
  declare function parsePluginI18n(value: unknown): PluginI18n;
521
+ declare const pluginApiVersion = 4;
521
522
  declare const manifest: z.ZodDiscriminatedUnion<[z.ZodObject<{
522
523
  apiVersion: z.ZodLiteral<4>;
523
524
  kind: z.ZodLiteral<"actions">;
@@ -1037,4 +1038,4 @@ declare function createPluginClient(port: MessagePort, initial: unknown): {
1037
1038
  getPresentation: () => Pick<ActionState, 'theme' | 'locale'>;
1038
1039
  };
1039
1040
  //#endregion
1040
- export { FileOpenOptions as A, resolvePluginText as B, PluginStorageKey as C, parsePluginStorageRecord as D, parsePluginStorageKey as E, ImageRenderOptions as F, resolveRelationTypeLabel as G, ThemeDefinition as H, RenderedImage as I, SavedView as J, GraphSnapshot as K, PluginError as L, FileSaveOptions as M, fileTextLimit as N, parsePluginStorageSnapshot as O, parseFileOptions as P, parseOrThrow as R, PluginStorage as S, PluginStorageScope as T, parseDefinition as U, Definition as V, themeColors as W, ViewGraphSnapshot as X, Selection as Y, VocabDefinition as Z, parsePluginMessage as _, ActionDescriptor as a, themeTokens as b, PluginI18n as c, badgeLimits as d, createPluginClient as f, parsePluginManifest as g, parsePluginI18n as h, ActionContribution as i, FileOpenResult as j, pluginStorageLimits as k, PluginManifest as l, parseContribution as m, ActionBadgeResult as n, ActionIconName as o, parseActionBadgeResult as p, NessoOperation as q, ActionContext as r, ActionState as s, ActionBadgeInput as t, actionIconNames as u, runtimeLimits as v, PluginStorageRecord as w, checkMessageSize as x, sha256Hex as y, LocalizedText as z };
1041
+ export { pluginStorageLimits as A, LocalizedText as B, PluginStorage as C, parsePluginStorageKey as D, PluginStorageScope as E, parseFileOptions as F, themeColors as G, Definition as H, ImageRenderOptions as I, NessoOperation as J, resolveRelationTypeLabel as K, RenderedImage as L, FileOpenResult as M, FileSaveOptions as N, parsePluginStorageRecord as O, fileTextLimit as P, VocabDefinition as Q, PluginError as R, checkMessageSize as S, PluginStorageRecord as T, ThemeDefinition as U, resolvePluginText as V, parseDefinition as W, Selection as X, SavedView as Y, ViewGraphSnapshot as Z, parsePluginMessage as _, ActionDescriptor as a, sha256Hex as b, PluginI18n as c, badgeLimits as d, createPluginClient as f, parsePluginManifest as g, parsePluginI18n as h, ActionContribution as i, FileOpenOptions as j, parsePluginStorageSnapshot as k, PluginManifest as l, parseContribution as m, ActionBadgeResult as n, ActionIconName as o, parseActionBadgeResult as p, GraphSnapshot as q, ActionContext as r, ActionState as s, ActionBadgeInput as t, actionIconNames as u, pluginApiVersion as v, PluginStorageKey as w, themeTokens as x, runtimeLimits as y, parseOrThrow as z };
@@ -835,6 +835,7 @@ function parsePluginI18n(value) {
835
835
  checkMessageSize(value, 65536);
836
836
  return parseOrThrow(pluginI18n, value, "i18n.");
837
837
  }
838
+ const pluginApiVersion = 4;
838
839
  const manifestFields = { apiVersion: z.literal(4) };
839
840
  const jsEntry = z.string().max(240).regex(/^(?:[\w-]+\/)*[\w-]+\.js$/);
840
841
  const jsonEntry = z.string().max(240).regex(/^(?:[\w-]+\/)*[\w-]+\.json$/);
@@ -1282,4 +1283,4 @@ function createPluginClient(port, initial) {
1282
1283
  };
1283
1284
  }
1284
1285
  //#endregion
1285
- export { parseOrThrow as C, PluginError as S, resolvePluginText as _, parseContribution as a, fileTextLimit as b, parsePluginMessage as c, themeTokens as d, parsePluginStorageKey as f, checkMessageSize as g, pluginStorageLimits as h, parseActionBadgeResult as i, runtimeLimits as l, parsePluginStorageSnapshot as m, badgeLimits as n, parsePluginI18n as o, parsePluginStorageRecord as p, createPluginClient as r, parsePluginManifest as s, actionIconNames as t, sha256Hex as u, parseDefinition as v, parseFileOptions as x, themeColors as y };
1286
+ export { PluginError as C, parseFileOptions as S, checkMessageSize as _, parseContribution as a, themeColors as b, parsePluginMessage as c, sha256Hex as d, themeTokens as f, pluginStorageLimits as g, parsePluginStorageSnapshot as h, parseActionBadgeResult as i, pluginApiVersion as l, parsePluginStorageRecord as m, badgeLimits as n, parsePluginI18n as o, parsePluginStorageKey as p, createPluginClient as r, parsePluginManifest as s, actionIconNames as t, runtimeLimits as u, resolvePluginText as v, parseOrThrow as w, fileTextLimit as x, parseDefinition as y };
package/dist/runtime.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { A as FileOpenOptions, B as resolvePluginText, D as parsePluginStorageRecord, E as parsePluginStorageKey, F as ImageRenderOptions, I as RenderedImage, L as PluginError, M as FileSaveOptions, N as fileTextLimit, O as parsePluginStorageSnapshot, P as parseFileOptions, R as parseOrThrow, U as parseDefinition, V as Definition, W as themeColors, _ as parsePluginMessage, a as ActionDescriptor, b as themeTokens, c as PluginI18n, d as badgeLimits, f as createPluginClient, g as parsePluginManifest, h as parsePluginI18n, i as ActionContribution, j as FileOpenResult, k as pluginStorageLimits, l as PluginManifest, m as parseContribution, n as ActionBadgeResult, o as ActionIconName, p as parseActionBadgeResult, r as ActionContext, s as ActionState, t as ActionBadgeInput, u as actionIconNames, v as runtimeLimits, x as checkMessageSize, y as sha256Hex, z as LocalizedText } from "./runtime-B6vu2uAB.js";
2
- export { ActionBadgeInput, ActionBadgeResult, ActionContext, ActionContribution, ActionDescriptor, ActionIconName, ActionState, type Definition, type FileOpenOptions, type FileOpenResult, type FileSaveOptions, type ImageRenderOptions, type LocalizedText, PluginError, PluginI18n, PluginManifest, type RenderedImage, actionIconNames, badgeLimits, checkMessageSize, createPluginClient, fileTextLimit, parseActionBadgeResult, parseContribution, parseDefinition, parseFileOptions, parseOrThrow, parsePluginI18n, parsePluginManifest, parsePluginMessage, parsePluginStorageKey, parsePluginStorageRecord, parsePluginStorageSnapshot, pluginStorageLimits, resolvePluginText, runtimeLimits, sha256Hex, themeColors, themeTokens };
1
+ import { A as pluginStorageLimits, B as LocalizedText, D as parsePluginStorageKey, F as parseFileOptions, G as themeColors, H as Definition, I as ImageRenderOptions, L as RenderedImage, M as FileOpenResult, N as FileSaveOptions, O as parsePluginStorageRecord, P as fileTextLimit, R as PluginError, S as checkMessageSize, V as resolvePluginText, W as parseDefinition, _ as parsePluginMessage, a as ActionDescriptor, b as sha256Hex, c as PluginI18n, d as badgeLimits, f as createPluginClient, g as parsePluginManifest, h as parsePluginI18n, i as ActionContribution, j as FileOpenOptions, k as parsePluginStorageSnapshot, l as PluginManifest, m as parseContribution, n as ActionBadgeResult, o as ActionIconName, p as parseActionBadgeResult, r as ActionContext, s as ActionState, t as ActionBadgeInput, u as actionIconNames, v as pluginApiVersion, x as themeTokens, y as runtimeLimits, z as parseOrThrow } from "./runtime-D4-WzVaE.js";
2
+ export { ActionBadgeInput, ActionBadgeResult, ActionContext, ActionContribution, ActionDescriptor, ActionIconName, ActionState, type Definition, type FileOpenOptions, type FileOpenResult, type FileSaveOptions, type ImageRenderOptions, type LocalizedText, PluginError, PluginI18n, PluginManifest, type RenderedImage, actionIconNames, badgeLimits, checkMessageSize, createPluginClient, fileTextLimit, parseActionBadgeResult, parseContribution, parseDefinition, parseFileOptions, parseOrThrow, parsePluginI18n, parsePluginManifest, parsePluginMessage, parsePluginStorageKey, parsePluginStorageRecord, parsePluginStorageSnapshot, pluginApiVersion, pluginStorageLimits, resolvePluginText, runtimeLimits, sha256Hex, themeColors, themeTokens };
package/dist/runtime.js CHANGED
@@ -1 +1 @@
1
- export { S as PluginError, t as actionIconNames, n as badgeLimits, g as checkMessageSize, r as createPluginClient, b as fileTextLimit, i as parseActionBadgeResult, a as parseContribution, v as parseDefinition, x as parseFileOptions, C as parseOrThrow, o as parsePluginI18n, s as parsePluginManifest, c as parsePluginMessage, f as parsePluginStorageKey, p as parsePluginStorageRecord, m as parsePluginStorageSnapshot, h as pluginStorageLimits, _ as resolvePluginText, l as runtimeLimits, u as sha256Hex, y as themeColors, d as themeTokens } from "./runtime-D7mWRns_.js";
1
+ export { C as PluginError, t as actionIconNames, n as badgeLimits, _ as checkMessageSize, r as createPluginClient, x as fileTextLimit, i as parseActionBadgeResult, a as parseContribution, y as parseDefinition, S as parseFileOptions, w as parseOrThrow, o as parsePluginI18n, s as parsePluginManifest, c as parsePluginMessage, p as parsePluginStorageKey, m as parsePluginStorageRecord, h as parsePluginStorageSnapshot, l as pluginApiVersion, g as pluginStorageLimits, v as resolvePluginText, u as runtimeLimits, d as sha256Hex, b as themeColors, f as themeTokens } from "./runtime-vadDPH4B.js";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nesso-how/plugin-example",
3
- "version": "1.0.0-beta.16",
3
+ "version": "1.0.0-beta.17",
4
4
  "description": "Official example showing how to build Nesso plugins with the SDK and plugin APIs",
5
5
  "keywords": [
6
6
  "nesso-plugin"
@@ -28,12 +28,12 @@
28
28
  "prepack": "npm run build"
29
29
  },
30
30
  "dependencies": {
31
- "@nesso-how/ui": "1.0.0-beta.16",
31
+ "@nesso-how/ui": "1.0.0-beta.17",
32
32
  "react": "^19.2.8",
33
33
  "react-dom": "^19.2.8"
34
34
  },
35
35
  "devDependencies": {
36
- "@nesso-how/plugin": "1.0.0-beta.16",
36
+ "@nesso-how/plugin": "1.0.0-beta.17",
37
37
  "@types/react": "^19.2.18",
38
38
  "@types/react-dom": "^19.2.7",
39
39
  "typescript": "~7.0.2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nesso-how/plugin",
3
- "version": "1.0.0-beta.16",
3
+ "version": "1.0.0-beta.17",
4
4
  "description": "Types, validation, and asynchronous clients for isolated Nesso plugins",
5
5
  "license": "MIT",
6
6
  "repository": {