slack-blocks-to-jsx 0.2.1 → 0.2.2
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.
- package/dist/index.js +5 -5
- package/dist/index.mjs +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1178,19 +1178,19 @@ var Message = (props) => {
|
|
|
1178
1178
|
style,
|
|
1179
1179
|
showBlockKitDebug = false,
|
|
1180
1180
|
unstyled = false,
|
|
1181
|
-
data
|
|
1182
|
-
hooks
|
|
1181
|
+
data,
|
|
1182
|
+
hooks,
|
|
1183
1183
|
withoutWrapper = false
|
|
1184
1184
|
} = props;
|
|
1185
1185
|
const { setChannels, setUsers, setHooks } = useGlobalData();
|
|
1186
1186
|
(0, import_react6.useEffect)(() => {
|
|
1187
|
-
if (data.users)
|
|
1187
|
+
if (data == null ? void 0 : data.users)
|
|
1188
1188
|
setUsers(data.users);
|
|
1189
|
-
if (data.channels)
|
|
1189
|
+
if (data == null ? void 0 : data.channels)
|
|
1190
1190
|
setChannels(data.channels);
|
|
1191
1191
|
if (hooks)
|
|
1192
1192
|
setHooks(hooks);
|
|
1193
|
-
}, [data]);
|
|
1193
|
+
}, [data, hooks]);
|
|
1194
1194
|
if (withoutWrapper) {
|
|
1195
1195
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1196
1196
|
"div",
|
package/dist/index.mjs
CHANGED
|
@@ -1145,19 +1145,19 @@ var Message = (props) => {
|
|
|
1145
1145
|
style,
|
|
1146
1146
|
showBlockKitDebug = false,
|
|
1147
1147
|
unstyled = false,
|
|
1148
|
-
data
|
|
1149
|
-
hooks
|
|
1148
|
+
data,
|
|
1149
|
+
hooks,
|
|
1150
1150
|
withoutWrapper = false
|
|
1151
1151
|
} = props;
|
|
1152
1152
|
const { setChannels, setUsers, setHooks } = useGlobalData();
|
|
1153
1153
|
useEffect5(() => {
|
|
1154
|
-
if (data.users)
|
|
1154
|
+
if (data == null ? void 0 : data.users)
|
|
1155
1155
|
setUsers(data.users);
|
|
1156
|
-
if (data.channels)
|
|
1156
|
+
if (data == null ? void 0 : data.channels)
|
|
1157
1157
|
setChannels(data.channels);
|
|
1158
1158
|
if (hooks)
|
|
1159
1159
|
setHooks(hooks);
|
|
1160
|
-
}, [data]);
|
|
1160
|
+
}, [data, hooks]);
|
|
1161
1161
|
if (withoutWrapper) {
|
|
1162
1162
|
return /* @__PURE__ */ jsx24(
|
|
1163
1163
|
"div",
|
package/package.json
CHANGED