@blocklet/pages-kit 0.2.279 → 0.2.281

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.
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.default = () => Promise.resolve().then(() => __importStar(require('react-syntax-highlighter')));
@@ -67,5 +67,6 @@ exports.BuiltinModules = {
67
67
  '@blocklet/pages-kit/builtin/page/header': {},
68
68
  '@blocklet/pages-kit/builtin/arcblock/ux': {},
69
69
  '@blocklet/pages-kit/builtin/async/react-markdown': {},
70
+ '@blocklet/pages-kit/builtin/async/react-syntax-highlighter': {},
70
71
  '@blocklet/pages-kit/builtin/async/image-preview': {},
71
72
  };
@@ -27,6 +27,7 @@ const arcblockUx = __importStar(require("../builtin/arcblock/ux"));
27
27
  const imagePreview = __importStar(require("../builtin/async/image-preview"));
28
28
  const reactMarkdown = __importStar(require("../builtin/async/react-markdown"));
29
29
  const reactScrollToBottom = __importStar(require("../builtin/async/react-scroll-to-bottom"));
30
+ const reactSyntaxHighlighter = __importStar(require("../builtin/async/react-syntax-highlighter"));
30
31
  const call = __importStar(require("../builtin/call"));
31
32
  const dayjs = __importStar(require("../builtin/dayjs"));
32
33
  const emotionCss = __importStar(require("../builtin/emotion/css"));
@@ -72,6 +73,7 @@ function injectGlobalComponents() {
72
73
  // The following packages are lazy loading
73
74
  '@blocklet/pages-kit/builtin/async/react-scroll-to-bottom': reactScrollToBottom,
74
75
  '@blocklet/pages-kit/builtin/async/react-markdown': reactMarkdown,
76
+ '@blocklet/pages-kit/builtin/async/react-syntax-highlighter': reactSyntaxHighlighter,
75
77
  '@blocklet/pages-kit/builtin/async/image-preview': imagePreview,
76
78
  },
77
79
  require(module) {
@@ -0,0 +1 @@
1
+ export default () => import('react-syntax-highlighter');
@@ -41,5 +41,6 @@ export const BuiltinModules = {
41
41
  '@blocklet/pages-kit/builtin/page/header': {},
42
42
  '@blocklet/pages-kit/builtin/arcblock/ux': {},
43
43
  '@blocklet/pages-kit/builtin/async/react-markdown': {},
44
+ '@blocklet/pages-kit/builtin/async/react-syntax-highlighter': {},
44
45
  '@blocklet/pages-kit/builtin/async/image-preview': {},
45
46
  };
@@ -2,6 +2,7 @@ import * as arcblockUx from '../builtin/arcblock/ux';
2
2
  import * as imagePreview from '../builtin/async/image-preview';
3
3
  import * as reactMarkdown from '../builtin/async/react-markdown';
4
4
  import * as reactScrollToBottom from '../builtin/async/react-scroll-to-bottom';
5
+ import * as reactSyntaxHighlighter from '../builtin/async/react-syntax-highlighter';
5
6
  import * as call from '../builtin/call';
6
7
  import * as dayjs from '../builtin/dayjs';
7
8
  import * as emotionCss from '../builtin/emotion/css';
@@ -47,6 +48,7 @@ function injectGlobalComponents() {
47
48
  // The following packages are lazy loading
48
49
  '@blocklet/pages-kit/builtin/async/react-scroll-to-bottom': reactScrollToBottom,
49
50
  '@blocklet/pages-kit/builtin/async/react-markdown': reactMarkdown,
51
+ '@blocklet/pages-kit/builtin/async/react-syntax-highlighter': reactSyntaxHighlighter,
50
52
  '@blocklet/pages-kit/builtin/async/image-preview': imagePreview,
51
53
  },
52
54
  require(module) {
@@ -0,0 +1,3 @@
1
+ /// <reference types="react-syntax-highlighter" />
2
+ declare const _default: () => Promise<typeof import("react-syntax-highlighter")>;
3
+ export default _default;
@@ -35,5 +35,6 @@ export declare const BuiltinModules: {
35
35
  '@blocklet/pages-kit/builtin/page/header': {};
36
36
  '@blocklet/pages-kit/builtin/arcblock/ux': {};
37
37
  '@blocklet/pages-kit/builtin/async/react-markdown': {};
38
+ '@blocklet/pages-kit/builtin/async/react-syntax-highlighter': {};
38
39
  '@blocklet/pages-kit/builtin/async/image-preview': {};
39
40
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/pages-kit",
3
- "version": "0.2.279",
3
+ "version": "0.2.281",
4
4
  "description": "Pages Kit components and utils",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -109,6 +109,7 @@
109
109
  "react-hook-form": "^7.51.2",
110
110
  "react-markdown": "^9.0.1",
111
111
  "react-scroll-to-bottom": "^4.2.0",
112
+ "react-syntax-highlighter": "^15.5.0",
112
113
  "react-wrap-balancer": "^1.1.0",
113
114
  "typescript": "^5.4.4",
114
115
  "ufo": "^1.5.3",
@@ -140,6 +141,7 @@
140
141
  "@types/node-fetch": "^2.6.11",
141
142
  "@types/react": "^18.2.75",
142
143
  "@types/react-scroll-to-bottom": "^4.2.5",
144
+ "@types/react-syntax-highlighter": "^15.5.11",
143
145
  "axios": "^1.6.8",
144
146
  "npm-run-all": "^4.1.5",
145
147
  "react": "^18.2.0",