qstd 0.3.51 → 0.3.53

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.
@@ -1 +1 @@
1
- {"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../src/block/textarea.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAG9B;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,KAAK,UAAU,GAAG;IAChB,KAAK,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAoPF;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,kBAAkB,2CAqL5D;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC,cAAc,GAAG,UAAU,2CA6C1D;yBA7Ce,KAAK"}
1
+ {"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../src/block/textarea.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAG9B;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,KAAK,UAAU,GAAG;IAChB,KAAK,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAoPF;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,kBAAkB,2CAyM5D;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC,cAAc,GAAG,UAAU,2CA6C1D;yBA7Ce,KAAK"}
@@ -2031,6 +2031,19 @@ function Textarea(props) {
2031
2031
  }, [isControlled, resizeTextarea]);
2032
2032
  const resize = props.resize ?? "none";
2033
2033
  const hasDebug = hasAnyProp(rest, ["debug"]);
2034
+ const hasP = hasAnyProp(rest, ["p"]);
2035
+ const hasPx = hasAnyProp(rest, ["px"]);
2036
+ const hasPy = hasAnyProp(rest, ["py"]);
2037
+ const hasPt = hasAnyProp(rest, ["pt"]);
2038
+ const hasPb = hasAnyProp(rest, ["pb"]);
2039
+ const hasPl = hasAnyProp(rest, ["pl"]);
2040
+ const hasPr = hasAnyProp(rest, ["pr"]);
2041
+ const paddingDefaults = {
2042
+ ...!hasP && !hasPy && !hasPt && { pt: 0.5 },
2043
+ ...!hasP && !hasPy && !hasPb && { pb: 0.5 },
2044
+ ...!hasP && !hasPx && !hasPl && { pl: 2 },
2045
+ ...!hasP && !hasPx && !hasPr && { pr: 2 }
2046
+ };
2034
2047
  return /* @__PURE__ */ jsxRuntime.jsxs(Base3, { grid: true, rows: "/ 4", children: [
2035
2048
  /* @__PURE__ */ jsxRuntime.jsxs(Base3, { grid: true, relative: true, children: [
2036
2049
  labelWithProps,
@@ -2041,9 +2054,7 @@ function Textarea(props) {
2041
2054
  value,
2042
2055
  onContextMenu: (e) => e.preventDefault(),
2043
2056
  resize,
2044
- pt: 0.5,
2045
- pb: 0.5,
2046
- px: 2,
2057
+ ...paddingDefaults,
2047
2058
  color: "text-primary",
2048
2059
  ...!hasDebug && {
2049
2060
  border: "1.5px solid",
@@ -2008,6 +2008,19 @@ function Textarea(props) {
2008
2008
  }, [isControlled, resizeTextarea]);
2009
2009
  const resize = props.resize ?? "none";
2010
2010
  const hasDebug = hasAnyProp(rest, ["debug"]);
2011
+ const hasP = hasAnyProp(rest, ["p"]);
2012
+ const hasPx = hasAnyProp(rest, ["px"]);
2013
+ const hasPy = hasAnyProp(rest, ["py"]);
2014
+ const hasPt = hasAnyProp(rest, ["pt"]);
2015
+ const hasPb = hasAnyProp(rest, ["pb"]);
2016
+ const hasPl = hasAnyProp(rest, ["pl"]);
2017
+ const hasPr = hasAnyProp(rest, ["pr"]);
2018
+ const paddingDefaults = {
2019
+ ...!hasP && !hasPy && !hasPt && { pt: 0.5 },
2020
+ ...!hasP && !hasPy && !hasPb && { pb: 0.5 },
2021
+ ...!hasP && !hasPx && !hasPl && { pl: 2 },
2022
+ ...!hasP && !hasPx && !hasPr && { pr: 2 }
2023
+ };
2011
2024
  return /* @__PURE__ */ jsxs(Base3, { grid: true, rows: "/ 4", children: [
2012
2025
  /* @__PURE__ */ jsxs(Base3, { grid: true, relative: true, children: [
2013
2026
  labelWithProps,
@@ -2018,9 +2031,7 @@ function Textarea(props) {
2018
2031
  value,
2019
2032
  onContextMenu: (e) => e.preventDefault(),
2020
2033
  resize,
2021
- pt: 0.5,
2022
- pb: 0.5,
2023
- px: 2,
2034
+ ...paddingDefaults,
2024
2035
  color: "text-primary",
2025
2036
  ...!hasDebug && {
2026
2037
  border: "1.5px solid",
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var dateFns = require('date-fns');
4
+ var awaitSpawn = require('await-spawn');
4
5
  var fs = require('fs');
5
6
  var arktype = require('arktype');
6
7
  var libDynamodb = require('@aws-sdk/lib-dynamodb');
@@ -13,6 +14,10 @@ var s3RequestPresigner = require('@aws-sdk/s3-request-presigner');
13
14
  var s3PresignedPost = require('@aws-sdk/s3-presigned-post');
14
15
 
15
16
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
17
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
18
+
19
+ var awaitSpawn__default = /*#__PURE__*/_interopDefault(awaitSpawn);
20
+
16
21
  var __defProp = Object.defineProperty;
17
22
  var __export = (target, all) => {
18
23
  for (var name in all)
@@ -922,6 +927,13 @@ function remove(path, body, opts) {
922
927
  );
923
928
  }
924
929
 
930
+ // src/server/os/index.ts
931
+ var os_exports = {};
932
+ __export(os_exports, {
933
+ spawn: () => spawn
934
+ });
935
+ var spawn = (cmd) => awaitSpawn__default.default(cmd, { shell: true, stdio: "inherit" });
936
+
925
937
  // src/server/file/index.ts
926
938
  var file_exports = {};
927
939
  __export(file_exports, {
@@ -1933,6 +1945,7 @@ exports.Lambda = lambda_exports;
1933
1945
  exports.List = list_exports;
1934
1946
  exports.Log = log_exports;
1935
1947
  exports.Money = money_exports;
1948
+ exports.Os = os_exports;
1936
1949
  exports.Random = random_exports;
1937
1950
  exports.S3 = s3_exports;
1938
1951
  exports.SES = ses_exports;
@@ -8,6 +8,7 @@ export * as Flow from "../shared/flow";
8
8
  export * as Random from "../shared/random";
9
9
  export * as Log from "../shared/log";
10
10
  export * as Api from "../shared/api";
11
+ export * as Os from "./os";
11
12
  export * as File from "./file";
12
13
  export * as Lambda from "./aws/lambda";
13
14
  export * as DDB from "./aws/ddb";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AACvC,OAAO,KAAK,GAAG,MAAM,eAAe,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,eAAe,CAAC;AACrC,OAAO,KAAK,KAAK,MAAM,iBAAiB,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AACvC,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAC3C,OAAO,KAAK,GAAG,MAAM,eAAe,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,eAAe,CAAC;AAGrC,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,GAAG,MAAM,WAAW,CAAC;AACjC,OAAO,KAAK,GAAG,MAAM,WAAW,CAAC;AACjC,OAAO,KAAK,GAAG,MAAM,WAAW,CAAC;AACjC,OAAO,KAAK,GAAG,MAAM,WAAW,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AACvC,OAAO,KAAK,GAAG,MAAM,eAAe,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,eAAe,CAAC;AACrC,OAAO,KAAK,KAAK,MAAM,iBAAiB,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AACvC,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAC3C,OAAO,KAAK,GAAG,MAAM,eAAe,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,eAAe,CAAC;AAGrC,OAAO,KAAK,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,GAAG,MAAM,WAAW,CAAC;AACjC,OAAO,KAAK,GAAG,MAAM,WAAW,CAAC;AACjC,OAAO,KAAK,GAAG,MAAM,WAAW,CAAC;AACjC,OAAO,KAAK,GAAG,MAAM,WAAW,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,UAAU,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { format, formatDistanceToNow, formatISO, isSameYear, isSameMonth, isSameDay, addSeconds, addMinutes, addHours, addDays, addWeeks, addBusinessDays, addMonths, addYears } from 'date-fns';
2
+ import awaitSpawn from 'await-spawn';
2
3
  import { promises } from 'fs';
3
4
  import { ArkErrors } from 'arktype';
4
5
  import { DynamoDBDocumentClient, ScanCommand, QueryCommand, DeleteCommand, PutCommand, BatchGetCommand, TransactWriteCommand, BatchWriteCommand } from '@aws-sdk/lib-dynamodb';
@@ -919,6 +920,13 @@ function remove(path, body, opts) {
919
920
  );
920
921
  }
921
922
 
923
+ // src/server/os/index.ts
924
+ var os_exports = {};
925
+ __export(os_exports, {
926
+ spawn: () => spawn
927
+ });
928
+ var spawn = (cmd) => awaitSpawn(cmd, { shell: true, stdio: "inherit" });
929
+
922
930
  // src/server/file/index.ts
923
931
  var file_exports = {};
924
932
  __export(file_exports, {
@@ -1920,4 +1928,4 @@ var recordsFromSqs = (body) => {
1920
1928
  }
1921
1929
  };
1922
1930
 
1923
- export { api_exports as Api, ddb_exports as DDB, dict_exports as Dict, file_exports as File, flow_exports as Flow, int_exports as Int, lambda_exports as Lambda, list_exports as List, log_exports as Log, money_exports as Money, random_exports as Random, s3_exports as S3, ses_exports as SES, sns_exports as SNS, sqs_exports as SQS, str_exports as Str, time_exports as Time };
1931
+ export { api_exports as Api, ddb_exports as DDB, dict_exports as Dict, file_exports as File, flow_exports as Flow, int_exports as Int, lambda_exports as Lambda, list_exports as List, log_exports as Log, money_exports as Money, os_exports as Os, random_exports as Random, s3_exports as S3, ses_exports as SES, sns_exports as SNS, sqs_exports as SQS, str_exports as Str, time_exports as Time };
@@ -0,0 +1,11 @@
1
+ /** Allows any string while providing autocomplete for known commands */
2
+ type Command = "python3" | "node" | "bun" | "pnpm" | "yarn" | "npm" | (string & {});
3
+ /**
4
+ * A command line spawn that awaits properly.
5
+ * Uses shell execution and inherits stdio for full console output.
6
+ * @param cmd - The shell command to execute
7
+ * @returns Promise that resolves when the command completes
8
+ */
9
+ export declare const spawn: (cmd: Command) => Promise<Buffer>;
10
+ export {};
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/os/index.ts"],"names":[],"mappings":"AAEA,wEAAwE;AACxE,KAAK,OAAO,GACR,SAAS,GACT,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,GACN,KAAK,GACL,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAElB;;;;;GAKG;AACH,eAAO,MAAM,KAAK,GAAI,KAAK,OAAO,KAAG,OAAO,CAAC,MAAM,CACC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qstd",
3
- "version": "0.3.51",
3
+ "version": "0.3.53",
4
4
  "description": "Standard Block component and utilities library with Panda CSS",
5
5
  "author": "malin1",
6
6
  "license": "MIT",
@@ -89,7 +89,8 @@
89
89
  "react-icons": "^5.5.0",
90
90
  "react-loader-spinner": "^6.1.6",
91
91
  "react-spinners": "^0.17.0",
92
- "use-immer": "^0.11.0"
92
+ "use-immer": "^0.11.0",
93
+ "await-spawn": "^4.0.2"
93
94
  },
94
95
  "devDependencies": {
95
96
  "@eslint/js": "^9.39.1",