@bubblelab/bubble-core 0.1.123 → 0.1.125
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/bubble-bundle.d.ts +120 -100
- package/dist/bubble-factory.d.ts.map +1 -1
- package/dist/bubble-factory.js +2 -0
- package/dist/bubble-factory.js.map +1 -1
- package/dist/bubbles/service-bubble/agi-inc.d.ts +20 -20
- package/dist/bubbles/service-bubble/ai-agent.d.ts +84 -84
- package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/ai-agent.js +178 -87
- package/dist/bubbles/service-bubble/ai-agent.js.map +1 -1
- package/dist/bubbles/service-bubble/airtable.d.ts +76 -76
- package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts +2 -2
- package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts +8 -8
- package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.d.ts +2 -2
- package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.d.ts +22 -22
- package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts +52 -52
- package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.d.ts +6 -6
- package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.d.ts +12 -12
- package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts +12 -12
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +88 -88
- package/dist/bubbles/service-bubble/apify/apify.d.ts +18 -18
- package/dist/bubbles/service-bubble/ashby/ashby.d.ts +2 -2
- package/dist/bubbles/service-bubble/ashby/ashby.schema.d.ts +2 -2
- package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +1 -1
- package/dist/bubbles/service-bubble/browserbase/browserbase.schema.d.ts +1 -1
- package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +10 -10
- package/dist/bubbles/service-bubble/crustdata/crustdata.schema.d.ts +24 -24
- package/dist/bubbles/service-bubble/firecrawl.d.ts +338 -338
- package/dist/bubbles/service-bubble/followupboss.d.ts +4 -4
- package/dist/bubbles/service-bubble/github.d.ts +60 -60
- package/dist/bubbles/service-bubble/gmail.d.ts +164 -164
- package/dist/bubbles/service-bubble/gmail.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/gmail.js +17 -6
- package/dist/bubbles/service-bubble/gmail.js.map +1 -1
- package/dist/bubbles/service-bubble/google-calendar.d.ts +6 -6
- package/dist/bubbles/service-bubble/google-drive.d.ts +8 -8
- package/dist/bubbles/service-bubble/http.d.ts +2 -2
- package/dist/bubbles/service-bubble/insforge-db.d.ts +8 -8
- package/dist/bubbles/service-bubble/jira/jira.d.ts +30 -30
- package/dist/bubbles/service-bubble/jira/jira.schema.d.ts +36 -36
- package/dist/bubbles/service-bubble/notion/notion.d.ts +168 -168
- package/dist/bubbles/service-bubble/notion/property-schemas.d.ts +8 -8
- package/dist/bubbles/service-bubble/postgresql.d.ts +8 -8
- package/dist/bubbles/service-bubble/resend.d.ts +4 -4
- package/dist/bubbles/service-bubble/resend.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/resend.js +13 -4
- package/dist/bubbles/service-bubble/resend.js.map +1 -1
- package/dist/bubbles/service-bubble/salesforce/index.d.ts +4 -0
- package/dist/bubbles/service-bubble/salesforce/index.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/salesforce/index.js +4 -0
- package/dist/bubbles/service-bubble/salesforce/index.js.map +1 -0
- package/dist/bubbles/service-bubble/salesforce/salesforce.d.ts +1331 -0
- package/dist/bubbles/service-bubble/salesforce/salesforce.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/salesforce/salesforce.js +618 -0
- package/dist/bubbles/service-bubble/salesforce/salesforce.js.map +1 -0
- package/dist/bubbles/service-bubble/salesforce/salesforce.schema.d.ts +1445 -0
- package/dist/bubbles/service-bubble/salesforce/salesforce.schema.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/salesforce/salesforce.schema.js +609 -0
- package/dist/bubbles/service-bubble/salesforce/salesforce.schema.js.map +1 -0
- package/dist/bubbles/service-bubble/salesforce/salesforce.utils.d.ts +87 -0
- package/dist/bubbles/service-bubble/salesforce/salesforce.utils.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/salesforce/salesforce.utils.js +181 -0
- package/dist/bubbles/service-bubble/salesforce/salesforce.utils.js.map +1 -0
- package/dist/bubbles/service-bubble/slack/slack.d.ts +392 -392
- package/dist/bubbles/service-bubble/stripe/stripe.d.ts +24 -24
- package/dist/bubbles/service-bubble/stripe/stripe.schema.d.ts +28 -28
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts +6 -6
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.d.ts +8 -8
- package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +28 -28
- package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +310 -310
- package/dist/bubbles/tool-bubble/list-capabilities-tool.d.ts +235 -0
- package/dist/bubbles/tool-bubble/list-capabilities-tool.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/list-capabilities-tool.js +105 -0
- package/dist/bubbles/tool-bubble/list-capabilities-tool.js.map +1 -0
- package/dist/bubbles/tool-bubble/people-search-tool.d.ts +44 -44
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +10 -10
- package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +60 -60
- package/dist/bubbles/tool-bubble/twitter-tool.d.ts +134 -134
- package/dist/bubbles/tool-bubble/yc-scraper-tool.d.ts +36 -36
- package/dist/bubbles/tool-bubble/youtube-tool.d.ts +20 -20
- package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +12 -12
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +24 -24
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +2 -2
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +26 -26
- package/dist/bubbles.json +143 -11
- package/dist/capabilities/define-capability.d.ts +8 -2
- package/dist/capabilities/define-capability.d.ts.map +1 -1
- package/dist/capabilities/define-capability.js +3 -0
- package/dist/capabilities/define-capability.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/types/available-tools.d.ts +1 -1
- package/dist/types/available-tools.d.ts.map +1 -1
- package/dist/types/available-tools.js +1 -0
- package/dist/types/available-tools.js.map +1 -1
- package/dist/utils/markdown-to-html.d.ts +6 -0
- package/dist/utils/markdown-to-html.d.ts.map +1 -0
- package/dist/utils/markdown-to-html.js +68 -0
- package/dist/utils/markdown-to-html.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lightweight markdown-to-HTML converter for email rendering.
|
|
3
|
+
* Handles the most common markdown patterns without external dependencies.
|
|
4
|
+
*/
|
|
5
|
+
export function markdownToHtml(text) {
|
|
6
|
+
// Escape HTML entities first
|
|
7
|
+
let html = text
|
|
8
|
+
.replace(/&/g, '&')
|
|
9
|
+
.replace(/</g, '<')
|
|
10
|
+
.replace(/>/g, '>');
|
|
11
|
+
// Code blocks (``` ... ```) — must come before inline processing
|
|
12
|
+
html = html.replace(/```(\w*)\n([\s\S]*?)```/g, (_match, _lang, code) => {
|
|
13
|
+
return `<pre><code>${code.trimEnd()}</code></pre>`;
|
|
14
|
+
});
|
|
15
|
+
// Inline code (`...`)
|
|
16
|
+
html = html.replace(/`([^`]+)`/g, '<code>$1</code>');
|
|
17
|
+
// Headers (# to ######)
|
|
18
|
+
html = html.replace(/^#{6}\s+(.+)$/gm, '<h6>$1</h6>');
|
|
19
|
+
html = html.replace(/^#{5}\s+(.+)$/gm, '<h5>$1</h5>');
|
|
20
|
+
html = html.replace(/^#{4}\s+(.+)$/gm, '<h4>$1</h4>');
|
|
21
|
+
html = html.replace(/^#{3}\s+(.+)$/gm, '<h3>$1</h3>');
|
|
22
|
+
html = html.replace(/^#{2}\s+(.+)$/gm, '<h2>$1</h2>');
|
|
23
|
+
html = html.replace(/^#{1}\s+(.+)$/gm, '<h1>$1</h1>');
|
|
24
|
+
// Horizontal rule
|
|
25
|
+
html = html.replace(/^[-*_]{3,}\s*$/gm, '<hr>');
|
|
26
|
+
// Bold + italic (***text*** or ___text___)
|
|
27
|
+
html = html.replace(/\*{3}(.+?)\*{3}/g, '<strong><em>$1</em></strong>');
|
|
28
|
+
html = html.replace(/_{3}(.+?)_{3}/g, '<strong><em>$1</em></strong>');
|
|
29
|
+
// Bold (**text** or __text__)
|
|
30
|
+
html = html.replace(/\*{2}(.+?)\*{2}/g, '<strong>$1</strong>');
|
|
31
|
+
html = html.replace(/_{2}(.+?)_{2}/g, '<strong>$1</strong>');
|
|
32
|
+
// Italic (*text* or _text_)
|
|
33
|
+
html = html.replace(/\*(.+?)\*/g, '<em>$1</em>');
|
|
34
|
+
html = html.replace(/(?<!\w)_(.+?)_(?!\w)/g, '<em>$1</em>');
|
|
35
|
+
// Images  — must come before links
|
|
36
|
+
html = html.replace(/!\[([^\]]*)\]\(([^)]+)\)/g, '<img src="$2" alt="$1">');
|
|
37
|
+
// Links [text](url)
|
|
38
|
+
html = html.replace(/\[([^\]]+)\]\(([^)]+)\)/g, '<a href="$2">$1</a>');
|
|
39
|
+
// Unordered lists (- or * at start of line)
|
|
40
|
+
html = html.replace(/(?:^[\t ]*[-*]\s+.+$\n?)+/gm, (block) => {
|
|
41
|
+
const items = block
|
|
42
|
+
.trim()
|
|
43
|
+
.split('\n')
|
|
44
|
+
.map((line) => `<li>${line.replace(/^[\t ]*[-*]\s+/, '')}</li>`)
|
|
45
|
+
.join('\n');
|
|
46
|
+
return `<ul>\n${items}\n</ul>\n`;
|
|
47
|
+
});
|
|
48
|
+
// Ordered lists (1. 2. etc.)
|
|
49
|
+
html = html.replace(/(?:^[\t ]*\d+\.\s+.+$\n?)+/gm, (block) => {
|
|
50
|
+
const items = block
|
|
51
|
+
.trim()
|
|
52
|
+
.split('\n')
|
|
53
|
+
.map((line) => `<li>${line.replace(/^[\t ]*\d+\.\s+/, '')}</li>`)
|
|
54
|
+
.join('\n');
|
|
55
|
+
return `<ol>\n${items}\n</ol>\n`;
|
|
56
|
+
});
|
|
57
|
+
// Blockquotes (> text)
|
|
58
|
+
html = html.replace(/(?:^>\s?.+$\n?)+/gm, (block) => {
|
|
59
|
+
const content = block.replace(/^>\s?/gm, '').trim();
|
|
60
|
+
return `<blockquote>${content}</blockquote>\n`;
|
|
61
|
+
});
|
|
62
|
+
// Paragraphs — wrap remaining loose text blocks in <p> tags
|
|
63
|
+
html = html.replace(/^(?!<(?:h[1-6]|ul|ol|li|pre|code|blockquote|hr|\/))(.+)$/gm, '<p>$1</p>');
|
|
64
|
+
// Clean up double line breaks between block elements
|
|
65
|
+
html = html.replace(/\n{2,}/g, '\n');
|
|
66
|
+
return html.trim();
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=markdown-to-html.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown-to-html.js","sourceRoot":"","sources":["../../src/utils/markdown-to-html.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,UAAU,cAAc,CAAC,IAAY;IACzC,6BAA6B;IAC7B,IAAI,IAAI,GAAG,IAAI;SACZ,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC;SACtB,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAEzB,iEAAiE;IACjE,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,0BAA0B,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,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D,IAAI,GAAG,IAAI,CAAC,OAAO,CACjB,4DAA4D,EAC5D,WAAW,CACZ,CAAC;IAEF,qDAAqD;IACrD,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IAErC,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;AACrB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bubblelab/bubble-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.125",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"puppeteer-core": "^24.10.0",
|
|
41
41
|
"resend": "^4.8.0",
|
|
42
42
|
"zod": "^3.24.1",
|
|
43
|
-
"@bubblelab/shared-schemas": "0.1.
|
|
43
|
+
"@bubblelab/shared-schemas": "0.1.125"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/node": "^20.12.12",
|