@nocobase/plugin-block-iframe 2.1.0-alpha.12 → 2.1.0-alpha.13

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.
@@ -10,16 +10,16 @@
10
10
  module.exports = {
11
11
  "@formily/react": "2.3.7",
12
12
  "@formily/shared": "2.3.7",
13
- "@nocobase/client": "2.1.0-alpha.12",
13
+ "@nocobase/client": "2.1.0-alpha.13",
14
14
  "react": "18.2.0",
15
15
  "react-i18next": "11.18.6",
16
16
  "antd": "5.24.2",
17
17
  "@ant-design/icons": "5.6.1",
18
18
  "@formily/antd-v5": "1.2.3",
19
- "@nocobase/flow-engine": "2.1.0-alpha.12",
20
- "@nocobase/server": "2.1.0-alpha.12",
21
- "@nocobase/test": "2.1.0-alpha.12",
19
+ "@nocobase/server": "2.1.0-alpha.13",
20
+ "@nocobase/test": "2.1.0-alpha.13",
21
+ "@nocobase/flow-engine": "2.1.0-alpha.13",
22
22
  "@emotion/css": "11.13.0",
23
- "@nocobase/actions": "2.1.0-alpha.12",
24
- "@nocobase/database": "2.1.0-alpha.12"
23
+ "@nocobase/actions": "2.1.0-alpha.13",
24
+ "@nocobase/database": "2.1.0-alpha.13"
25
25
  };
@@ -6,10 +6,8 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- import type { FlowSchemaContribution } from '@nocobase/flow-engine';
10
9
  import { InstallOptions, Plugin } from '@nocobase/server';
11
10
  export declare class PluginBlockIframeServer extends Plugin {
12
- getFlowSchemaContributions(): FlowSchemaContribution;
13
11
  afterAdd(): void;
14
12
  beforeLoad(): void;
15
13
  load(): Promise<void>;
@@ -43,11 +43,7 @@ module.exports = __toCommonJS(plugin_exports);
43
43
  var import_server = require("@nocobase/server");
44
44
  var import_path = __toESM(require("path"));
45
45
  var import_actions = require("./actions");
46
- var import_flow_schema_contributions = require("./flow-schema-contributions");
47
46
  class PluginBlockIframeServer extends import_server.Plugin {
48
- getFlowSchemaContributions() {
49
- return import_flow_schema_contributions.flowSchemaContribution;
50
- }
51
47
  afterAdd() {
52
48
  }
53
49
  beforeLoad() {
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "description": "Create an iframe block on the page to embed and display external web pages or content.",
7
7
  "description.ru-RU": "Создавайте iframe-блоки и управляйте ими на странице для встраивания и отображения внешних веб-страниц или контента.",
8
8
  "description.zh-CN": "在页面上创建和管理iframe,用于嵌入和展示外部网页或内容。",
9
- "version": "2.1.0-alpha.12",
9
+ "version": "2.1.0-alpha.13",
10
10
  "license": "Apache-2.0",
11
11
  "main": "./dist/server/index.js",
12
12
  "homepage": "https://docs.nocobase.com/handbook/block-iframe",
@@ -28,7 +28,7 @@
28
28
  "@nocobase/server": "2.x",
29
29
  "@nocobase/test": "2.x"
30
30
  },
31
- "gitHead": "f12c4a75470590b1670ce54510b96ef94c2cd7a2",
31
+ "gitHead": "2807a8948412d9c235115a31a81a66f7c82dd173",
32
32
  "keywords": [
33
33
  "Blocks"
34
34
  ]
@@ -1,10 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- import type { FlowSchemaContribution } from '@nocobase/flow-engine';
10
- export declare const flowSchemaContribution: FlowSchemaContribution;
@@ -1,143 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
-
10
- var __defProp = Object.defineProperty;
11
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
- var __getOwnPropNames = Object.getOwnPropertyNames;
13
- var __hasOwnProp = Object.prototype.hasOwnProperty;
14
- var __export = (target, all) => {
15
- for (var name in all)
16
- __defProp(target, name, { get: all[name], enumerable: true });
17
- };
18
- var __copyProps = (to, from, except, desc) => {
19
- if (from && typeof from === "object" || typeof from === "function") {
20
- for (let key of __getOwnPropNames(from))
21
- if (!__hasOwnProp.call(to, key) && key !== except)
22
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
- }
24
- return to;
25
- };
26
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
- var flow_schema_contributions_exports = {};
28
- __export(flow_schema_contributions_exports, {
29
- flowSchemaContribution: () => flowSchemaContribution
30
- });
31
- module.exports = __toCommonJS(flow_schema_contributions_exports);
32
- const iframeParamSchema = {
33
- type: "object",
34
- properties: {
35
- name: { type: "string" },
36
- value: { type: "string" }
37
- },
38
- additionalProperties: false
39
- };
40
- const iframeBlockModelSchemaContribution = {
41
- use: "IframeBlockModel",
42
- title: "Iframe block",
43
- source: "plugin",
44
- strict: false,
45
- stepParamsSchema: {
46
- type: "object",
47
- properties: {
48
- iframeBlockSettings: {
49
- type: "object",
50
- properties: {
51
- editIframe: {
52
- type: "object",
53
- properties: {
54
- mode: {
55
- type: "string",
56
- enum: ["url", "html"]
57
- },
58
- url: { type: "string" },
59
- allow: {
60
- type: "string",
61
- enum: [
62
- "autoplay",
63
- "camera",
64
- "document-domain",
65
- "encrypted-media",
66
- "fullscreen",
67
- "geolocation",
68
- "microphone",
69
- "midi",
70
- "payment"
71
- ]
72
- },
73
- params: {
74
- type: "array",
75
- items: iframeParamSchema
76
- },
77
- html: { type: "string" },
78
- htmlId: { type: ["string", "number", "null"] },
79
- height: { type: ["number", "string", "null"] }
80
- },
81
- required: ["mode"],
82
- additionalProperties: true
83
- }
84
- },
85
- additionalProperties: true
86
- }
87
- },
88
- additionalProperties: true
89
- },
90
- skeleton: {
91
- uid: "todo-iframe-block-uid",
92
- use: "IframeBlockModel",
93
- stepParams: {
94
- iframeBlockSettings: {
95
- editIframe: {
96
- mode: "url",
97
- url: "https://www.nocobase.com",
98
- params: []
99
- }
100
- }
101
- }
102
- },
103
- docs: {
104
- minimalExample: {
105
- uid: "iframe-homepage",
106
- use: "IframeBlockModel",
107
- stepParams: {
108
- iframeBlockSettings: {
109
- editIframe: {
110
- mode: "url",
111
- url: "https://www.nocobase.com",
112
- params: []
113
- }
114
- }
115
- }
116
- },
117
- dynamicHints: [
118
- {
119
- kind: "dynamic-ui-schema",
120
- path: "IframeBlockModel.stepParams.iframeBlockSettings.editIframe.htmlId",
121
- message: "HTML mode persists raw HTML to the iframeHtml resource and stores the returned htmlId.",
122
- "x-flow": {
123
- contextRequirements: ["iframeHtml resource"],
124
- unresolvedReason: "runtime-iframe-html-storage",
125
- recommendedFallback: null
126
- }
127
- }
128
- ]
129
- }
130
- };
131
- const flowSchemaContribution = {
132
- inventory: {
133
- publicTreeRoots: ["IframeBlockModel"]
134
- },
135
- models: [iframeBlockModelSchemaContribution],
136
- defaults: {
137
- source: "plugin"
138
- }
139
- };
140
- // Annotate the CommonJS export names for ESM import in node:
141
- 0 && (module.exports = {
142
- flowSchemaContribution
143
- });