slack-blocks-to-jsx 0.3.1 → 0.3.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 CHANGED
@@ -1316,30 +1316,31 @@ var File = (props) => {
1316
1316
  };
1317
1317
 
1318
1318
  // src/components/blocks/header.tsx
1319
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1319
1320
  var Header2 = (props) => {
1320
- const { type } = props.data;
1321
- return null;
1321
+ const { text, block_id } = props.data;
1322
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { id: block_id, className: "mt-1 slack_blocks_to_jsx__header", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("h3", { className: "text-header font-bold slack_blocks_to_jsx__header_heading", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TextObject, { data: text }) }) });
1322
1323
  };
1323
1324
 
1324
1325
  // src/components/blocks/image.tsx
1325
1326
  var import_react5 = require("react");
1326
- var import_jsx_runtime26 = require("react/jsx-runtime");
1327
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1327
1328
  var Image = (props) => {
1328
1329
  const { block_id, alt_text, image_url, image_bytes, image_height, image_width } = props.data;
1329
1330
  const [showImage, setShowImage] = (0, import_react5.useState)(true);
1330
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { id: block_id, className: "my-2 flex flex-col gap-2 slack_blocks_to_jsx__image", children: [
1331
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "text-black-secondary text-small flex gap-1 items-center", children: [
1332
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("span", { children: [
1331
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { id: block_id, className: "my-2 flex flex-col gap-2 slack_blocks_to_jsx__image", children: [
1332
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "text-black-secondary text-small flex gap-1 items-center", children: [
1333
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("span", { children: [
1333
1334
  alt_text,
1334
1335
  image_bytes && ` (${Math.round(image_bytes / 1e3)} kB)`
1335
1336
  ] }),
1336
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1337
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1337
1338
  "button",
1338
1339
  {
1339
1340
  type: "button",
1340
1341
  className: "w-[15px] h-[15px]",
1341
1342
  onClick: () => setShowImage((prev) => !prev),
1342
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1343
+ children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1343
1344
  "svg",
1344
1345
  {
1345
1346
  xmlns: "http://www.w3.org/2000/svg",
@@ -1355,7 +1356,7 @@ var Image = (props) => {
1355
1356
  style: {
1356
1357
  transform: showImage ? "rotate(0deg)" : "rotate(-90deg)"
1357
1358
  },
1358
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1359
+ children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1359
1360
  "path",
1360
1361
  {
1361
1362
  fill: "currentColor",
@@ -1368,7 +1369,7 @@ var Image = (props) => {
1368
1369
  }
1369
1370
  )
1370
1371
  ] }),
1371
- showImage && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "rounded-md overflow-hidden relative max-w-max", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1372
+ showImage && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "rounded-md overflow-hidden relative max-w-max", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1372
1373
  "img",
1373
1374
  {
1374
1375
  src: image_url,
@@ -1383,17 +1384,17 @@ var Image = (props) => {
1383
1384
  };
1384
1385
 
1385
1386
  // src/components/blocks/input.tsx
1386
- var import_jsx_runtime27 = require("react/jsx-runtime");
1387
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1387
1388
  var Input = (props) => {
1388
1389
  const { element: given_element, label, block_id, hint, optional, type } = props.data;
1389
1390
  const element = given_element ? getElementComponent(given_element) : null;
1390
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1391
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1391
1392
  "div",
1392
1393
  {
1393
1394
  id: block_id,
1394
1395
  className: `mt-2 mb-1 text-primary slack_blocks_to_jsx__input flex w-full text-black-primary`,
1395
- children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "grow", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex flex-col gap-2", children: [
1396
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1396
+ children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "grow", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex flex-col gap-2", children: [
1397
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1397
1398
  TextObject,
1398
1399
  {
1399
1400
  data: {
@@ -1404,11 +1405,11 @@ var Input = (props) => {
1404
1405
  }
1405
1406
  }
1406
1407
  ),
1407
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "mb-1 flex flex-col gap-1", children: [
1408
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "relative shrink-0", children: element }),
1409
- (hint || given_element.type === "plain_text_input") && /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "text-black-secondary text-small flex gap-1", children: [
1410
- hint && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "inline", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(TextObject, { data: hint }) }),
1411
- given_element.type === "plain_text_input" && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { children: "\u21B5 Please 'enter' to submit" })
1408
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "mb-1 flex flex-col gap-1", children: [
1409
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "relative shrink-0", children: element }),
1410
+ (hint || given_element.type === "plain_text_input") && /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "text-black-secondary text-small flex gap-1", children: [
1411
+ hint && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "inline", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(TextObject, { data: hint }) }),
1412
+ given_element.type === "plain_text_input" && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { children: "\u21B5 Please 'enter' to submit" })
1412
1413
  ] })
1413
1414
  ] })
1414
1415
  ] }) })
@@ -1417,27 +1418,27 @@ var Input = (props) => {
1417
1418
  };
1418
1419
 
1419
1420
  // src/components/blocks/rich_text/rich_text_list_wrapper.tsx
1420
- var import_jsx_runtime28 = require("react/jsx-runtime");
1421
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1421
1422
  var RichTextListWrapper = (props) => {
1422
1423
  const _a = props, { element, children } = _a, rest = __objRest(_a, ["element", "children"]);
1423
1424
  if (element.style === "bullet") {
1424
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("ul", __spreadProps(__spreadValues({}, rest), { children }));
1425
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("ul", __spreadProps(__spreadValues({}, rest), { children }));
1425
1426
  }
1426
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("ol", __spreadProps(__spreadValues({}, rest), { children }));
1427
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("ol", __spreadProps(__spreadValues({}, rest), { children }));
1427
1428
  };
1428
1429
 
1429
1430
  // src/components/blocks/rich_text/rich_text_section_broadcast.tsx
1430
- var import_jsx_runtime29 = require("react/jsx-runtime");
1431
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1431
1432
  var RichTextSectionBroadcast = (props) => {
1432
1433
  const { range, style } = props;
1433
1434
  const { hooks } = useGlobalData();
1434
1435
  if (range === "channel" && hooks.atChannel)
1435
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_jsx_runtime29.Fragment, { children: hooks.atChannel() });
1436
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_jsx_runtime30.Fragment, { children: hooks.atChannel() });
1436
1437
  if (range === "everyone" && hooks.atEveryone)
1437
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_jsx_runtime29.Fragment, { children: hooks.atEveryone() });
1438
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_jsx_runtime30.Fragment, { children: hooks.atEveryone() });
1438
1439
  if (range === "here" && hooks.atHere)
1439
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_jsx_runtime29.Fragment, { children: hooks.atHere() });
1440
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
1440
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_jsx_runtime30.Fragment, { children: hooks.atHere() });
1441
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
1441
1442
  "span",
1442
1443
  {
1443
1444
  className: `
@@ -1456,15 +1457,15 @@ var RichTextSectionBroadcast = (props) => {
1456
1457
  };
1457
1458
 
1458
1459
  // src/components/blocks/rich_text/rich_text_section_channel.tsx
1459
- var import_jsx_runtime30 = require("react/jsx-runtime");
1460
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1460
1461
  var RichTextSectionChannel = (props) => {
1461
1462
  const { channel_id, style } = props;
1462
1463
  const { channels, hooks } = useGlobalData();
1463
1464
  const channel = channels.find((u) => u.id === channel_id || u.name === channel_id);
1464
1465
  const label = (channel == null ? void 0 : channel.name) || channel_id;
1465
1466
  if (hooks.channel)
1466
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_jsx_runtime30.Fragment, { children: hooks.channel(channel || { id: channel_id, name: label }) });
1467
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
1467
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_jsx_runtime31.Fragment, { children: hooks.channel(channel || { id: channel_id, name: label }) });
1468
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
1468
1469
  "span",
1469
1470
  {
1470
1471
  "data-channel-id": (channel == null ? void 0 : channel.id) || channel_id,
@@ -1484,23 +1485,23 @@ var RichTextSectionChannel = (props) => {
1484
1485
  };
1485
1486
 
1486
1487
  // src/components/blocks/rich_text/rich_text_section_emoji.tsx
1487
- var import_jsx_runtime31 = require("react/jsx-runtime");
1488
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1488
1489
  var RichTextSectionEmoji = (props) => {
1489
1490
  const { name } = props;
1490
1491
  const { hooks } = useGlobalData();
1491
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "slack_blocks_to_jsx__rich_text_section_element_emoji", children: hooks.emoji ? hooks.emoji(name) : parseEmojis(`:${name}:`) });
1492
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "slack_blocks_to_jsx__rich_text_section_element_emoji", children: hooks.emoji ? hooks.emoji(name) : parseEmojis(`:${name}:`) });
1492
1493
  };
1493
1494
 
1494
1495
  // src/components/blocks/rich_text/rich_text_section_user.tsx
1495
- var import_jsx_runtime32 = require("react/jsx-runtime");
1496
+ var import_jsx_runtime33 = require("react/jsx-runtime");
1496
1497
  var RichTextSectionUser = (props) => {
1497
1498
  const { user_id, style } = props;
1498
1499
  const { users, hooks } = useGlobalData();
1499
1500
  const user = users.find((u) => u.id === user_id || u.name === user_id);
1500
1501
  const label = (user == null ? void 0 : user.name) || user_id;
1501
1502
  if (hooks.user)
1502
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_jsx_runtime32.Fragment, { children: hooks.user(user || { id: user_id, name: label }) });
1503
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
1503
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, { children: hooks.user(user || { id: user_id, name: label }) });
1504
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
1504
1505
  "span",
1505
1506
  {
1506
1507
  "data-user-id": (user == null ? void 0 : user.id) || user_id,
@@ -1520,15 +1521,15 @@ var RichTextSectionUser = (props) => {
1520
1521
  };
1521
1522
 
1522
1523
  // src/components/blocks/rich_text/rich_text_section_user_group.tsx
1523
- var import_jsx_runtime33 = require("react/jsx-runtime");
1524
+ var import_jsx_runtime34 = require("react/jsx-runtime");
1524
1525
  var RichTextSectionUserGroup = (props) => {
1525
1526
  const { usergroup_id, style } = props;
1526
1527
  const { user_groups, hooks } = useGlobalData();
1527
1528
  const group = user_groups.find((u) => u.id === usergroup_id || u.name === usergroup_id);
1528
1529
  const label = (group == null ? void 0 : group.name) || usergroup_id;
1529
1530
  if (hooks.usergroup)
1530
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, { children: hooks.usergroup(group || { id: usergroup_id, name: label }) });
1531
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
1531
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_jsx_runtime34.Fragment, { children: hooks.usergroup(group || { id: usergroup_id, name: label }) });
1532
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
1532
1533
  "span",
1533
1534
  {
1534
1535
  "data-usergroup-id": (group == null ? void 0 : group.id) || usergroup_id,
@@ -1548,22 +1549,22 @@ var RichTextSectionUserGroup = (props) => {
1548
1549
  };
1549
1550
 
1550
1551
  // src/components/blocks/rich_text/rich_text_section.tsx
1551
- var import_jsx_runtime34 = require("react/jsx-runtime");
1552
+ var import_jsx_runtime35 = require("react/jsx-runtime");
1552
1553
  var RichTextSectionElement = (props) => {
1553
1554
  const { element } = props;
1554
1555
  if (element.type === "user")
1555
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(RichTextSectionUser, __spreadValues({}, element));
1556
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(RichTextSectionUser, __spreadValues({}, element));
1556
1557
  if (element.type === "channel")
1557
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(RichTextSectionChannel, __spreadValues({}, element));
1558
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(RichTextSectionChannel, __spreadValues({}, element));
1558
1559
  if (element.type === "broadcast")
1559
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(RichTextSectionBroadcast, __spreadValues({}, element));
1560
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(RichTextSectionBroadcast, __spreadValues({}, element));
1560
1561
  if (element.type === "emoji")
1561
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(RichTextSectionEmoji, __spreadValues({}, element));
1562
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(RichTextSectionEmoji, __spreadValues({}, element));
1562
1563
  if (element.type === "usergroup")
1563
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(RichTextSectionUserGroup, __spreadValues({}, element));
1564
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(RichTextSectionUserGroup, __spreadValues({}, element));
1564
1565
  if (element.type === "text") {
1565
1566
  const { text, style } = element;
1566
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1567
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1567
1568
  "span",
1568
1569
  {
1569
1570
  className: `
@@ -1579,7 +1580,7 @@ var RichTextSectionElement = (props) => {
1579
1580
  }
1580
1581
  if (element.type === "link") {
1581
1582
  const { url, style, text } = element;
1582
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1583
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1583
1584
  "a",
1584
1585
  {
1585
1586
  target: "_blank",
@@ -1601,21 +1602,21 @@ var RichTextSectionElement = (props) => {
1601
1602
  };
1602
1603
 
1603
1604
  // src/components/blocks/rich_text/rich_text.tsx
1604
- var import_jsx_runtime35 = require("react/jsx-runtime");
1605
+ var import_jsx_runtime36 = require("react/jsx-runtime");
1605
1606
  var RichText = (props) => {
1606
1607
  const { elements, block_id } = props.data;
1607
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { id: block_id, className: "slack_blocks_to_jsx__rich_text", children: elements.map((element, i) => {
1608
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Element, { element }, `${element.type}__${i}`);
1608
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { id: block_id, className: "slack_blocks_to_jsx__rich_text", children: elements.map((element, i) => {
1609
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Element, { element }, `${element.type}__${i}`);
1609
1610
  }) });
1610
1611
  };
1611
1612
  var Element = (props) => {
1612
1613
  const { element } = props;
1613
1614
  if (element.type === "rich_text_list") {
1614
1615
  const { elements, style, border = 0, indent, offset } = element;
1615
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex gap-2 slack_blocks_to_jsx__rich_text_list_element", children: [
1616
- border === 1 && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "w-1 rounded bg-gray-primary self-stretch" }),
1617
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(RichTextListWrapper, { element, className: `list-none`, children: elements.map((el, i) => {
1618
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
1616
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex gap-2 slack_blocks_to_jsx__rich_text_list_element", children: [
1617
+ border === 1 && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "w-1 rounded bg-gray-primary self-stretch" }),
1618
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(RichTextListWrapper, { element, className: `list-none`, children: elements.map((el, i) => {
1619
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
1619
1620
  "li",
1620
1621
  {
1621
1622
  className: "flex",
@@ -1623,22 +1624,22 @@ var Element = (props) => {
1623
1624
  marginLeft: indent ? indent > 5 ? 0 : indent * 28 + 6 + 28 : 0
1624
1625
  },
1625
1626
  children: [
1626
- style === "ordered" && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { className: "w-[22px] h-[22px] shrink-0 flex items-center justify-center", children: [
1627
+ style === "ordered" && /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("span", { className: "w-[22px] h-[22px] shrink-0 flex items-center justify-center", children: [
1627
1628
  i + 1,
1628
1629
  "."
1629
1630
  ] }),
1630
- style === "bullet" && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { className: "w-[22px] h-[22px] shrink-0 flex items-center justify-center", children: [
1631
- (indent === void 0 || indent === 0 || indent === 3 || indent === 6) && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "w-1.5 h-1.5 rounded-full bg-current" }),
1632
- (indent === 1 || indent === 4 || indent === 7) && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "w-1.5 h-1.5 rounded-full border border-current" }),
1633
- (indent === 2 || indent === 5 || indent === 8) && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "w-1.5 h-1.5 rounded-[1.5px] bg-current" })
1631
+ style === "bullet" && /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("span", { className: "w-[22px] h-[22px] shrink-0 flex items-center justify-center", children: [
1632
+ (indent === void 0 || indent === 0 || indent === 3 || indent === 6) && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "w-1.5 h-1.5 rounded-full bg-current" }),
1633
+ (indent === 1 || indent === 4 || indent === 7) && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "w-1.5 h-1.5 rounded-full border border-current" }),
1634
+ (indent === 2 || indent === 5 || indent === 8) && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "w-1.5 h-1.5 rounded-[1.5px] bg-current" })
1634
1635
  ] }),
1635
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1636
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1636
1637
  "div",
1637
1638
  {
1638
1639
  style: {
1639
1640
  marginLeft: 6
1640
1641
  },
1641
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Element, { element: el }, `${element.type}__${i}`)
1642
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Element, { element: el }, `${element.type}__${i}`)
1642
1643
  }
1643
1644
  )
1644
1645
  ]
@@ -1650,9 +1651,9 @@ var Element = (props) => {
1650
1651
  }
1651
1652
  if (element.type === "rich_text_preformatted") {
1652
1653
  const { elements, border } = element;
1653
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("code", { className: "flex gap-2 w-full slack_blocks_to_jsx__rich_text_preformatted_element", children: [
1654
- border === 1 && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "w-1 rounded bg-gray-primary self-stretch" }),
1655
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1654
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("code", { className: "flex gap-2 w-full slack_blocks_to_jsx__rich_text_preformatted_element", children: [
1655
+ border === 1 && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "w-1 rounded bg-gray-primary self-stretch" }),
1656
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1656
1657
  "pre",
1657
1658
  {
1658
1659
  className: "p-2 rounded my-1 whitespace-pre-wrap bg-gray-secondary text-xs leading-[1.50001] border grow",
@@ -1661,7 +1662,7 @@ var Element = (props) => {
1661
1662
  wordBreak: "normal"
1662
1663
  },
1663
1664
  children: elements.map((el, i) => {
1664
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(RichTextSectionElement, { element: el }, `${el.type}__${i}`);
1665
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(RichTextSectionElement, { element: el }, `${el.type}__${i}`);
1665
1666
  })
1666
1667
  }
1667
1668
  )
@@ -1669,41 +1670,41 @@ var Element = (props) => {
1669
1670
  }
1670
1671
  if (element.type === "rich_text_quote") {
1671
1672
  const { elements, border } = element;
1672
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("blockquote", { className: "flex gap-2 slack_blocks_to_jsx__rich_text_quote_element", children: [
1673
- border === 1 && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "w-1 rounded bg-gray-primary self-stretch" }),
1673
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("blockquote", { className: "flex gap-2 slack_blocks_to_jsx__rich_text_quote_element", children: [
1674
+ border === 1 && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "w-1 rounded bg-gray-primary self-stretch" }),
1674
1675
  elements.map((el, i) => {
1675
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(RichTextSectionElement, { element: el }, `${el.type}__${i}`);
1676
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(RichTextSectionElement, { element: el }, `${el.type}__${i}`);
1676
1677
  })
1677
1678
  ] });
1678
1679
  }
1679
1680
  if (element.type === "rich_text_section") {
1680
1681
  const { elements } = element;
1681
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "inline-block slack_blocks_to_jsx__rich_text_section_element", children: elements.map((el, i) => {
1682
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(RichTextSectionElement, { element: el }, `${el.type}__${i}`);
1682
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "inline-block slack_blocks_to_jsx__rich_text_section_element", children: elements.map((el, i) => {
1683
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(RichTextSectionElement, { element: el }, `${el.type}__${i}`);
1683
1684
  }) });
1684
1685
  }
1685
1686
  return null;
1686
1687
  };
1687
1688
 
1688
1689
  // src/components/blocks/section.tsx
1689
- var import_jsx_runtime36 = require("react/jsx-runtime");
1690
+ var import_jsx_runtime37 = require("react/jsx-runtime");
1690
1691
  var Section = (props) => {
1691
1692
  const { accessory, fields, text, block_id } = props.data;
1692
1693
  const element = accessory ? getElementComponent(accessory) : null;
1693
1694
  const is_stacked = accessory ? is_accessory_stacked(accessory) : false;
1694
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
1695
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
1695
1696
  "div",
1696
1697
  {
1697
1698
  id: block_id,
1698
1699
  className: `mt-2 mb-1 text-primary slack_blocks_to_jsx__section flex w-full text-black-primary ${is_stacked ? "flex-col" : ""}`,
1699
1700
  children: [
1700
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "grow", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex flex-col gap-3", children: [
1701
- text && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TextObject, { data: text }),
1702
- fields && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "grid grid-col-2 w-full", children: fields.map((field, i) => {
1703
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TextObject, { data: field }, i);
1701
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "grow", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex flex-col gap-3", children: [
1702
+ text && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(TextObject, { data: text }),
1703
+ fields && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "grid grid-col-2 w-full", children: fields.map((field, i) => {
1704
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(TextObject, { data: field }, i);
1704
1705
  }) })
1705
1706
  ] }) }),
1706
- element && is_stacked ? element : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "ml-2 mb-1 relative shrink-0", children: element })
1707
+ element && is_stacked ? element : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "ml-2 mb-1 relative shrink-0", children: element })
1707
1708
  ]
1708
1709
  }
1709
1710
  );
@@ -1711,7 +1712,7 @@ var Section = (props) => {
1711
1712
 
1712
1713
  // src/components/blocks/video.tsx
1713
1714
  var import_react6 = require("react");
1714
- var import_jsx_runtime37 = require("react/jsx-runtime");
1715
+ var import_jsx_runtime38 = require("react/jsx-runtime");
1715
1716
  var Video = (props) => {
1716
1717
  const {
1717
1718
  // thumbnail_url,
@@ -1728,18 +1729,18 @@ var Video = (props) => {
1728
1729
  iframeProps = {}
1729
1730
  } = props.data;
1730
1731
  const [showVideo, setShowVideo] = (0, import_react6.useState)(true);
1731
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "py-2 slack_blocks_to_jsx__video", id: block_id, children: [
1732
- author_name && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "slack_blocks_to_jsx__video_author", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "font-bold", children: "Manish Panwar" }) }),
1733
- description && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "slack_blocks_to_jsx__video_description", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(TextObject, { data: description }) }),
1734
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex flex-wrap items-center gap-1 slack_blocks_to_jsx__video_title", children: [
1735
- title_url ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("a", { href: title_url, className: "text-blue-primary", target: "_blank", rel: "noreferrer", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(TextObject, { data: title }) }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(TextObject, { data: title }) }),
1736
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1732
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "py-2 slack_blocks_to_jsx__video", id: block_id, children: [
1733
+ author_name && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "slack_blocks_to_jsx__video_author", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "font-bold", children: "Manish Panwar" }) }),
1734
+ description && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "slack_blocks_to_jsx__video_description", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TextObject, { data: description }) }),
1735
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex flex-wrap items-center gap-1 slack_blocks_to_jsx__video_title", children: [
1736
+ title_url ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("a", { href: title_url, className: "text-blue-primary", target: "_blank", rel: "noreferrer", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TextObject, { data: title }) }) : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TextObject, { data: title }) }),
1737
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1737
1738
  "button",
1738
1739
  {
1739
1740
  type: "button",
1740
1741
  className: "w-[15px] h-[15px]",
1741
1742
  onClick: () => setShowVideo((prev) => !prev),
1742
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1743
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1743
1744
  "svg",
1744
1745
  {
1745
1746
  xmlns: "http://www.w3.org/2000/svg",
@@ -1755,7 +1756,7 @@ var Video = (props) => {
1755
1756
  style: {
1756
1757
  transform: showVideo ? "rotate(0deg)" : "rotate(-90deg)"
1757
1758
  },
1758
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1759
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1759
1760
  "path",
1760
1761
  {
1761
1762
  fill: "currentColor",
@@ -1768,7 +1769,7 @@ var Video = (props) => {
1768
1769
  }
1769
1770
  )
1770
1771
  ] }),
1771
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "slack_blocks_to_jsx__video_container max-w-max", children: showVideo && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1772
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "slack_blocks_to_jsx__video_container max-w-max", children: showVideo && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1772
1773
  "iframe",
1773
1774
  __spreadValues({
1774
1775
  title: alt_text,
@@ -1780,41 +1781,41 @@ var Video = (props) => {
1780
1781
  };
1781
1782
 
1782
1783
  // src/components/index.tsx
1783
- var import_jsx_runtime38 = require("react/jsx-runtime");
1784
+ var import_jsx_runtime39 = require("react/jsx-runtime");
1784
1785
  var getBlockComponent = (block) => {
1785
1786
  if (block.type === "divider")
1786
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Divider, { data: block });
1787
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Divider, { data: block });
1787
1788
  if (block.type === "section")
1788
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Section, { data: block });
1789
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Section, { data: block });
1789
1790
  if (block.type === "image")
1790
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Image, { data: block });
1791
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Image, { data: block });
1791
1792
  if (block.type === "context")
1792
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Context, { data: block });
1793
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Context, { data: block });
1793
1794
  if (block.type === "actions")
1794
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Actions, { data: block });
1795
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Actions, { data: block });
1795
1796
  if (block.type === "file")
1796
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(File, { data: block });
1797
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(File, { data: block });
1797
1798
  if (block.type === "header")
1798
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Header2, { data: block });
1799
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Header2, { data: block });
1799
1800
  if (block.type === "input")
1800
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Input, { data: block });
1801
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Input, { data: block });
1801
1802
  if (block.type === "video")
1802
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Video, { data: block });
1803
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Video, { data: block });
1803
1804
  if (block.type === "rich_text")
1804
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(RichText, { data: block });
1805
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(RichText, { data: block });
1805
1806
  return null;
1806
1807
  };
1807
1808
  var getElementComponent = (element) => {
1808
1809
  if (element.type === "button")
1809
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ButtonElement, { data: element });
1810
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(ButtonElement, { data: element });
1810
1811
  if (element.type === "checkboxes")
1811
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(CheckboxesElement, { data: element });
1812
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(CheckboxesElement, { data: element });
1812
1813
  if (element.type === "image")
1813
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ImageElement, { data: element });
1814
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(ImageElement, { data: element });
1814
1815
  if (element.type === "plain_text_input")
1815
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(PlaintTextInput, { data: element });
1816
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(PlaintTextInput, { data: element });
1816
1817
  if (element.type === "users_select")
1817
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(UsersSelectElement, { data: element });
1818
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(UsersSelectElement, { data: element });
1818
1819
  if (element.type === "datepicker")
1819
1820
  return null;
1820
1821
  if (element.type === "datetimepicker")
@@ -1853,15 +1854,15 @@ var getElementComponent = (element) => {
1853
1854
  };
1854
1855
 
1855
1856
  // src/block_wrapper.tsx
1856
- var import_jsx_runtime39 = require("react/jsx-runtime");
1857
+ var import_jsx_runtime40 = require("react/jsx-runtime");
1857
1858
  var BlockWrapper = (props) => {
1858
1859
  const { children } = props;
1859
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "text-base slack_blocks_to_jsx--block_wrapper break-words font-normal", children });
1860
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "text-base slack_blocks_to_jsx--block_wrapper break-words font-normal", children });
1860
1861
  };
1861
1862
 
1862
1863
  // src/message.tsx
1863
1864
  var import_react7 = require("react");
1864
- var import_jsx_runtime40 = require("react/jsx-runtime");
1865
+ var import_jsx_runtime41 = require("react/jsx-runtime");
1865
1866
  var Message = (props) => {
1866
1867
  const {
1867
1868
  blocks,
@@ -1888,7 +1889,7 @@ var Message = (props) => {
1888
1889
  setHooks(hooks);
1889
1890
  }, [data, hooks]);
1890
1891
  if (withoutWrapper) {
1891
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
1892
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
1892
1893
  "div",
1893
1894
  {
1894
1895
  id: "slack_blocks_to_jsx",
@@ -1898,18 +1899,18 @@ var Message = (props) => {
1898
1899
  const element = getBlockComponent(block);
1899
1900
  if (!element)
1900
1901
  return null;
1901
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(BlockWrapper, { children: element }, i);
1902
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(BlockWrapper, { children: element }, i);
1902
1903
  })
1903
1904
  }
1904
1905
  );
1905
1906
  }
1906
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { id: "slack_blocks_to_jsx", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
1907
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { id: "slack_blocks_to_jsx", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
1907
1908
  "section",
1908
1909
  {
1909
1910
  className: `flex gap-2 w-full max-w-[600px] slack_blocks_to_jsx relative ${unstyled ? "styles_disabled" : "styles_enabled"} ${className}`,
1910
1911
  style,
1911
1912
  children: [
1912
- showBlockKitDebug && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
1913
+ showBlockKitDebug && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
1913
1914
  "a",
1914
1915
  {
1915
1916
  target: "_blank",
@@ -1921,14 +1922,14 @@ var Message = (props) => {
1921
1922
  children: "Open in Slack Block Kit Builder"
1922
1923
  }
1923
1924
  ),
1924
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("img", { src: logo, className: "w-9 h-9", alt: name }) }),
1925
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "flex flex-col w-full", children: [
1926
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Header, { name, time }),
1927
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "slack_blocks_to_jsx--blocks", children: blocks.map((block, i) => {
1925
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("img", { src: logo, className: "w-9 h-9", alt: name }) }),
1926
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex flex-col w-full", children: [
1927
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Header, { name, time }),
1928
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "slack_blocks_to_jsx--blocks", children: blocks.map((block, i) => {
1928
1929
  const element = getBlockComponent(block);
1929
1930
  if (!element)
1930
1931
  return null;
1931
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(BlockWrapper, { children: element }, i);
1932
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(BlockWrapper, { children: element }, i);
1932
1933
  }) })
1933
1934
  ] })
1934
1935
  ]
package/dist/index.mjs CHANGED
@@ -1283,14 +1283,15 @@ var File = (props) => {
1283
1283
  };
1284
1284
 
1285
1285
  // src/components/blocks/header.tsx
1286
+ import { jsx as jsx26 } from "react/jsx-runtime";
1286
1287
  var Header2 = (props) => {
1287
- const { type } = props.data;
1288
- return null;
1288
+ const { text, block_id } = props.data;
1289
+ return /* @__PURE__ */ jsx26("div", { id: block_id, className: "mt-1 slack_blocks_to_jsx__header", children: /* @__PURE__ */ jsx26("h3", { className: "text-header font-bold slack_blocks_to_jsx__header_heading", children: /* @__PURE__ */ jsx26(TextObject, { data: text }) }) });
1289
1290
  };
1290
1291
 
1291
1292
  // src/components/blocks/image.tsx
1292
1293
  import { useState as useState5 } from "react";
1293
- import { jsx as jsx26, jsxs as jsxs11 } from "react/jsx-runtime";
1294
+ import { jsx as jsx27, jsxs as jsxs11 } from "react/jsx-runtime";
1294
1295
  var Image = (props) => {
1295
1296
  const { block_id, alt_text, image_url, image_bytes, image_height, image_width } = props.data;
1296
1297
  const [showImage, setShowImage] = useState5(true);
@@ -1300,13 +1301,13 @@ var Image = (props) => {
1300
1301
  alt_text,
1301
1302
  image_bytes && ` (${Math.round(image_bytes / 1e3)} kB)`
1302
1303
  ] }),
1303
- /* @__PURE__ */ jsx26(
1304
+ /* @__PURE__ */ jsx27(
1304
1305
  "button",
1305
1306
  {
1306
1307
  type: "button",
1307
1308
  className: "w-[15px] h-[15px]",
1308
1309
  onClick: () => setShowImage((prev) => !prev),
1309
- children: /* @__PURE__ */ jsx26(
1310
+ children: /* @__PURE__ */ jsx27(
1310
1311
  "svg",
1311
1312
  {
1312
1313
  xmlns: "http://www.w3.org/2000/svg",
@@ -1322,7 +1323,7 @@ var Image = (props) => {
1322
1323
  style: {
1323
1324
  transform: showImage ? "rotate(0deg)" : "rotate(-90deg)"
1324
1325
  },
1325
- children: /* @__PURE__ */ jsx26(
1326
+ children: /* @__PURE__ */ jsx27(
1326
1327
  "path",
1327
1328
  {
1328
1329
  fill: "currentColor",
@@ -1335,7 +1336,7 @@ var Image = (props) => {
1335
1336
  }
1336
1337
  )
1337
1338
  ] }),
1338
- showImage && /* @__PURE__ */ jsx26("div", { className: "rounded-md overflow-hidden relative max-w-max", children: /* @__PURE__ */ jsx26(
1339
+ showImage && /* @__PURE__ */ jsx27("div", { className: "rounded-md overflow-hidden relative max-w-max", children: /* @__PURE__ */ jsx27(
1339
1340
  "img",
1340
1341
  {
1341
1342
  src: image_url,
@@ -1350,17 +1351,17 @@ var Image = (props) => {
1350
1351
  };
1351
1352
 
1352
1353
  // src/components/blocks/input.tsx
1353
- import { jsx as jsx27, jsxs as jsxs12 } from "react/jsx-runtime";
1354
+ import { jsx as jsx28, jsxs as jsxs12 } from "react/jsx-runtime";
1354
1355
  var Input = (props) => {
1355
1356
  const { element: given_element, label, block_id, hint, optional, type } = props.data;
1356
1357
  const element = given_element ? getElementComponent(given_element) : null;
1357
- return /* @__PURE__ */ jsx27(
1358
+ return /* @__PURE__ */ jsx28(
1358
1359
  "div",
1359
1360
  {
1360
1361
  id: block_id,
1361
1362
  className: `mt-2 mb-1 text-primary slack_blocks_to_jsx__input flex w-full text-black-primary`,
1362
- children: /* @__PURE__ */ jsx27("div", { className: "grow", children: /* @__PURE__ */ jsxs12("div", { className: "flex flex-col gap-2", children: [
1363
- /* @__PURE__ */ jsx27(
1363
+ children: /* @__PURE__ */ jsx28("div", { className: "grow", children: /* @__PURE__ */ jsxs12("div", { className: "flex flex-col gap-2", children: [
1364
+ /* @__PURE__ */ jsx28(
1364
1365
  TextObject,
1365
1366
  {
1366
1367
  data: {
@@ -1372,10 +1373,10 @@ var Input = (props) => {
1372
1373
  }
1373
1374
  ),
1374
1375
  /* @__PURE__ */ jsxs12("div", { className: "mb-1 flex flex-col gap-1", children: [
1375
- /* @__PURE__ */ jsx27("div", { className: "relative shrink-0", children: element }),
1376
+ /* @__PURE__ */ jsx28("div", { className: "relative shrink-0", children: element }),
1376
1377
  (hint || given_element.type === "plain_text_input") && /* @__PURE__ */ jsxs12("div", { className: "text-black-secondary text-small flex gap-1", children: [
1377
- hint && /* @__PURE__ */ jsx27("div", { className: "inline", children: /* @__PURE__ */ jsx27(TextObject, { data: hint }) }),
1378
- given_element.type === "plain_text_input" && /* @__PURE__ */ jsx27("p", { children: "\u21B5 Please 'enter' to submit" })
1378
+ hint && /* @__PURE__ */ jsx28("div", { className: "inline", children: /* @__PURE__ */ jsx28(TextObject, { data: hint }) }),
1379
+ given_element.type === "plain_text_input" && /* @__PURE__ */ jsx28("p", { children: "\u21B5 Please 'enter' to submit" })
1379
1380
  ] })
1380
1381
  ] })
1381
1382
  ] }) })
@@ -1384,26 +1385,26 @@ var Input = (props) => {
1384
1385
  };
1385
1386
 
1386
1387
  // src/components/blocks/rich_text/rich_text_list_wrapper.tsx
1387
- import { jsx as jsx28 } from "react/jsx-runtime";
1388
+ import { jsx as jsx29 } from "react/jsx-runtime";
1388
1389
  var RichTextListWrapper = (props) => {
1389
1390
  const _a = props, { element, children } = _a, rest = __objRest(_a, ["element", "children"]);
1390
1391
  if (element.style === "bullet") {
1391
- return /* @__PURE__ */ jsx28("ul", __spreadProps(__spreadValues({}, rest), { children }));
1392
+ return /* @__PURE__ */ jsx29("ul", __spreadProps(__spreadValues({}, rest), { children }));
1392
1393
  }
1393
- return /* @__PURE__ */ jsx28("ol", __spreadProps(__spreadValues({}, rest), { children }));
1394
+ return /* @__PURE__ */ jsx29("ol", __spreadProps(__spreadValues({}, rest), { children }));
1394
1395
  };
1395
1396
 
1396
1397
  // src/components/blocks/rich_text/rich_text_section_broadcast.tsx
1397
- import { Fragment as Fragment7, jsx as jsx29, jsxs as jsxs13 } from "react/jsx-runtime";
1398
+ import { Fragment as Fragment7, jsx as jsx30, jsxs as jsxs13 } from "react/jsx-runtime";
1398
1399
  var RichTextSectionBroadcast = (props) => {
1399
1400
  const { range, style } = props;
1400
1401
  const { hooks } = useGlobalData();
1401
1402
  if (range === "channel" && hooks.atChannel)
1402
- return /* @__PURE__ */ jsx29(Fragment7, { children: hooks.atChannel() });
1403
+ return /* @__PURE__ */ jsx30(Fragment7, { children: hooks.atChannel() });
1403
1404
  if (range === "everyone" && hooks.atEveryone)
1404
- return /* @__PURE__ */ jsx29(Fragment7, { children: hooks.atEveryone() });
1405
+ return /* @__PURE__ */ jsx30(Fragment7, { children: hooks.atEveryone() });
1405
1406
  if (range === "here" && hooks.atHere)
1406
- return /* @__PURE__ */ jsx29(Fragment7, { children: hooks.atHere() });
1407
+ return /* @__PURE__ */ jsx30(Fragment7, { children: hooks.atHere() });
1407
1408
  return /* @__PURE__ */ jsxs13(
1408
1409
  "span",
1409
1410
  {
@@ -1423,14 +1424,14 @@ var RichTextSectionBroadcast = (props) => {
1423
1424
  };
1424
1425
 
1425
1426
  // src/components/blocks/rich_text/rich_text_section_channel.tsx
1426
- import { Fragment as Fragment8, jsx as jsx30, jsxs as jsxs14 } from "react/jsx-runtime";
1427
+ import { Fragment as Fragment8, jsx as jsx31, jsxs as jsxs14 } from "react/jsx-runtime";
1427
1428
  var RichTextSectionChannel = (props) => {
1428
1429
  const { channel_id, style } = props;
1429
1430
  const { channels, hooks } = useGlobalData();
1430
1431
  const channel = channels.find((u) => u.id === channel_id || u.name === channel_id);
1431
1432
  const label = (channel == null ? void 0 : channel.name) || channel_id;
1432
1433
  if (hooks.channel)
1433
- return /* @__PURE__ */ jsx30(Fragment8, { children: hooks.channel(channel || { id: channel_id, name: label }) });
1434
+ return /* @__PURE__ */ jsx31(Fragment8, { children: hooks.channel(channel || { id: channel_id, name: label }) });
1434
1435
  return /* @__PURE__ */ jsxs14(
1435
1436
  "span",
1436
1437
  {
@@ -1451,22 +1452,22 @@ var RichTextSectionChannel = (props) => {
1451
1452
  };
1452
1453
 
1453
1454
  // src/components/blocks/rich_text/rich_text_section_emoji.tsx
1454
- import { jsx as jsx31 } from "react/jsx-runtime";
1455
+ import { jsx as jsx32 } from "react/jsx-runtime";
1455
1456
  var RichTextSectionEmoji = (props) => {
1456
1457
  const { name } = props;
1457
1458
  const { hooks } = useGlobalData();
1458
- return /* @__PURE__ */ jsx31("span", { className: "slack_blocks_to_jsx__rich_text_section_element_emoji", children: hooks.emoji ? hooks.emoji(name) : parseEmojis(`:${name}:`) });
1459
+ return /* @__PURE__ */ jsx32("span", { className: "slack_blocks_to_jsx__rich_text_section_element_emoji", children: hooks.emoji ? hooks.emoji(name) : parseEmojis(`:${name}:`) });
1459
1460
  };
1460
1461
 
1461
1462
  // src/components/blocks/rich_text/rich_text_section_user.tsx
1462
- import { Fragment as Fragment9, jsx as jsx32, jsxs as jsxs15 } from "react/jsx-runtime";
1463
+ import { Fragment as Fragment9, jsx as jsx33, jsxs as jsxs15 } from "react/jsx-runtime";
1463
1464
  var RichTextSectionUser = (props) => {
1464
1465
  const { user_id, style } = props;
1465
1466
  const { users, hooks } = useGlobalData();
1466
1467
  const user = users.find((u) => u.id === user_id || u.name === user_id);
1467
1468
  const label = (user == null ? void 0 : user.name) || user_id;
1468
1469
  if (hooks.user)
1469
- return /* @__PURE__ */ jsx32(Fragment9, { children: hooks.user(user || { id: user_id, name: label }) });
1470
+ return /* @__PURE__ */ jsx33(Fragment9, { children: hooks.user(user || { id: user_id, name: label }) });
1470
1471
  return /* @__PURE__ */ jsxs15(
1471
1472
  "span",
1472
1473
  {
@@ -1487,14 +1488,14 @@ var RichTextSectionUser = (props) => {
1487
1488
  };
1488
1489
 
1489
1490
  // src/components/blocks/rich_text/rich_text_section_user_group.tsx
1490
- import { Fragment as Fragment10, jsx as jsx33, jsxs as jsxs16 } from "react/jsx-runtime";
1491
+ import { Fragment as Fragment10, jsx as jsx34, jsxs as jsxs16 } from "react/jsx-runtime";
1491
1492
  var RichTextSectionUserGroup = (props) => {
1492
1493
  const { usergroup_id, style } = props;
1493
1494
  const { user_groups, hooks } = useGlobalData();
1494
1495
  const group = user_groups.find((u) => u.id === usergroup_id || u.name === usergroup_id);
1495
1496
  const label = (group == null ? void 0 : group.name) || usergroup_id;
1496
1497
  if (hooks.usergroup)
1497
- return /* @__PURE__ */ jsx33(Fragment10, { children: hooks.usergroup(group || { id: usergroup_id, name: label }) });
1498
+ return /* @__PURE__ */ jsx34(Fragment10, { children: hooks.usergroup(group || { id: usergroup_id, name: label }) });
1498
1499
  return /* @__PURE__ */ jsxs16(
1499
1500
  "span",
1500
1501
  {
@@ -1515,22 +1516,22 @@ var RichTextSectionUserGroup = (props) => {
1515
1516
  };
1516
1517
 
1517
1518
  // src/components/blocks/rich_text/rich_text_section.tsx
1518
- import { jsx as jsx34 } from "react/jsx-runtime";
1519
+ import { jsx as jsx35 } from "react/jsx-runtime";
1519
1520
  var RichTextSectionElement = (props) => {
1520
1521
  const { element } = props;
1521
1522
  if (element.type === "user")
1522
- return /* @__PURE__ */ jsx34(RichTextSectionUser, __spreadValues({}, element));
1523
+ return /* @__PURE__ */ jsx35(RichTextSectionUser, __spreadValues({}, element));
1523
1524
  if (element.type === "channel")
1524
- return /* @__PURE__ */ jsx34(RichTextSectionChannel, __spreadValues({}, element));
1525
+ return /* @__PURE__ */ jsx35(RichTextSectionChannel, __spreadValues({}, element));
1525
1526
  if (element.type === "broadcast")
1526
- return /* @__PURE__ */ jsx34(RichTextSectionBroadcast, __spreadValues({}, element));
1527
+ return /* @__PURE__ */ jsx35(RichTextSectionBroadcast, __spreadValues({}, element));
1527
1528
  if (element.type === "emoji")
1528
- return /* @__PURE__ */ jsx34(RichTextSectionEmoji, __spreadValues({}, element));
1529
+ return /* @__PURE__ */ jsx35(RichTextSectionEmoji, __spreadValues({}, element));
1529
1530
  if (element.type === "usergroup")
1530
- return /* @__PURE__ */ jsx34(RichTextSectionUserGroup, __spreadValues({}, element));
1531
+ return /* @__PURE__ */ jsx35(RichTextSectionUserGroup, __spreadValues({}, element));
1531
1532
  if (element.type === "text") {
1532
1533
  const { text, style } = element;
1533
- return /* @__PURE__ */ jsx34(
1534
+ return /* @__PURE__ */ jsx35(
1534
1535
  "span",
1535
1536
  {
1536
1537
  className: `
@@ -1546,7 +1547,7 @@ var RichTextSectionElement = (props) => {
1546
1547
  }
1547
1548
  if (element.type === "link") {
1548
1549
  const { url, style, text } = element;
1549
- return /* @__PURE__ */ jsx34(
1550
+ return /* @__PURE__ */ jsx35(
1550
1551
  "a",
1551
1552
  {
1552
1553
  target: "_blank",
@@ -1568,11 +1569,11 @@ var RichTextSectionElement = (props) => {
1568
1569
  };
1569
1570
 
1570
1571
  // src/components/blocks/rich_text/rich_text.tsx
1571
- import { jsx as jsx35, jsxs as jsxs17 } from "react/jsx-runtime";
1572
+ import { jsx as jsx36, jsxs as jsxs17 } from "react/jsx-runtime";
1572
1573
  var RichText = (props) => {
1573
1574
  const { elements, block_id } = props.data;
1574
- return /* @__PURE__ */ jsx35("div", { id: block_id, className: "slack_blocks_to_jsx__rich_text", children: elements.map((element, i) => {
1575
- return /* @__PURE__ */ jsx35(Element, { element }, `${element.type}__${i}`);
1575
+ return /* @__PURE__ */ jsx36("div", { id: block_id, className: "slack_blocks_to_jsx__rich_text", children: elements.map((element, i) => {
1576
+ return /* @__PURE__ */ jsx36(Element, { element }, `${element.type}__${i}`);
1576
1577
  }) });
1577
1578
  };
1578
1579
  var Element = (props) => {
@@ -1580,8 +1581,8 @@ var Element = (props) => {
1580
1581
  if (element.type === "rich_text_list") {
1581
1582
  const { elements, style, border = 0, indent, offset } = element;
1582
1583
  return /* @__PURE__ */ jsxs17("div", { className: "flex gap-2 slack_blocks_to_jsx__rich_text_list_element", children: [
1583
- border === 1 && /* @__PURE__ */ jsx35("div", { className: "w-1 rounded bg-gray-primary self-stretch" }),
1584
- /* @__PURE__ */ jsx35(RichTextListWrapper, { element, className: `list-none`, children: elements.map((el, i) => {
1584
+ border === 1 && /* @__PURE__ */ jsx36("div", { className: "w-1 rounded bg-gray-primary self-stretch" }),
1585
+ /* @__PURE__ */ jsx36(RichTextListWrapper, { element, className: `list-none`, children: elements.map((el, i) => {
1585
1586
  return /* @__PURE__ */ jsxs17(
1586
1587
  "li",
1587
1588
  {
@@ -1595,17 +1596,17 @@ var Element = (props) => {
1595
1596
  "."
1596
1597
  ] }),
1597
1598
  style === "bullet" && /* @__PURE__ */ jsxs17("span", { className: "w-[22px] h-[22px] shrink-0 flex items-center justify-center", children: [
1598
- (indent === void 0 || indent === 0 || indent === 3 || indent === 6) && /* @__PURE__ */ jsx35("span", { className: "w-1.5 h-1.5 rounded-full bg-current" }),
1599
- (indent === 1 || indent === 4 || indent === 7) && /* @__PURE__ */ jsx35("span", { className: "w-1.5 h-1.5 rounded-full border border-current" }),
1600
- (indent === 2 || indent === 5 || indent === 8) && /* @__PURE__ */ jsx35("span", { className: "w-1.5 h-1.5 rounded-[1.5px] bg-current" })
1599
+ (indent === void 0 || indent === 0 || indent === 3 || indent === 6) && /* @__PURE__ */ jsx36("span", { className: "w-1.5 h-1.5 rounded-full bg-current" }),
1600
+ (indent === 1 || indent === 4 || indent === 7) && /* @__PURE__ */ jsx36("span", { className: "w-1.5 h-1.5 rounded-full border border-current" }),
1601
+ (indent === 2 || indent === 5 || indent === 8) && /* @__PURE__ */ jsx36("span", { className: "w-1.5 h-1.5 rounded-[1.5px] bg-current" })
1601
1602
  ] }),
1602
- /* @__PURE__ */ jsx35(
1603
+ /* @__PURE__ */ jsx36(
1603
1604
  "div",
1604
1605
  {
1605
1606
  style: {
1606
1607
  marginLeft: 6
1607
1608
  },
1608
- children: /* @__PURE__ */ jsx35(Element, { element: el }, `${element.type}__${i}`)
1609
+ children: /* @__PURE__ */ jsx36(Element, { element: el }, `${element.type}__${i}`)
1609
1610
  }
1610
1611
  )
1611
1612
  ]
@@ -1618,8 +1619,8 @@ var Element = (props) => {
1618
1619
  if (element.type === "rich_text_preformatted") {
1619
1620
  const { elements, border } = element;
1620
1621
  return /* @__PURE__ */ jsxs17("code", { className: "flex gap-2 w-full slack_blocks_to_jsx__rich_text_preformatted_element", children: [
1621
- border === 1 && /* @__PURE__ */ jsx35("div", { className: "w-1 rounded bg-gray-primary self-stretch" }),
1622
- /* @__PURE__ */ jsx35(
1622
+ border === 1 && /* @__PURE__ */ jsx36("div", { className: "w-1 rounded bg-gray-primary self-stretch" }),
1623
+ /* @__PURE__ */ jsx36(
1623
1624
  "pre",
1624
1625
  {
1625
1626
  className: "p-2 rounded my-1 whitespace-pre-wrap bg-gray-secondary text-xs leading-[1.50001] border grow",
@@ -1628,7 +1629,7 @@ var Element = (props) => {
1628
1629
  wordBreak: "normal"
1629
1630
  },
1630
1631
  children: elements.map((el, i) => {
1631
- return /* @__PURE__ */ jsx35(RichTextSectionElement, { element: el }, `${el.type}__${i}`);
1632
+ return /* @__PURE__ */ jsx36(RichTextSectionElement, { element: el }, `${el.type}__${i}`);
1632
1633
  })
1633
1634
  }
1634
1635
  )
@@ -1637,23 +1638,23 @@ var Element = (props) => {
1637
1638
  if (element.type === "rich_text_quote") {
1638
1639
  const { elements, border } = element;
1639
1640
  return /* @__PURE__ */ jsxs17("blockquote", { className: "flex gap-2 slack_blocks_to_jsx__rich_text_quote_element", children: [
1640
- border === 1 && /* @__PURE__ */ jsx35("div", { className: "w-1 rounded bg-gray-primary self-stretch" }),
1641
+ border === 1 && /* @__PURE__ */ jsx36("div", { className: "w-1 rounded bg-gray-primary self-stretch" }),
1641
1642
  elements.map((el, i) => {
1642
- return /* @__PURE__ */ jsx35(RichTextSectionElement, { element: el }, `${el.type}__${i}`);
1643
+ return /* @__PURE__ */ jsx36(RichTextSectionElement, { element: el }, `${el.type}__${i}`);
1643
1644
  })
1644
1645
  ] });
1645
1646
  }
1646
1647
  if (element.type === "rich_text_section") {
1647
1648
  const { elements } = element;
1648
- return /* @__PURE__ */ jsx35("div", { className: "inline-block slack_blocks_to_jsx__rich_text_section_element", children: elements.map((el, i) => {
1649
- return /* @__PURE__ */ jsx35(RichTextSectionElement, { element: el }, `${el.type}__${i}`);
1649
+ return /* @__PURE__ */ jsx36("div", { className: "inline-block slack_blocks_to_jsx__rich_text_section_element", children: elements.map((el, i) => {
1650
+ return /* @__PURE__ */ jsx36(RichTextSectionElement, { element: el }, `${el.type}__${i}`);
1650
1651
  }) });
1651
1652
  }
1652
1653
  return null;
1653
1654
  };
1654
1655
 
1655
1656
  // src/components/blocks/section.tsx
1656
- import { jsx as jsx36, jsxs as jsxs18 } from "react/jsx-runtime";
1657
+ import { jsx as jsx37, jsxs as jsxs18 } from "react/jsx-runtime";
1657
1658
  var Section = (props) => {
1658
1659
  const { accessory, fields, text, block_id } = props.data;
1659
1660
  const element = accessory ? getElementComponent(accessory) : null;
@@ -1664,13 +1665,13 @@ var Section = (props) => {
1664
1665
  id: block_id,
1665
1666
  className: `mt-2 mb-1 text-primary slack_blocks_to_jsx__section flex w-full text-black-primary ${is_stacked ? "flex-col" : ""}`,
1666
1667
  children: [
1667
- /* @__PURE__ */ jsx36("div", { className: "grow", children: /* @__PURE__ */ jsxs18("div", { className: "flex flex-col gap-3", children: [
1668
- text && /* @__PURE__ */ jsx36(TextObject, { data: text }),
1669
- fields && /* @__PURE__ */ jsx36("div", { className: "grid grid-col-2 w-full", children: fields.map((field, i) => {
1670
- return /* @__PURE__ */ jsx36(TextObject, { data: field }, i);
1668
+ /* @__PURE__ */ jsx37("div", { className: "grow", children: /* @__PURE__ */ jsxs18("div", { className: "flex flex-col gap-3", children: [
1669
+ text && /* @__PURE__ */ jsx37(TextObject, { data: text }),
1670
+ fields && /* @__PURE__ */ jsx37("div", { className: "grid grid-col-2 w-full", children: fields.map((field, i) => {
1671
+ return /* @__PURE__ */ jsx37(TextObject, { data: field }, i);
1671
1672
  }) })
1672
1673
  ] }) }),
1673
- element && is_stacked ? element : /* @__PURE__ */ jsx36("div", { className: "ml-2 mb-1 relative shrink-0", children: element })
1674
+ element && is_stacked ? element : /* @__PURE__ */ jsx37("div", { className: "ml-2 mb-1 relative shrink-0", children: element })
1674
1675
  ]
1675
1676
  }
1676
1677
  );
@@ -1678,7 +1679,7 @@ var Section = (props) => {
1678
1679
 
1679
1680
  // src/components/blocks/video.tsx
1680
1681
  import { useState as useState6 } from "react";
1681
- import { jsx as jsx37, jsxs as jsxs19 } from "react/jsx-runtime";
1682
+ import { jsx as jsx38, jsxs as jsxs19 } from "react/jsx-runtime";
1682
1683
  var Video = (props) => {
1683
1684
  const {
1684
1685
  // thumbnail_url,
@@ -1696,17 +1697,17 @@ var Video = (props) => {
1696
1697
  } = props.data;
1697
1698
  const [showVideo, setShowVideo] = useState6(true);
1698
1699
  return /* @__PURE__ */ jsxs19("div", { className: "py-2 slack_blocks_to_jsx__video", id: block_id, children: [
1699
- author_name && /* @__PURE__ */ jsx37("div", { className: "slack_blocks_to_jsx__video_author", children: /* @__PURE__ */ jsx37("span", { className: "font-bold", children: "Manish Panwar" }) }),
1700
- description && /* @__PURE__ */ jsx37("div", { className: "slack_blocks_to_jsx__video_description", children: /* @__PURE__ */ jsx37(TextObject, { data: description }) }),
1700
+ author_name && /* @__PURE__ */ jsx38("div", { className: "slack_blocks_to_jsx__video_author", children: /* @__PURE__ */ jsx38("span", { className: "font-bold", children: "Manish Panwar" }) }),
1701
+ description && /* @__PURE__ */ jsx38("div", { className: "slack_blocks_to_jsx__video_description", children: /* @__PURE__ */ jsx38(TextObject, { data: description }) }),
1701
1702
  /* @__PURE__ */ jsxs19("div", { className: "flex flex-wrap items-center gap-1 slack_blocks_to_jsx__video_title", children: [
1702
- title_url ? /* @__PURE__ */ jsx37("a", { href: title_url, className: "text-blue-primary", target: "_blank", rel: "noreferrer", children: /* @__PURE__ */ jsx37(TextObject, { data: title }) }) : /* @__PURE__ */ jsx37("p", { children: /* @__PURE__ */ jsx37(TextObject, { data: title }) }),
1703
- /* @__PURE__ */ jsx37(
1703
+ title_url ? /* @__PURE__ */ jsx38("a", { href: title_url, className: "text-blue-primary", target: "_blank", rel: "noreferrer", children: /* @__PURE__ */ jsx38(TextObject, { data: title }) }) : /* @__PURE__ */ jsx38("p", { children: /* @__PURE__ */ jsx38(TextObject, { data: title }) }),
1704
+ /* @__PURE__ */ jsx38(
1704
1705
  "button",
1705
1706
  {
1706
1707
  type: "button",
1707
1708
  className: "w-[15px] h-[15px]",
1708
1709
  onClick: () => setShowVideo((prev) => !prev),
1709
- children: /* @__PURE__ */ jsx37(
1710
+ children: /* @__PURE__ */ jsx38(
1710
1711
  "svg",
1711
1712
  {
1712
1713
  xmlns: "http://www.w3.org/2000/svg",
@@ -1722,7 +1723,7 @@ var Video = (props) => {
1722
1723
  style: {
1723
1724
  transform: showVideo ? "rotate(0deg)" : "rotate(-90deg)"
1724
1725
  },
1725
- children: /* @__PURE__ */ jsx37(
1726
+ children: /* @__PURE__ */ jsx38(
1726
1727
  "path",
1727
1728
  {
1728
1729
  fill: "currentColor",
@@ -1735,7 +1736,7 @@ var Video = (props) => {
1735
1736
  }
1736
1737
  )
1737
1738
  ] }),
1738
- /* @__PURE__ */ jsx37("div", { className: "slack_blocks_to_jsx__video_container max-w-max", children: showVideo && /* @__PURE__ */ jsx37(
1739
+ /* @__PURE__ */ jsx38("div", { className: "slack_blocks_to_jsx__video_container max-w-max", children: showVideo && /* @__PURE__ */ jsx38(
1739
1740
  "iframe",
1740
1741
  __spreadValues({
1741
1742
  title: alt_text,
@@ -1747,41 +1748,41 @@ var Video = (props) => {
1747
1748
  };
1748
1749
 
1749
1750
  // src/components/index.tsx
1750
- import { jsx as jsx38 } from "react/jsx-runtime";
1751
+ import { jsx as jsx39 } from "react/jsx-runtime";
1751
1752
  var getBlockComponent = (block) => {
1752
1753
  if (block.type === "divider")
1753
- return /* @__PURE__ */ jsx38(Divider, { data: block });
1754
+ return /* @__PURE__ */ jsx39(Divider, { data: block });
1754
1755
  if (block.type === "section")
1755
- return /* @__PURE__ */ jsx38(Section, { data: block });
1756
+ return /* @__PURE__ */ jsx39(Section, { data: block });
1756
1757
  if (block.type === "image")
1757
- return /* @__PURE__ */ jsx38(Image, { data: block });
1758
+ return /* @__PURE__ */ jsx39(Image, { data: block });
1758
1759
  if (block.type === "context")
1759
- return /* @__PURE__ */ jsx38(Context, { data: block });
1760
+ return /* @__PURE__ */ jsx39(Context, { data: block });
1760
1761
  if (block.type === "actions")
1761
- return /* @__PURE__ */ jsx38(Actions, { data: block });
1762
+ return /* @__PURE__ */ jsx39(Actions, { data: block });
1762
1763
  if (block.type === "file")
1763
- return /* @__PURE__ */ jsx38(File, { data: block });
1764
+ return /* @__PURE__ */ jsx39(File, { data: block });
1764
1765
  if (block.type === "header")
1765
- return /* @__PURE__ */ jsx38(Header2, { data: block });
1766
+ return /* @__PURE__ */ jsx39(Header2, { data: block });
1766
1767
  if (block.type === "input")
1767
- return /* @__PURE__ */ jsx38(Input, { data: block });
1768
+ return /* @__PURE__ */ jsx39(Input, { data: block });
1768
1769
  if (block.type === "video")
1769
- return /* @__PURE__ */ jsx38(Video, { data: block });
1770
+ return /* @__PURE__ */ jsx39(Video, { data: block });
1770
1771
  if (block.type === "rich_text")
1771
- return /* @__PURE__ */ jsx38(RichText, { data: block });
1772
+ return /* @__PURE__ */ jsx39(RichText, { data: block });
1772
1773
  return null;
1773
1774
  };
1774
1775
  var getElementComponent = (element) => {
1775
1776
  if (element.type === "button")
1776
- return /* @__PURE__ */ jsx38(ButtonElement, { data: element });
1777
+ return /* @__PURE__ */ jsx39(ButtonElement, { data: element });
1777
1778
  if (element.type === "checkboxes")
1778
- return /* @__PURE__ */ jsx38(CheckboxesElement, { data: element });
1779
+ return /* @__PURE__ */ jsx39(CheckboxesElement, { data: element });
1779
1780
  if (element.type === "image")
1780
- return /* @__PURE__ */ jsx38(ImageElement, { data: element });
1781
+ return /* @__PURE__ */ jsx39(ImageElement, { data: element });
1781
1782
  if (element.type === "plain_text_input")
1782
- return /* @__PURE__ */ jsx38(PlaintTextInput, { data: element });
1783
+ return /* @__PURE__ */ jsx39(PlaintTextInput, { data: element });
1783
1784
  if (element.type === "users_select")
1784
- return /* @__PURE__ */ jsx38(UsersSelectElement, { data: element });
1785
+ return /* @__PURE__ */ jsx39(UsersSelectElement, { data: element });
1785
1786
  if (element.type === "datepicker")
1786
1787
  return null;
1787
1788
  if (element.type === "datetimepicker")
@@ -1820,15 +1821,15 @@ var getElementComponent = (element) => {
1820
1821
  };
1821
1822
 
1822
1823
  // src/block_wrapper.tsx
1823
- import { jsx as jsx39 } from "react/jsx-runtime";
1824
+ import { jsx as jsx40 } from "react/jsx-runtime";
1824
1825
  var BlockWrapper = (props) => {
1825
1826
  const { children } = props;
1826
- return /* @__PURE__ */ jsx39("div", { className: "text-base slack_blocks_to_jsx--block_wrapper break-words font-normal", children });
1827
+ return /* @__PURE__ */ jsx40("div", { className: "text-base slack_blocks_to_jsx--block_wrapper break-words font-normal", children });
1827
1828
  };
1828
1829
 
1829
1830
  // src/message.tsx
1830
1831
  import { useEffect as useEffect5 } from "react";
1831
- import { jsx as jsx40, jsxs as jsxs20 } from "react/jsx-runtime";
1832
+ import { jsx as jsx41, jsxs as jsxs20 } from "react/jsx-runtime";
1832
1833
  var Message = (props) => {
1833
1834
  const {
1834
1835
  blocks,
@@ -1855,7 +1856,7 @@ var Message = (props) => {
1855
1856
  setHooks(hooks);
1856
1857
  }, [data, hooks]);
1857
1858
  if (withoutWrapper) {
1858
- return /* @__PURE__ */ jsx40(
1859
+ return /* @__PURE__ */ jsx41(
1859
1860
  "div",
1860
1861
  {
1861
1862
  id: "slack_blocks_to_jsx",
@@ -1865,18 +1866,18 @@ var Message = (props) => {
1865
1866
  const element = getBlockComponent(block);
1866
1867
  if (!element)
1867
1868
  return null;
1868
- return /* @__PURE__ */ jsx40(BlockWrapper, { children: element }, i);
1869
+ return /* @__PURE__ */ jsx41(BlockWrapper, { children: element }, i);
1869
1870
  })
1870
1871
  }
1871
1872
  );
1872
1873
  }
1873
- return /* @__PURE__ */ jsx40("div", { id: "slack_blocks_to_jsx", children: /* @__PURE__ */ jsxs20(
1874
+ return /* @__PURE__ */ jsx41("div", { id: "slack_blocks_to_jsx", children: /* @__PURE__ */ jsxs20(
1874
1875
  "section",
1875
1876
  {
1876
1877
  className: `flex gap-2 w-full max-w-[600px] slack_blocks_to_jsx relative ${unstyled ? "styles_disabled" : "styles_enabled"} ${className}`,
1877
1878
  style,
1878
1879
  children: [
1879
- showBlockKitDebug && /* @__PURE__ */ jsx40(
1880
+ showBlockKitDebug && /* @__PURE__ */ jsx41(
1880
1881
  "a",
1881
1882
  {
1882
1883
  target: "_blank",
@@ -1888,14 +1889,14 @@ var Message = (props) => {
1888
1889
  children: "Open in Slack Block Kit Builder"
1889
1890
  }
1890
1891
  ),
1891
- /* @__PURE__ */ jsx40("div", { className: "shrink-0", children: /* @__PURE__ */ jsx40("img", { src: logo, className: "w-9 h-9", alt: name }) }),
1892
+ /* @__PURE__ */ jsx41("div", { className: "shrink-0", children: /* @__PURE__ */ jsx41("img", { src: logo, className: "w-9 h-9", alt: name }) }),
1892
1893
  /* @__PURE__ */ jsxs20("div", { className: "flex flex-col w-full", children: [
1893
- /* @__PURE__ */ jsx40(Header, { name, time }),
1894
- /* @__PURE__ */ jsx40("div", { className: "slack_blocks_to_jsx--blocks", children: blocks.map((block, i) => {
1894
+ /* @__PURE__ */ jsx41(Header, { name, time }),
1895
+ /* @__PURE__ */ jsx41("div", { className: "slack_blocks_to_jsx--blocks", children: blocks.map((block, i) => {
1895
1896
  const element = getBlockComponent(block);
1896
1897
  if (!element)
1897
1898
  return null;
1898
- return /* @__PURE__ */ jsx40(BlockWrapper, { children: element }, i);
1899
+ return /* @__PURE__ */ jsx41(BlockWrapper, { children: element }, i);
1899
1900
  }) })
1900
1901
  ] })
1901
1902
  ]
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- @import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap");#slack_blocks_to_jsx :is(.pointer-events-none){pointer-events:none}#slack_blocks_to_jsx :is(.visible){visibility:visible}#slack_blocks_to_jsx :is(.absolute){position:absolute}#slack_blocks_to_jsx :is(.relative){position:relative}#slack_blocks_to_jsx :is(.-left-3){left:-.75rem}#slack_blocks_to_jsx :is(.-right-\[5px\]){right:-5px}#slack_blocks_to_jsx :is(.-top-\[5px\]){top:-5px}#slack_blocks_to_jsx :is(.left-2){left:.5rem}#slack_blocks_to_jsx :is(.right-0){right:0}#slack_blocks_to_jsx :is(.right-1){right:.25rem}#slack_blocks_to_jsx :is(.top-0){top:0}#slack_blocks_to_jsx :is(.top-1\/2){top:50%}#slack_blocks_to_jsx :is(.top-2){top:.5rem}#slack_blocks_to_jsx :is(.top-\[24px\]){top:24px}#slack_blocks_to_jsx :is(.z-10){z-index:10}#slack_blocks_to_jsx :is(.z-20){z-index:20}#slack_blocks_to_jsx :is(.z-\[10\]){z-index:10}#slack_blocks_to_jsx :is(.my-1){margin-bottom:.25rem;margin-top:.25rem}#slack_blocks_to_jsx :is(.my-2){margin-bottom:.5rem;margin-top:.5rem}#slack_blocks_to_jsx :is(.mb-1){margin-bottom:.25rem}#slack_blocks_to_jsx :is(.mb-2){margin-bottom:.5rem}#slack_blocks_to_jsx :is(.ml-2){margin-left:.5rem}#slack_blocks_to_jsx :is(.mr-2){margin-right:.5rem}#slack_blocks_to_jsx :is(.mt-1){margin-top:.25rem}#slack_blocks_to_jsx :is(.mt-2){margin-top:.5rem}#slack_blocks_to_jsx :is(.block){display:block}#slack_blocks_to_jsx :is(.inline-block){display:inline-block}#slack_blocks_to_jsx :is(.inline){display:inline}#slack_blocks_to_jsx :is(.flex){display:flex}#slack_blocks_to_jsx :is(.grid){display:grid}#slack_blocks_to_jsx :is(.aspect-video){aspect-ratio:16/9}#slack_blocks_to_jsx :is(.h-1){height:.25rem}#slack_blocks_to_jsx :is(.h-1\.5){height:.375rem}#slack_blocks_to_jsx :is(.h-3){height:.75rem}#slack_blocks_to_jsx :is(.h-5){height:1.25rem}#slack_blocks_to_jsx :is(.h-7){height:1.75rem}#slack_blocks_to_jsx :is(.h-9){height:2.25rem}#slack_blocks_to_jsx :is(.h-\[10px\]){height:10px}#slack_blocks_to_jsx :is(.h-\[14px\]){height:14px}#slack_blocks_to_jsx :is(.h-\[15px\]){height:15px}#slack_blocks_to_jsx :is(.h-\[22px\]){height:22px}#slack_blocks_to_jsx :is(.h-\[28px\]){height:28px}#slack_blocks_to_jsx :is(.h-\[88px\]){height:88px}#slack_blocks_to_jsx :is(.h-\[9px\]){height:9px}#slack_blocks_to_jsx :is(.h-full){height:100%}#slack_blocks_to_jsx :is(.max-h-\[240px\]){max-height:240px}#slack_blocks_to_jsx :is(.min-h-\[28px\]){min-height:28px}#slack_blocks_to_jsx :is(.w-1){width:.25rem}#slack_blocks_to_jsx :is(.w-1\.5){width:.375rem}#slack_blocks_to_jsx :is(.w-3){width:.75rem}#slack_blocks_to_jsx :is(.w-5){width:1.25rem}#slack_blocks_to_jsx :is(.w-9){width:2.25rem}#slack_blocks_to_jsx :is(.w-\[10px\]){width:10px}#slack_blocks_to_jsx :is(.w-\[15px\]){width:15px}#slack_blocks_to_jsx :is(.w-\[190px\]){width:190px}#slack_blocks_to_jsx :is(.w-\[22px\]){width:22px}#slack_blocks_to_jsx :is(.w-\[27px\]){width:27px}#slack_blocks_to_jsx :is(.w-\[322px\]){width:322px}#slack_blocks_to_jsx :is(.w-\[88px\]){width:88px}#slack_blocks_to_jsx :is(.w-\[9px\]){width:9px}#slack_blocks_to_jsx :is(.w-full){width:100%}#slack_blocks_to_jsx :is(.min-w-\[56px\]){min-width:56px}#slack_blocks_to_jsx :is(.max-w-\[322px\]){max-width:322px}#slack_blocks_to_jsx :is(.max-w-\[360px\]){max-width:360px}#slack_blocks_to_jsx :is(.max-w-\[600px\]){max-width:600px}#slack_blocks_to_jsx :is(.max-w-max){max-width:-moz-max-content;max-width:max-content}#slack_blocks_to_jsx :is(.shrink-0){flex-shrink:0}#slack_blocks_to_jsx :is(.grow){flex-grow:1}#slack_blocks_to_jsx :is(.-translate-y-1\/2){--tw-translate-y:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#slack_blocks_to_jsx :is(.transform){transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#slack_blocks_to_jsx :is(.cursor-pointer){cursor:pointer}#slack_blocks_to_jsx :is(.select-none){-webkit-user-select:none;-moz-user-select:none;user-select:none}#slack_blocks_to_jsx :is(.list-none){list-style-type:none}#slack_blocks_to_jsx :is(.flex-col){flex-direction:column}#slack_blocks_to_jsx :is(.flex-wrap){flex-wrap:wrap}#slack_blocks_to_jsx :is(.items-center){align-items:center}#slack_blocks_to_jsx :is(.items-baseline){align-items:baseline}#slack_blocks_to_jsx :is(.justify-center){justify-content:center}#slack_blocks_to_jsx :is(.justify-between){justify-content:space-between}#slack_blocks_to_jsx :is(.gap-1){gap:.25rem}#slack_blocks_to_jsx :is(.gap-2){gap:.5rem}#slack_blocks_to_jsx :is(.gap-3){gap:.75rem}#slack_blocks_to_jsx :is(.gap-\[5px\]){gap:5px}#slack_blocks_to_jsx :is(.self-stretch){align-self:stretch}#slack_blocks_to_jsx :is(.overflow-auto){overflow:auto}#slack_blocks_to_jsx :is(.overflow-hidden){overflow:hidden}#slack_blocks_to_jsx :is(.truncate){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#slack_blocks_to_jsx :is(.whitespace-nowrap){white-space:nowrap}#slack_blocks_to_jsx :is(.whitespace-pre-wrap){white-space:pre-wrap}#slack_blocks_to_jsx :is(.break-words){overflow-wrap:break-word}#slack_blocks_to_jsx :is(.rounded){border-radius:.25rem}#slack_blocks_to_jsx :is(.rounded-\[1\.5px\]){border-radius:1.5px}#slack_blocks_to_jsx :is(.rounded-\[2px\]){border-radius:2px}#slack_blocks_to_jsx :is(.rounded-\[6px\]){border-radius:6px}#slack_blocks_to_jsx :is(.rounded-full){border-radius:9999px}#slack_blocks_to_jsx :is(.rounded-lg){border-radius:.5rem}#slack_blocks_to_jsx :is(.rounded-md){border-radius:.375rem}#slack_blocks_to_jsx :is(.border){border-width:1px}#slack_blocks_to_jsx :is(.border-\[1\.5px\]){border-width:1.5px}#slack_blocks_to_jsx :is(.border-b){border-bottom-width:1px}#slack_blocks_to_jsx :is(.border-solid){border-style:solid}#slack_blocks_to_jsx :is(.border-black-primary){--tw-border-opacity:1;border-color:rgb(29 28 29/var(--tw-border-opacity))}#slack_blocks_to_jsx :is(.border-black-primary\.3){border-color:rgba(29,28,29,.3)}#slack_blocks_to_jsx :is(.border-black-secondary){--tw-border-opacity:1;border-color:rgb(97 96 97/var(--tw-border-opacity))}#slack_blocks_to_jsx :is(.border-current){border-color:currentColor}#slack_blocks_to_jsx :is(.border-gray-primary){--tw-border-opacity:1;border-color:rgb(221 221 221/var(--tw-border-opacity))}#slack_blocks_to_jsx :is(.border-green-primary){--tw-border-opacity:1;border-color:rgb(0 122 90/var(--tw-border-opacity))}#slack_blocks_to_jsx :is(.border-green-primary\.3){border-color:rgba(0,122,90,.3)}#slack_blocks_to_jsx :is(.border-red-primary){--tw-border-opacity:1;border-color:rgb(224 30 90/var(--tw-border-opacity))}#slack_blocks_to_jsx :is(.border-red-primary\.3){border-color:rgba(224,30,90,.3)}#slack_blocks_to_jsx :is(.bg-black-primary\/\[0\.13\]){background-color:rgba(29,28,29,.13)}#slack_blocks_to_jsx :is(.bg-current){background-color:currentColor}#slack_blocks_to_jsx :is(.bg-gray-100){--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}#slack_blocks_to_jsx :is(.bg-gray-300){--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}#slack_blocks_to_jsx :is(.bg-gray-primary){--tw-bg-opacity:1;background-color:rgb(221 221 221/var(--tw-bg-opacity))}#slack_blocks_to_jsx :is(.bg-gray-secondary){--tw-bg-opacity:1;background-color:rgb(246 246 246/var(--tw-bg-opacity))}#slack_blocks_to_jsx :is(.bg-green-secondary){--tw-bg-opacity:1;background-color:rgb(32 162 113/var(--tw-bg-opacity))}#slack_blocks_to_jsx :is(.bg-white-secondary){--tw-bg-opacity:1;background-color:rgb(248 248 248/var(--tw-bg-opacity))}#slack_blocks_to_jsx :is(.object-cover){-o-object-fit:cover;object-fit:cover}#slack_blocks_to_jsx :is(.p-2){padding:.5rem}#slack_blocks_to_jsx :is(.px-2){padding-left:.5rem;padding-right:.5rem}#slack_blocks_to_jsx :is(.px-6){padding-left:1.5rem;padding-right:1.5rem}#slack_blocks_to_jsx :is(.px-\[3px\]){padding-left:3px;padding-right:3px}#slack_blocks_to_jsx :is(.py-1){padding-bottom:.25rem;padding-top:.25rem}#slack_blocks_to_jsx :is(.py-2){padding-bottom:.5rem;padding-top:.5rem}#slack_blocks_to_jsx :is(.py-3){padding-bottom:.75rem;padding-top:.75rem}#slack_blocks_to_jsx :is(.py-\[1px\]){padding-bottom:1px;padding-top:1px}#slack_blocks_to_jsx :is(.pb-\[1px\]){padding-bottom:1px}#slack_blocks_to_jsx :is(.pr-3){padding-right:.75rem}#slack_blocks_to_jsx :is(.pr-7){padding-right:1.75rem}#slack_blocks_to_jsx :is(.pt-0){padding-top:0}#slack_blocks_to_jsx :is(.text-center){text-align:center}#slack_blocks_to_jsx :is(.text-\[10px\]){font-size:10px}#slack_blocks_to_jsx :is(.text-\[15px\]){font-size:15px}#slack_blocks_to_jsx :is(.text-\[8px\]){font-size:8px}#slack_blocks_to_jsx :is(.text-base){font-size:15px;line-height:1.46668}#slack_blocks_to_jsx :is(.text-small){font-size:13px;line-height:1.38461538}#slack_blocks_to_jsx :is(.text-xs){font-size:.75rem;line-height:1rem}#slack_blocks_to_jsx :is(.font-black){font-weight:900}#slack_blocks_to_jsx :is(.font-bold){font-weight:700}#slack_blocks_to_jsx :is(.font-medium){font-weight:500}#slack_blocks_to_jsx :is(.font-normal){font-weight:400}#slack_blocks_to_jsx :is(.font-semibold){font-weight:600}#slack_blocks_to_jsx :is(.uppercase){text-transform:uppercase}#slack_blocks_to_jsx :is(.italic){font-style:italic}#slack_blocks_to_jsx :is(.leading-\[1\.50001\]){line-height:1.50001}#slack_blocks_to_jsx :is(.leading-\[12\.5px\]){line-height:12.5px}#slack_blocks_to_jsx :is(.leading-\[17\.6px\]){line-height:17.6px}#slack_blocks_to_jsx :is(.leading-\[8px\]){line-height:8px}#slack_blocks_to_jsx :is(.text-black-primary){--tw-text-opacity:1;color:rgb(29 28 29/var(--tw-text-opacity))}#slack_blocks_to_jsx :is(.text-black-primary\.3){color:rgba(29,28,29,.3)}#slack_blocks_to_jsx :is(.text-black-primary\/\[0\.7\]){color:rgba(29,28,29,.7)}#slack_blocks_to_jsx :is(.text-black-secondary){--tw-text-opacity:1;color:rgb(97 96 97/var(--tw-text-opacity))}#slack_blocks_to_jsx :is(.text-blue-500){--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}#slack_blocks_to_jsx :is(.text-blue-primary){--tw-text-opacity:1;color:rgb(18 100 163/var(--tw-text-opacity))}#slack_blocks_to_jsx :is(.text-green-primary){--tw-text-opacity:1;color:rgb(0 122 90/var(--tw-text-opacity))}#slack_blocks_to_jsx :is(.text-red-primary){--tw-text-opacity:1;color:rgb(224 30 90/var(--tw-text-opacity))}#slack_blocks_to_jsx :is(.underline){text-decoration-line:underline}#slack_blocks_to_jsx :is(.line-through){text-decoration-line:line-through}#slack_blocks_to_jsx :is(.underline-offset-4){text-underline-offset:4px}#slack_blocks_to_jsx :is(.shadow-custom_shadow-1){--tw-shadow-color:rgba(29,28,29,.13) 0px 0px 0px 1px,rgba(0,0,0,.12) 0px 5px 10px 0px;--tw-shadow:var(--tw-shadow-colored)}#slack_blocks_to_jsx :is(.outline){outline-style:solid}#slack_blocks_to_jsx :is(.filter){filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.slack_blocks_to_jsx.styles_enabled{font-family:Open Sans,sans-serif!important;white-space:pre-wrap!important}.slack_blocks_to_jsx.styles_enabled *,.slack_blocks_to_jsx.styles_enabled :after,.slack_blocks_to_jsx.styles_enabled :before{border:0 solid #e5e7eb;box-sizing:border-box}.slack_blocks_to_jsx.styles_enabled :after,.slack_blocks_to_jsx.styles_enabled :before{--tw-content:""}.slack_blocks_to_jsx.styles_enabled :host,.slack_blocks_to_jsx.styles_enabled html{line-height:1.5;-webkit-text-size-adjust:100%;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}.slack_blocks_to_jsx.styles_enabled body{line-height:inherit;margin:0}.slack_blocks_to_jsx.styles_enabled hr{border-top-width:1px;color:inherit;height:0}.slack_blocks_to_jsx.styles_enabled abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.slack_blocks_to_jsx.styles_enabled h1,.slack_blocks_to_jsx.styles_enabled h2,.slack_blocks_to_jsx.styles_enabled h3,.slack_blocks_to_jsx.styles_enabled h4,.slack_blocks_to_jsx.styles_enabled h5,.slack_blocks_to_jsx.styles_enabled h6{font-size:inherit;font-weight:inherit}.slack_blocks_to_jsx.styles_enabled a{color:inherit;text-decoration:inherit}.slack_blocks_to_jsx.styles_enabled b,.slack_blocks_to_jsx.styles_enabled strong{font-weight:bolder}.slack_blocks_to_jsx.styles_enabled code,.slack_blocks_to_jsx.styles_enabled kbd,.slack_blocks_to_jsx.styles_enabled pre,.slack_blocks_to_jsx.styles_enabled samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}.slack_blocks_to_jsx.styles_enabled small{font-size:80%}.slack_blocks_to_jsx.styles_enabled sub,.slack_blocks_to_jsx.styles_enabled sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}.slack_blocks_to_jsx.styles_enabled sub{bottom:-.25em}.slack_blocks_to_jsx.styles_enabled sup{top:-.5em}.slack_blocks_to_jsx.styles_enabled table{border-collapse:collapse;border-color:inherit;text-indent:0}.slack_blocks_to_jsx.styles_enabled button,.slack_blocks_to_jsx.styles_enabled input,.slack_blocks_to_jsx.styles_enabled optgroup,.slack_blocks_to_jsx.styles_enabled select,.slack_blocks_to_jsx.styles_enabled textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}.slack_blocks_to_jsx.styles_enabled button,.slack_blocks_to_jsx.styles_enabled select{text-transform:none}.slack_blocks_to_jsx.styles_enabled [type=button],.slack_blocks_to_jsx.styles_enabled [type=reset],.slack_blocks_to_jsx.styles_enabled [type=submit],.slack_blocks_to_jsx.styles_enabled button{-webkit-appearance:button;background-color:initial;background-image:none}.slack_blocks_to_jsx.styles_enabled :-moz-focusring{outline:auto}.slack_blocks_to_jsx.styles_enabled :-moz-ui-invalid{box-shadow:none}.slack_blocks_to_jsx.styles_enabled progress{vertical-align:initial}.slack_blocks_to_jsx.styles_enabled ::-webkit-inner-spin-button,.slack_blocks_to_jsx.styles_enabled ::-webkit-outer-spin-button{height:auto}.slack_blocks_to_jsx.styles_enabled [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.slack_blocks_to_jsx.styles_enabled ::-webkit-search-decoration{-webkit-appearance:none}.slack_blocks_to_jsx.styles_enabled ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.slack_blocks_to_jsx.styles_enabled summary{display:list-item}.slack_blocks_to_jsx.styles_enabled blockquote,.slack_blocks_to_jsx.styles_enabled dd,.slack_blocks_to_jsx.styles_enabled dl,.slack_blocks_to_jsx.styles_enabled fieldset,.slack_blocks_to_jsx.styles_enabled figure,.slack_blocks_to_jsx.styles_enabled h1,.slack_blocks_to_jsx.styles_enabled h2,.slack_blocks_to_jsx.styles_enabled h3,.slack_blocks_to_jsx.styles_enabled h4,.slack_blocks_to_jsx.styles_enabled h5,.slack_blocks_to_jsx.styles_enabled h6,.slack_blocks_to_jsx.styles_enabled hr,.slack_blocks_to_jsx.styles_enabled p,.slack_blocks_to_jsx.styles_enabled pre{margin:0}.slack_blocks_to_jsx.styles_enabled fieldset,.slack_blocks_to_jsx.styles_enabled legend{padding:0}.slack_blocks_to_jsx.styles_enabled menu,.slack_blocks_to_jsx.styles_enabled ol,.slack_blocks_to_jsx.styles_enabled ul{list-style:none;margin:0;padding:0}.slack_blocks_to_jsx.styles_enabled dialog{padding:0}.slack_blocks_to_jsx.styles_enabled textarea{resize:vertical}.slack_blocks_to_jsx.styles_enabled input::-moz-placeholder,.slack_blocks_to_jsx.styles_enabled textarea::-moz-placeholder{color:#9ca3af;opacity:1}.slack_blocks_to_jsx.styles_enabled input::placeholder,.slack_blocks_to_jsx.styles_enabled textarea::placeholder{color:#9ca3af;opacity:1}.slack_blocks_to_jsx.styles_enabled [role=button],.slack_blocks_to_jsx.styles_enabled button{cursor:pointer}.slack_blocks_to_jsx.styles_enabled :disabled{cursor:default}.slack_blocks_to_jsx.styles_enabled audio,.slack_blocks_to_jsx.styles_enabled canvas,.slack_blocks_to_jsx.styles_enabled embed,.slack_blocks_to_jsx.styles_enabled iframe,.slack_blocks_to_jsx.styles_enabled img,.slack_blocks_to_jsx.styles_enabled object,.slack_blocks_to_jsx.styles_enabled svg,.slack_blocks_to_jsx.styles_enabled video{display:block;vertical-align:middle}.slack_blocks_to_jsx.styles_enabled img,.slack_blocks_to_jsx.styles_enabled video{height:auto;max-width:100%}.slack_blocks_to_jsx.styles_enabled [hidden]{display:none}.slack_blocks_to_jsx.styles_enabled *,.slack_blocks_to_jsx.styles_enabled ::backdrop,.slack_blocks_to_jsx.styles_enabled :after,.slack_blocks_to_jsx.styles_enabled :before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.slack_blocks_to_jsx.styles_enabled .slack_code_inline{display:inline-block;padding-left:.25rem;padding-right:.25rem;--tw-text-opacity:1;color:rgb(224 30 90/var(--tw-text-opacity))}.slack_blocks_to_jsx.styles_enabled .slack_code,.slack_blocks_to_jsx.styles_enabled .slack_code_inline{background-color:rgba(29,28,29,.04);border-color:rgba(29,28,29,.13);border-radius:3px;border-width:1px;font-size:.75rem;line-height:1rem;line-height:1.5;overflow-wrap:break-word;white-space:pre-wrap}.slack_blocks_to_jsx.styles_enabled .slack_code{display:block;margin-bottom:.25rem;margin-top:.25rem;padding:.5rem;width:100%}.slack_blocks_to_jsx.styles_enabled .slack_inline_code{background-color:rgba(29,28,29,.04);border-color:rgba(29,28,29,.13);border-radius:3px;border-width:1px;display:inline-block;line-height:1.5;overflow-wrap:break-word;padding:.125rem 3px 1px;white-space:pre-wrap;--tw-text-opacity:1;color:rgb(224 30 90/var(--tw-text-opacity))}.slack_blocks_to_jsx.styles_enabled .slack_bold,.slack_blocks_to_jsx.styles_enabled .slack_bold code{font-weight:600}.slack_blocks_to_jsx.styles_enabled .slack_blockquote{display:block}.slack_blocks_to_jsx.styles_enabled .slack_inline_blockquote{display:inline-block}.slack_blocks_to_jsx.styles_enabled blockquote{padding-left:16px;position:relative}.slack_blocks_to_jsx.styles_enabled blockquote:before{background:#ddd;border-radius:8px;bottom:0;content:"";display:block;left:0;position:absolute;top:0;width:4px}.slack_blocks_to_jsx.styles_enabled .slack_channel,.slack_blocks_to_jsx.styles_enabled .slack_user,.slack_blocks_to_jsx.styles_enabled .slack_user_group{background:rgba(29,155,209,.1);color:#1264a3;-webkit-user-select:none;-moz-user-select:none;user-select:none}.slack_blocks_to_jsx.styles_enabled .slack_broadcast{background:rgba(255,198,0,.18);color:#1d1c1d;font-weight:600}.slack_blocks_to_jsx.styles_enabled .slack_blocks_to_jsx__line_break{display:block}.slack_blocks_to_jsx.styles_enabled .slack_blocks_to_jsx__line_break_not_first{display:block;height:3px}.slack_blocks_to_jsx.styles_enabled .slack_link{color:#1264a3}.slack_blocks_to_jsx.styles_disabled>*{all:unset!important}#slack_blocks_to_jsx :is(.hover\:bg-blue-primary:hover){--tw-bg-opacity:1;background-color:rgb(18 100 163/var(--tw-bg-opacity))}#slack_blocks_to_jsx :is(.hover\:text-white-primary:hover){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}#slack_blocks_to_jsx :is(.hover\:underline:hover){text-decoration-line:underline}#slack_blocks_to_jsx :is(.focus\:outline-none:focus){outline:2px solid transparent;outline-offset:2px}#slack_blocks_to_jsx :is(.group:hover .group-hover\:border-white-primary){--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}#slack_blocks_to_jsx :is(.group:hover .group-hover\:bg-blue-primary){--tw-bg-opacity:1;background-color:rgb(18 100 163/var(--tw-bg-opacity))}#slack_blocks_to_jsx :is(.group:hover .group-hover\:text-white-primary){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}
1
+ @import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap");#slack_blocks_to_jsx :is(.pointer-events-none){pointer-events:none}#slack_blocks_to_jsx :is(.visible){visibility:visible}#slack_blocks_to_jsx :is(.absolute){position:absolute}#slack_blocks_to_jsx :is(.relative){position:relative}#slack_blocks_to_jsx :is(.-left-3){left:-.75rem}#slack_blocks_to_jsx :is(.-right-\[5px\]){right:-5px}#slack_blocks_to_jsx :is(.-top-\[5px\]){top:-5px}#slack_blocks_to_jsx :is(.left-2){left:.5rem}#slack_blocks_to_jsx :is(.right-0){right:0}#slack_blocks_to_jsx :is(.right-1){right:.25rem}#slack_blocks_to_jsx :is(.top-0){top:0}#slack_blocks_to_jsx :is(.top-1\/2){top:50%}#slack_blocks_to_jsx :is(.top-2){top:.5rem}#slack_blocks_to_jsx :is(.top-\[24px\]){top:24px}#slack_blocks_to_jsx :is(.z-10){z-index:10}#slack_blocks_to_jsx :is(.z-20){z-index:20}#slack_blocks_to_jsx :is(.z-\[10\]){z-index:10}#slack_blocks_to_jsx :is(.my-1){margin-bottom:.25rem;margin-top:.25rem}#slack_blocks_to_jsx :is(.my-2){margin-bottom:.5rem;margin-top:.5rem}#slack_blocks_to_jsx :is(.mb-1){margin-bottom:.25rem}#slack_blocks_to_jsx :is(.mb-2){margin-bottom:.5rem}#slack_blocks_to_jsx :is(.ml-2){margin-left:.5rem}#slack_blocks_to_jsx :is(.mr-2){margin-right:.5rem}#slack_blocks_to_jsx :is(.mt-1){margin-top:.25rem}#slack_blocks_to_jsx :is(.mt-2){margin-top:.5rem}#slack_blocks_to_jsx :is(.block){display:block}#slack_blocks_to_jsx :is(.inline-block){display:inline-block}#slack_blocks_to_jsx :is(.inline){display:inline}#slack_blocks_to_jsx :is(.flex){display:flex}#slack_blocks_to_jsx :is(.grid){display:grid}#slack_blocks_to_jsx :is(.aspect-video){aspect-ratio:16/9}#slack_blocks_to_jsx :is(.h-1){height:.25rem}#slack_blocks_to_jsx :is(.h-1\.5){height:.375rem}#slack_blocks_to_jsx :is(.h-3){height:.75rem}#slack_blocks_to_jsx :is(.h-5){height:1.25rem}#slack_blocks_to_jsx :is(.h-7){height:1.75rem}#slack_blocks_to_jsx :is(.h-9){height:2.25rem}#slack_blocks_to_jsx :is(.h-\[10px\]){height:10px}#slack_blocks_to_jsx :is(.h-\[14px\]){height:14px}#slack_blocks_to_jsx :is(.h-\[15px\]){height:15px}#slack_blocks_to_jsx :is(.h-\[22px\]){height:22px}#slack_blocks_to_jsx :is(.h-\[28px\]){height:28px}#slack_blocks_to_jsx :is(.h-\[88px\]){height:88px}#slack_blocks_to_jsx :is(.h-\[9px\]){height:9px}#slack_blocks_to_jsx :is(.h-full){height:100%}#slack_blocks_to_jsx :is(.max-h-\[240px\]){max-height:240px}#slack_blocks_to_jsx :is(.min-h-\[28px\]){min-height:28px}#slack_blocks_to_jsx :is(.w-1){width:.25rem}#slack_blocks_to_jsx :is(.w-1\.5){width:.375rem}#slack_blocks_to_jsx :is(.w-3){width:.75rem}#slack_blocks_to_jsx :is(.w-5){width:1.25rem}#slack_blocks_to_jsx :is(.w-9){width:2.25rem}#slack_blocks_to_jsx :is(.w-\[10px\]){width:10px}#slack_blocks_to_jsx :is(.w-\[15px\]){width:15px}#slack_blocks_to_jsx :is(.w-\[190px\]){width:190px}#slack_blocks_to_jsx :is(.w-\[22px\]){width:22px}#slack_blocks_to_jsx :is(.w-\[27px\]){width:27px}#slack_blocks_to_jsx :is(.w-\[322px\]){width:322px}#slack_blocks_to_jsx :is(.w-\[88px\]){width:88px}#slack_blocks_to_jsx :is(.w-\[9px\]){width:9px}#slack_blocks_to_jsx :is(.w-full){width:100%}#slack_blocks_to_jsx :is(.min-w-\[56px\]){min-width:56px}#slack_blocks_to_jsx :is(.max-w-\[322px\]){max-width:322px}#slack_blocks_to_jsx :is(.max-w-\[360px\]){max-width:360px}#slack_blocks_to_jsx :is(.max-w-\[600px\]){max-width:600px}#slack_blocks_to_jsx :is(.max-w-max){max-width:-moz-max-content;max-width:max-content}#slack_blocks_to_jsx :is(.shrink-0){flex-shrink:0}#slack_blocks_to_jsx :is(.grow){flex-grow:1}#slack_blocks_to_jsx :is(.-translate-y-1\/2){--tw-translate-y:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#slack_blocks_to_jsx :is(.transform){transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#slack_blocks_to_jsx :is(.cursor-pointer){cursor:pointer}#slack_blocks_to_jsx :is(.select-none){-webkit-user-select:none;-moz-user-select:none;user-select:none}#slack_blocks_to_jsx :is(.list-none){list-style-type:none}#slack_blocks_to_jsx :is(.flex-col){flex-direction:column}#slack_blocks_to_jsx :is(.flex-wrap){flex-wrap:wrap}#slack_blocks_to_jsx :is(.items-center){align-items:center}#slack_blocks_to_jsx :is(.items-baseline){align-items:baseline}#slack_blocks_to_jsx :is(.justify-center){justify-content:center}#slack_blocks_to_jsx :is(.justify-between){justify-content:space-between}#slack_blocks_to_jsx :is(.gap-1){gap:.25rem}#slack_blocks_to_jsx :is(.gap-2){gap:.5rem}#slack_blocks_to_jsx :is(.gap-3){gap:.75rem}#slack_blocks_to_jsx :is(.gap-\[5px\]){gap:5px}#slack_blocks_to_jsx :is(.self-stretch){align-self:stretch}#slack_blocks_to_jsx :is(.overflow-auto){overflow:auto}#slack_blocks_to_jsx :is(.overflow-hidden){overflow:hidden}#slack_blocks_to_jsx :is(.truncate){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#slack_blocks_to_jsx :is(.whitespace-nowrap){white-space:nowrap}#slack_blocks_to_jsx :is(.whitespace-pre-wrap){white-space:pre-wrap}#slack_blocks_to_jsx :is(.break-words){overflow-wrap:break-word}#slack_blocks_to_jsx :is(.rounded){border-radius:.25rem}#slack_blocks_to_jsx :is(.rounded-\[1\.5px\]){border-radius:1.5px}#slack_blocks_to_jsx :is(.rounded-\[2px\]){border-radius:2px}#slack_blocks_to_jsx :is(.rounded-\[6px\]){border-radius:6px}#slack_blocks_to_jsx :is(.rounded-full){border-radius:9999px}#slack_blocks_to_jsx :is(.rounded-lg){border-radius:.5rem}#slack_blocks_to_jsx :is(.rounded-md){border-radius:.375rem}#slack_blocks_to_jsx :is(.border){border-width:1px}#slack_blocks_to_jsx :is(.border-\[1\.5px\]){border-width:1.5px}#slack_blocks_to_jsx :is(.border-b){border-bottom-width:1px}#slack_blocks_to_jsx :is(.border-solid){border-style:solid}#slack_blocks_to_jsx :is(.border-black-primary){--tw-border-opacity:1;border-color:rgb(29 28 29/var(--tw-border-opacity))}#slack_blocks_to_jsx :is(.border-black-primary\.3){border-color:rgba(29,28,29,.3)}#slack_blocks_to_jsx :is(.border-black-secondary){--tw-border-opacity:1;border-color:rgb(97 96 97/var(--tw-border-opacity))}#slack_blocks_to_jsx :is(.border-current){border-color:currentColor}#slack_blocks_to_jsx :is(.border-gray-primary){--tw-border-opacity:1;border-color:rgb(221 221 221/var(--tw-border-opacity))}#slack_blocks_to_jsx :is(.border-green-primary){--tw-border-opacity:1;border-color:rgb(0 122 90/var(--tw-border-opacity))}#slack_blocks_to_jsx :is(.border-green-primary\.3){border-color:rgba(0,122,90,.3)}#slack_blocks_to_jsx :is(.border-red-primary){--tw-border-opacity:1;border-color:rgb(224 30 90/var(--tw-border-opacity))}#slack_blocks_to_jsx :is(.border-red-primary\.3){border-color:rgba(224,30,90,.3)}#slack_blocks_to_jsx :is(.bg-black-primary\/\[0\.13\]){background-color:rgba(29,28,29,.13)}#slack_blocks_to_jsx :is(.bg-current){background-color:currentColor}#slack_blocks_to_jsx :is(.bg-gray-100){--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}#slack_blocks_to_jsx :is(.bg-gray-300){--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}#slack_blocks_to_jsx :is(.bg-gray-primary){--tw-bg-opacity:1;background-color:rgb(221 221 221/var(--tw-bg-opacity))}#slack_blocks_to_jsx :is(.bg-gray-secondary){--tw-bg-opacity:1;background-color:rgb(246 246 246/var(--tw-bg-opacity))}#slack_blocks_to_jsx :is(.bg-green-secondary){--tw-bg-opacity:1;background-color:rgb(32 162 113/var(--tw-bg-opacity))}#slack_blocks_to_jsx :is(.bg-white-secondary){--tw-bg-opacity:1;background-color:rgb(248 248 248/var(--tw-bg-opacity))}#slack_blocks_to_jsx :is(.object-cover){-o-object-fit:cover;object-fit:cover}#slack_blocks_to_jsx :is(.p-2){padding:.5rem}#slack_blocks_to_jsx :is(.px-2){padding-left:.5rem;padding-right:.5rem}#slack_blocks_to_jsx :is(.px-6){padding-left:1.5rem;padding-right:1.5rem}#slack_blocks_to_jsx :is(.px-\[3px\]){padding-left:3px;padding-right:3px}#slack_blocks_to_jsx :is(.py-1){padding-bottom:.25rem;padding-top:.25rem}#slack_blocks_to_jsx :is(.py-2){padding-bottom:.5rem;padding-top:.5rem}#slack_blocks_to_jsx :is(.py-3){padding-bottom:.75rem;padding-top:.75rem}#slack_blocks_to_jsx :is(.py-\[1px\]){padding-bottom:1px;padding-top:1px}#slack_blocks_to_jsx :is(.pb-\[1px\]){padding-bottom:1px}#slack_blocks_to_jsx :is(.pr-3){padding-right:.75rem}#slack_blocks_to_jsx :is(.pr-7){padding-right:1.75rem}#slack_blocks_to_jsx :is(.pt-0){padding-top:0}#slack_blocks_to_jsx :is(.text-center){text-align:center}#slack_blocks_to_jsx :is(.text-\[10px\]){font-size:10px}#slack_blocks_to_jsx :is(.text-\[15px\]){font-size:15px}#slack_blocks_to_jsx :is(.text-\[8px\]){font-size:8px}#slack_blocks_to_jsx :is(.text-base){font-size:15px;line-height:1.46668}#slack_blocks_to_jsx :is(.text-header){font-size:18px;line-height:1.33334}#slack_blocks_to_jsx :is(.text-small){font-size:13px;line-height:1.38461538}#slack_blocks_to_jsx :is(.text-xs){font-size:.75rem;line-height:1rem}#slack_blocks_to_jsx :is(.font-black){font-weight:900}#slack_blocks_to_jsx :is(.font-bold){font-weight:700}#slack_blocks_to_jsx :is(.font-medium){font-weight:500}#slack_blocks_to_jsx :is(.font-normal){font-weight:400}#slack_blocks_to_jsx :is(.font-semibold){font-weight:600}#slack_blocks_to_jsx :is(.uppercase){text-transform:uppercase}#slack_blocks_to_jsx :is(.italic){font-style:italic}#slack_blocks_to_jsx :is(.leading-\[1\.50001\]){line-height:1.50001}#slack_blocks_to_jsx :is(.leading-\[12\.5px\]){line-height:12.5px}#slack_blocks_to_jsx :is(.leading-\[17\.6px\]){line-height:17.6px}#slack_blocks_to_jsx :is(.leading-\[8px\]){line-height:8px}#slack_blocks_to_jsx :is(.text-black-primary){--tw-text-opacity:1;color:rgb(29 28 29/var(--tw-text-opacity))}#slack_blocks_to_jsx :is(.text-black-primary\.3){color:rgba(29,28,29,.3)}#slack_blocks_to_jsx :is(.text-black-primary\/\[0\.7\]){color:rgba(29,28,29,.7)}#slack_blocks_to_jsx :is(.text-black-secondary){--tw-text-opacity:1;color:rgb(97 96 97/var(--tw-text-opacity))}#slack_blocks_to_jsx :is(.text-blue-500){--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}#slack_blocks_to_jsx :is(.text-blue-primary){--tw-text-opacity:1;color:rgb(18 100 163/var(--tw-text-opacity))}#slack_blocks_to_jsx :is(.text-green-primary){--tw-text-opacity:1;color:rgb(0 122 90/var(--tw-text-opacity))}#slack_blocks_to_jsx :is(.text-red-primary){--tw-text-opacity:1;color:rgb(224 30 90/var(--tw-text-opacity))}#slack_blocks_to_jsx :is(.underline){text-decoration-line:underline}#slack_blocks_to_jsx :is(.line-through){text-decoration-line:line-through}#slack_blocks_to_jsx :is(.underline-offset-4){text-underline-offset:4px}#slack_blocks_to_jsx :is(.shadow-custom_shadow-1){--tw-shadow-color:rgba(29,28,29,.13) 0px 0px 0px 1px,rgba(0,0,0,.12) 0px 5px 10px 0px;--tw-shadow:var(--tw-shadow-colored)}#slack_blocks_to_jsx :is(.outline){outline-style:solid}#slack_blocks_to_jsx :is(.filter){filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.slack_blocks_to_jsx.styles_enabled{font-family:Open Sans,sans-serif!important;white-space:pre-wrap!important}.slack_blocks_to_jsx.styles_enabled *,.slack_blocks_to_jsx.styles_enabled :after,.slack_blocks_to_jsx.styles_enabled :before{border:0 solid #e5e7eb;box-sizing:border-box}.slack_blocks_to_jsx.styles_enabled :after,.slack_blocks_to_jsx.styles_enabled :before{--tw-content:""}.slack_blocks_to_jsx.styles_enabled :host,.slack_blocks_to_jsx.styles_enabled html{line-height:1.5;-webkit-text-size-adjust:100%;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}.slack_blocks_to_jsx.styles_enabled body{line-height:inherit;margin:0}.slack_blocks_to_jsx.styles_enabled hr{border-top-width:1px;color:inherit;height:0}.slack_blocks_to_jsx.styles_enabled abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.slack_blocks_to_jsx.styles_enabled h1,.slack_blocks_to_jsx.styles_enabled h2,.slack_blocks_to_jsx.styles_enabled h3,.slack_blocks_to_jsx.styles_enabled h4,.slack_blocks_to_jsx.styles_enabled h5,.slack_blocks_to_jsx.styles_enabled h6{font-size:inherit;font-weight:inherit}.slack_blocks_to_jsx.styles_enabled a{color:inherit;text-decoration:inherit}.slack_blocks_to_jsx.styles_enabled b,.slack_blocks_to_jsx.styles_enabled strong{font-weight:bolder}.slack_blocks_to_jsx.styles_enabled code,.slack_blocks_to_jsx.styles_enabled kbd,.slack_blocks_to_jsx.styles_enabled pre,.slack_blocks_to_jsx.styles_enabled samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}.slack_blocks_to_jsx.styles_enabled small{font-size:80%}.slack_blocks_to_jsx.styles_enabled sub,.slack_blocks_to_jsx.styles_enabled sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}.slack_blocks_to_jsx.styles_enabled sub{bottom:-.25em}.slack_blocks_to_jsx.styles_enabled sup{top:-.5em}.slack_blocks_to_jsx.styles_enabled table{border-collapse:collapse;border-color:inherit;text-indent:0}.slack_blocks_to_jsx.styles_enabled button,.slack_blocks_to_jsx.styles_enabled input,.slack_blocks_to_jsx.styles_enabled optgroup,.slack_blocks_to_jsx.styles_enabled select,.slack_blocks_to_jsx.styles_enabled textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}.slack_blocks_to_jsx.styles_enabled button,.slack_blocks_to_jsx.styles_enabled select{text-transform:none}.slack_blocks_to_jsx.styles_enabled [type=button],.slack_blocks_to_jsx.styles_enabled [type=reset],.slack_blocks_to_jsx.styles_enabled [type=submit],.slack_blocks_to_jsx.styles_enabled button{-webkit-appearance:button;background-color:initial;background-image:none}.slack_blocks_to_jsx.styles_enabled :-moz-focusring{outline:auto}.slack_blocks_to_jsx.styles_enabled :-moz-ui-invalid{box-shadow:none}.slack_blocks_to_jsx.styles_enabled progress{vertical-align:initial}.slack_blocks_to_jsx.styles_enabled ::-webkit-inner-spin-button,.slack_blocks_to_jsx.styles_enabled ::-webkit-outer-spin-button{height:auto}.slack_blocks_to_jsx.styles_enabled [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.slack_blocks_to_jsx.styles_enabled ::-webkit-search-decoration{-webkit-appearance:none}.slack_blocks_to_jsx.styles_enabled ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.slack_blocks_to_jsx.styles_enabled summary{display:list-item}.slack_blocks_to_jsx.styles_enabled blockquote,.slack_blocks_to_jsx.styles_enabled dd,.slack_blocks_to_jsx.styles_enabled dl,.slack_blocks_to_jsx.styles_enabled fieldset,.slack_blocks_to_jsx.styles_enabled figure,.slack_blocks_to_jsx.styles_enabled h1,.slack_blocks_to_jsx.styles_enabled h2,.slack_blocks_to_jsx.styles_enabled h3,.slack_blocks_to_jsx.styles_enabled h4,.slack_blocks_to_jsx.styles_enabled h5,.slack_blocks_to_jsx.styles_enabled h6,.slack_blocks_to_jsx.styles_enabled hr,.slack_blocks_to_jsx.styles_enabled p,.slack_blocks_to_jsx.styles_enabled pre{margin:0}.slack_blocks_to_jsx.styles_enabled fieldset,.slack_blocks_to_jsx.styles_enabled legend{padding:0}.slack_blocks_to_jsx.styles_enabled menu,.slack_blocks_to_jsx.styles_enabled ol,.slack_blocks_to_jsx.styles_enabled ul{list-style:none;margin:0;padding:0}.slack_blocks_to_jsx.styles_enabled dialog{padding:0}.slack_blocks_to_jsx.styles_enabled textarea{resize:vertical}.slack_blocks_to_jsx.styles_enabled input::-moz-placeholder,.slack_blocks_to_jsx.styles_enabled textarea::-moz-placeholder{color:#9ca3af;opacity:1}.slack_blocks_to_jsx.styles_enabled input::placeholder,.slack_blocks_to_jsx.styles_enabled textarea::placeholder{color:#9ca3af;opacity:1}.slack_blocks_to_jsx.styles_enabled [role=button],.slack_blocks_to_jsx.styles_enabled button{cursor:pointer}.slack_blocks_to_jsx.styles_enabled :disabled{cursor:default}.slack_blocks_to_jsx.styles_enabled audio,.slack_blocks_to_jsx.styles_enabled canvas,.slack_blocks_to_jsx.styles_enabled embed,.slack_blocks_to_jsx.styles_enabled iframe,.slack_blocks_to_jsx.styles_enabled img,.slack_blocks_to_jsx.styles_enabled object,.slack_blocks_to_jsx.styles_enabled svg,.slack_blocks_to_jsx.styles_enabled video{display:block;vertical-align:middle}.slack_blocks_to_jsx.styles_enabled img,.slack_blocks_to_jsx.styles_enabled video{height:auto;max-width:100%}.slack_blocks_to_jsx.styles_enabled [hidden]{display:none}.slack_blocks_to_jsx.styles_enabled *,.slack_blocks_to_jsx.styles_enabled ::backdrop,.slack_blocks_to_jsx.styles_enabled :after,.slack_blocks_to_jsx.styles_enabled :before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.slack_blocks_to_jsx.styles_enabled .slack_code_inline{display:inline-block;padding-left:.25rem;padding-right:.25rem;--tw-text-opacity:1;color:rgb(224 30 90/var(--tw-text-opacity))}.slack_blocks_to_jsx.styles_enabled .slack_code,.slack_blocks_to_jsx.styles_enabled .slack_code_inline{background-color:rgba(29,28,29,.04);border-color:rgba(29,28,29,.13);border-radius:3px;border-width:1px;font-size:.75rem;line-height:1rem;line-height:1.5;overflow-wrap:break-word;white-space:pre-wrap}.slack_blocks_to_jsx.styles_enabled .slack_code{display:block;margin-bottom:.25rem;margin-top:.25rem;padding:.5rem;width:100%}.slack_blocks_to_jsx.styles_enabled .slack_inline_code{background-color:rgba(29,28,29,.04);border-color:rgba(29,28,29,.13);border-radius:3px;border-width:1px;display:inline-block;line-height:1.5;overflow-wrap:break-word;padding:.125rem 3px 1px;white-space:pre-wrap;--tw-text-opacity:1;color:rgb(224 30 90/var(--tw-text-opacity))}.slack_blocks_to_jsx.styles_enabled .slack_bold,.slack_blocks_to_jsx.styles_enabled .slack_bold code{font-weight:600}.slack_blocks_to_jsx.styles_enabled .slack_blockquote{display:block}.slack_blocks_to_jsx.styles_enabled .slack_inline_blockquote{display:inline-block}.slack_blocks_to_jsx.styles_enabled blockquote{padding-left:16px;position:relative}.slack_blocks_to_jsx.styles_enabled blockquote:before{background:#ddd;border-radius:8px;bottom:0;content:"";display:block;left:0;position:absolute;top:0;width:4px}.slack_blocks_to_jsx.styles_enabled .slack_channel,.slack_blocks_to_jsx.styles_enabled .slack_user,.slack_blocks_to_jsx.styles_enabled .slack_user_group{background:rgba(29,155,209,.1);color:#1264a3;-webkit-user-select:none;-moz-user-select:none;user-select:none}.slack_blocks_to_jsx.styles_enabled .slack_broadcast{background:rgba(255,198,0,.18);color:#1d1c1d;font-weight:600}.slack_blocks_to_jsx.styles_enabled .slack_blocks_to_jsx__line_break{display:block}.slack_blocks_to_jsx.styles_enabled .slack_blocks_to_jsx__line_break_not_first{display:block;height:3px}.slack_blocks_to_jsx.styles_enabled .slack_link{color:#1264a3}.slack_blocks_to_jsx.styles_disabled>*{all:unset!important}#slack_blocks_to_jsx :is(.hover\:bg-blue-primary:hover){--tw-bg-opacity:1;background-color:rgb(18 100 163/var(--tw-bg-opacity))}#slack_blocks_to_jsx :is(.hover\:text-white-primary:hover){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}#slack_blocks_to_jsx :is(.hover\:underline:hover){text-decoration-line:underline}#slack_blocks_to_jsx :is(.focus\:outline-none:focus){outline:2px solid transparent;outline-offset:2px}#slack_blocks_to_jsx :is(.group:hover .group-hover\:border-white-primary){--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}#slack_blocks_to_jsx :is(.group:hover .group-hover\:bg-blue-primary){--tw-bg-opacity:1;background-color:rgb(18 100 163/var(--tw-bg-opacity))}#slack_blocks_to_jsx :is(.group:hover .group-hover\:text-white-primary){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  ],
12
12
  "repository": "https://github.com/themashcodee/slack-blocks-to-jsx.git",
13
13
  "license": "MIT",
14
- "version": "0.3.1",
14
+ "version": "0.3.2",
15
15
  "main": "dist/index.js",
16
16
  "module": "dist/index.mjs",
17
17
  "types": "dist/index.d.ts",
package/readme.md CHANGED
@@ -79,7 +79,7 @@ Each Slack block type has a corresponding component:
79
79
  - `Context` (✅ supported)
80
80
  - `Actions` (🟨 partially supported)
81
81
  - `File` (❌ not supported yet)
82
- - `Header` (❌ not supported yet)
82
+ - `Header` (✅ supported)
83
83
  - `Input` (🟨 partially supported)
84
84
  - `RichText` (✅ supported)
85
85
  - `Video` (✅ supported)