@dsh-workbench/module-hello 0.1.7 → 0.1.9

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.
Files changed (2) hide show
  1. package/client.js +14 -10
  2. package/package.json +3 -3
package/client.js CHANGED
@@ -59,16 +59,20 @@ window.__ModuleLoader__.load({
59
59
  var helloClient = {
60
60
  manifest,
61
61
  messages: helloMessages,
62
- card: (props) => (0, import_react.createElement)(
63
- "section",
64
- { className: "wb-view" },
65
- (0, import_react.createElement)(
66
- "h2",
67
- (0, import_react.createElement)(import_client.kit.components.IconBrandMark, { size: 16 }),
68
- ` ${props.t("hello.heading")}`
69
- ),
70
- (0, import_react.createElement)("p", props.t("hello.body"))
71
- )
62
+ card: (props) => {
63
+ const { Card, IconBrandMark } = import_client.kit.components;
64
+ return (0, import_react.createElement)(
65
+ Card,
66
+ {
67
+ t: props.t,
68
+ title: props.t("hello.cardTitle"),
69
+ refreshing: false,
70
+ onRefresh: props.onRefresh
71
+ },
72
+ (0, import_react.createElement)("p", null, (0, import_react.createElement)(IconBrandMark, { size: 16 }), " ", props.t("hello.heading")),
73
+ (0, import_react.createElement)("p", null, props.t("hello.body"))
74
+ );
75
+ }
72
76
  };
73
77
  var inject = ["workbenchUnits"];
74
78
  function apply(ctx) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsh-workbench/module-hello",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "最小示例模块:装上后面板里多一张卡片,用来试装试卸。",
5
5
  "type": "module",
6
6
  "exports": {
@@ -50,8 +50,8 @@
50
50
  "react": "^19.3.0",
51
51
  "typescript": "5.9",
52
52
  "vitest": "^5.0.2",
53
- "@dsh-workbench/module-tools": "0.1.7",
54
- "@dsh-workbench/core": "0.1.7"
53
+ "@dsh-workbench/core": "0.1.9",
54
+ "@dsh-workbench/module-tools": "0.1.9"
55
55
  },
56
56
  "publishConfig": {
57
57
  "access": "public"