@xyo-network/react-xns 4.0.4 → 4.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.
@@ -41,10 +41,12 @@ export declare const useXnsNameCaptureRouting: (props: XnsNameCaptureProps) => {
41
41
  suppressContentEditableWarning?: boolean | undefined;
42
42
  suppressHydrationWarning?: boolean | undefined;
43
43
  accessKey?: string | undefined;
44
+ autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
44
45
  contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
45
46
  contextMenu?: string | undefined;
46
47
  dir?: string | undefined;
47
48
  draggable?: (boolean | "true" | "false") | undefined;
49
+ enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
48
50
  hidden?: boolean | undefined;
49
51
  id?: string | undefined;
50
52
  lang?: string | undefined;
@@ -65,7 +67,6 @@ export declare const useXnsNameCaptureRouting: (props: XnsNameCaptureProps) => {
65
67
  rev?: string | undefined;
66
68
  typeof?: string | undefined;
67
69
  vocab?: string | undefined;
68
- autoCapitalize?: string | undefined;
69
70
  autoCorrect?: string | undefined;
70
71
  autoSave?: string | undefined;
71
72
  itemProp?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"useXnsNameCaptureRouting.d.ts","sourceRoot":"","sources":["../../../../../../src/components/XnsNameCapture/hooks/routing/useXnsNameCaptureRouting.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAGzD,eAAO,MAAM,wBAAwB,UAAW,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAe0tC,MAAO,aAAa;eAAgwE,MAAO,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CADhkH,CAAA"}
1
+ {"version":3,"file":"useXnsNameCaptureRouting.d.ts","sourceRoot":"","sources":["../../../../../../src/components/XnsNameCapture/hooks/routing/useXnsNameCaptureRouting.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAGzD,eAAO,MAAM,wBAAwB,UAAW,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAe0tC,MAAO,aAAa;eAAgwE,MAAO,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CADhkH,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/react-xns",
3
- "version": "4.0.4",
3
+ "version": "4.1.0",
4
4
  "description": "Common React library for all XYO projects that use React",
5
5
  "keywords": [
6
6
  "xyo",
@@ -44,24 +44,24 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@xylabs/pixel": "^2.0.6",
47
- "@xylabs/react-button": "^5.0.1",
48
- "@xylabs/react-flexbox": "^5.0.1",
49
- "@xylabs/react-link": "^5.0.1",
50
- "@xylabs/react-pixel": "^5.0.1",
51
- "@xyo-network/xns-record-payloadset-plugins": "^3.0.28"
47
+ "@xylabs/react-button": "^5.2.0",
48
+ "@xylabs/react-flexbox": "^5.2.0",
49
+ "@xylabs/react-link": "^5.2.0",
50
+ "@xylabs/react-pixel": "^5.2.0",
51
+ "@xyo-network/xns-record-payloadset-plugins": "^3.1.1"
52
52
  },
53
53
  "devDependencies": {
54
- "@mui/icons-material": "^6.1.2",
55
- "@mui/material": "^6.1.2",
56
- "@mui/styles": "^6.1.2",
54
+ "@mui/icons-material": "^6.1.3",
55
+ "@mui/material": "^6.1.3",
56
+ "@mui/styles": "^6.1.3",
57
57
  "@storybook/react": "^8.3.5",
58
- "@xylabs/ts-scripts-yarn3": "^4.0.7",
59
- "@xylabs/tsconfig-react": "^4.0.7",
58
+ "@xylabs/ts-scripts-yarn3": "^4.2.1",
59
+ "@xylabs/tsconfig-react": "^4.2.1",
60
60
  "react": "^18.3.1",
61
61
  "react-dom": "^18.3.1",
62
- "react-router-dom": "^6.26.2",
62
+ "react-router-dom": "^6.27.0",
63
63
  "storybook": "^8.3.5",
64
- "typescript": "^5.6.2"
64
+ "typescript": "^5.6.3"
65
65
  },
66
66
  "peerDependencies": {
67
67
  "@emotion/react": "^11",
@@ -15,17 +15,17 @@ type RouteDecorator = (params: [typeof testableParams[number], string][]) => Dec
15
15
  // eslint-disable-next-line react/display-name
16
16
  const RouteDecorator: RouteDecorator = params => (Story, args) => {
17
17
  // Get the URL object
18
- const url = new URL(window.location.href)
18
+ const url = new URL(globalThis.location.href)
19
19
 
20
20
  // Remove all stale testable params from the URL
21
21
  for (const param of testableParams) url.searchParams.delete(param)
22
- window.history.replaceState({}, '', url)
22
+ globalThis.history.replaceState({}, '', url)
23
23
 
24
24
  // Add the new testable params to the URL
25
25
  for (const [param, value] of params) url.searchParams.set(param, value)
26
26
 
27
27
  // Replace the URL without reloading
28
- window.history.replaceState({}, '', url)
28
+ globalThis.history.replaceState({}, '', url)
29
29
 
30
30
  return <Story {...args} />
31
31
  }