@tamagui/collection
Advanced tools
Comparing version 1.99.1 to 1.100.0
@@ -62,4 +62,3 @@ var __create = Object.create; | ||
const collectionNode = context.collectionRef.current; | ||
if (!collectionNode) | ||
return []; | ||
if (!collectionNode) return []; | ||
const orderedNodes = Array.from( | ||
@@ -66,0 +65,0 @@ collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`) |
@@ -50,4 +50,3 @@ "use strict"; | ||
function _object_without_properties(source, excluded) { | ||
if (source == null) | ||
return {}; | ||
if (source == null) return {}; | ||
var target = _object_without_properties_loose(source, excluded), key, i; | ||
@@ -62,4 +61,3 @@ if (Object.getOwnPropertySymbols) { | ||
function _object_without_properties_loose(source, excluded) { | ||
if (source == null) | ||
return {}; | ||
if (source == null) return {}; | ||
var target = {}, sourceKeys = Object.keys(source), key, i; | ||
@@ -115,4 +113,3 @@ for (i = 0; i < sourceKeys.length; i++) | ||
var collectionNode = context.collectionRef.current; | ||
if (!collectionNode) | ||
return []; | ||
if (!collectionNode) return []; | ||
var orderedNodes = Array.from(collectionNode.querySelectorAll("[".concat(ITEM_DATA_ATTR, "]"))), items = Array.from(context.itemMap.values()), orderedItems = items.sort(function(a, b) { | ||
@@ -119,0 +116,0 @@ return orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current); |
@@ -39,4 +39,3 @@ import { useComposedRefs } from "@tamagui/compose-refs"; | ||
const collectionNode = context.collectionRef.current; | ||
if (!collectionNode) | ||
return []; | ||
if (!collectionNode) return []; | ||
const orderedNodes = Array.from( | ||
@@ -43,0 +42,0 @@ collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`) |
@@ -26,4 +26,3 @@ import { jsx as _jsx } from "react/jsx-runtime"; | ||
function _object_without_properties(source, excluded) { | ||
if (source == null) | ||
return {}; | ||
if (source == null) return {}; | ||
var target = _object_without_properties_loose(source, excluded), key, i; | ||
@@ -38,4 +37,3 @@ if (Object.getOwnPropertySymbols) { | ||
function _object_without_properties_loose(source, excluded) { | ||
if (source == null) | ||
return {}; | ||
if (source == null) return {}; | ||
var target = {}, sourceKeys = Object.keys(source), key, i; | ||
@@ -91,4 +89,3 @@ for (i = 0; i < sourceKeys.length; i++) | ||
var collectionNode = context.collectionRef.current; | ||
if (!collectionNode) | ||
return []; | ||
if (!collectionNode) return []; | ||
var orderedNodes = Array.from(collectionNode.querySelectorAll("[".concat(ITEM_DATA_ATTR, "]"))), items = Array.from(context.itemMap.values()), orderedItems = items.sort(function(a, b) { | ||
@@ -95,0 +92,0 @@ return orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current); |
@@ -39,4 +39,3 @@ import { useComposedRefs } from "@tamagui/compose-refs"; | ||
const collectionNode = context.collectionRef.current; | ||
if (!collectionNode) | ||
return []; | ||
if (!collectionNode) return []; | ||
const orderedNodes = Array.from( | ||
@@ -43,0 +42,0 @@ collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`) |
@@ -26,4 +26,3 @@ import { jsx as _jsx } from "react/jsx-runtime"; | ||
function _object_without_properties(source, excluded) { | ||
if (source == null) | ||
return {}; | ||
if (source == null) return {}; | ||
var target = _object_without_properties_loose(source, excluded), key, i; | ||
@@ -38,4 +37,3 @@ if (Object.getOwnPropertySymbols) { | ||
function _object_without_properties_loose(source, excluded) { | ||
if (source == null) | ||
return {}; | ||
if (source == null) return {}; | ||
var target = {}, sourceKeys = Object.keys(source), key, i; | ||
@@ -91,4 +89,3 @@ for (i = 0; i < sourceKeys.length; i++) | ||
var collectionNode = context.collectionRef.current; | ||
if (!collectionNode) | ||
return []; | ||
if (!collectionNode) return []; | ||
var orderedNodes = Array.from(collectionNode.querySelectorAll("[".concat(ITEM_DATA_ATTR, "]"))), items = Array.from(context.itemMap.values()), orderedItems = items.sort(function(a, b) { | ||
@@ -95,0 +92,0 @@ return orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current); |
{ | ||
"name": "@tamagui/collection", | ||
"version": "1.99.1", | ||
"version": "1.100.0", | ||
"sideEffects": [ | ||
@@ -35,12 +35,12 @@ "*.css" | ||
"dependencies": { | ||
"@tamagui/compose-refs": "1.99.1", | ||
"@tamagui/constants": "1.99.1", | ||
"@tamagui/core": "1.99.1", | ||
"@tamagui/create-context": "1.99.1", | ||
"@tamagui/polyfill-dev": "1.99.1", | ||
"@tamagui/stacks": "1.99.1", | ||
"@tamagui/use-controllable-state": "1.99.1" | ||
"@tamagui/compose-refs": "1.100.0", | ||
"@tamagui/constants": "1.100.0", | ||
"@tamagui/core": "1.100.0", | ||
"@tamagui/create-context": "1.100.0", | ||
"@tamagui/polyfill-dev": "1.100.0", | ||
"@tamagui/stacks": "1.100.0", | ||
"@tamagui/use-controllable-state": "1.100.0" | ||
}, | ||
"devDependencies": { | ||
"@tamagui/build": "1.99.1", | ||
"@tamagui/build": "1.100.0", | ||
"react": "^18.2.0" | ||
@@ -47,0 +47,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
58182
896
+ Added@tamagui/compose-refs@1.100.0(transitive)
+ Added@tamagui/constants@1.100.0(transitive)
+ Added@tamagui/core@1.100.0(transitive)
+ Added@tamagui/create-context@1.100.0(transitive)
+ Added@tamagui/helpers@1.100.0(transitive)
+ Added@tamagui/normalize-css-color@1.100.0(transitive)
+ Added@tamagui/polyfill-dev@1.100.0(transitive)
+ Added@tamagui/react-native-use-pressable@1.100.0(transitive)
+ Added@tamagui/react-native-use-responder-events@1.100.0(transitive)
+ Added@tamagui/simple-hash@1.100.0(transitive)
+ Added@tamagui/stacks@1.100.0(transitive)
+ Added@tamagui/timer@1.100.0(transitive)
+ Added@tamagui/types@1.100.0(transitive)
+ Added@tamagui/use-controllable-state@1.100.0(transitive)
+ Added@tamagui/use-did-finish-ssr@1.100.0(transitive)
+ Added@tamagui/use-event@1.100.0(transitive)
+ Added@tamagui/use-force-update@1.100.0(transitive)
+ Added@tamagui/web@1.100.0(transitive)
- Removed@tamagui/compose-refs@1.99.1(transitive)
- Removed@tamagui/constants@1.99.1(transitive)
- Removed@tamagui/core@1.99.1(transitive)
- Removed@tamagui/create-context@1.99.1(transitive)
- Removed@tamagui/helpers@1.99.1(transitive)
- Removed@tamagui/normalize-css-color@1.99.1(transitive)
- Removed@tamagui/polyfill-dev@1.99.1(transitive)
- Removed@tamagui/react-native-use-pressable@1.99.1(transitive)
- Removed@tamagui/react-native-use-responder-events@1.99.1(transitive)
- Removed@tamagui/simple-hash@1.99.1(transitive)
- Removed@tamagui/stacks@1.99.1(transitive)
- Removed@tamagui/timer@1.99.1(transitive)
- Removed@tamagui/types@1.99.1(transitive)
- Removed@tamagui/use-controllable-state@1.99.1(transitive)
- Removed@tamagui/use-did-finish-ssr@1.99.1(transitive)
- Removed@tamagui/use-event@1.99.1(transitive)
- Removed@tamagui/use-force-update@1.99.1(transitive)
- Removed@tamagui/web@1.99.1(transitive)
Updated@tamagui/constants@1.100.0
Updated@tamagui/core@1.100.0
Updated@tamagui/stacks@1.100.0