listpage-next 0.0.156 → 0.0.158

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,12 +1,13 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useControllableValue } from "ahooks";
3
+ import { toJS } from "mobx";
3
4
  const Render = (props)=>{
4
5
  const { render: Component, record, index, ctx } = props;
5
6
  const [value, onChange] = useControllableValue(props);
6
7
  return /*#__PURE__*/ jsx(Component, {
7
8
  value: value,
8
9
  onChange: onChange,
9
- record: record,
10
+ record: toJS(record),
10
11
  index: index,
11
12
  ctx: ctx
12
13
  });
@@ -55,7 +55,6 @@ const BubbleContainer = styled_components.div`
55
55
  display: flex;
56
56
  flex-direction: column;
57
57
  gap: 20px;
58
- margin-top: 12px;
59
58
  align-items: ${(props)=>'start' === props.placement ? 'flex-start' : 'flex-end'};
60
59
  `;
61
60
  const UserContentWrapper = styled_components.div`
@@ -1,7 +1,6 @@
1
1
  import { CSSProperties } from 'react';
2
2
  export interface BubbleListProps {
3
3
  styles?: {
4
- topPlaceholder?: CSSProperties;
5
4
  bottomPlaceholder?: CSSProperties;
6
5
  content?: CSSProperties;
7
6
  };
@@ -28,11 +28,6 @@ const BubbleList = (props)=>{
28
28
  return /*#__PURE__*/ jsxs(ContentContainer, {
29
29
  ref: containerRef,
30
30
  children: [
31
- /*#__PURE__*/ jsx("div", {
32
- style: styles?.topPlaceholder ?? {
33
- height: 20
34
- }
35
- }),
36
31
  /*#__PURE__*/ jsx("div", {
37
32
  style: styles?.content,
38
33
  children: (ctx.messages ?? []).map((msg)=>render.renderMessage(msg, ctx))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "listpage-next",
3
- "version": "0.0.156",
3
+ "version": "0.0.158",
4
4
  "description": "A React component library for creating filter forms with Ant Design",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",