@amboras-dev/plugin-types 1.0.0 → 1.1.0

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/index.d.mts CHANGED
@@ -27,34 +27,42 @@ declare const SLOT_DISPLAY_NAMES: {
27
27
  homeHero: {
28
28
  label: string;
29
29
  location: string;
30
+ invisible: false;
30
31
  };
31
32
  homeBelowFeatured: {
32
33
  label: string;
33
34
  location: string;
35
+ invisible: false;
34
36
  };
35
37
  pdpAfterTitle: {
36
38
  label: string;
37
39
  location: string;
40
+ invisible: false;
38
41
  };
39
42
  pdpBeforePrice: {
40
43
  label: string;
41
44
  location: string;
45
+ invisible: false;
42
46
  };
43
47
  pdpBelowAddToCart: {
44
48
  label: string;
45
49
  location: string;
50
+ invisible: false;
46
51
  };
47
52
  pdpTrustSignals: {
48
53
  label: string;
49
54
  location: string;
55
+ invisible: false;
50
56
  };
51
57
  pdpAfterDescription: {
52
58
  label: string;
53
59
  location: string;
60
+ invisible: false;
54
61
  };
55
62
  pdpTab: {
56
63
  label: string;
57
64
  location: string;
65
+ invisible: false;
58
66
  };
59
67
  pdpAnalytics: {
60
68
  label: string;
@@ -64,18 +72,22 @@ declare const SLOT_DISPLAY_NAMES: {
64
72
  collectionAboveGrid: {
65
73
  label: string;
66
74
  location: string;
75
+ invisible: false;
67
76
  };
68
77
  collectionCard: {
69
78
  label: string;
70
79
  location: string;
80
+ invisible: false;
71
81
  };
72
82
  collectionBelowGrid: {
73
83
  label: string;
74
84
  location: string;
85
+ invisible: false;
75
86
  };
76
87
  cartDrawerFooter: {
77
88
  label: string;
78
89
  location: string;
90
+ invisible: false;
79
91
  };
80
92
  cartUpdate: {
81
93
  label: string;
@@ -94,14 +106,17 @@ declare const SLOT_DISPLAY_NAMES: {
94
106
  checkoutComplete: {
95
107
  label: string;
96
108
  location: string;
109
+ invisible: false;
97
110
  };
98
111
  searchAboveResults: {
99
112
  label: string;
100
113
  location: string;
114
+ invisible: false;
101
115
  };
102
116
  accountOverview: {
103
117
  label: string;
104
118
  location: string;
119
+ invisible: false;
105
120
  };
106
121
  account: {
107
122
  label: string;
@@ -111,6 +126,7 @@ declare const SLOT_DISPLAY_NAMES: {
111
126
  authSignup: {
112
127
  label: string;
113
128
  location: string;
129
+ invisible: false;
114
130
  };
115
131
  };
116
132
  type SlotName = keyof typeof SLOT_DISPLAY_NAMES;
package/dist/index.d.ts CHANGED
@@ -27,34 +27,42 @@ declare const SLOT_DISPLAY_NAMES: {
27
27
  homeHero: {
28
28
  label: string;
29
29
  location: string;
30
+ invisible: false;
30
31
  };
31
32
  homeBelowFeatured: {
32
33
  label: string;
33
34
  location: string;
35
+ invisible: false;
34
36
  };
35
37
  pdpAfterTitle: {
36
38
  label: string;
37
39
  location: string;
40
+ invisible: false;
38
41
  };
39
42
  pdpBeforePrice: {
40
43
  label: string;
41
44
  location: string;
45
+ invisible: false;
42
46
  };
43
47
  pdpBelowAddToCart: {
44
48
  label: string;
45
49
  location: string;
50
+ invisible: false;
46
51
  };
47
52
  pdpTrustSignals: {
48
53
  label: string;
49
54
  location: string;
55
+ invisible: false;
50
56
  };
51
57
  pdpAfterDescription: {
52
58
  label: string;
53
59
  location: string;
60
+ invisible: false;
54
61
  };
55
62
  pdpTab: {
56
63
  label: string;
57
64
  location: string;
65
+ invisible: false;
58
66
  };
59
67
  pdpAnalytics: {
60
68
  label: string;
@@ -64,18 +72,22 @@ declare const SLOT_DISPLAY_NAMES: {
64
72
  collectionAboveGrid: {
65
73
  label: string;
66
74
  location: string;
75
+ invisible: false;
67
76
  };
68
77
  collectionCard: {
69
78
  label: string;
70
79
  location: string;
80
+ invisible: false;
71
81
  };
72
82
  collectionBelowGrid: {
73
83
  label: string;
74
84
  location: string;
85
+ invisible: false;
75
86
  };
76
87
  cartDrawerFooter: {
77
88
  label: string;
78
89
  location: string;
90
+ invisible: false;
79
91
  };
80
92
  cartUpdate: {
81
93
  label: string;
@@ -94,14 +106,17 @@ declare const SLOT_DISPLAY_NAMES: {
94
106
  checkoutComplete: {
95
107
  label: string;
96
108
  location: string;
109
+ invisible: false;
97
110
  };
98
111
  searchAboveResults: {
99
112
  label: string;
100
113
  location: string;
114
+ invisible: false;
101
115
  };
102
116
  accountOverview: {
103
117
  label: string;
104
118
  location: string;
119
+ invisible: false;
105
120
  };
106
121
  account: {
107
122
  label: string;
@@ -111,6 +126,7 @@ declare const SLOT_DISPLAY_NAMES: {
111
126
  authSignup: {
112
127
  label: string;
113
128
  location: string;
129
+ invisible: false;
114
130
  };
115
131
  };
116
132
  type SlotName = keyof typeof SLOT_DISPLAY_NAMES;
package/dist/index.js CHANGED
@@ -28,27 +28,27 @@ var SLOT_DISPLAY_NAMES = {
28
28
  head: { label: "Head Scripts", location: "All pages", invisible: true },
29
29
  bodyEnd: { label: "Body End", location: "All pages", invisible: true },
30
30
  rootProviders: { label: "Root Providers", location: "All pages", invisible: true },
31
- homeHero: { label: "Below Hero Section", location: "Homepage" },
32
- homeBelowFeatured: { label: "Below Featured Collections", location: "Homepage" },
33
- pdpAfterTitle: { label: "Below Product Title", location: "Product Page" },
34
- pdpBeforePrice: { label: "Above the Price", location: "Product Page" },
35
- pdpBelowAddToCart: { label: "Below Add to Cart", location: "Product Page" },
36
- pdpTrustSignals: { label: "Trust Signals Area", location: "Product Page" },
37
- pdpAfterDescription: { label: "Below Description", location: "Product Page" },
38
- pdpTab: { label: "Product Tab", location: "Product Page" },
31
+ homeHero: { label: "Below Hero Section", location: "Homepage", invisible: false },
32
+ homeBelowFeatured: { label: "Below Featured Collections", location: "Homepage", invisible: false },
33
+ pdpAfterTitle: { label: "Below Product Title", location: "Product Page", invisible: false },
34
+ pdpBeforePrice: { label: "Above the Price", location: "Product Page", invisible: false },
35
+ pdpBelowAddToCart: { label: "Below Add to Cart", location: "Product Page", invisible: false },
36
+ pdpTrustSignals: { label: "Trust Signals Area", location: "Product Page", invisible: false },
37
+ pdpAfterDescription: { label: "Below Description", location: "Product Page", invisible: false },
38
+ pdpTab: { label: "Product Tab", location: "Product Page", invisible: false },
39
39
  pdpAnalytics: { label: "Product Analytics", location: "Product Page", invisible: true },
40
- collectionAboveGrid: { label: "Above Product Grid", location: "Collection Page" },
41
- collectionCard: { label: "On Product Cards", location: "Collection Page" },
42
- collectionBelowGrid: { label: "Below Product Grid", location: "Collection Page" },
43
- cartDrawerFooter: { label: "Cart Footer", location: "Cart" },
40
+ collectionAboveGrid: { label: "Above Product Grid", location: "Collection Page", invisible: false },
41
+ collectionCard: { label: "On Product Cards", location: "Collection Page", invisible: false },
42
+ collectionBelowGrid: { label: "Below Product Grid", location: "Collection Page", invisible: false },
43
+ cartDrawerFooter: { label: "Cart Footer", location: "Cart", invisible: false },
44
44
  cartUpdate: { label: "Cart Analytics", location: "Cart", invisible: true },
45
45
  checkoutOrderSummary: { label: "Order Summary", location: "Checkout" },
46
46
  checkoutStart: { label: "Checkout Analytics", location: "Checkout", invisible: true },
47
- checkoutComplete: { label: "Order Confirmation", location: "Order Success" },
48
- searchAboveResults: { label: "Above Search Results", location: "Search" },
49
- accountOverview: { label: "Account Dashboard", location: "Account" },
47
+ checkoutComplete: { label: "Order Confirmation", location: "Order Success", invisible: false },
48
+ searchAboveResults: { label: "Above Search Results", location: "Search", invisible: false },
49
+ accountOverview: { label: "Account Dashboard", location: "Account", invisible: false },
50
50
  account: { label: "Account Analytics", location: "Account", invisible: true },
51
- authSignup: { label: "Signup Page", location: "Auth" }
51
+ authSignup: { label: "Signup Page", location: "Auth", invisible: false }
52
52
  };
53
53
  var SLOT_NAMES = Object.keys(SLOT_DISPLAY_NAMES);
54
54
  // Annotate the CommonJS export names for ESM import in node:
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export interface SlotDisplayInfo {\n label: string\n location: string\n invisible?: boolean\n}\n\n/**\n * Human-readable display info for each slot.\n * Used by the admin placement picker to show slot options in plain language.\n * Only visible (non-invisible) slots should be presented as placement choices.\n */\nexport const SLOT_DISPLAY_NAMES = {\n head: {label: 'Head Scripts', location: 'All pages', invisible: true},\n bodyEnd: {label: 'Body End', location: 'All pages', invisible: true},\n rootProviders: {label: 'Root Providers', location: 'All pages', invisible: true},\n homeHero: {label: 'Below Hero Section', location: 'Homepage'},\n homeBelowFeatured: {label: 'Below Featured Collections', location: 'Homepage'},\n pdpAfterTitle: {label: 'Below Product Title', location: 'Product Page'},\n pdpBeforePrice: {label: 'Above the Price', location: 'Product Page'},\n pdpBelowAddToCart: {label: 'Below Add to Cart', location: 'Product Page'},\n pdpTrustSignals: {label: 'Trust Signals Area', location: 'Product Page'},\n pdpAfterDescription: {label: 'Below Description', location: 'Product Page'},\n pdpTab: {label: 'Product Tab', location: 'Product Page'},\n pdpAnalytics: {label: 'Product Analytics', location: 'Product Page', invisible: true},\n collectionAboveGrid: {label: 'Above Product Grid', location: 'Collection Page'},\n collectionCard: {label: 'On Product Cards', location: 'Collection Page'},\n collectionBelowGrid: {label: 'Below Product Grid', location: 'Collection Page'},\n cartDrawerFooter: {label: 'Cart Footer', location: 'Cart'},\n cartUpdate: {label: 'Cart Analytics', location: 'Cart', invisible: true},\n checkoutOrderSummary: {label: 'Order Summary', location: 'Checkout'},\n checkoutStart: {label: 'Checkout Analytics', location: 'Checkout', invisible: true},\n checkoutComplete: {label: 'Order Confirmation', location: 'Order Success'},\n searchAboveResults: {label: 'Above Search Results', location: 'Search'},\n accountOverview: {label: 'Account Dashboard', location: 'Account'},\n account: {label: 'Account Analytics', location: 'Account', invisible: true},\n authSignup: {label: 'Signup Page', location: 'Auth'},\n} satisfies Record<string, SlotDisplayInfo>\n\nexport type SlotName = keyof typeof SLOT_DISPLAY_NAMES\n\nexport const SLOT_NAMES = Object.keys(SLOT_DISPLAY_NAMES) as SlotName[]\n\nexport interface ScriptEntry {\n id: string\n src: string\n strategy: 'afterInteractive' | 'lazyOnload' | 'beforeInteractive'\n when?: string\n}\n\n/**\n * Runtime plugin configuration from /store/integrations/active.\n * { [pluginId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,KAAI;AAAA,EAClF,kBAAkB,EAAC,OAAO,sBAAsB,UAAU,gBAAe;AAAA,EACzE,oBAAoB,EAAC,OAAO,wBAAwB,UAAU,SAAQ;AAAA,EACtE,iBAAiB,EAAC,OAAO,qBAAqB,UAAU,UAAS;AAAA,EACjE,SAAS,EAAC,OAAO,qBAAqB,UAAU,WAAW,WAAW,KAAI;AAAA,EAC1E,YAAY,EAAC,OAAO,eAAe,UAAU,OAAM;AACrD;AAIO,IAAM,aAAa,OAAO,KAAK,kBAAkB;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export interface SlotDisplayInfo {\n label: string\n location: string\n invisible?: boolean\n}\n\n/**\n * Human-readable display info for each slot.\n * Used by the admin placement picker to show slot options in plain language.\n * Only visible (non-invisible) slots should be presented as placement choices.\n */\nexport const SLOT_DISPLAY_NAMES = {\n head: {label: 'Head Scripts', location: 'All pages', invisible: true},\n bodyEnd: {label: 'Body End', location: 'All pages', invisible: true},\n rootProviders: {label: 'Root Providers', location: 'All pages', invisible: true},\n homeHero: {label: 'Below Hero Section', location: 'Homepage', invisible: false},\n homeBelowFeatured: {label: 'Below Featured Collections', location: 'Homepage', invisible: false},\n pdpAfterTitle: {label: 'Below Product Title', location: 'Product Page', invisible: false},\n pdpBeforePrice: {label: 'Above the Price', location: 'Product Page', invisible: false},\n pdpBelowAddToCart: {label: 'Below Add to Cart', location: 'Product Page', invisible: false},\n pdpTrustSignals: {label: 'Trust Signals Area', location: 'Product Page', invisible: false},\n pdpAfterDescription: {label: 'Below Description', location: 'Product Page', invisible: false},\n pdpTab: {label: 'Product Tab', location: 'Product Page', invisible: false},\n pdpAnalytics: {label: 'Product Analytics', location: 'Product Page', invisible: true},\n collectionAboveGrid: {label: 'Above Product Grid', location: 'Collection Page', invisible: false},\n collectionCard: {label: 'On Product Cards', location: 'Collection Page', invisible: false},\n collectionBelowGrid: {label: 'Below Product Grid', location: 'Collection Page', invisible: false},\n cartDrawerFooter: {label: 'Cart Footer', location: 'Cart', invisible: false},\n cartUpdate: {label: 'Cart Analytics', location: 'Cart', invisible: true},\n checkoutOrderSummary: {label: 'Order Summary', location: 'Checkout'},\n checkoutStart: {label: 'Checkout Analytics', location: 'Checkout', invisible: true},\n checkoutComplete: {label: 'Order Confirmation', location: 'Order Success', invisible: false},\n searchAboveResults: {label: 'Above Search Results', location: 'Search', invisible: false},\n accountOverview: {label: 'Account Dashboard', location: 'Account', invisible: false},\n account: {label: 'Account Analytics', location: 'Account', invisible: true},\n authSignup: {label: 'Signup Page', location: 'Auth', invisible: false},\n} satisfies Record<string, SlotDisplayInfo>\n\nexport type SlotName = keyof typeof SLOT_DISPLAY_NAMES\n\nexport const SLOT_NAMES = Object.keys(SLOT_DISPLAY_NAMES) as SlotName[]\n\nexport interface ScriptEntry {\n id: string\n src: string\n strategy: 'afterInteractive' | 'lazyOnload' | 'beforeInteractive'\n when?: string\n}\n\n/**\n * Runtime plugin configuration from /store/integrations/active.\n * { [pluginId]: { enabled: boolean, ...pluginSpecificConfig } }\n */\nexport type PluginConfigs = Record<string, { enabled: boolean } & Record<string, unknown>>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWO,IAAM,qBAAqB;AAAA,EAC9B,MAAM,EAAC,OAAO,gBAAgB,UAAU,aAAa,WAAW,KAAI;AAAA,EACpE,SAAS,EAAC,OAAO,YAAY,UAAU,aAAa,WAAW,KAAI;AAAA,EACnE,eAAe,EAAC,OAAO,kBAAkB,UAAU,aAAa,WAAW,KAAI;AAAA,EAC/E,UAAU,EAAC,OAAO,sBAAsB,UAAU,YAAY,WAAW,MAAK;AAAA,EAC9E,mBAAmB,EAAC,OAAO,8BAA8B,UAAU,YAAY,WAAW,MAAK;AAAA,EAC/F,eAAe,EAAC,OAAO,uBAAuB,UAAU,gBAAgB,WAAW,MAAK;AAAA,EACxF,gBAAgB,EAAC,OAAO,mBAAmB,UAAU,gBAAgB,WAAW,MAAK;AAA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scripts", location: "All pages", invisible: true },
4
4
  bodyEnd: { label: "Body End", location: "All pages", invisible: true },
5
5
  rootProviders: { label: "Root Providers", location: "All pages", invisible: true },
6
- homeHero: { label: "Below Hero Section", location: "Homepage" },
7
- homeBelowFeatured: { label: "Below Featured Collections", location: "Homepage" },
8
- pdpAfterTitle: { label: "Below Product Title", location: "Product Page" },
9
- pdpBeforePrice: { label: "Above the Price", location: "Product Page" },
10
- pdpBelowAddToCart: { label: "Below Add to Cart", location: "Product Page" },
11
- pdpTrustSignals: { label: "Trust Signals Area", location: "Product Page" },
12
- pdpAfterDescription: { label: "Below Description", location: "Product Page" },
13
- pdpTab: { label: "Product Tab", location: "Product Page" },
6
+ homeHero: { label: "Below Hero Section", location: "Homepage", invisible: false },
7
+ homeBelowFeatured: { label: "Below Featured Collections", location: "Homepage", invisible: false },
8
+ pdpAfterTitle: { label: "Below Product Title", location: "Product Page", invisible: false },
9
+ pdpBeforePrice: { label: "Above the Price", location: "Product Page", invisible: false },
10
+ pdpBelowAddToCart: { label: "Below Add to Cart", location: "Product Page", invisible: false },
11
+ pdpTrustSignals: { label: "Trust Signals Area", location: "Product Page", invisible: false },
12
+ pdpAfterDescription: { label: "Below Description", location: "Product Page", invisible: false },
13
+ pdpTab: { label: "Product Tab", location: "Product Page", invisible: false },
14
14
  pdpAnalytics: { label: "Product Analytics", location: "Product Page", invisible: true },
15
- collectionAboveGrid: { label: "Above Product Grid", location: "Collection Page" },
16
- collectionCard: { label: "On Product Cards", location: "Collection Page" },
17
- collectionBelowGrid: { label: "Below Product Grid", location: "Collection Page" },
18
- cartDrawerFooter: { label: "Cart Footer", location: "Cart" },
15
+ collectionAboveGrid: { label: "Above Product Grid", location: "Collection Page", invisible: false },
16
+ collectionCard: { label: "On Product Cards", location: "Collection Page", invisible: false },
17
+ collectionBelowGrid: { label: "Below Product Grid", location: "Collection Page", invisible: false },
18
+ cartDrawerFooter: { label: "Cart Footer", location: "Cart", invisible: false },
19
19
  cartUpdate: { label: "Cart Analytics", location: "Cart", invisible: true },
20
20
  checkoutOrderSummary: { label: "Order Summary", location: "Checkout" },
21
21
  checkoutStart: { label: "Checkout Analytics", location: "Checkout", invisible: true },
22
- checkoutComplete: { label: "Order Confirmation", location: "Order Success" },
23
- searchAboveResults: { label: "Above Search Results", location: "Search" },
24
- accountOverview: { label: "Account Dashboard", location: "Account" },
22
+ checkoutComplete: { label: "Order Confirmation", location: "Order Success", invisible: false },
23
+ searchAboveResults: { label: "Above Search Results", location: "Search", invisible: false },
24
+ accountOverview: { label: "Account Dashboard", location: "Account", invisible: false },
25
25
  account: { label: "Account Analytics", location: "Account", invisible: true },
26
- authSignup: { label: "Signup Page", location: "Auth" }
26
+ authSignup: { label: "Signup Page", location: "Auth", invisible: false }
27
27
  };
28
28
  var SLOT_NAMES = Object.keys(SLOT_DISPLAY_NAMES);
29
29
  export {
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export interface SlotDisplayInfo {\n label: string\n location: string\n invisible?: boolean\n}\n\n/**\n * Human-readable display info for each slot.\n * Used by the admin placement picker to show slot options in plain language.\n * Only visible (non-invisible) slots should be presented as placement choices.\n */\nexport const SLOT_DISPLAY_NAMES = {\n head: {label: 'Head Scripts', location: 'All pages', invisible: true},\n bodyEnd: {label: 'Body End', location: 'All pages', invisible: true},\n rootProviders: {label: 'Root Providers', location: 'All pages', invisible: true},\n homeHero: {label: 'Below Hero Section', location: 'Homepage'},\n homeBelowFeatured: {label: 'Below Featured Collections', location: 'Homepage'},\n pdpAfterTitle: {label: 'Below Product Title', location: 'Product Page'},\n pdpBeforePrice: {label: 'Above the Price', location: 'Product Page'},\n pdpBelowAddToCart: {label: 'Below Add to Cart', location: 'Product Page'},\n pdpTrustSignals: {label: 'Trust Signals Area', location: 'Product Page'},\n pdpAfterDescription: {label: 'Below Description', location: 'Product Page'},\n pdpTab: {label: 'Product Tab', location: 'Product Page'},\n pdpAnalytics: {label: 'Product Analytics', location: 'Product Page', invisible: true},\n collectionAboveGrid: {label: 'Above Product Grid', location: 'Collection Page'},\n collectionCard: {label: 'On Product Cards', location: 'Collection Page'},\n collectionBelowGrid: {label: 'Below Product Grid', location: 'Collection Page'},\n cartDrawerFooter: {label: 'Cart Footer', location: 'Cart'},\n cartUpdate: {label: 'Cart Analytics', location: 'Cart', invisible: true},\n checkoutOrderSummary: {label: 'Order Summary', location: 'Checkout'},\n checkoutStart: {label: 'Checkout Analytics', location: 'Checkout', invisible: true},\n checkoutComplete: {label: 'Order Confirmation', location: 'Order Success'},\n searchAboveResults: {label: 'Above Search Results', location: 'Search'},\n accountOverview: {label: 'Account Dashboard', location: 'Account'},\n account: {label: 'Account Analytics', location: 'Account', invisible: true},\n authSignup: {label: 'Signup Page', location: 'Auth'},\n} satisfies Record<string, SlotDisplayInfo>\n\nexport type SlotName = keyof typeof SLOT_DISPLAY_NAMES\n\nexport const SLOT_NAMES = Object.keys(SLOT_DISPLAY_NAMES) as SlotName[]\n\nexport interface ScriptEntry {\n id: string\n src: string\n strategy: 'afterInteractive' | 'lazyOnload' | 'beforeInteractive'\n when?: string\n}\n\n/**\n * Runtime plugin configuration from /store/integrations/active.\n * { [pluginId]: { enabled: boolean, ...pluginSpecificConfig } }\n */\nexport type PluginConfigs = Record<string, { enabled: boolean } & Record<string, unknown>>\n"],"mappings":";AAWO,IAAM,qBAAqB;AAAA,EAChC,MAAM,EAAC,OAAO,gBAAgB,UAAU,aAAa,WAAW,KAAI;AAAA,EACpE,SAAS,EAAC,OAAO,YAAY,UAAU,aAAa,WAAW,KAAI;AAAA,EACnE,eAAe,EAAC,OAAO,kBAAkB,UAAU,aAAa,WAAW,KAAI;AAAA,EAC/E,UAAU,EAAC,OAAO,sBAAsB,UAAU,WAAU;AAAA,EAC5D,mBAAmB,EAAC,OAAO,8BAA8B,UAAU,WAAU;AAAA,EAC7E,eAAe,EAAC,OAAO,uBAAuB,UAAU,eAAc;AAAA,EACtE,gBAAgB,EAAC,OAAO,mBAAmB,UAAU,eAAc;AAAA,EACnE,mBAAmB,EAAC,OAAO,qBAAqB,UAAU,eAAc;AAAA,EACxE,iBAAiB,EAAC,OAAO,sBAAsB,UAAU,eAAc;AAAA,EACvE,qBAAqB,EAAC,OAAO,qBAAqB,UAAU,eAAc;AAAA,EAC1E,QAAQ,EAAC,OAAO,eAAe,UAAU,eAAc;AAAA,EACvD,cAAc,EAAC,OAAO,qBAAqB,UAAU,gBAAgB,WAAW,KAAI;AAAA,EACpF,qBAAqB,EAAC,OAAO,sBAAsB,UAAU,kBAAiB;AAAA,EAC9E,gBAAgB,EAAC,OAAO,oBAAoB,UAAU,kBAAiB;AAAA,EACvE,qBAAqB,EAAC,OAAO,sBAAsB,UAAU,kBAAiB;AAAA,EAC9E,kBAAkB,EAAC,OAAO,eAAe,UAAU,OAAM;AAAA,EACzD,YAAY,EAAC,OAAO,kBAAkB,UAAU,QAAQ,WAAW,KAAI;AAAA,EACvE,sBAAsB,EAAC,OAAO,iBAAiB,UAAU,WAAU;AAAA,EACnE,eAAe,EAAC,OAAO,sBAAsB,UAAU,YAAY,WAAW,KAAI;AAAA,EAClF,kBAAkB,EAAC,OAAO,sBAAsB,UAAU,gBAAe;AAAA,EACzE,oBAAoB,EAAC,OAAO,wBAAwB,UAAU,SAAQ;AAAA,EACtE,iBAAiB,EAAC,OAAO,qBAAqB,UAAU,UAAS;AAAA,EACjE,SAAS,EAAC,OAAO,qBAAqB,UAAU,WAAW,WAAW,KAAI;AAAA,EAC1E,YAAY,EAAC,OAAO,eAAe,UAAU,OAAM;AACrD;AAIO,IAAM,aAAa,OAAO,KAAK,kBAAkB;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export interface SlotDisplayInfo {\n label: string\n location: string\n invisible?: boolean\n}\n\n/**\n * Human-readable display info for each slot.\n * Used by the admin placement picker to show slot options in plain language.\n * Only visible (non-invisible) slots should be presented as placement choices.\n */\nexport const SLOT_DISPLAY_NAMES = {\n head: {label: 'Head Scripts', location: 'All pages', invisible: true},\n bodyEnd: {label: 'Body End', location: 'All pages', invisible: true},\n rootProviders: {label: 'Root Providers', location: 'All pages', invisible: true},\n homeHero: {label: 'Below Hero Section', location: 'Homepage', invisible: false},\n homeBelowFeatured: {label: 'Below Featured Collections', location: 'Homepage', invisible: false},\n pdpAfterTitle: {label: 'Below Product Title', location: 'Product Page', invisible: false},\n pdpBeforePrice: {label: 'Above the Price', location: 'Product Page', invisible: false},\n pdpBelowAddToCart: {label: 'Below Add to Cart', location: 'Product Page', invisible: false},\n pdpTrustSignals: {label: 'Trust Signals Area', location: 'Product Page', invisible: false},\n pdpAfterDescription: {label: 'Below Description', location: 'Product Page', invisible: false},\n pdpTab: {label: 'Product Tab', location: 'Product Page', invisible: false},\n pdpAnalytics: {label: 'Product Analytics', location: 'Product Page', invisible: true},\n collectionAboveGrid: {label: 'Above Product Grid', location: 'Collection Page', invisible: false},\n collectionCard: {label: 'On Product Cards', location: 'Collection Page', invisible: false},\n collectionBelowGrid: {label: 'Below Product Grid', location: 'Collection Page', invisible: false},\n cartDrawerFooter: {label: 'Cart Footer', location: 'Cart', invisible: false},\n cartUpdate: {label: 'Cart Analytics', location: 'Cart', invisible: true},\n checkoutOrderSummary: {label: 'Order Summary', location: 'Checkout'},\n checkoutStart: {label: 'Checkout Analytics', location: 'Checkout', invisible: true},\n checkoutComplete: {label: 'Order Confirmation', location: 'Order Success', invisible: false},\n searchAboveResults: {label: 'Above Search Results', location: 'Search', invisible: false},\n accountOverview: {label: 'Account Dashboard', location: 'Account', invisible: false},\n account: {label: 'Account Analytics', location: 'Account', invisible: true},\n authSignup: {label: 'Signup Page', location: 'Auth', invisible: false},\n} satisfies Record<string, SlotDisplayInfo>\n\nexport type SlotName = keyof typeof SLOT_DISPLAY_NAMES\n\nexport const SLOT_NAMES = Object.keys(SLOT_DISPLAY_NAMES) as SlotName[]\n\nexport interface ScriptEntry {\n id: string\n src: string\n strategy: 'afterInteractive' | 'lazyOnload' | 'beforeInteractive'\n when?: string\n}\n\n/**\n * Runtime plugin configuration from /store/integrations/active.\n * { [pluginId]: { enabled: boolean, ...pluginSpecificConfig } }\n */\nexport type PluginConfigs = Record<string, { enabled: boolean } & Record<string, unknown>>\n"],"mappings":";AAWO,IAAM,qBAAqB;AAAA,EAC9B,MAAM,EAAC,OAAO,gBAAgB,UAAU,aAAa,WAAW,KAAI;AAAA,EACpE,SAAS,EAAC,OAAO,YAAY,UAAU,aAAa,WAAW,KAAI;AAAA,EACnE,eAAe,EAAC,OAAO,kBAAkB,UAAU,aAAa,WAAW,KAAI;AAAA,EAC/E,UAAU,EAAC,OAAO,sBAAsB,UAAU,YAAY,WAAW,MAAK;AAAA,EAC9E,mBAAmB,EAAC,OAAO,8BAA8B,UAAU,YAAY,WAAW,MAAK;AAAA,EAC/F,eAAe,EAAC,OAAO,uBAAuB,UAAU,gBAAgB,WAAW,MAAK;AAAA,EACxF,gBAAgB,EAAC,OAAO,mBAAmB,UAAU,gBAAgB,WAAW,MAAK;AAAA,EACrF,mBAAmB,EAAC,OAAO,qBAAqB,UAAU,gBAAgB,WAAW,MAAK;AAAA,EAC1F,iBAAiB,EAAC,OAAO,sBAAsB,UAAU,gBAAgB,WAAW,MAAK;AAAA,EACzF,qBAAqB,EAAC,OAAO,qBAAqB,UAAU,gBAAgB,WAAW,MAAK;AAAA,EAC5F,QAAQ,EAAC,OAAO,eAAe,UAAU,gBAAgB,WAAW,MAAK;AAAA,EACzE,cAAc,EAAC,OAAO,qBAAqB,UAAU,gBAAgB,WAAW,KAAI;AAAA,EACpF,qBAAqB,EAAC,OAAO,sBAAsB,UAAU,mBAAmB,WAAW,MAAK;AAAA,EAChG,gBAAgB,EAAC,OAAO,oBAAoB,UAAU,mBAAmB,WAAW,MAAK;AAAA,EACzF,qBAAqB,EAAC,OAAO,sBAAsB,UAAU,mBAAmB,WAAW,MAAK;AAAA,EAChG,kBAAkB,EAAC,OAAO,eAAe,UAAU,QAAQ,WAAW,MAAK;AAAA,EAC3E,YAAY,EAAC,OAAO,kBAAkB,UAAU,QAAQ,WAAW,KAAI;AAAA,EACvE,sBAAsB,EAAC,OAAO,iBAAiB,UAAU,WAAU;AAAA,EACnE,eAAe,EAAC,OAAO,sBAAsB,UAAU,YAAY,WAAW,KAAI;AAAA,EAClF,kBAAkB,EAAC,OAAO,sBAAsB,UAAU,iBAAiB,WAAW,MAAK;AAAA,EAC3F,oBAAoB,EAAC,OAAO,wBAAwB,UAAU,UAAU,WAAW,MAAK;AAAA,EACxF,iBAAiB,EAAC,OAAO,qBAAqB,UAAU,WAAW,WAAW,MAAK;AAAA,EACnF,SAAS,EAAC,OAAO,qBAAqB,UAAU,WAAW,WAAW,KAAI;AAAA,EAC1E,YAAY,EAAC,OAAO,eAAe,UAAU,QAAQ,WAAW,MAAK;AACzE;AAIO,IAAM,aAAa,OAAO,KAAK,kBAAkB;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amboras-dev/plugin-types",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Shared slot names and base types for the Amboras plugin slot system",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",