@pixelated-tech/components 3.2.9 → 3.2.10
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.
|
@@ -332,7 +332,7 @@ import { BlogPostList } from '@pixelated-tech/components';
|
|
|
332
332
|
|
|
333
333
|
| Prop | Type | Default | Description |
|
|
334
334
|
|------|------|---------|-------------|
|
|
335
|
-
| `site` | `string` | - | WordPress site
|
|
335
|
+
| `site` | `string` | - | WordPress site URL or API endpoint |
|
|
336
336
|
| `count` | `number` | - | Number of posts to fetch (undefined = all) |
|
|
337
337
|
| `posts` | `BlogPostType[]` | - | Pre-fetched posts array |
|
|
338
338
|
|
|
@@ -460,13 +460,12 @@ import { Gravatar } from '@pixelated-tech/components';
|
|
|
460
460
|
|
|
461
461
|
### HubSpot
|
|
462
462
|
|
|
463
|
-
CRM integration for HubSpot forms and tracking.
|
|
463
|
+
CRM integration for HubSpot forms and tracking.
|
|
464
464
|
|
|
465
465
|
```tsx
|
|
466
|
-
import {
|
|
466
|
+
import { HubSpot } from '@pixelated-tech/components';
|
|
467
467
|
|
|
468
|
-
<
|
|
469
|
-
region="na1"
|
|
468
|
+
<HubSpot
|
|
470
469
|
portalId="1234567"
|
|
471
470
|
formId="abcd-1234-5678-efgh"
|
|
472
471
|
/>
|
|
@@ -475,11 +474,9 @@ import { HubSpotForm } from '@pixelated-tech/components';
|
|
|
475
474
|
#### Props
|
|
476
475
|
| Prop | Type | Default | Description |
|
|
477
476
|
|------|------|---------|-------------|
|
|
478
|
-
| `
|
|
479
|
-
| `
|
|
480
|
-
| `
|
|
481
|
-
| `target` | `string` | `'#hubspot-form-container'` | Form target element selector |
|
|
482
|
-
| `containerId` | `string` | `'hubspot-form-container'` | Container element ID |
|
|
477
|
+
| `portalId` | `string` | - | HubSpot portal ID |
|
|
478
|
+
| `formId` | `string` | - | HubSpot form ID |
|
|
479
|
+
| `onFormSubmit` | `function` | - | Form submission callback |
|
|
483
480
|
|
|
484
481
|
### Instagram
|
|
485
482
|
|
|
@@ -996,32 +993,22 @@ import { NotFound } from '@pixelated-tech/components';
|
|
|
996
993
|
|
|
997
994
|
### GoogleAnalytics
|
|
998
995
|
|
|
999
|
-
Google Analytics tracking component.
|
|
996
|
+
Google Analytics tracking component.
|
|
1000
997
|
|
|
1001
998
|
```tsx
|
|
1002
999
|
import { GoogleAnalytics } from '@pixelated-tech/components';
|
|
1003
1000
|
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
<GoogleAnalytics id="G-XXXXXXXXXX" />
|
|
1001
|
+
<GoogleAnalytics
|
|
1002
|
+
trackingId="GA_MEASUREMENT_ID"
|
|
1003
|
+
debug={false}
|
|
1004
|
+
/>
|
|
1009
1005
|
```
|
|
1010
1006
|
|
|
1011
1007
|
#### Props
|
|
1012
1008
|
| Prop | Type | Default | Description |
|
|
1013
1009
|
|------|------|---------|-------------|
|
|
1014
|
-
| `
|
|
1015
|
-
|
|
1016
|
-
#### Configuration
|
|
1017
|
-
```tsx
|
|
1018
|
-
const pixelatedConfig = {
|
|
1019
|
-
googleAnalytics: {
|
|
1020
|
-
id: 'G-XXXXXXXXXX', // Google Analytics measurement ID
|
|
1021
|
-
adId: 'AW-XXXXXXXXX', // Optional: Google Ads conversion tracking
|
|
1022
|
-
}
|
|
1023
|
-
};
|
|
1024
|
-
```
|
|
1010
|
+
| `trackingId` | `string` | - | Google Analytics tracking ID |
|
|
1011
|
+
| `debug` | `boolean` | `false` | Enable debug mode |
|
|
1025
1012
|
|
|
1026
1013
|
### GoogleMap
|
|
1027
1014
|
|
|
@@ -1369,8 +1356,8 @@ const cloudinaryConfig = {
|
|
|
1369
1356
|
|
|
1370
1357
|
```tsx
|
|
1371
1358
|
const wordpressConfig = {
|
|
1372
|
-
|
|
1373
|
-
|
|
1359
|
+
site: 'your-blog.wordpress.com', // WordPress site URL
|
|
1360
|
+
apiVersion: '1.1' // API version (optional)
|
|
1374
1361
|
};
|
|
1375
1362
|
```
|
|
1376
1363
|
|
|
@@ -1392,7 +1379,6 @@ const config = {
|
|
|
1392
1379
|
username: 'your-calendly-username'
|
|
1393
1380
|
},
|
|
1394
1381
|
hubspot: {
|
|
1395
|
-
region: 'na1',
|
|
1396
1382
|
portalId: 'your-portal-id',
|
|
1397
1383
|
formId: 'your-form-id'
|
|
1398
1384
|
},
|