@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 +1 -1
- package/dist/index.js +1 -1
- package/dist/node/runtime.d.ts +1 -0
- package/dist/node/runtime.js +2 -1
- package/dist/package.d.ts +1 -1
- package/dist/package.js +1 -1
- package/dist/{runtime-B6vu2uAB.d.ts → runtime-D4-WzVaE.d.ts} +2 -1
- package/dist/{runtime-D7mWRns_.js → runtime-vadDPH4B.js} +2 -1
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.js +1 -1
- package/example/package.json +3 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as
|
|
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 {
|
|
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) {
|
package/dist/node/runtime.d.ts
CHANGED
|
@@ -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">;
|
package/dist/node/runtime.js
CHANGED
|
@@ -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(
|
|
122
|
+
apiVersion: z.literal(pluginApiVersion),
|
|
122
123
|
};
|
|
123
124
|
const jsEntry = z
|
|
124
125
|
.string()
|
package/dist/package.d.ts
CHANGED
package/dist/package.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as
|
|
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 {
|
|
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 {
|
|
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
|
|
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 {
|
|
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";
|
package/example/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nesso-how/plugin-example",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
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.
|
|
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.
|
|
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",
|