@orbit-software/sdk 1.87.2 → 1.87.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbit-software/sdk",
3
- "version": "1.87.2",
3
+ "version": "1.87.7",
4
4
  "main": "dist/esm/sdk.mjs",
5
5
  "types": "dist/esm/sdk.d.ts",
6
6
  "exports": {
@@ -44,6 +44,7 @@
44
44
  "biome": "^0.3.3",
45
45
  "jest": "^29.7.0",
46
46
  "jest-environment-jsdom": "^29.7.0",
47
+ "postcss-prefix-selector": "^2.1.1",
47
48
  "rollup-plugin-cleanup": "^3.2.1",
48
49
  "rollup-plugin-visualizer": "6.0.3",
49
50
  "tailwindcss": "^4.0.0",
@@ -0,0 +1,33 @@
1
+ export default {
2
+ plugins: {
3
+ 'postcss-prefix-selector': {
4
+ prefix: '#overlay-root',
5
+ // Exclude selectors that should NOT be prefixed
6
+ exclude: [
7
+ ':root', // Keep CSS variables at root
8
+ 'html',
9
+ 'body',
10
+ /^\[vaul-/, // Don't prefix vaul attributes
11
+ /^\.box-opening-modal-drawer/, // Your custom classes that already work
12
+ /^\.cssdk-/, // Your SDK custom classes
13
+ /^div#overlay-root/, // Selectors already starting with #overlay-root
14
+ /^#overlay-root/,
15
+ /^@keyframes/, // Don't prefix animations
16
+ /^\.tmanetwork_/, // TMA Network classes
17
+ ],
18
+ transform(_, selector, prefixedSelector) {
19
+ // Don't prefix pseudo-elements and special selectors
20
+ if (selector.includes(':root') || selector.includes('@') || selector.startsWith('::')) {
21
+ return selector;
22
+ }
23
+
24
+ // If selector already contains #overlay-root, don't double-prefix
25
+ if (selector.includes('#overlay-root')) {
26
+ return selector;
27
+ }
28
+
29
+ return prefixedSelector;
30
+ },
31
+ },
32
+ },
33
+ };