@dolphy-app/extension-sdk 0.6.0 → 0.7.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.
- package/README.md +1 -1
- package/dist/client.d.ts +2 -2
- package/dist/{define-entry-lsuxzKdD.d.ts → define-entry-oBQ0unOi.d.ts} +1 -1
- package/dist/{index-I_CXC6Lj.d.ts → index-CyqjFQ66.d.ts} +10 -8
- package/dist/index.d.ts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/rpc.d.ts +1 -1
- package/dist/testing.d.ts +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
SDK for extension authors: defineServer, defineClient, defineRpc, usePanel, useInjection, useApp, useEngine, useRpc, defineMountable, callRpc, reactComponent, test harness
|
|
4
4
|
|
|
5
|
-
The package version equals the version of the Dolphy app release it was published from (0.
|
|
5
|
+
The package version equals the version of the Dolphy app release it was published from (0.7.0).
|
|
6
6
|
|
|
7
7
|
`@dolphy-app/extension-sdk` — extension code: `defineServer` and
|
|
8
8
|
`defineClient` describe the `server` and `client` exports of an extension
|
package/dist/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as ExtensionEngine } from "./index-
|
|
2
|
-
import { t as AppApi$1 } from "./define-entry-
|
|
1
|
+
import { t as ExtensionEngine } from "./index-CyqjFQ66.js";
|
|
2
|
+
import { t as AppApi$1 } from "./define-entry-oBQ0unOi.js";
|
|
3
3
|
import { InjectionHandle, PanelHandle, RpcContract } from "@dolphy-app/extension-api";
|
|
4
4
|
//#region packages/extension-sdk/src/client.d.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ExtensionEngine } from "./index-
|
|
1
|
+
import { t as ExtensionEngine } from "./index-CyqjFQ66.js";
|
|
2
2
|
import { AnswerViewProps, AppApi, ClientContext, Disposable, EntryResult, ExerciseTypeRegistration, InjectionHandle, InjectionProps, InjectionRegistration, MOUNTABLE, MarkdownBlockProps, MountContext, PanelHandle, PanelProps, PanelRegistration, ServerContext, ServerEntry, SettingValues, Unmount } from "@dolphy-app/extension-api";
|
|
3
3
|
import { Component } from "vue";
|
|
4
4
|
//#region packages/extension-sdk/src/define-entry.d.ts
|
|
@@ -1218,9 +1218,10 @@ interface ExtensionInfoDto {
|
|
|
1218
1218
|
diagnostics: ExtensionDiagnosticDto[];
|
|
1219
1219
|
/** `false` у расширений из поставки, перекрытых и некорректных: переключатели недоступны. */
|
|
1220
1220
|
toggleable: boolean;
|
|
1221
|
-
/** Название из
|
|
1222
|
-
name:
|
|
1223
|
-
|
|
1221
|
+
/** Название из манифеста: строка или тексты по языкам (язык выбирает окно); `null` — не задано. */
|
|
1222
|
+
name: LocalizedTextDto | null;
|
|
1223
|
+
/** Описание из манифеста: строка или тексты по языкам; `null` — не задано. */
|
|
1224
|
+
description: LocalizedTextDto | null;
|
|
1224
1225
|
/** GitHub-логин автора из манифеста. */
|
|
1225
1226
|
author: string | null;
|
|
1226
1227
|
/** Зависимости из манифеста; `[]` — нет или манифест не прочитан. */
|
|
@@ -1250,8 +1251,8 @@ interface ExtensionDependencyDto {
|
|
|
1250
1251
|
/** Альтернатива устаревшему расширению; `name` берётся из индекса каталога. */
|
|
1251
1252
|
interface DeprecationAlternativeDto {
|
|
1252
1253
|
id: string;
|
|
1253
|
-
/** Название записи
|
|
1254
|
-
name:
|
|
1254
|
+
/** Название записи каталога: строка или тексты по языкам; `null` — такой записи в индексе нет. */
|
|
1255
|
+
name: LocalizedTextDto | null;
|
|
1255
1256
|
}
|
|
1256
1257
|
/** Расширение помечено устаревшим в каталоге (`deprecated.json`). */
|
|
1257
1258
|
interface DeprecationDto {
|
|
@@ -1868,8 +1869,9 @@ interface CatalogIncompatibleDto {
|
|
|
1868
1869
|
}
|
|
1869
1870
|
interface CatalogEntryDto {
|
|
1870
1871
|
id: string;
|
|
1871
|
-
|
|
1872
|
-
|
|
1872
|
+
/** Английское название записи — строка; русское (`i18n.ru` индекса) — объект `{ en, ru }`. */
|
|
1873
|
+
name: LocalizedTextDto;
|
|
1874
|
+
description: LocalizedTextDto;
|
|
1873
1875
|
author: string;
|
|
1874
1876
|
/** Адрес исходников (страница в репозитории каталога). */
|
|
1875
1877
|
source: string;
|
|
@@ -1905,7 +1907,7 @@ interface CatalogDto {
|
|
|
1905
1907
|
}
|
|
1906
1908
|
interface ExtensionUpdateDto {
|
|
1907
1909
|
id: string;
|
|
1908
|
-
name:
|
|
1910
|
+
name: LocalizedTextDto;
|
|
1909
1911
|
installed: string;
|
|
1910
1912
|
available: CatalogVersionDto;
|
|
1911
1913
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as ExtensionEngine } from "./index-
|
|
2
|
-
import { a as MountContext, c as ServerContext, d as defineExerciseType, f as defineMountable, i as InjectionRegistration, l as ServerEntry, n as ClientContext, o as Mountable, p as defineServer, r as ClientEntry, s as PanelRegistration, t as AppApi, u as defineClient } from "./define-entry-
|
|
1
|
+
import { t as ExtensionEngine } from "./index-CyqjFQ66.js";
|
|
2
|
+
import { a as MountContext, c as ServerContext, d as defineExerciseType, f as defineMountable, i as InjectionRegistration, l as ServerEntry, n as ClientContext, o as Mountable, p as defineServer, r as ClientEntry, s as PanelRegistration, t as AppApi, u as defineClient } from "./define-entry-oBQ0unOi.js";
|
|
3
3
|
import { RpcTarget, callRpc, defineRpc } from "./rpc.js";
|
|
4
4
|
import { JsonValue, NotifyEffect, OpenPanelEffect } from "@dolphy-app/extension-api";
|
|
5
5
|
export * from "@dolphy-app/extension-api";
|
package/dist/react.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as ExtensionEngine } from "./index-
|
|
2
|
-
import { a as MountContext$1, o as Mountable, t as AppApi$1 } from "./define-entry-
|
|
1
|
+
import { t as ExtensionEngine } from "./index-CyqjFQ66.js";
|
|
2
|
+
import { a as MountContext$1, o as Mountable, t as AppApi$1 } from "./define-entry-oBQ0unOi.js";
|
|
3
3
|
import { AppLocale, AppTheme, InjectionHandle, PanelHandle, RpcContract } from "@dolphy-app/extension-api";
|
|
4
4
|
import { ComponentType } from "react";
|
|
5
5
|
//#region packages/extension-sdk/src/react.d.ts
|
package/dist/rpc.d.ts
CHANGED
package/dist/testing.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as ExtensionEngine } from "./index-
|
|
2
|
-
import { a as MountContext$1, i as InjectionRegistration$1, l as ServerEntry$1, o as Mountable, r as ClientEntry, s as PanelRegistration$1, t as AppApi$1 } from "./define-entry-
|
|
1
|
+
import { t as ExtensionEngine } from "./index-CyqjFQ66.js";
|
|
2
|
+
import { a as MountContext$1, i as InjectionRegistration$1, l as ServerEntry$1, o as Mountable, r as ClientEntry, s as PanelRegistration$1, t as AppApi$1 } from "./define-entry-oBQ0unOi.js";
|
|
3
3
|
import { AnswerViewProps, AppLocale, AppTheme, ClientCommandRegistration, CommandOutcome, Disposable, ExportInput, ExportResult, ExtensionHookName, ExtensionLogger, ExtensionNotification, ExtensionNotifications, ExtensionSecrets, ExtensionSettings, ExtensionStats, ExtensionStorage, GradePolicyInput, GradeResult, GradeValue, HookRequest, HookResponse, ImportInput, ImportResult, JsonSchema, JsonValue, LearningEventName, LearningEventPayloads, LibraryReader, MarkdownBlockProps, RpcContract, ServerRegistration, SettingDefinition, SettingValue, ThemeRegistration } from "@dolphy-app/extension-api";
|
|
4
4
|
import { Component } from "vue";
|
|
5
5
|
//#region packages/extension-sdk/src/testing.d.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dolphy-app/extension-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "SDK for extension authors: defineServer, defineClient, defineRpc, usePanel, useInjection, useApp, useEngine, useRpc, defineMountable, callRpc, reactComponent, test harness",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"docs"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@dolphy-app/extension-api": "0.
|
|
35
|
+
"@dolphy-app/extension-api": "0.7.0",
|
|
36
36
|
"ajv": "^8",
|
|
37
37
|
"zod": "4.6.5"
|
|
38
38
|
},
|