@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 identifier (e.g., 'your-blog.wordpress.com') |
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. Uses config provider for default values.
463
+ CRM integration for HubSpot forms and tracking.
464
464
 
465
465
  ```tsx
466
- import { HubSpotForm } from '@pixelated-tech/components';
466
+ import { HubSpot } from '@pixelated-tech/components';
467
467
 
468
- <HubSpotForm
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
- | `region` | `string` | `config.hubspot.region` or `'na1'` | HubSpot region (na1, eu1, ap1, etc.) |
479
- | `portalId` | `string` | `config.hubspot.portalId` | HubSpot portal ID |
480
- | `formId` | `string` | `config.hubspot.formId` | HubSpot form ID |
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. Can use config provider or direct props.
996
+ Google Analytics tracking component.
1000
997
 
1001
998
  ```tsx
1002
999
  import { GoogleAnalytics } from '@pixelated-tech/components';
1003
1000
 
1004
- // Using config provider (recommended)
1005
- <GoogleAnalytics />
1006
-
1007
- // Using direct props (overrides config)
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
- | `id` | `string` | - | Google Analytics tracking ID (optional if set in config) |
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
- baseURL: 'https://public-api.wordpress.com/rest/v1/sites/', // REST API base URL
1373
- site: 'your-blog.wordpress.com' // WordPress site identifier
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
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixelated-tech/components",
3
- "version": "3.2.9",
3
+ "version": "3.2.10",
4
4
  "private": false,
5
5
  "author": {
6
6
  "name": "Pixelated Technologies",