plugin-build-guide-block 1.0.10 → 1.0.11
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/client/UserGuideBlock.d.ts +2 -0
- package/dist/client/UserGuideBlockInitializer.d.ts +2 -0
- package/dist/client/UserGuideBlockProvider.d.ts +2 -0
- package/dist/client/UserGuideManager.d.ts +2 -0
- package/dist/client/components/BuildButton.d.ts +2 -0
- package/dist/client/components/LLMServiceSelect.d.ts +2 -0
- package/dist/client/components/ModelSelect.d.ts +2 -0
- package/dist/client/components/StatusTag.d.ts +2 -0
- package/dist/client/index.d.ts +1 -0
- package/dist/client/index.js +1 -1
- package/dist/client/models/UserGuideBlockModel.d.ts +9 -0
- package/dist/client/models/index.d.ts +9 -0
- package/dist/client/plugin.d.ts +5 -0
- package/dist/client/schemas/spacesSchema.d.ts +315 -0
- package/dist/index.d.ts +2 -0
- package/dist/node_modules/sanitize-html/index.js +2 -2
- package/dist/node_modules/sanitize-html/package.json +1 -1
- package/dist/server/actions/build.d.ts +2 -0
- package/dist/server/actions/getHtml.d.ts +2 -0
- package/dist/server/collections/ai-build-guide-spaces.d.ts +2 -0
- package/dist/server/index.d.ts +2 -0
- package/dist/server/index.js +3 -4
- package/dist/server/plugin.d.ts +12 -0
- package/package.json +1 -1
- package/src/client/UserGuideManager.tsx +3 -2
- package/src/server/index.ts +1 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"sanitize-html","version":"2.17.
|
|
1
|
+
{"name":"sanitize-html","version":"2.17.3","description":"Clean up user-submitted HTML, preserving allowlisted elements and allowlisted attributes on a per-element basis","sideEffects":false,"main":"index.js","files":["index.js"],"repository":{"type":"git","url":"https://github.com/apostrophecms/apostrophe.git","directory":"packages/sanitize-html"},"homepage":"https://github.com/apostrophecms/apostrophe/tree/main/packages/sanitize-html#readme","keywords":["html","parser","sanitizer","sanitize"],"author":"Apostrophe Technologies, Inc.","license":"MIT","dependencies":{"deepmerge":"^4.2.2","escape-string-regexp":"^4.0.0","htmlparser2":"^10.1.0","is-plain-object":"^5.0.0","parse-srcset":"^1.0.2","postcss":"^8.3.11"},"devDependencies":{"eslint":"^9.39.1","mocha":"^11.7.5","sinon":"^9.0.2","eslint-config-apostrophe":"^6.0.2"},"apostropheTestConfig":{"requiresMongo":false},"scripts":{"test":"npm run lint && mocha","lint":"eslint ."},"_lastModified":"2026-04-18T11:47:25.046Z"}
|
package/dist/server/index.js
CHANGED
|
@@ -14,8 +14,8 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
14
14
|
var __getProtoOf = Object.getPrototypeOf;
|
|
15
15
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
16
16
|
var __export = (target, all) => {
|
|
17
|
-
for (var
|
|
18
|
-
__defProp(target,
|
|
17
|
+
for (var name in all)
|
|
18
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
19
|
};
|
|
20
20
|
var __copyProps = (to, from, except, desc) => {
|
|
21
21
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
@@ -40,9 +40,8 @@ __export(server_exports, {
|
|
|
40
40
|
namespace: () => namespace
|
|
41
41
|
});
|
|
42
42
|
module.exports = __toCommonJS(server_exports);
|
|
43
|
-
var import_package = require("../../package.json");
|
|
44
43
|
var import_plugin = __toESM(require("./plugin"));
|
|
45
|
-
const namespace =
|
|
44
|
+
const namespace = "plugin-build-guide-block";
|
|
46
45
|
// Annotate the CommonJS export names for ESM import in node:
|
|
47
46
|
0 && (module.exports = {
|
|
48
47
|
namespace
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InstallOptions, Plugin } from '@nocobase/server';
|
|
2
|
+
export declare class PluginBuildGuideBlockServer extends Plugin {
|
|
3
|
+
afterAdd(): void;
|
|
4
|
+
beforeLoad(): void;
|
|
5
|
+
load(): Promise<void>;
|
|
6
|
+
install(options?: InstallOptions): Promise<void>;
|
|
7
|
+
upgrade(): Promise<void>;
|
|
8
|
+
afterEnable(): Promise<void>;
|
|
9
|
+
afterDisable(): Promise<void>;
|
|
10
|
+
remove(): Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
export default PluginBuildGuideBlockServer;
|
package/package.json
CHANGED
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
useTableBlockProps,
|
|
10
10
|
} from '@nocobase/client';
|
|
11
11
|
import { createForm } from '@formily/core';
|
|
12
|
+
import { useForm } from '@formily/react';
|
|
12
13
|
import { App } from 'antd';
|
|
13
14
|
import { useTranslation } from 'react-i18next';
|
|
14
15
|
import { spacesSchema } from './schemas/spacesSchema';
|
|
@@ -54,11 +55,11 @@ export const UserGuideManager = () => {
|
|
|
54
55
|
const { message } = App.useApp();
|
|
55
56
|
const resource = useDataBlockResource();
|
|
56
57
|
const { refresh } = useDataBlockRequest();
|
|
58
|
+
const form = useForm();
|
|
57
59
|
|
|
58
60
|
return {
|
|
59
61
|
type: 'primary',
|
|
60
62
|
async onClick() {
|
|
61
|
-
const form = (this as any).form;
|
|
62
63
|
try {
|
|
63
64
|
await form.submit();
|
|
64
65
|
await resource.create({ values: normalizeValues(form.values) });
|
|
@@ -80,11 +81,11 @@ export const UserGuideManager = () => {
|
|
|
80
81
|
const resource = useDataBlockResource();
|
|
81
82
|
const { refresh } = useDataBlockRequest();
|
|
82
83
|
const record = useCollectionRecordData();
|
|
84
|
+
const form = useForm();
|
|
83
85
|
|
|
84
86
|
return {
|
|
85
87
|
type: 'primary',
|
|
86
88
|
async onClick() {
|
|
87
|
-
const form = (this as any).form;
|
|
88
89
|
try {
|
|
89
90
|
await form.submit();
|
|
90
91
|
await resource.update({
|
package/src/server/index.ts
CHANGED