slack-blocks-to-jsx 0.0.6 → 0.0.7

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # slack-blocks-to-jsx
2
2
 
3
+ ## 0.0.7
4
+
5
+ ### Patch Changes
6
+
7
+ - 78da930: Fix css build structure, export typescript types and remove tailwind from npm build
8
+
3
9
  ## 0.0.6
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -950,7 +950,9 @@ type Props = {
950
950
  logo: string;
951
951
  name: string;
952
952
  time?: Date;
953
+ className?: string;
954
+ style?: React.CSSProperties;
953
955
  };
954
956
  declare const Message: (props: Props) => JSX.Element;
955
957
 
956
- export { Message };
958
+ export { ActionsBlock, Block, ButtonElement, ChannelsSelectElement, CheckboxesElement, ConfirmDialogObject, ContextBlock, ConversationsSelectElement, DatePickerElement, DateTimePickerElement, DispatchActionConfigObject, DividerBlock, Element, EmailInputElement, ExternalSelectElement, FileBlock, FilterObject, HeaderBlock, ImageBlock, ImageElement, InputBlock, Message, MultiChannelsSelectElement, MultiConversationsSelectElement, MultiExternalSelectElement, MultiStaticSelectElement, MultiUsersSelectElement, NumberInputElement, OptionGroupObject, OptionObject, OverflowMenuElement, PlainTextInputElement, RadioButtonsElement, SectionBlock, StaticSelectElement, Style, TextObject, TextObjectTextType, TimePickerElement, UrlTextInputElement, UsersSelectElement, VideoBlock };
package/dist/index.d.ts CHANGED
@@ -950,7 +950,9 @@ type Props = {
950
950
  logo: string;
951
951
  name: string;
952
952
  time?: Date;
953
+ className?: string;
954
+ style?: React.CSSProperties;
953
955
  };
954
956
  declare const Message: (props: Props) => JSX.Element;
955
957
 
956
- export { Message };
958
+ export { ActionsBlock, Block, ButtonElement, ChannelsSelectElement, CheckboxesElement, ConfirmDialogObject, ContextBlock, ConversationsSelectElement, DatePickerElement, DateTimePickerElement, DispatchActionConfigObject, DividerBlock, Element, EmailInputElement, ExternalSelectElement, FileBlock, FilterObject, HeaderBlock, ImageBlock, ImageElement, InputBlock, Message, MultiChannelsSelectElement, MultiConversationsSelectElement, MultiExternalSelectElement, MultiStaticSelectElement, MultiUsersSelectElement, NumberInputElement, OptionGroupObject, OptionObject, OverflowMenuElement, PlainTextInputElement, RadioButtonsElement, SectionBlock, StaticSelectElement, Style, TextObject, TextObjectTextType, TimePickerElement, UrlTextInputElement, UsersSelectElement, VideoBlock };
package/dist/index.js CHANGED
@@ -451,8 +451,8 @@ var BlockWrapper = (props) => {
451
451
  // src/message.tsx
452
452
  var import_jsx_runtime13 = require("react/jsx-runtime");
453
453
  var Message = (props) => {
454
- const { theme = "light", blocks, logo, name, time = /* @__PURE__ */ new Date() } = props;
455
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("section", { className: "flex gap-2 w-full max-w-[600px] slack-message", children: [
454
+ const { theme = "light", blocks, logo, name, time = /* @__PURE__ */ new Date(), className = "", style } = props;
455
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("section", { className: `flex gap-2 w-full max-w-[600px] slack-message ${className}`, style, children: [
456
456
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("img", { src: logo, className: "w-9 h-9", alt: name }) }),
457
457
  /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "flex flex-col w-full", children: [
458
458
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Header, { name, time }),
package/dist/index.mjs CHANGED
@@ -415,8 +415,8 @@ var BlockWrapper = (props) => {
415
415
  // src/message.tsx
416
416
  import { jsx as jsx13, jsxs as jsxs5 } from "react/jsx-runtime";
417
417
  var Message = (props) => {
418
- const { theme = "light", blocks, logo, name, time = /* @__PURE__ */ new Date() } = props;
419
- return /* @__PURE__ */ jsxs5("section", { className: "flex gap-2 w-full max-w-[600px] slack-message", children: [
418
+ const { theme = "light", blocks, logo, name, time = /* @__PURE__ */ new Date(), className = "", style } = props;
419
+ return /* @__PURE__ */ jsxs5("section", { className: `flex gap-2 w-full max-w-[600px] slack-message ${className}`, style, children: [
420
420
  /* @__PURE__ */ jsx13("div", { className: "shrink-0", children: /* @__PURE__ */ jsx13("img", { src: logo, className: "w-9 h-9", alt: name }) }),
421
421
  /* @__PURE__ */ jsxs5("div", { className: "flex flex-col w-full", children: [
422
422
  /* @__PURE__ */ jsx13(Header, { name, time }),
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.0.6",
14
+ "version": "0.0.7",
15
15
  "main": "dist/index.js",
16
16
  "module": "dist/index.mjs",
17
17
  "types": "dist/index.d.ts",
@@ -38,6 +38,7 @@
38
38
  "build": "tsup ./src/index.ts --format cjs,esm --dts && npm run build:tailwind",
39
39
  "release": "pnpm run build && changeset publish",
40
40
  "lint": "tsc",
41
- "build:tailwind": "npx tailwindcss -i ./src/global.css -o ./dist/global.css --minify"
41
+ "build:tailwind": "npx tailwindcss -i ./src/style.css -o ./dist/style.css --minify",
42
+ "new-version": "pnpm changeset"
42
43
  }
43
44
  }
package/dist/index.css DELETED
@@ -1,13 +0,0 @@
1
- @import "https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap";
2
-
3
- /* src/global.css */
4
- @tailwind base;
5
- @tailwind components;
6
- @tailwind utilities;
7
- .slack-message {
8
- font-family: "Open Sans", sans-serif !important;
9
- white-space: pre-wrap !important;
10
- }
11
- .slack-message code {
12
- @apply text-xs leading-[18px] px-[3px] pt-0.5 pb-px whitespace-pre-wrap break-words text-red-primary rounded-[3px] border border-black-primary/[0.13] bg-black-primary/[0.04];
13
- }
@@ -1,48 +0,0 @@
1
- /** @type {import('tailwindcss').Config} */
2
- module.exports = {
3
- content: [
4
- "./src/**/*.{js,ts,jsx,tsx,mdx}",
5
- ],
6
- theme: {
7
- extend: {
8
- colors: {
9
- white: {
10
- primary: "#ffffff",
11
- "secondary": "#f8f8f8",
12
- },
13
- "custom_shadow": {
14
- "1": "rgba(29, 28, 29, 0.13) 0px 0px 0px 1px, rgba(0, 0, 0, 0.12) 0px 5px 10px 0px",
15
- },
16
- black: {
17
- primary: "rgb(29, 28, 29)",
18
- "primary.3": "rgba(29, 28, 29, 0.3)",
19
- secondary: "rgb(97, 96, 97)",
20
- },
21
- gray: {
22
- primary: "rgb(221,221,221)",
23
- },
24
- red: {
25
- primary: " rgb(224, 30, 90)",
26
- "primary.3": "rgba(224, 30, 90, 0.3)",
27
- },
28
- blue: {
29
- primary: "rgb(18,100,163)",
30
- },
31
- green: {
32
- primary: "rgb(0, 122, 90)",
33
- "primary.3": "rgba(0, 122, 90, 0.3)",
34
- },
35
- },
36
- fontSize: {
37
- "small": ["13px", "1.38461538"],
38
- "base": ["15px", "1.46668"],
39
- },
40
- backgroundImage: {
41
- "gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
42
- "gradient-conic":
43
- "conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))",
44
- },
45
- },
46
- },
47
- plugins: [],
48
- }
File without changes