@gravityforms/dependency-extraction-webpack-plugin 6.1.6 → 6.2.1

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/AGENTS.md ADDED
@@ -0,0 +1,33 @@
1
+ # AGENTS.md - Dependency Extraction Webpack Plugin
2
+
3
+ Package-specific guidance for `@gravityforms/dependency-extraction-webpack-plugin`. See root `AGENTS.md` for shared conventions.
4
+
5
+ ## Purpose
6
+
7
+ Extends `@wordpress/dependency-extraction-webpack-plugin` to automatically handle `@gravityforms/*` packages as WordPress externals. Ensures monorepo packages are not bundled into every script — instead they reference the shared globals enqueued by the plugin.
8
+
9
+ ## Key Files
10
+
11
+ - `src/index.js` — Main plugin logic; maps `@gravityforms/*` imports to `gform.*` global variables
12
+
13
+ ## How It Works
14
+
15
+ When webpack encounters an import like:
16
+
17
+ ```javascript
18
+ import Button from '@gravityforms/components/react/admin/elements/Button';
19
+ ```
20
+
21
+ This plugin maps it to the WordPress external `gform.components.admin.react.elements.Button`, preventing duplicate bundling.
22
+
23
+ ## Component Mapping
24
+
25
+ Component-level mappings are driven by `package-config.js` files inside each component directory in `packages/npm/storybooks/`. These define:
26
+
27
+ - `defaultExport` — The component's default export name
28
+ - `importPath` — The import subpath (e.g., `react/admin/elements/`)
29
+ - `externalPath` — The WordPress global path (e.g., `components.admin.react.elements`)
30
+
31
+ ## Dependencies
32
+
33
+ - `@wordpress/dependency-extraction-webpack-plugin`
@@ -1,9 +1,4 @@
1
1
  module.exports = [
2
- {
3
- "defaultExport": "Table",
4
- "importPath": "html/admin/modules/",
5
- "externalPath": "components.admin.html.modules"
6
- },
7
2
  {
8
3
  "defaultExport": "Flyout",
9
4
  "namedExports": [
@@ -21,12 +16,9 @@ module.exports = [
21
16
  "externalPath": "components.admin.html.modules"
22
17
  },
23
18
  {
24
- "defaultExport": "Toggle",
25
- "namedExports": [
26
- "toggleTemplate"
27
- ],
28
- "importPath": "html/admin/elements/",
29
- "externalPath": "components.admin.html.elements"
19
+ "defaultExport": "Table",
20
+ "importPath": "html/admin/modules/",
21
+ "externalPath": "components.admin.html.modules"
30
22
  },
31
23
  {
32
24
  "defaultExport": "Textarea",
@@ -101,26 +93,34 @@ module.exports = [
101
93
  "externalPath": "components.admin.html.elements"
102
94
  },
103
95
  {
104
- "defaultExport": "Heading",
96
+ "defaultExport": "HelpText",
105
97
  "namedExports": [
106
- "headingTemplate"
98
+ "helpTextTemplate"
107
99
  ],
108
100
  "importPath": "html/admin/elements/",
109
101
  "externalPath": "components.admin.html.elements"
110
102
  },
111
103
  {
112
- "defaultExport": "Dropdown",
104
+ "defaultExport": "Toggle",
113
105
  "namedExports": [
114
- "dropdownTemplate",
115
- "dropdownListItems"
106
+ "toggleTemplate"
116
107
  ],
117
108
  "importPath": "html/admin/elements/",
118
109
  "externalPath": "components.admin.html.elements"
119
110
  },
120
111
  {
121
- "defaultExport": "Button",
112
+ "defaultExport": "Heading",
122
113
  "namedExports": [
123
- "buttonTemplate"
114
+ "headingTemplate"
115
+ ],
116
+ "importPath": "html/admin/elements/",
117
+ "externalPath": "components.admin.html.elements"
118
+ },
119
+ {
120
+ "defaultExport": "Dropdown",
121
+ "namedExports": [
122
+ "dropdownTemplate",
123
+ "dropdownListItems"
124
124
  ],
125
125
  "importPath": "html/admin/elements/",
126
126
  "externalPath": "components.admin.html.elements"
@@ -134,9 +134,9 @@ module.exports = [
134
134
  "externalPath": "components.admin.html.elements"
135
135
  },
136
136
  {
137
- "defaultExport": "HelpText",
137
+ "defaultExport": "Button",
138
138
  "namedExports": [
139
- "helpTextTemplate"
139
+ "buttonTemplate"
140
140
  ],
141
141
  "importPath": "html/admin/elements/",
142
142
  "externalPath": "components.admin.html.elements"
@@ -146,6 +146,11 @@ module.exports = [
146
146
  "importPath": "react/admin/modules/",
147
147
  "externalPath": "components.admin.react.modules"
148
148
  },
149
+ {
150
+ "defaultExport": "Tabs",
151
+ "importPath": "react/admin/modules/",
152
+ "externalPath": "components.admin.react.modules"
153
+ },
149
154
  {
150
155
  "defaultExport": "Swatch",
151
156
  "importPath": "react/admin/modules/",
@@ -296,12 +301,12 @@ module.exports = [
296
301
  "externalPath": "components.admin.react.modules"
297
302
  },
298
303
  {
299
- "defaultExport": "Tabs",
300
- "importPath": "react/admin/modules/",
301
- "externalPath": "components.admin.react.modules"
304
+ "defaultExport": "Toggle",
305
+ "importPath": "react/admin/elements/",
306
+ "externalPath": "components.admin.react.elements"
302
307
  },
303
308
  {
304
- "defaultExport": "Toggle",
309
+ "defaultExport": "Textarea",
305
310
  "importPath": "react/admin/elements/",
306
311
  "externalPath": "components.admin.react.elements"
307
312
  },
@@ -415,11 +420,6 @@ module.exports = [
415
420
  "importPath": "react/admin/modules/Videos/",
416
421
  "externalPath": "components.admin.react.modules"
417
422
  },
418
- {
419
- "defaultExport": "Textarea",
420
- "importPath": "react/admin/elements/",
421
- "externalPath": "components.admin.react.elements"
422
- },
423
423
  {
424
424
  "__esModule": true,
425
425
  "default": {
@@ -439,22 +439,22 @@ module.exports = [
439
439
  "externalPath": "components.admin.react.modules"
440
440
  },
441
441
  {
442
- "defaultExport": "ModularSidebar",
442
+ "defaultExport": "RightSidebar",
443
443
  "importPath": "react/admin/modules/Layouts/",
444
444
  "externalPath": "components.admin.react.modules"
445
445
  },
446
446
  {
447
- "defaultExport": "RightSidebar",
447
+ "defaultExport": "ModularSidebar",
448
448
  "importPath": "react/admin/modules/Layouts/",
449
449
  "externalPath": "components.admin.react.modules"
450
450
  },
451
451
  {
452
- "defaultExport": "DotIndicator",
452
+ "defaultExport": "IconIndicator",
453
453
  "importPath": "react/admin/modules/Indicators/",
454
454
  "externalPath": "components.admin.react.modules"
455
455
  },
456
456
  {
457
- "defaultExport": "IconIndicator",
457
+ "defaultExport": "DotIndicator",
458
458
  "importPath": "react/admin/modules/Indicators/",
459
459
  "externalPath": "components.admin.react.modules"
460
460
  },
@@ -464,22 +464,22 @@ module.exports = [
464
464
  "externalPath": "components.admin.react.modules"
465
465
  },
466
466
  {
467
- "defaultExport": "MetricCard",
467
+ "defaultExport": "IntegrationCard",
468
468
  "importPath": "react/admin/modules/Cards/",
469
469
  "externalPath": "components.admin.react.modules"
470
470
  },
471
471
  {
472
- "defaultExport": "IntegrationCard",
472
+ "defaultExport": "MetricCard",
473
473
  "importPath": "react/admin/modules/Cards/",
474
474
  "externalPath": "components.admin.react.modules"
475
475
  },
476
476
  {
477
- "defaultExport": "FormTemplateCard",
477
+ "defaultExport": "AddCard",
478
478
  "importPath": "react/admin/modules/Cards/",
479
479
  "externalPath": "components.admin.react.modules"
480
480
  },
481
481
  {
482
- "defaultExport": "AddCard",
482
+ "defaultExport": "FormTemplateCard",
483
483
  "importPath": "react/admin/modules/Cards/",
484
484
  "externalPath": "components.admin.react.modules"
485
485
  },
@@ -514,12 +514,12 @@ module.exports = [
514
514
  "externalPath": "components.admin.react.elements"
515
515
  },
516
516
  {
517
- "defaultExport": "SparkPostLogo",
517
+ "defaultExport": "TelegramLogo",
518
518
  "importPath": "react/admin/elements/Svgs/",
519
519
  "externalPath": "components.admin.react.elements"
520
520
  },
521
521
  {
522
- "defaultExport": "TelegramLogo",
522
+ "defaultExport": "SparkPostLogo",
523
523
  "importPath": "react/admin/elements/Svgs/",
524
524
  "externalPath": "components.admin.react.elements"
525
525
  },
@@ -533,6 +533,11 @@ module.exports = [
533
533
  "importPath": "react/admin/elements/Svgs/",
534
534
  "externalPath": "components.admin.react.elements"
535
535
  },
536
+ {
537
+ "defaultExport": "SendGridLogo",
538
+ "importPath": "react/admin/elements/Svgs/",
539
+ "externalPath": "components.admin.react.elements"
540
+ },
536
541
  {
537
542
  "defaultExport": "SendGridFullLogo",
538
543
  "importPath": "react/admin/elements/Svgs/",
@@ -584,17 +589,17 @@ module.exports = [
584
589
  "externalPath": "components.admin.react.elements"
585
590
  },
586
591
  {
587
- "defaultExport": "PHPFullLogo",
592
+ "defaultExport": "MicrosoftLogo",
588
593
  "importPath": "react/admin/elements/Svgs/",
589
594
  "externalPath": "components.admin.react.elements"
590
595
  },
591
596
  {
592
- "defaultExport": "MicrosoftLogo",
597
+ "defaultExport": "MicrosoftFullLogo",
593
598
  "importPath": "react/admin/elements/Svgs/",
594
599
  "externalPath": "components.admin.react.elements"
595
600
  },
596
601
  {
597
- "defaultExport": "MicrosoftFullLogo",
602
+ "defaultExport": "PHPFullLogo",
598
603
  "importPath": "react/admin/elements/Svgs/",
599
604
  "externalPath": "components.admin.react.elements"
600
605
  },
@@ -704,12 +709,12 @@ module.exports = [
704
709
  "externalPath": "components.admin.react.elements"
705
710
  },
706
711
  {
707
- "defaultExport": "SendGridLogo",
712
+ "defaultExport": "GoogleLogo",
708
713
  "importPath": "react/admin/elements/Svgs/",
709
714
  "externalPath": "components.admin.react.elements"
710
715
  },
711
716
  {
712
- "defaultExport": "GoogleLogo",
717
+ "defaultExport": "GoogleFullLogo",
713
718
  "importPath": "react/admin/elements/Svgs/",
714
719
  "externalPath": "components.admin.react.elements"
715
720
  },
@@ -723,11 +728,6 @@ module.exports = [
723
728
  "importPath": "react/admin/elements/Svgs/",
724
729
  "externalPath": "components.admin.react.elements"
725
730
  },
726
- {
727
- "defaultExport": "GoogleFullLogo",
728
- "importPath": "react/admin/elements/Svgs/",
729
- "externalPath": "components.admin.react.elements"
730
- },
731
731
  {
732
732
  "defaultExport": "EmailitFullLogo",
733
733
  "importPath": "react/admin/elements/Svgs/",
@@ -744,17 +744,17 @@ module.exports = [
744
744
  "externalPath": "components.admin.react.elements"
745
745
  },
746
746
  {
747
- "defaultExport": "CustomSMTP",
747
+ "defaultExport": "CustomSMTPFull",
748
748
  "importPath": "react/admin/elements/Svgs/",
749
749
  "externalPath": "components.admin.react.elements"
750
750
  },
751
751
  {
752
- "defaultExport": "BrokenImageFull",
752
+ "defaultExport": "CustomSMTP",
753
753
  "importPath": "react/admin/elements/Svgs/",
754
754
  "externalPath": "components.admin.react.elements"
755
755
  },
756
756
  {
757
- "defaultExport": "CustomSMTPFull",
757
+ "defaultExport": "BrokenImageFull",
758
758
  "importPath": "react/admin/elements/Svgs/",
759
759
  "externalPath": "components.admin.react.elements"
760
760
  },
@@ -764,17 +764,17 @@ module.exports = [
764
764
  "externalPath": "components.admin.react.elements"
765
765
  },
766
766
  {
767
- "defaultExport": "BrevoFullLogo",
767
+ "defaultExport": "BrevoLogo",
768
768
  "importPath": "react/admin/elements/Svgs/",
769
769
  "externalPath": "components.admin.react.elements"
770
770
  },
771
771
  {
772
- "defaultExport": "AmazonAWSLogo",
772
+ "defaultExport": "BrevoFullLogo",
773
773
  "importPath": "react/admin/elements/Svgs/",
774
774
  "externalPath": "components.admin.react.elements"
775
775
  },
776
776
  {
777
- "defaultExport": "BrevoLogo",
777
+ "defaultExport": "AmazonAWSLogo",
778
778
  "importPath": "react/admin/elements/Svgs/",
779
779
  "externalPath": "components.admin.react.elements"
780
780
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravityforms/dependency-extraction-webpack-plugin",
3
- "version": "6.1.6",
3
+ "version": "6.2.1",
4
4
  "description": "Dependency extraction webpack plugin for use in Gravity Forms development. Extends the WordPress plugin.",
5
5
  "author": "Rocketgenius",
6
6
  "license": "GPL-2.0-or-later",