one 2.6.14 → 2.6.16

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.
Files changed (66) hide show
  1. package/dist/cjs/useMatches.cjs +5 -3
  2. package/dist/cjs/useMatches.native.cjs +17 -15
  3. package/dist/cjs/useMatches.native.js +17 -15
  4. package/dist/cjs/useMatches.native.js.map +1 -1
  5. package/dist/esm/useMatches.mjs +5 -3
  6. package/dist/esm/useMatches.mjs.map +1 -1
  7. package/dist/esm/useMatches.native.js +17 -15
  8. package/dist/esm/useMatches.native.js.map +1 -1
  9. package/ios/Generated/OneNativeAddPassToWalletButtonComponentView.mm +1 -0
  10. package/ios/Generated/OneNativeAlertComponentView.mm +1 -0
  11. package/ios/Generated/OneNativeAngularGradientComponentView.mm +2 -1
  12. package/ios/Generated/OneNativeAsyncImageComponentView.mm +1 -0
  13. package/ios/Generated/OneNativeCapsuleComponentView.mm +1 -0
  14. package/ios/Generated/OneNativeChartComponentView.mm +1 -0
  15. package/ios/Generated/OneNativeCircleComponentView.mm +1 -0
  16. package/ios/Generated/OneNativeColorPickerComponentView.mm +1 -0
  17. package/ios/Generated/OneNativeConcentricRectangleComponentView.mm +1 -0
  18. package/ios/Generated/OneNativeConfirmationDialogComponentView.mm +1 -0
  19. package/ios/Generated/OneNativeContentUnavailableViewComponentView.mm +1 -0
  20. package/ios/Generated/OneNativeDatePickerComponentView.mm +1 -0
  21. package/ios/Generated/OneNativeEditButtonComponentView.mm +1 -0
  22. package/ios/Generated/OneNativeEllipseComponentView.mm +1 -0
  23. package/ios/Generated/OneNativeEllipticalGradientComponentView.mm +2 -1
  24. package/ios/Generated/OneNativeEmptyViewComponentView.mm +1 -0
  25. package/ios/Generated/OneNativeFileImporterComponentView.mm +1 -0
  26. package/ios/Generated/OneNativeGaugeComponentView.mm +1 -0
  27. package/ios/Generated/OneNativeImageComponentView.mm +2 -1
  28. package/ios/Generated/OneNativeLabelComponentView.mm +1 -0
  29. package/ios/Generated/OneNativeLinearGradientComponentView.mm +2 -1
  30. package/ios/Generated/OneNativeLivePhotoViewComponentView.mm +1 -0
  31. package/ios/Generated/OneNativeLocationButtonComponentView.mm +1 -0
  32. package/ios/Generated/OneNativeMapCompassComponentView.mm +1 -0
  33. package/ios/Generated/OneNativeMapComponentView.mm +1 -0
  34. package/ios/Generated/OneNativeMapPitchToggleComponentView.mm +1 -0
  35. package/ios/Generated/OneNativeMapUserLocationButtonComponentView.mm +1 -0
  36. package/ios/Generated/OneNativeMeshGradientComponentView.mm +2 -1
  37. package/ios/Generated/OneNativeMultiDatePickerComponentView.mm +1 -0
  38. package/ios/Generated/OneNativePasteButtonComponentView.mm +1 -0
  39. package/ios/Generated/OneNativePayWithApplePayButtonComponentView.mm +1 -0
  40. package/ios/Generated/OneNativePhotosPickerComponentView.mm +1 -0
  41. package/ios/Generated/OneNativePickerComponentView.mm +1 -0
  42. package/ios/Generated/OneNativeProductViewComponentView.mm +1 -0
  43. package/ios/Generated/OneNativeProgressViewComponentView.mm +1 -0
  44. package/ios/Generated/OneNativeQuickLookComponentView.mm +1 -0
  45. package/ios/Generated/OneNativeRadialGradientComponentView.mm +2 -1
  46. package/ios/Generated/OneNativeRectangleComponentView.mm +1 -0
  47. package/ios/Generated/OneNativeRenameButtonComponentView.mm +1 -0
  48. package/ios/Generated/OneNativeRoundedRectangleComponentView.mm +1 -0
  49. package/ios/Generated/OneNativeSecureFieldComponentView.mm +1 -0
  50. package/ios/Generated/OneNativeShareLinkComponentView.mm +1 -0
  51. package/ios/Generated/OneNativeShortcutsLinkComponentView.mm +1 -0
  52. package/ios/Generated/OneNativeSignInWithAppleButtonComponentView.mm +1 -0
  53. package/ios/Generated/OneNativeSliderComponentView.mm +1 -0
  54. package/ios/Generated/OneNativeStepperComponentView.mm +1 -0
  55. package/ios/Generated/OneNativeStoreViewComponentView.mm +1 -0
  56. package/ios/Generated/OneNativeSubscriptionStoreViewComponentView.mm +1 -0
  57. package/ios/Generated/OneNativeTextComponentView.mm +1 -0
  58. package/ios/Generated/OneNativeTextEditorComponentView.mm +1 -0
  59. package/ios/Generated/OneNativeTextFieldComponentView.mm +1 -0
  60. package/ios/Generated/OneNativeToggleComponentView.mm +1 -0
  61. package/ios/Generated/OneNativeUnevenRoundedRectangleComponentView.mm +1 -0
  62. package/ios/Generated/OneNativeVideoPlayerComponentView.mm +1 -0
  63. package/ios/Generated/OneNativeWebViewComponentView.mm +1 -0
  64. package/package.json +15 -15
  65. package/src/useMatches.ts +6 -3
  66. package/types/useMatches.d.ts.map +1 -1
@@ -42,9 +42,11 @@ function getClientMatchesSnapshot() {
42
42
  }
43
43
  function setClientMatches(matches) {
44
44
  clientMatches = matches;
45
- for (const listener of clientMatchesListeners) {
46
- listener();
47
- }
45
+ queueMicrotask(() => {
46
+ for (const listener of clientMatchesListeners) {
47
+ listener();
48
+ }
49
+ });
48
50
  }
49
51
  function updateMatchLoaderData(routeId, loaderData) {
50
52
  clientMatches = clientMatches.map((m) => m.routeId === routeId ? {
@@ -46,26 +46,28 @@ function getClientMatchesSnapshot() {
46
46
  }
47
47
  function setClientMatches(matches) {
48
48
  clientMatches = matches;
49
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
50
- try {
51
- for (var _iterator = clientMatchesListeners[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
52
- var listener = _step.value;
53
- listener();
54
- }
55
- } catch (err) {
56
- _didIteratorError = true;
57
- _iteratorError = err;
58
- } finally {
49
+ queueMicrotask(function() {
50
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
59
51
  try {
60
- if (!_iteratorNormalCompletion && _iterator.return != null) {
61
- _iterator.return();
52
+ for (var _iterator = clientMatchesListeners[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
53
+ var listener = _step.value;
54
+ listener();
62
55
  }
56
+ } catch (err) {
57
+ _didIteratorError = true;
58
+ _iteratorError = err;
63
59
  } finally {
64
- if (_didIteratorError) {
65
- throw _iteratorError;
60
+ try {
61
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
62
+ _iterator.return();
63
+ }
64
+ } finally {
65
+ if (_didIteratorError) {
66
+ throw _iteratorError;
67
+ }
66
68
  }
67
69
  }
68
- }
70
+ });
69
71
  }
70
72
  function updateMatchLoaderData(routeId, loaderData) {
71
73
  clientMatches = clientMatches.map(function(m) {
@@ -46,26 +46,28 @@ function getClientMatchesSnapshot() {
46
46
  }
47
47
  function setClientMatches(matches) {
48
48
  clientMatches = matches;
49
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
50
- try {
51
- for (var _iterator = clientMatchesListeners[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
52
- var listener = _step.value;
53
- listener();
54
- }
55
- } catch (err) {
56
- _didIteratorError = true;
57
- _iteratorError = err;
58
- } finally {
49
+ queueMicrotask(function() {
50
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
59
51
  try {
60
- if (!_iteratorNormalCompletion && _iterator.return != null) {
61
- _iterator.return();
52
+ for (var _iterator = clientMatchesListeners[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
53
+ var listener = _step.value;
54
+ listener();
62
55
  }
56
+ } catch (err) {
57
+ _didIteratorError = true;
58
+ _iteratorError = err;
63
59
  } finally {
64
- if (_didIteratorError) {
65
- throw _iteratorError;
60
+ try {
61
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
62
+ _iterator.return();
63
+ }
64
+ } finally {
65
+ if (_didIteratorError) {
66
+ throw _iteratorError;
67
+ }
66
68
  }
67
69
  }
68
- }
70
+ });
69
71
  }
70
72
  function updateMatchLoaderData(routeId, loaderData) {
71
73
  clientMatches = clientMatches.map(function(m) {
@@ -1 +1 @@
1
- {"version":3,"file":"useMatches.native.js","names":[],"sources":["cjs/useMatches.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar useMatches_exports = {};\n__export(useMatches_exports, {\n getClientMatchesSnapshot: () => getClientMatchesSnapshot,\n setClientMatches: () => setClientMatches,\n subscribeToClientMatches: () => subscribeToClientMatches,\n updateMatchLoaderData: () => updateMatchLoaderData,\n useMatch: () => useMatch,\n useMatches: () => useMatches,\n usePageMatch: () => usePageMatch\n});\nmodule.exports = __toCommonJS(useMatches_exports);\nvar import_react = require(\"react\");\nvar import_one_server_only = require(\"./vite/one-server-only\");\nvar clientMatches = [];\nvar clientMatchesListeners = /* @__PURE__ */ new Set();\nfunction subscribeToClientMatches(callback) {\n clientMatchesListeners.add(callback);\n return function() {\n return clientMatchesListeners.delete(callback);\n };\n}\nfunction getClientMatchesSnapshot() {\n return clientMatches;\n}\nfunction setClientMatches(matches) {\n clientMatches = matches;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = clientMatchesListeners[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var listener = _step.value;\n listener();\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n}\nfunction updateMatchLoaderData(routeId, loaderData) {\n clientMatches = clientMatches.map(function(m) {\n return m.routeId === routeId ? {\n ...m,\n loaderData\n } : m;\n });\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = clientMatchesListeners[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var listener = _step.value;\n listener();\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n}\nfunction useMatches() {\n var serverContext = (0, import_one_server_only.useServerContext)();\n if (process.env.VITE_ENVIRONMENT === \"ssr\") {\n var _ref;\n return (_ref = serverContext === null || serverContext === void 0 ? void 0 : serverContext.matches) !== null && _ref !== void 0 ? _ref : [];\n }\n var clientStoreMatches = (0, import_react.useSyncExternalStore)(\n subscribeToClientMatches,\n getClientMatchesSnapshot,\n // server snapshot for hydration - must match what SSR rendered\n function() {\n var _ref2;\n return (_ref2 = serverContext === null || serverContext === void 0 ? void 0 : serverContext.matches) !== null && _ref2 !== void 0 ? _ref2 : [];\n }\n );\n return clientStoreMatches;\n}\nfunction useMatch(routeId) {\n var matches = useMatches();\n return matches.find(function(m) {\n return m.routeId === routeId;\n });\n}\nfunction usePageMatch() {\n var matches = useMatches();\n return matches[matches.length - 1];\n}\n//# sourceMappingURL=useMatches.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,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AAS,SAAS;CACzB,IAAI,UAAU,WAAW;CACzB,OAAO,QAAQ,KAAK,SAAS,GAAG;EAC9B,OAAO,EAAE,YAAY;CACvB,CAAC;AACH;AACA,SAAS,eAAe;CACtB,IAAI,UAAU,WAAW;CACzB,OAAO,QAAQ,QAAQ,SAAS;AAClC"}
1
+ {"version":3,"file":"useMatches.native.js","names":[],"sources":["cjs/useMatches.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar useMatches_exports = {};\n__export(useMatches_exports, {\n getClientMatchesSnapshot: () => getClientMatchesSnapshot,\n setClientMatches: () => setClientMatches,\n subscribeToClientMatches: () => subscribeToClientMatches,\n updateMatchLoaderData: () => updateMatchLoaderData,\n useMatch: () => useMatch,\n useMatches: () => useMatches,\n usePageMatch: () => usePageMatch\n});\nmodule.exports = __toCommonJS(useMatches_exports);\nvar import_react = require(\"react\");\nvar import_one_server_only = require(\"./vite/one-server-only\");\nvar clientMatches = [];\nvar clientMatchesListeners = /* @__PURE__ */ new Set();\nfunction subscribeToClientMatches(callback) {\n clientMatchesListeners.add(callback);\n return function() {\n return clientMatchesListeners.delete(callback);\n };\n}\nfunction getClientMatchesSnapshot() {\n return clientMatches;\n}\nfunction setClientMatches(matches) {\n clientMatches = matches;\n queueMicrotask(function() {\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = clientMatchesListeners[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var listener = _step.value;\n listener();\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n });\n}\nfunction updateMatchLoaderData(routeId, loaderData) {\n clientMatches = clientMatches.map(function(m) {\n return m.routeId === routeId ? {\n ...m,\n loaderData\n } : m;\n });\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = clientMatchesListeners[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var listener = _step.value;\n listener();\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n}\nfunction useMatches() {\n var serverContext = (0, import_one_server_only.useServerContext)();\n if (process.env.VITE_ENVIRONMENT === \"ssr\") {\n var _ref;\n return (_ref = serverContext === null || serverContext === void 0 ? void 0 : serverContext.matches) !== null && _ref !== void 0 ? _ref : [];\n }\n var clientStoreMatches = (0, import_react.useSyncExternalStore)(\n subscribeToClientMatches,\n getClientMatchesSnapshot,\n // server snapshot for hydration - must match what SSR rendered\n function() {\n var _ref2;\n return (_ref2 = serverContext === null || serverContext === void 0 ? void 0 : serverContext.matches) !== null && _ref2 !== void 0 ? _ref2 : [];\n }\n );\n return clientStoreMatches;\n}\nfunction useMatch(routeId) {\n var matches = useMatches();\n return matches.find(function(m) {\n return m.routeId === routeId;\n });\n}\nfunction usePageMatch() {\n var matches = useMatches();\n return matches[matches.length - 1];\n}\n//#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IAAI,OAAO,CAAC;CAC5I;CACA,IAAI,sBAAsB,GAAG,aAAa,qBAAoB,CAC5D,0BACA,0BAEA,WAAW;EACT,IAAI;EACJ,QAAQ,QAAQ,kBAAkB,QAAQ,kBAAkB,KAAK,IAAI,KAAK,IAAI,cAAc,aAAa,QAAQ,UAAU,KAAK,IAAI,QAAQ,CAAC;CAC/I,CACF;CACA,OAAO;AACT;AACA,SAAS,SAAS,SAAS;CACzB,IAAI,UAAU,WAAW;CACzB,OAAO,QAAQ,KAAK,SAAS,GAAG;EAC9B,OAAO,EAAE,YAAY;CACvB,CAAC;AACH;AACA,SAAS,eAAe;CACtB,IAAI,UAAU,WAAW;CACzB,OAAO,QAAQ,QAAQ,SAAS;AAClC"}
@@ -12,9 +12,11 @@ function getClientMatchesSnapshot() {
12
12
  }
13
13
  function setClientMatches(matches) {
14
14
  clientMatches = matches;
15
- for (const listener of clientMatchesListeners) {
16
- listener();
17
- }
15
+ queueMicrotask(() => {
16
+ for (const listener of clientMatchesListeners) {
17
+ listener();
18
+ }
19
+ });
18
20
  }
19
21
  function updateMatchLoaderData(routeId, loaderData) {
20
22
  clientMatches = clientMatches.map((m) => m.routeId === routeId ? {
@@ -1 +1 @@
1
- {"version":3,"file":"useMatches.js","names":[],"sources":["esm/useMatches.js"],"sourcesContent":["import { useSyncExternalStore } from \"react\";\nimport { useServerContext } from \"./vite/one-server-only\";\nlet clientMatches = [];\nconst clientMatchesListeners = /* @__PURE__ */ new Set();\nfunction subscribeToClientMatches(callback) {\n clientMatchesListeners.add(callback);\n return () => clientMatchesListeners.delete(callback);\n}\nfunction getClientMatchesSnapshot() {\n return clientMatches;\n}\nfunction setClientMatches(matches) {\n clientMatches = matches;\n for (const listener of clientMatchesListeners) {\n listener();\n }\n}\nfunction updateMatchLoaderData(routeId, loaderData) {\n clientMatches = clientMatches.map(\n (m) => m.routeId === routeId ? { ...m, loaderData } : m\n );\n for (const listener of clientMatchesListeners) {\n listener();\n }\n}\nfunction useMatches() {\n const serverContext = useServerContext();\n if (process.env.VITE_ENVIRONMENT === \"ssr\") {\n return serverContext?.matches ?? [];\n }\n const clientStoreMatches = useSyncExternalStore(\n subscribeToClientMatches,\n getClientMatchesSnapshot,\n // server snapshot for hydration - must match what SSR rendered\n () => serverContext?.matches ?? []\n );\n return clientStoreMatches;\n}\nfunction useMatch(routeId) {\n const matches = useMatches();\n return matches.find((m) => m.routeId === routeId);\n}\nfunction usePageMatch() {\n const matches = useMatches();\n return matches[matches.length - 1];\n}\nexport {\n getClientMatchesSnapshot,\n setClientMatches,\n subscribeToClientMatches,\n updateMatchLoaderData,\n useMatch,\n useMatches,\n usePageMatch\n};\n//# sourceMappingURL=useMatches.js.map\n"],"mappings":";;;;AAEA,IAAI,gBAAgB,CAAC;AACrB,MAAM,yCAAyC,IAAI,IAAI;AACvD,SAAS,yBAAyB,UAAU;CAC1C,uBAAuB,IAAI,QAAQ;CACnC,aAAa,uBAAuB,OAAO,QAAQ;AACrD;AACA,SAAS,2BAA2B;CAClC,OAAO;AACT;AACA,SAAS,iBAAiB,SAAS;CACjC,gBAAgB;CAChB,KAAK,MAAM,YAAY,wBAAwB;EAC7C,SAAS;CACX;AACF;AACA,SAAS,sBAAsB,SAAS,YAAY;CAClD,gBAAgB,cAAc,KAC3B,MAAM,EAAE,YAAY,UAAU;EAAE,GAAG;EAAG;CAAW,IAAI,CACxD;CACA,KAAK,MAAM,YAAY,wBAAwB;EAC7C,SAAS;CACX;AACF;AACA,SAAS,aAAa;CACpB,MAAM,gBAAgB,iBAAiB;CACvC,IAAI,QAAQ,IAAI,qBAAqB,OAAO;EAC1C,OAAO,eAAe,WAAW,CAAC;CACpC;CACA,MAAM,qBAAqB,qBACzB,0BACA,gCAEM,eAAe,WAAW,CAAC,CACnC;CACA,OAAO;AACT;AACA,SAAS,SAAS,SAAS;CACzB,MAAM,UAAU,WAAW;CAC3B,OAAO,QAAQ,MAAM,MAAM,EAAE,YAAY,OAAO;AAClD;AACA,SAAS,eAAe;CACtB,MAAM,UAAU,WAAW;CAC3B,OAAO,QAAQ,QAAQ,SAAS;AAClC"}
1
+ {"version":3,"file":"useMatches.js","names":[],"sources":["esm/useMatches.js"],"sourcesContent":["import { useSyncExternalStore } from \"react\";\nimport { useServerContext } from \"./vite/one-server-only\";\nlet clientMatches = [];\nconst clientMatchesListeners = /* @__PURE__ */ new Set();\nfunction subscribeToClientMatches(callback) {\n clientMatchesListeners.add(callback);\n return () => clientMatchesListeners.delete(callback);\n}\nfunction getClientMatchesSnapshot() {\n return clientMatches;\n}\nfunction setClientMatches(matches) {\n clientMatches = matches;\n queueMicrotask(() => {\n for (const listener of clientMatchesListeners) {\n listener();\n }\n });\n}\nfunction updateMatchLoaderData(routeId, loaderData) {\n clientMatches = clientMatches.map(\n (m) => m.routeId === routeId ? { ...m, loaderData } : m\n );\n for (const listener of clientMatchesListeners) {\n listener();\n }\n}\nfunction useMatches() {\n const serverContext = useServerContext();\n if (process.env.VITE_ENVIRONMENT === \"ssr\") {\n return serverContext?.matches ?? [];\n }\n const clientStoreMatches = useSyncExternalStore(\n subscribeToClientMatches,\n getClientMatchesSnapshot,\n // server snapshot for hydration - must match what SSR rendered\n () => serverContext?.matches ?? []\n );\n return clientStoreMatches;\n}\nfunction useMatch(routeId) {\n const matches = useMatches();\n return matches.find((m) => m.routeId === routeId);\n}\nfunction usePageMatch() {\n const matches = useMatches();\n return matches[matches.length - 1];\n}\nexport {\n getClientMatchesSnapshot,\n setClientMatches,\n subscribeToClientMatches,\n updateMatchLoaderData,\n useMatch,\n useMatches,\n usePageMatch\n};\n//# sourceMappingURL=useMatches.js.map\n"],"mappings":";;;;AAEA,IAAI,gBAAgB,CAAC;AACrB,MAAM,yCAAyC,IAAI,IAAI;AACvD,SAAS,yBAAyB,UAAU;CAC1C,uBAAuB,IAAI,QAAQ;CACnC,aAAa,uBAAuB,OAAO,QAAQ;AACrD;AACA,SAAS,2BAA2B;CAClC,OAAO;AACT;AACA,SAAS,iBAAiB,SAAS;CACjC,gBAAgB;CAChB,qBAAqB;EACnB,KAAK,MAAM,YAAY,wBAAwB;GAC7C,SAAS;EACX;CACF,CAAC;AACH;AACA,SAAS,sBAAsB,SAAS,YAAY;CAClD,gBAAgB,cAAc,KAC3B,MAAM,EAAE,YAAY,UAAU;EAAE,GAAG;EAAG;CAAW,IAAI,CACxD;CACA,KAAK,MAAM,YAAY,wBAAwB;EAC7C,SAAS;CACX;AACF;AACA,SAAS,aAAa;CACpB,MAAM,gBAAgB,iBAAiB;CACvC,IAAI,QAAQ,IAAI,qBAAqB,OAAO;EAC1C,OAAO,eAAe,WAAW,CAAC;CACpC;CACA,MAAM,qBAAqB,qBACzB,0BACA,gCAEM,eAAe,WAAW,CAAC,CACnC;CACA,OAAO;AACT;AACA,SAAS,SAAS,SAAS;CACzB,MAAM,UAAU,WAAW;CAC3B,OAAO,QAAQ,MAAM,MAAM,EAAE,YAAY,OAAO;AAClD;AACA,SAAS,eAAe;CACtB,MAAM,UAAU,WAAW;CAC3B,OAAO,QAAQ,QAAQ,SAAS;AAClC"}
@@ -14,26 +14,28 @@ function getClientMatchesSnapshot() {
14
14
  }
15
15
  function setClientMatches(matches) {
16
16
  clientMatches = matches;
17
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
18
- try {
19
- for (var _iterator = clientMatchesListeners[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
20
- var listener = _step.value;
21
- listener();
22
- }
23
- } catch (err) {
24
- _didIteratorError = true;
25
- _iteratorError = err;
26
- } finally {
17
+ queueMicrotask(function() {
18
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
27
19
  try {
28
- if (!_iteratorNormalCompletion && _iterator.return != null) {
29
- _iterator.return();
20
+ for (var _iterator = clientMatchesListeners[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
21
+ var listener = _step.value;
22
+ listener();
30
23
  }
24
+ } catch (err) {
25
+ _didIteratorError = true;
26
+ _iteratorError = err;
31
27
  } finally {
32
- if (_didIteratorError) {
33
- throw _iteratorError;
28
+ try {
29
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
30
+ _iterator.return();
31
+ }
32
+ } finally {
33
+ if (_didIteratorError) {
34
+ throw _iteratorError;
35
+ }
34
36
  }
35
37
  }
36
- }
38
+ });
37
39
  }
38
40
  function updateMatchLoaderData(routeId, loaderData) {
39
41
  clientMatches = clientMatches.map(function(m) {
@@ -1 +1 @@
1
- {"version":3,"file":"useMatches.native.js","names":[],"sources":["esm/useMatches.native.js"],"sourcesContent":["import { useSyncExternalStore } from \"react\";\nimport { useServerContext } from \"./vite/one-server-only\";\nvar clientMatches = [];\nvar clientMatchesListeners = /* @__PURE__ */ new Set();\nfunction subscribeToClientMatches(callback) {\n clientMatchesListeners.add(callback);\n return function() {\n return clientMatchesListeners.delete(callback);\n };\n}\nfunction getClientMatchesSnapshot() {\n return clientMatches;\n}\nfunction setClientMatches(matches) {\n clientMatches = matches;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = clientMatchesListeners[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var listener = _step.value;\n listener();\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n}\nfunction updateMatchLoaderData(routeId, loaderData) {\n clientMatches = clientMatches.map(function(m) {\n return m.routeId === routeId ? {\n ...m,\n loaderData\n } : m;\n });\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = clientMatchesListeners[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var listener = _step.value;\n listener();\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n}\nfunction useMatches() {\n var serverContext = useServerContext();\n if (process.env.VITE_ENVIRONMENT === \"ssr\") {\n var _ref;\n return (_ref = serverContext === null || serverContext === void 0 ? void 0 : serverContext.matches) !== null && _ref !== void 0 ? _ref : [];\n }\n var clientStoreMatches = useSyncExternalStore(\n subscribeToClientMatches,\n getClientMatchesSnapshot,\n // server snapshot for hydration - must match what SSR rendered\n function() {\n var _ref2;\n return (_ref2 = serverContext === null || serverContext === void 0 ? void 0 : serverContext.matches) !== null && _ref2 !== void 0 ? _ref2 : [];\n }\n );\n return clientStoreMatches;\n}\nfunction useMatch(routeId) {\n var matches = useMatches();\n return matches.find(function(m) {\n return m.routeId === routeId;\n });\n}\nfunction usePageMatch() {\n var matches = useMatches();\n return matches[matches.length - 1];\n}\nexport {\n getClientMatchesSnapshot,\n setClientMatches,\n subscribeToClientMatches,\n updateMatchLoaderData,\n useMatch,\n useMatches,\n usePageMatch\n};\n//# sourceMappingURL=useMatches.js.map\n"],"mappings":";;;;AAEA,IAAI,gBAAgB,CAAC;AACrB,IAAI,yCAAyC,IAAI,IAAI;AACrD,SAAS,yBAAyB,UAAU;CAC1C,uBAAuB,IAAI,QAAQ;CACnC,OAAO,WAAW;EAChB,OAAO,uBAAuB,OAAO,QAAQ;CAC/C;AACF;AACA,SAAS,2BAA2B;CAClC,OAAO;AACT;AACA,SAAS,iBAAiB,SAAS;CACjC,gBAAgB;CAChB,IAAI,4BAA4B,MAAM,oBAAoB,OAAO,iBAAiB,KAAK;CACvF,IAAI;EACF,KAAK,IAAI,YAAY,uBAAuB,OAAO,SAAS,CAAC,GAAG,OAAO,EAAE,6BAA6B,QAAQ,UAAU,KAAK,EAAC,CAAE,OAAO,4BAA4B,MAAM;GACvK,IAAI,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SAAS,SAAS,SAAS;CACzB,IAAI,UAAU,WAAW;CACzB,OAAO,QAAQ,KAAK,SAAS,GAAG;EAC9B,OAAO,EAAE,YAAY;CACvB,CAAC;AACH;AACA,SAAS,eAAe;CACtB,IAAI,UAAU,WAAW;CACzB,OAAO,QAAQ,QAAQ,SAAS;AAClC"}
1
+ {"version":3,"file":"useMatches.native.js","names":[],"sources":["esm/useMatches.native.js"],"sourcesContent":["import { useSyncExternalStore } from \"react\";\nimport { useServerContext } from \"./vite/one-server-only\";\nvar clientMatches = [];\nvar clientMatchesListeners = /* @__PURE__ */ new Set();\nfunction subscribeToClientMatches(callback) {\n clientMatchesListeners.add(callback);\n return function() {\n return clientMatchesListeners.delete(callback);\n };\n}\nfunction getClientMatchesSnapshot() {\n return clientMatches;\n}\nfunction setClientMatches(matches) {\n clientMatches = matches;\n queueMicrotask(function() {\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = clientMatchesListeners[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var listener = _step.value;\n listener();\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n });\n}\nfunction updateMatchLoaderData(routeId, loaderData) {\n clientMatches = clientMatches.map(function(m) {\n return m.routeId === routeId ? {\n ...m,\n loaderData\n } : m;\n });\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = clientMatchesListeners[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var listener = _step.value;\n listener();\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n}\nfunction useMatches() {\n var serverContext = useServerContext();\n if (process.env.VITE_ENVIRONMENT === \"ssr\") {\n var _ref;\n return (_ref = serverContext === null || serverContext === void 0 ? void 0 : serverContext.matches) !== null && _ref !== void 0 ? _ref : [];\n }\n var clientStoreMatches = useSyncExternalStore(\n subscribeToClientMatches,\n getClientMatchesSnapshot,\n // server snapshot for hydration - must match what SSR rendered\n function() {\n var _ref2;\n return (_ref2 = serverContext === null || serverContext === void 0 ? void 0 : serverContext.matches) !== null && _ref2 !== void 0 ? _ref2 : [];\n }\n );\n return clientStoreMatches;\n}\nfunction useMatch(routeId) {\n var matches = useMatches();\n return matches.find(function(m) {\n return m.routeId === routeId;\n });\n}\nfunction usePageMatch() {\n var matches = useMatches();\n return matches[matches.length - 1];\n}\nexport {\n getClientMatchesSnapshot,\n setClientMatches,\n subscribeToClientMatches,\n updateMatchLoaderData,\n useMatch,\n useMatches,\n usePageMatch\n};\n//# sourceMappingURL=useMatches.js.map\n"],"mappings":";;;;AAEA,IAAI,gBAAgB,CAAC;AACrB,IAAI,yCAAyC,IAAI,IAAI;AACrD,SAAS,yBAAyB,UAAU;CAC1C,uBAAuB,IAAI,QAAQ;CACnC,OAAO,WAAW;EAChB,OAAO,uBAAuB,OAAO,QAAQ;CAC/C;AACF;AACA,SAAS,2BAA2B;CAClC,OAAO;AACT;AACA,SAAS,iBAAiB,SAAS;CACjC,gBAAgB;CAChB,eAAe,WAAW;EACxB,IAAI,4BAA4B,MAAM,oBAAoB,OAAO,iBAAiB,KAAK;EACvF,IAAI;GACF,KAAK,IAAI,YAAY,uBAAuB,OAAO,SAAS,CAAC,GAAG,OAAO,EAAE,6BAA6B,QAAQ,UAAU,KAAK,EAAC,CAAE,OAAO,4BAA4B,MAAM;IACvK,IAAI,WAAW,MAAM;IACrB,SAAS;GACX;EACF,SAAS,KAAK;GACZ,oBAAoB;GACpB,iBAAiB;EACnB,UAAU;GACR,IAAI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,OAAO,EAAE,YAAY;CACvB,CAAC;AACH;AACA,SAAS,eAAe;CACtB,IAAI,UAAU,WAAW;CACzB,OAAO,QAAQ,QAAQ,SAAS;AAClC"}
@@ -55,6 +55,7 @@ using namespace facebook::react;
55
55
  // taps the control and not the centre of its wider host. the host keeps it only while
56
56
  // that element is hidden.
57
57
  self.accessibilityIdentifier = nil;
58
+ _nativeView.accessibilityIdentifier = nil;
58
59
  }
59
60
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; }
60
61
  @end
@@ -65,6 +65,7 @@ using namespace facebook::react;
65
65
  // taps the control and not the centre of its wider host. the host keeps it only while
66
66
  // that element is hidden.
67
67
  self.accessibilityIdentifier = nil;
68
+ _nativeView.accessibilityIdentifier = nil;
68
69
  }
69
70
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; _actionsDirty = YES; }
70
71
  @end
@@ -52,7 +52,8 @@ using namespace facebook::react;
52
52
  // the swiftui element that is the control carries testID (OneNativeAccessibility), so a test
53
53
  // taps the control and not the centre of its wider host. the host keeps it only while
54
54
  // that element is hidden.
55
- self.accessibilityIdentifier = next.accessibilityLabel.empty() && !next.testId.empty() ? RCTNSStringFromString(next.testId) : nil;
55
+ self.accessibilityIdentifier = nil;
56
+ _nativeView.accessibilityIdentifier = next.accessibilityLabel.empty() && !next.testId.empty() ? RCTNSStringFromString(next.testId) : nil;
56
57
  }
57
58
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; _colorsDirty = YES; }
58
59
  @end
@@ -49,6 +49,7 @@ using namespace facebook::react;
49
49
  // taps the control and not the centre of its wider host. the host keeps it only while
50
50
  // that element is hidden.
51
51
  self.accessibilityIdentifier = nil;
52
+ _nativeView.accessibilityIdentifier = nil;
52
53
  }
53
54
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; }
54
55
  @end
@@ -42,6 +42,7 @@ using namespace facebook::react;
42
42
  // taps the control and not the centre of its wider host. the host keeps it only while
43
43
  // that element is hidden.
44
44
  self.accessibilityIdentifier = nil;
45
+ _nativeView.accessibilityIdentifier = nil;
45
46
  }
46
47
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; }
47
48
  @end
@@ -42,6 +42,7 @@ using namespace facebook::react;
42
42
  // taps the control and not the centre of its wider host. the host keeps it only while
43
43
  // that element is hidden.
44
44
  self.accessibilityIdentifier = nil;
45
+ _nativeView.accessibilityIdentifier = nil;
45
46
  }
46
47
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; }
47
48
  @end
@@ -42,6 +42,7 @@ using namespace facebook::react;
42
42
  // taps the control and not the centre of its wider host. the host keeps it only while
43
43
  // that element is hidden.
44
44
  self.accessibilityIdentifier = nil;
45
+ _nativeView.accessibilityIdentifier = nil;
45
46
  }
46
47
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; }
47
48
  @end
@@ -55,6 +55,7 @@ using namespace facebook::react;
55
55
  // taps the control and not the centre of its wider host. the host keeps it only while
56
56
  // that element is hidden.
57
57
  self.accessibilityIdentifier = nil;
58
+ _nativeView.accessibilityIdentifier = nil;
58
59
  }
59
60
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; }
60
61
  @end
@@ -42,6 +42,7 @@ using namespace facebook::react;
42
42
  // taps the control and not the centre of its wider host. the host keeps it only while
43
43
  // that element is hidden.
44
44
  self.accessibilityIdentifier = nil;
45
+ _nativeView.accessibilityIdentifier = nil;
45
46
  }
46
47
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; }
47
48
  @end
@@ -65,6 +65,7 @@ using namespace facebook::react;
65
65
  // taps the control and not the centre of its wider host. the host keeps it only while
66
66
  // that element is hidden.
67
67
  self.accessibilityIdentifier = nil;
68
+ _nativeView.accessibilityIdentifier = nil;
68
69
  }
69
70
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; _actionsDirty = YES; }
70
71
  @end
@@ -59,6 +59,7 @@ using namespace facebook::react;
59
59
  // taps the control and not the centre of its wider host. the host keeps it only while
60
60
  // that element is hidden.
61
61
  self.accessibilityIdentifier = nil;
62
+ _nativeView.accessibilityIdentifier = nil;
62
63
  }
63
64
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; _actionsDirty = YES; }
64
65
  @end
@@ -55,6 +55,7 @@ using namespace facebook::react;
55
55
  // taps the control and not the centre of its wider host. the host keeps it only while
56
56
  // that element is hidden.
57
57
  self.accessibilityIdentifier = nil;
58
+ _nativeView.accessibilityIdentifier = nil;
58
59
  }
59
60
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; }
60
61
  @end
@@ -47,6 +47,7 @@ using namespace facebook::react;
47
47
  // taps the control and not the centre of its wider host. the host keeps it only while
48
48
  // that element is hidden.
49
49
  self.accessibilityIdentifier = nil;
50
+ _nativeView.accessibilityIdentifier = nil;
50
51
  }
51
52
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; }
52
53
  @end
@@ -42,6 +42,7 @@ using namespace facebook::react;
42
42
  // taps the control and not the centre of its wider host. the host keeps it only while
43
43
  // that element is hidden.
44
44
  self.accessibilityIdentifier = nil;
45
+ _nativeView.accessibilityIdentifier = nil;
45
46
  }
46
47
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; }
47
48
  @end
@@ -52,7 +52,8 @@ using namespace facebook::react;
52
52
  // the swiftui element that is the control carries testID (OneNativeAccessibility), so a test
53
53
  // taps the control and not the centre of its wider host. the host keeps it only while
54
54
  // that element is hidden.
55
- self.accessibilityIdentifier = next.accessibilityLabel.empty() && !next.testId.empty() ? RCTNSStringFromString(next.testId) : nil;
55
+ self.accessibilityIdentifier = nil;
56
+ _nativeView.accessibilityIdentifier = next.accessibilityLabel.empty() && !next.testId.empty() ? RCTNSStringFromString(next.testId) : nil;
56
57
  }
57
58
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; _colorsDirty = YES; }
58
59
  @end
@@ -47,6 +47,7 @@ using namespace facebook::react;
47
47
  // taps the control and not the centre of its wider host. the host keeps it only while
48
48
  // that element is hidden.
49
49
  self.accessibilityIdentifier = nil;
50
+ _nativeView.accessibilityIdentifier = nil;
50
51
  }
51
52
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; }
52
53
  @end
@@ -65,6 +65,7 @@ using namespace facebook::react;
65
65
  // taps the control and not the centre of its wider host. the host keeps it only while
66
66
  // that element is hidden.
67
67
  self.accessibilityIdentifier = nil;
68
+ _nativeView.accessibilityIdentifier = nil;
68
69
  }
69
70
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; _allowedContentTypesDirty = YES; }
70
71
  @end
@@ -49,6 +49,7 @@ using namespace facebook::react;
49
49
  // taps the control and not the centre of its wider host. the host keeps it only while
50
50
  // that element is hidden.
51
51
  self.accessibilityIdentifier = nil;
52
+ _nativeView.accessibilityIdentifier = nil;
52
53
  }
53
54
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; }
54
55
  @end
@@ -48,7 +48,8 @@ using namespace facebook::react;
48
48
  // the swiftui element that is the control carries testID (OneNativeAccessibility), so a test
49
49
  // taps the control and not the centre of its wider host. the host keeps it only while
50
50
  // that element is hidden.
51
- self.accessibilityIdentifier = next.accessibilityLabel.empty() && !next.testId.empty() ? RCTNSStringFromString(next.testId) : nil;
51
+ self.accessibilityIdentifier = nil;
52
+ _nativeView.accessibilityIdentifier = next.accessibilityLabel.empty() && !next.testId.empty() ? RCTNSStringFromString(next.testId) : nil;
52
53
  }
53
54
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; }
54
55
  @end
@@ -49,6 +49,7 @@ using namespace facebook::react;
49
49
  // taps the control and not the centre of its wider host. the host keeps it only while
50
50
  // that element is hidden.
51
51
  self.accessibilityIdentifier = nil;
52
+ _nativeView.accessibilityIdentifier = nil;
52
53
  }
53
54
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; }
54
55
  @end
@@ -52,7 +52,8 @@ using namespace facebook::react;
52
52
  // the swiftui element that is the control carries testID (OneNativeAccessibility), so a test
53
53
  // taps the control and not the centre of its wider host. the host keeps it only while
54
54
  // that element is hidden.
55
- self.accessibilityIdentifier = next.accessibilityLabel.empty() && !next.testId.empty() ? RCTNSStringFromString(next.testId) : nil;
55
+ self.accessibilityIdentifier = nil;
56
+ _nativeView.accessibilityIdentifier = next.accessibilityLabel.empty() && !next.testId.empty() ? RCTNSStringFromString(next.testId) : nil;
56
57
  }
57
58
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; _colorsDirty = YES; }
58
59
  @end
@@ -48,6 +48,7 @@ using namespace facebook::react;
48
48
  // taps the control and not the centre of its wider host. the host keeps it only while
49
49
  // that element is hidden.
50
50
  self.accessibilityIdentifier = nil;
51
+ _nativeView.accessibilityIdentifier = nil;
51
52
  }
52
53
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; }
53
54
  @end
@@ -55,6 +55,7 @@ using namespace facebook::react;
55
55
  // taps the control and not the centre of its wider host. the host keeps it only while
56
56
  // that element is hidden.
57
57
  self.accessibilityIdentifier = nil;
58
+ _nativeView.accessibilityIdentifier = nil;
58
59
  }
59
60
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; }
60
61
  @end
@@ -47,6 +47,7 @@ using namespace facebook::react;
47
47
  // taps the control and not the centre of its wider host. the host keeps it only while
48
48
  // that element is hidden.
49
49
  self.accessibilityIdentifier = nil;
50
+ _nativeView.accessibilityIdentifier = nil;
50
51
  }
51
52
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; }
52
53
  @end
@@ -59,6 +59,7 @@ using namespace facebook::react;
59
59
  // taps the control and not the centre of its wider host. the host keeps it only while
60
60
  // that element is hidden.
61
61
  self.accessibilityIdentifier = nil;
62
+ _nativeView.accessibilityIdentifier = nil;
62
63
  }
63
64
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; _markersDirty = YES; }
64
65
  - (UIView *)composableFor:(UIView<RCTComponentViewProtocol> *)child {
@@ -47,6 +47,7 @@ using namespace facebook::react;
47
47
  // taps the control and not the centre of its wider host. the host keeps it only while
48
48
  // that element is hidden.
49
49
  self.accessibilityIdentifier = nil;
50
+ _nativeView.accessibilityIdentifier = nil;
50
51
  }
51
52
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; }
52
53
  @end
@@ -47,6 +47,7 @@ using namespace facebook::react;
47
47
  // taps the control and not the centre of its wider host. the host keeps it only while
48
48
  // that element is hidden.
49
49
  self.accessibilityIdentifier = nil;
50
+ _nativeView.accessibilityIdentifier = nil;
50
51
  }
51
52
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; }
52
53
  @end
@@ -52,7 +52,8 @@ using namespace facebook::react;
52
52
  // the swiftui element that is the control carries testID (OneNativeAccessibility), so a test
53
53
  // taps the control and not the centre of its wider host. the host keeps it only while
54
54
  // that element is hidden.
55
- self.accessibilityIdentifier = next.accessibilityLabel.empty() && !next.testId.empty() ? RCTNSStringFromString(next.testId) : nil;
55
+ self.accessibilityIdentifier = nil;
56
+ _nativeView.accessibilityIdentifier = next.accessibilityLabel.empty() && !next.testId.empty() ? RCTNSStringFromString(next.testId) : nil;
56
57
  }
57
58
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; _colorsDirty = YES; }
58
59
  @end
@@ -55,6 +55,7 @@ using namespace facebook::react;
55
55
  // taps the control and not the centre of its wider host. the host keeps it only while
56
56
  // that element is hidden.
57
57
  self.accessibilityIdentifier = nil;
58
+ _nativeView.accessibilityIdentifier = nil;
58
59
  }
59
60
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; }
60
61
  @end
@@ -55,6 +55,7 @@ using namespace facebook::react;
55
55
  // taps the control and not the centre of its wider host. the host keeps it only while
56
56
  // that element is hidden.
57
57
  self.accessibilityIdentifier = nil;
58
+ _nativeView.accessibilityIdentifier = nil;
58
59
  }
59
60
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; }
60
61
  @end
@@ -55,6 +55,7 @@ using namespace facebook::react;
55
55
  // taps the control and not the centre of its wider host. the host keeps it only while
56
56
  // that element is hidden.
57
57
  self.accessibilityIdentifier = nil;
58
+ _nativeView.accessibilityIdentifier = nil;
58
59
  }
59
60
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; }
60
61
  @end
@@ -67,6 +67,7 @@ using namespace facebook::react;
67
67
  // taps the control and not the centre of its wider host. the host keeps it only while
68
68
  // that element is hidden.
69
69
  self.accessibilityIdentifier = nil;
70
+ _nativeView.accessibilityIdentifier = nil;
70
71
  }
71
72
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; }
72
73
  @end
@@ -66,6 +66,7 @@ using namespace facebook::react;
66
66
  // taps the control and not the centre of its wider host. the host keeps it only while
67
67
  // that element is hidden.
68
68
  self.accessibilityIdentifier = nil;
69
+ _nativeView.accessibilityIdentifier = nil;
69
70
  }
70
71
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; _optionsDirty = YES; }
71
72
  @end
@@ -49,6 +49,7 @@ using namespace facebook::react;
49
49
  // taps the control and not the centre of its wider host. the host keeps it only while
50
50
  // that element is hidden.
51
51
  self.accessibilityIdentifier = nil;
52
+ _nativeView.accessibilityIdentifier = nil;
52
53
  }
53
54
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; }
54
55
  @end
@@ -49,6 +49,7 @@ using namespace facebook::react;
49
49
  // taps the control and not the centre of its wider host. the host keeps it only while
50
50
  // that element is hidden.
51
51
  self.accessibilityIdentifier = nil;
52
+ _nativeView.accessibilityIdentifier = nil;
52
53
  }
53
54
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; }
54
55
  @end
@@ -48,6 +48,7 @@ using namespace facebook::react;
48
48
  // taps the control and not the centre of its wider host. the host keeps it only while
49
49
  // that element is hidden.
50
50
  self.accessibilityIdentifier = nil;
51
+ _nativeView.accessibilityIdentifier = nil;
51
52
  }
52
53
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; }
53
54
  @end
@@ -52,7 +52,8 @@ using namespace facebook::react;
52
52
  // the swiftui element that is the control carries testID (OneNativeAccessibility), so a test
53
53
  // taps the control and not the centre of its wider host. the host keeps it only while
54
54
  // that element is hidden.
55
- self.accessibilityIdentifier = next.accessibilityLabel.empty() && !next.testId.empty() ? RCTNSStringFromString(next.testId) : nil;
55
+ self.accessibilityIdentifier = nil;
56
+ _nativeView.accessibilityIdentifier = next.accessibilityLabel.empty() && !next.testId.empty() ? RCTNSStringFromString(next.testId) : nil;
56
57
  }
57
58
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; _colorsDirty = YES; }
58
59
  @end
@@ -42,6 +42,7 @@ using namespace facebook::react;
42
42
  // taps the control and not the centre of its wider host. the host keeps it only while
43
43
  // that element is hidden.
44
44
  self.accessibilityIdentifier = nil;
45
+ _nativeView.accessibilityIdentifier = nil;
45
46
  }
46
47
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; }
47
48
  @end
@@ -47,6 +47,7 @@ using namespace facebook::react;
47
47
  // taps the control and not the centre of its wider host. the host keeps it only while
48
48
  // that element is hidden.
49
49
  self.accessibilityIdentifier = nil;
50
+ _nativeView.accessibilityIdentifier = nil;
50
51
  }
51
52
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; }
52
53
  @end
@@ -42,6 +42,7 @@ using namespace facebook::react;
42
42
  // taps the control and not the centre of its wider host. the host keeps it only while
43
43
  // that element is hidden.
44
44
  self.accessibilityIdentifier = nil;
45
+ _nativeView.accessibilityIdentifier = nil;
45
46
  }
46
47
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; }
47
48
  @end
@@ -70,6 +70,7 @@ using namespace facebook::react;
70
70
  // taps the control and not the centre of its wider host. the host keeps it only while
71
71
  // that element is hidden.
72
72
  self.accessibilityIdentifier = nil;
73
+ _nativeView.accessibilityIdentifier = nil;
73
74
  }
74
75
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; }
75
76
  @end
@@ -49,6 +49,7 @@ using namespace facebook::react;
49
49
  // taps the control and not the centre of its wider host. the host keeps it only while
50
50
  // that element is hidden.
51
51
  self.accessibilityIdentifier = nil;
52
+ _nativeView.accessibilityIdentifier = nil;
52
53
  }
53
54
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; }
54
55
  @end
@@ -53,6 +53,7 @@ using namespace facebook::react;
53
53
  // taps the control and not the centre of its wider host. the host keeps it only while
54
54
  // that element is hidden.
55
55
  self.accessibilityIdentifier = nil;
56
+ _nativeView.accessibilityIdentifier = nil;
56
57
  }
57
58
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; }
58
59
  @end
@@ -66,6 +66,7 @@ using namespace facebook::react;
66
66
  // taps the control and not the centre of its wider host. the host keeps it only while
67
67
  // that element is hidden.
68
68
  self.accessibilityIdentifier = nil;
69
+ _nativeView.accessibilityIdentifier = nil;
69
70
  }
70
71
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; _requestedScopesDirty = YES; }
71
72
  @end
@@ -58,6 +58,7 @@ using namespace facebook::react;
58
58
  // taps the control and not the centre of its wider host. the host keeps it only while
59
59
  // that element is hidden.
60
60
  self.accessibilityIdentifier = nil;
61
+ _nativeView.accessibilityIdentifier = nil;
61
62
  }
62
63
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; }
63
64
  @end
@@ -58,6 +58,7 @@ using namespace facebook::react;
58
58
  // taps the control and not the centre of its wider host. the host keeps it only while
59
59
  // that element is hidden.
60
60
  self.accessibilityIdentifier = nil;
61
+ _nativeView.accessibilityIdentifier = nil;
61
62
  }
62
63
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; }
63
64
  @end
@@ -60,6 +60,7 @@ using namespace facebook::react;
60
60
  // taps the control and not the centre of its wider host. the host keeps it only while
61
61
  // that element is hidden.
62
62
  self.accessibilityIdentifier = nil;
63
+ _nativeView.accessibilityIdentifier = nil;
63
64
  }
64
65
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; _idsDirty = YES; }
65
66
  @end
@@ -60,6 +60,7 @@ using namespace facebook::react;
60
60
  // taps the control and not the centre of its wider host. the host keeps it only while
61
61
  // that element is hidden.
62
62
  self.accessibilityIdentifier = nil;
63
+ _nativeView.accessibilityIdentifier = nil;
63
64
  }
64
65
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; _productIDsDirty = YES; }
65
66
  @end
@@ -49,6 +49,7 @@ using namespace facebook::react;
49
49
  // taps the control and not the centre of its wider host. the host keeps it only while
50
50
  // that element is hidden.
51
51
  self.accessibilityIdentifier = nil;
52
+ _nativeView.accessibilityIdentifier = nil;
52
53
  }
53
54
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; }
54
55
  @end
@@ -57,6 +57,7 @@ using namespace facebook::react;
57
57
  // taps the control and not the centre of its wider host. the host keeps it only while
58
58
  // that element is hidden.
59
59
  self.accessibilityIdentifier = nil;
60
+ _nativeView.accessibilityIdentifier = nil;
60
61
  }
61
62
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; }
62
63
  @end
@@ -70,6 +70,7 @@ using namespace facebook::react;
70
70
  // taps the control and not the centre of its wider host. the host keeps it only while
71
71
  // that element is hidden.
72
72
  self.accessibilityIdentifier = nil;
73
+ _nativeView.accessibilityIdentifier = nil;
73
74
  }
74
75
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; }
75
76
  @end
@@ -58,6 +58,7 @@ using namespace facebook::react;
58
58
  // taps the control and not the centre of its wider host. the host keeps it only while
59
59
  // that element is hidden.
60
60
  self.accessibilityIdentifier = nil;
61
+ _nativeView.accessibilityIdentifier = nil;
61
62
  }
62
63
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; [_measured reset]; }
63
64
  @end
@@ -42,6 +42,7 @@ using namespace facebook::react;
42
42
  // taps the control and not the centre of its wider host. the host keeps it only while
43
43
  // that element is hidden.
44
44
  self.accessibilityIdentifier = nil;
45
+ _nativeView.accessibilityIdentifier = nil;
45
46
  }
46
47
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; }
47
48
  @end
@@ -48,6 +48,7 @@ using namespace facebook::react;
48
48
  // taps the control and not the centre of its wider host. the host keeps it only while
49
49
  // that element is hidden.
50
50
  self.accessibilityIdentifier = nil;
51
+ _nativeView.accessibilityIdentifier = nil;
51
52
  }
52
53
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; }
53
54
  @end
@@ -102,6 +102,7 @@ using namespace facebook::react;
102
102
  // taps the control and not the centre of its wider host. the host keeps it only while
103
103
  // that element is hidden.
104
104
  self.accessibilityIdentifier = nil;
105
+ _nativeView.accessibilityIdentifier = nil;
105
106
  }
106
107
  - (void)prepareForRecycle { [super prepareForRecycle]; [_nativeView reset]; }
107
108
  @end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "one",
3
- "version": "2.6.14",
3
+ "version": "2.6.16",
4
4
  "description": "One is a React framework for web, iOS, and Android apps.",
5
5
  "license": "BSD-3-Clause",
6
6
  "sideEffects": [
@@ -236,18 +236,18 @@
236
236
  "@react-navigation/native-stack": "8.0.0-alpha.58",
237
237
  "@react-navigation/routers": "8.0.0-alpha.20",
238
238
  "@ungap/structured-clone": "^1.2.0",
239
- "@vxrn/color-scheme": "2.6.14",
240
- "@vxrn/compiler": "2.6.14",
241
- "@vxrn/resolve": "2.6.14",
242
- "@vxrn/tslib-lite": "2.6.14",
243
- "@vxrn/use-isomorphic-layout-effect": "2.6.14",
244
- "@vxrn/utils": "2.6.14",
245
- "@vxrn/vite-plugin-metro": "2.6.14",
239
+ "@vxrn/color-scheme": "2.6.16",
240
+ "@vxrn/compiler": "2.6.16",
241
+ "@vxrn/resolve": "2.6.16",
242
+ "@vxrn/tslib-lite": "2.6.16",
243
+ "@vxrn/use-isomorphic-layout-effect": "2.6.16",
244
+ "@vxrn/utils": "2.6.16",
245
+ "@vxrn/vite-plugin-metro": "2.6.16",
246
246
  "babel-dead-code-elimination": "1.0.10",
247
247
  "babel-plugin-module-resolver": "^5.0.2",
248
248
  "citty": "^0.1.6",
249
249
  "core-js": "^3.38.1",
250
- "create-vxrn": "2.6.14",
250
+ "create-vxrn": "2.6.16",
251
251
  "escape-string-regexp": "^5.0.0",
252
252
  "fast-deep-equal": "^3.1.3",
253
253
  "fast-glob": "^3.3.3",
@@ -269,7 +269,7 @@
269
269
  "tsconfig-paths": "^4",
270
270
  "use-latest-callback": "^0.2.3",
271
271
  "vite": "^8.2.2",
272
- "vxrn": "2.6.14",
272
+ "vxrn": "2.6.16",
273
273
  "web-streams-polyfill": "^4.3.0",
274
274
  "ws": "^8.21.0",
275
275
  "xxhashjs": "^0.2.2"
@@ -325,19 +325,19 @@
325
325
  }
326
326
  },
327
327
  "devDependencies": {
328
- "@tamagui/sheet": "3.0.5",
328
+ "@tamagui/sheet": "3.0.7",
329
329
  "@callstack/liquid-glass": "^0.8.1",
330
330
  "@react-native/babel-plugin-codegen": "0.87.1",
331
331
  "@react-native/codegen": "^0.87.1",
332
332
  "@react-navigation/core": "8.0.0-alpha.40",
333
333
  "@react-navigation/drawer": "8.0.0-alpha.57",
334
334
  "@react-navigation/native": "8.0.0-alpha.50",
335
- "@tamagui/build": "3.0.5",
335
+ "@tamagui/build": "3.0.7",
336
336
  "@types/node": "^24.10.0",
337
337
  "@types/react-dom": "^19.2.2",
338
338
  "@types/react-test-renderer": "^19.1.0",
339
339
  "@types/xxhashjs": "^0.2.4",
340
- "@vxrn/emitter": "2.6.14",
340
+ "@vxrn/emitter": "2.6.16",
341
341
  "depcheck": "^1.4.7",
342
342
  "esbuild": "^0.25.12",
343
343
  "immer": "^10.1.1",
@@ -356,7 +356,7 @@
356
356
  "typescript": "7.0.2",
357
357
  "vitest": "^4.1.0",
358
358
  "yoga-layout": "^3.2.1",
359
- "@tamagui/web": "3.0.5"
359
+ "@tamagui/web": "3.0.7"
360
360
  },
361
361
  "publishConfig": {
362
362
  "access": "public"
@@ -513,7 +513,7 @@
513
513
  }
514
514
  }
515
515
  },
516
- "releaseSourceCommit": "c63695e6bd3a9335d22b572305fb0c4e2357afb2",
516
+ "releaseSourceCommit": "9c1600c2172d55f3d9ef12286912a279a8ef9778",
517
517
  "repository": {
518
518
  "type": "git",
519
519
  "url": "git+https://github.com/onejs/one.git",
package/src/useMatches.ts CHANGED
@@ -27,9 +27,12 @@ export function getClientMatchesSnapshot() {
27
27
  */
28
28
  export function setClientMatches(matches: RouteMatch[]) {
29
29
  clientMatches = matches
30
- for (const listener of clientMatchesListeners) {
31
- listener()
32
- }
30
+ // route state can synchronize during a layout's render.
31
+ queueMicrotask(() => {
32
+ for (const listener of clientMatchesListeners) {
33
+ listener()
34
+ }
35
+ })
33
36
  }
34
37
 
35
38
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"useMatches.d.ts","sourceRoot":"","sources":["../src/useMatches.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAEvC;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,GAAG,CAAC,UAAU,CAAA;AAMvC,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,MAAM,IAAI,iBAG5D;AAED,wBAAgB,wBAAwB,qBAEvC;AAED;;;;GAIG;AACH,wBA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