xpine 0.0.46 → 0.0.47

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.ts CHANGED
@@ -6,4 +6,5 @@ export * from './src/scripts/build';
6
6
  export * from './src/auth';
7
7
  export * from './src/util/html';
8
8
  export * from './src/context';
9
+ export * from './src/util/web';
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC"}
package/dist/index.js CHANGED
@@ -1206,6 +1206,11 @@ var html = class {
1206
1206
  function JSXRuntime() {
1207
1207
  return true;
1208
1208
  }
1209
+
1210
+ // src/util/web.ts
1211
+ function getCurrentBreakpoint() {
1212
+ return window.getComputedStyle(document.documentElement).getPropertyValue("--active-breakpoint")?.replace(/[\'\"]/g, "")?.trim() || "";
1213
+ }
1209
1214
  export {
1210
1215
  JSXRuntime,
1211
1216
  addToContextArray,
@@ -1222,6 +1227,7 @@ export {
1222
1227
  filePathToURLPath,
1223
1228
  fromRoot,
1224
1229
  getComponentDynamicPaths,
1230
+ getCurrentBreakpoint,
1225
1231
  getTokenFromRequest,
1226
1232
  html,
1227
1233
  logSize,
@@ -0,0 +1,2 @@
1
+ export declare function getCurrentBreakpoint(): string;
2
+ //# sourceMappingURL=web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../../src/util/web.ts"],"names":[],"mappings":"AAAA,wBAAgB,oBAAoB,WAEnC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xpine",
3
- "version": "0.0.46",
3
+ "version": "0.0.47",
4
4
  "main": "dist/index.js",
5
5
  "dependencies": {
6
6
  "@aws-sdk/client-secrets-manager": "^3.758.0",