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.
@@ -1 +1 @@
1
- {"name":"sanitize-html","version":"2.17.2","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":"^10.2.0","sinon":"^9.0.2","eslint-config-apostrophe":"^6.0.2"},"apostropheTestConfig":{"requiresMongo":false},"scripts":{"test":"npm run lint && mocha","lint":"eslint ."},"_lastModified":"2026-04-09T19:44:45.769Z"}
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"}
@@ -0,0 +1,2 @@
1
+ import { Context, Next } from '@nocobase/actions';
2
+ export declare function build(ctx: Context, next: Next): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { Context, Next } from '@nocobase/actions';
2
+ export declare function getHtml(ctx: Context, next: Next): Promise<void>;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@nocobase/database").CollectionOptions;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default } from './plugin';
2
+ export declare const namespace = "plugin-build-guide-block";
@@ -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 name2 in all)
18
- __defProp(target, name2, { get: all[name2], enumerable: true });
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 = import_package.name;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plugin-build-guide-block",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "main": "dist/server/index.js",
5
5
  "files": [
6
6
  "dist",
@@ -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({
@@ -1,3 +1,2 @@
1
- import { name } from '../../package.json';
2
1
  export { default } from './plugin';
3
- export const namespace = name;
2
+ export const namespace = 'plugin-build-guide-block';