@sunrise-upc/sales-static-components 4.1.3 → 4.2.0-beta.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.
- package/dist/cjs/components/FalconMainNavigation/CartOverlay/CartItems/CartItems.js +1 -1
- package/dist/cjs/components/FalconMainNavigation/CartOverlay/CartItems/CartItems.js.map +1 -1
- package/dist/cjs/components/FalconMainNavigation/CartOverlay/CartOverlay.js.map +1 -1
- package/dist/cjs/components/FalconMainNavigation/ProfileLinkOut/ProfileLinkOut.js +1 -1
- package/dist/cjs/components/FalconMainNavigation/ProfileLinkOut/ProfileLinkOut.js.map +1 -1
- package/dist/cjs/node_modules/@algolia/client-common/dist/common.js +1 -1
- package/dist/cjs/node_modules/@algolia/client-common/dist/common.js.map +1 -1
- package/dist/cjs/node_modules/@algolia/requester-browser-xhr/dist/requester.xhr.js +1 -1
- package/dist/cjs/node_modules/@algolia/requester-browser-xhr/dist/requester.xhr.js.map +1 -1
- package/dist/cjs/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +1 -1
- package/dist/cjs/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js.map +1 -1
- package/dist/cjs/node_modules/algoliasearch/dist/lite/builds/browser.js +1 -1
- package/dist/cjs/node_modules/algoliasearch/dist/lite/builds/browser.js.map +1 -1
- package/dist/cjs/node_modules/algoliasearch-helper/src/SearchParameters/RefinementList.js.map +1 -1
- package/dist/cjs/node_modules/algoliasearch-helper/src/SearchParameters/index.js.map +1 -1
- package/dist/cjs/node_modules/algoliasearch-helper/src/SearchResults/index.js.map +1 -1
- package/dist/cjs/node_modules/algoliasearch-helper/src/algoliasearch.helper.js +1 -1
- package/dist/cjs/node_modules/algoliasearch-helper/src/algoliasearch.helper.js.map +1 -1
- package/dist/cjs/node_modules/algoliasearch-helper/src/utils/sortAndMergeRecommendations.js.map +1 -1
- package/dist/cjs/node_modules/algoliasearch-helper/src/version.js +1 -1
- package/dist/cjs/node_modules/algoliasearch-helper/src/version.js.map +1 -1
- package/dist/cjs/node_modules/immer/dist/immer.js +1 -1
- package/dist/cjs/node_modules/immer/dist/immer.js.map +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/helpers/insights.js +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/helpers/insights.js.map +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/lib/InstantSearch.js +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/lib/InstantSearch.js.map +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/lib/chat/openChat.js +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/lib/chat/openChat.js.map +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/lib/utils/addInsightsToRecommendParameters.js +2 -0
- package/dist/cjs/node_modules/instantsearch.js/es/lib/utils/addInsightsToRecommendParameters.js.map +1 -0
- package/dist/cjs/node_modules/instantsearch.js/es/lib/utils/buildWidgetTree.js +2 -0
- package/dist/cjs/node_modules/instantsearch.js/es/lib/utils/buildWidgetTree.js.map +1 -0
- package/dist/cjs/node_modules/instantsearch.js/es/lib/utils/defer.js +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/lib/utils/defer.js.map +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/lib/utils/extractWidgetPayload.js +2 -0
- package/dist/cjs/node_modules/instantsearch.js/es/lib/utils/extractWidgetPayload.js.map +1 -0
- package/dist/cjs/node_modules/instantsearch.js/es/lib/utils/getHighlightFromSiblings.js +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/lib/utils/getHighlightFromSiblings.js.map +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/lib/utils/now.js +2 -0
- package/dist/cjs/node_modules/instantsearch.js/es/lib/utils/now.js.map +1 -0
- package/dist/cjs/node_modules/instantsearch.js/es/lib/utils/omit.js +2 -0
- package/dist/cjs/node_modules/instantsearch.js/es/lib/utils/omit.js.map +1 -0
- package/dist/cjs/node_modules/instantsearch.js/es/lib/utils/render-args.js +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/lib/utils/render-args.js.map +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/lib/version.js +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/lib/version.js.map +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/middlewares/createInsightsMiddleware.js +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/middlewares/createInsightsMiddleware.js.map +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/middlewares/createMetadataMiddleware.js +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/middlewares/createMetadataMiddleware.js.map +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/widgets/index/index.js +1 -1
- package/dist/cjs/node_modules/instantsearch.js/es/widgets/index/index.js.map +1 -1
- package/dist/cjs/node_modules/qs/lib/parse.js +1 -1
- package/dist/cjs/node_modules/qs/lib/parse.js.map +1 -1
- package/dist/cjs/node_modules/qs/lib/stringify.js +1 -1
- package/dist/cjs/node_modules/qs/lib/stringify.js.map +1 -1
- package/dist/cjs/node_modules/qs/lib/utils.js +1 -1
- package/dist/cjs/node_modules/qs/lib/utils.js.map +1 -1
- package/dist/cjs/node_modules/react-instantsearch/dist/es/ui/SearchBox.js +1 -1
- package/dist/cjs/node_modules/react-instantsearch/dist/es/ui/SearchBox.js.map +1 -1
- package/dist/cjs/node_modules/react-instantsearch-core/dist/es/hooks/useConnector.js +1 -1
- package/dist/cjs/node_modules/react-instantsearch-core/dist/es/hooks/useConnector.js.map +1 -1
- package/dist/cjs/node_modules/react-instantsearch-core/dist/es/lib/InstantSearchRSCContext.js +1 -1
- package/dist/cjs/node_modules/react-instantsearch-core/dist/es/lib/InstantSearchRSCContext.js.map +1 -1
- package/dist/cjs/node_modules/react-instantsearch-core/dist/es/lib/useWidget.js +1 -1
- package/dist/cjs/node_modules/react-instantsearch-core/dist/es/lib/useWidget.js.map +1 -1
- package/dist/cjs/node_modules/react-instantsearch-core/dist/es/version.js +1 -1
- package/dist/cjs/node_modules/react-instantsearch-core/dist/es/version.js.map +1 -1
- package/dist/esm/components/FalconMainNavigation/CartOverlay/CartItems/CartItems.js +1 -1
- package/dist/esm/components/FalconMainNavigation/CartOverlay/CartItems/CartItems.js.map +1 -1
- package/dist/esm/components/FalconMainNavigation/CartOverlay/CartOverlay.js.map +1 -1
- package/dist/esm/components/FalconMainNavigation/ProfileLinkOut/ProfileLinkOut.js +1 -1
- package/dist/esm/components/FalconMainNavigation/ProfileLinkOut/ProfileLinkOut.js.map +1 -1
- package/dist/esm/node_modules/@algolia/client-common/dist/common.js +1 -1
- package/dist/esm/node_modules/@algolia/client-common/dist/common.js.map +1 -1
- package/dist/esm/node_modules/@algolia/requester-browser-xhr/dist/requester.xhr.js +1 -1
- package/dist/esm/node_modules/@algolia/requester-browser-xhr/dist/requester.xhr.js.map +1 -1
- package/dist/esm/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +1 -1
- package/dist/esm/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js.map +1 -1
- package/dist/esm/node_modules/algoliasearch/dist/lite/builds/browser.js +1 -1
- package/dist/esm/node_modules/algoliasearch/dist/lite/builds/browser.js.map +1 -1
- package/dist/esm/node_modules/algoliasearch-helper/src/SearchParameters/RefinementList.js.map +1 -1
- package/dist/esm/node_modules/algoliasearch-helper/src/SearchParameters/index.js.map +1 -1
- package/dist/esm/node_modules/algoliasearch-helper/src/SearchResults/index.js.map +1 -1
- package/dist/esm/node_modules/algoliasearch-helper/src/algoliasearch.helper.js +1 -1
- package/dist/esm/node_modules/algoliasearch-helper/src/algoliasearch.helper.js.map +1 -1
- package/dist/esm/node_modules/algoliasearch-helper/src/utils/sortAndMergeRecommendations.js.map +1 -1
- package/dist/esm/node_modules/algoliasearch-helper/src/version.js +1 -1
- package/dist/esm/node_modules/algoliasearch-helper/src/version.js.map +1 -1
- package/dist/esm/node_modules/immer/dist/immer.js +1 -1
- package/dist/esm/node_modules/immer/dist/immer.js.map +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/helpers/insights.js +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/helpers/insights.js.map +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/lib/InstantSearch.js +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/lib/InstantSearch.js.map +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/lib/chat/openChat.js +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/lib/chat/openChat.js.map +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/lib/utils/addInsightsToRecommendParameters.js +2 -0
- package/dist/esm/node_modules/instantsearch.js/es/lib/utils/addInsightsToRecommendParameters.js.map +1 -0
- package/dist/esm/node_modules/instantsearch.js/es/lib/utils/buildWidgetTree.js +2 -0
- package/dist/esm/node_modules/instantsearch.js/es/lib/utils/buildWidgetTree.js.map +1 -0
- package/dist/esm/node_modules/instantsearch.js/es/lib/utils/defer.js +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/lib/utils/defer.js.map +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/lib/utils/extractWidgetPayload.js +2 -0
- package/dist/esm/node_modules/instantsearch.js/es/lib/utils/extractWidgetPayload.js.map +1 -0
- package/dist/esm/node_modules/instantsearch.js/es/lib/utils/getHighlightFromSiblings.js +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/lib/utils/getHighlightFromSiblings.js.map +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/lib/utils/now.js +2 -0
- package/dist/esm/node_modules/instantsearch.js/es/lib/utils/now.js.map +1 -0
- package/dist/esm/node_modules/instantsearch.js/es/lib/utils/omit.js +2 -0
- package/dist/esm/node_modules/instantsearch.js/es/lib/utils/omit.js.map +1 -0
- package/dist/esm/node_modules/instantsearch.js/es/lib/utils/render-args.js +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/lib/utils/render-args.js.map +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/lib/version.js +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/lib/version.js.map +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/middlewares/createInsightsMiddleware.js +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/middlewares/createInsightsMiddleware.js.map +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/middlewares/createMetadataMiddleware.js +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/middlewares/createMetadataMiddleware.js.map +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/widgets/index/index.js +1 -1
- package/dist/esm/node_modules/instantsearch.js/es/widgets/index/index.js.map +1 -1
- package/dist/esm/node_modules/qs/lib/parse.js +1 -1
- package/dist/esm/node_modules/qs/lib/parse.js.map +1 -1
- package/dist/esm/node_modules/qs/lib/stringify.js +1 -1
- package/dist/esm/node_modules/qs/lib/stringify.js.map +1 -1
- package/dist/esm/node_modules/qs/lib/utils.js +1 -1
- package/dist/esm/node_modules/qs/lib/utils.js.map +1 -1
- package/dist/esm/node_modules/react-instantsearch/dist/es/ui/SearchBox.js +1 -1
- package/dist/esm/node_modules/react-instantsearch/dist/es/ui/SearchBox.js.map +1 -1
- package/dist/esm/node_modules/react-instantsearch-core/dist/es/hooks/useConnector.js +1 -1
- package/dist/esm/node_modules/react-instantsearch-core/dist/es/hooks/useConnector.js.map +1 -1
- package/dist/esm/node_modules/react-instantsearch-core/dist/es/lib/InstantSearchRSCContext.js +1 -1
- package/dist/esm/node_modules/react-instantsearch-core/dist/es/lib/InstantSearchRSCContext.js.map +1 -1
- package/dist/esm/node_modules/react-instantsearch-core/dist/es/lib/useWidget.js +1 -1
- package/dist/esm/node_modules/react-instantsearch-core/dist/es/lib/useWidget.js.map +1 -1
- package/dist/esm/node_modules/react-instantsearch-core/dist/es/version.js +1 -1
- package/dist/esm/node_modules/react-instantsearch-core/dist/es/version.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/navigation.css +20 -20
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useConnector.js","sources":["../../../../../../../node_modules/react-instantsearch-core/dist/es/hooks/useConnector.js"],"sourcesContent":["import { _ as _$3 } from '@swc/helpers/esm/_object_spread.js';\nimport { _ as _$2 } from '@swc/helpers/esm/_object_without_properties.js';\nimport { _ as _$1 } from '@swc/helpers/esm/_sliced_to_array.js';\nimport { _ } from '@swc/helpers/esm/_to_array.js';\nimport { useRef, useMemo, useState } from 'react';\nimport { dequal } from '../lib/dequal.js';\nimport { getIndexSearchResults } from '../lib/getIndexSearchResults.js';\nimport { useIndexContext } from '../lib/useIndexContext.js';\nimport { useInstantSearchContext } from '../lib/useInstantSearchContext.js';\nimport { useInstantSearchServerContext } from '../lib/useInstantSearchServerContext.js';\nimport { useInstantSearchSSRContext } from '../lib/useInstantSearchSSRContext.js';\nimport { useStableValue } from '../lib/useStableValue.js';\nimport { useWidget } from '../lib/useWidget.js';\n\nfunction useConnector(connector) {\n var _1 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : void 0, _2 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0;\n var _ref = [\n _1,\n _2\n ], _ref1 = _(_ref), tmp = _ref1[0], props = tmp === void 0 ? {} : tmp, _rest = _ref1.slice(1), _rest1 = _$1(_rest, 1), tmp1 = _rest1[0], _ref2 = tmp1 === void 0 ? {} : tmp1, _ref_skipSuspense = _ref2.skipSuspense, skipSuspense = _ref_skipSuspense === void 0 ? false : _ref_skipSuspense, additionalWidgetProperties = _$2(_ref2, [\n \"skipSuspense\"\n ]);\n var serverContext = useInstantSearchServerContext();\n var ssrContext = useInstantSearchSSRContext();\n var search = useInstantSearchContext();\n var parentIndex = useIndexContext();\n var stableProps = useStableValue(props);\n var stableAdditionalWidgetProperties = useStableValue(additionalWidgetProperties);\n var shouldSetStateRef = useRef(true);\n var previousRenderStateRef = useRef(null);\n var previousStatusRef = useRef(search.status);\n var widget = useMemo(function() {\n var createWidget = connector(function(connectorState, isFirstRender) {\n // We skip the `init` widget render because:\n // - We rely on `getWidgetRenderState` to compute the initial state before\n // the InstantSearch.js lifecycle starts.\n // - It prevents UI flashes when updating the widget props.\n if (isFirstRender) {\n shouldSetStateRef.current = true;\n return;\n }\n // There are situations where InstantSearch.js may render widgets slightly\n // after they're removed by React, and thus try to update the React state\n // on unmounted components. React 16 and 17 consider them as memory leaks\n // and display a warning.\n // This happens in <DynamicWidgets> when `attributesToRender` contains a\n // value without an attribute previously mounted. React will unmount the\n // component controlled by that attribute, but InstantSearch.js will stay\n // unaware of this change until the render pass finishes, and therefore\n // notifies of a state change.\n // This ref lets us track this situation and ignore these state updates.\n if (shouldSetStateRef.current) {\n var instantSearchInstance = connectorState.instantSearchInstance; connectorState.widgetParams; var renderState = _$2(connectorState, [\n \"instantSearchInstance\",\n \"widgetParams\"\n ]);\n // We only update the state when a widget render state param changes,\n // except for functions. We ignore function reference changes to avoid\n // infinite loops. It's safe to omit them because they get updated\n // every time another render param changes.\n if (!dequal(renderState, previousRenderStateRef.current, function(a, b) {\n return (a === null || a === void 0 ? void 0 : a.constructor) === Function && (b === null || b === void 0 ? void 0 : b.constructor) === Function;\n }) || instantSearchInstance.status !== previousStatusRef.current) {\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n setState(renderState);\n previousRenderStateRef.current = renderState;\n previousStatusRef.current = instantSearchInstance.status;\n }\n }\n }, function() {\n // We'll ignore the next state update until we know for sure that\n // InstantSearch.js re-inits the component.\n shouldSetStateRef.current = false;\n });\n return _$3({}, createWidget(stableProps), stableAdditionalWidgetProperties);\n }, [\n connector,\n stableProps,\n stableAdditionalWidgetProperties\n ]);\n var _useState = _$1(useState(function() {\n if (widget.getWidgetRenderState) {\n var _widget_getWidgetSearchParameters;\n // The helper exists because we've started InstantSearch.\n var helper = parentIndex.getHelper();\n var uiState = parentIndex.getWidgetUiState({})[parentIndex.getIndexId()];\n helper.state = ((_widget_getWidgetSearchParameters = widget.getWidgetSearchParameters) === null || _widget_getWidgetSearchParameters === void 0 ? void 0 : _widget_getWidgetSearchParameters.call(widget, helper.state, {\n uiState: uiState\n })) || helper.state;\n var _getIndexSearchResults = getIndexSearchResults(parentIndex), results = _getIndexSearchResults.results, scopedResults = _getIndexSearchResults.scopedResults, recommendResults = _getIndexSearchResults.recommendResults;\n // We get the widget render state by providing the same parameters as\n // InstantSearch provides to the widget's `render` method.\n // See https://github.com/algolia/instantsearch/blob/019cd18d0de6dd320284aa4890541b7fe2198c65/src/widgets/index/index.ts#L604-L617\n var _widget_getWidgetRenderState = widget.getWidgetRenderState({\n helper: helper,\n parent: parentIndex,\n instantSearchInstance: search,\n results: widget.dependsOn === 'recommend' && recommendResults && ssrContext ? recommendResults[ssrContext.recommendIdx.current++] : results,\n scopedResults: scopedResults,\n state: helper.state,\n renderState: search.renderState,\n templatesConfig: search.templatesConfig,\n createURL: parentIndex.createURL,\n searchMetadata: {\n isSearchStalled: search.status === 'stalled'\n },\n status: search.status,\n error: search.error\n }); _widget_getWidgetRenderState.widgetParams; var renderState = _$2(_widget_getWidgetRenderState, [\n \"widgetParams\"\n ]);\n return renderState;\n }\n return {};\n }), 2), state = _useState[0], setState = _useState[1];\n useWidget({\n widget: widget,\n parentIndex: parentIndex,\n props: stableProps,\n shouldSsr: Boolean(serverContext),\n skipSuspense: skipSuspense\n });\n return state;\n}\n\nexport { useConnector };\n"],"names":["useConnector","connector","_ref1","_","arguments","length","tmp","props","_rest","slice","tmp1","_$1","_ref2","_ref_skipSuspense","skipSuspense","additionalWidgetProperties","_$2","serverContext","useInstantSearchServerContext","ssrContext","useInstantSearchSSRContext","search","useInstantSearchContext","parentIndex","useIndexContext","stableProps","useStableValue","stableAdditionalWidgetProperties","shouldSetStateRef","useRef","previousRenderStateRef","previousStatusRef","status","widget","useMemo","createWidget","connectorState","isFirstRender","current","instantSearchInstance","widgetParams","renderState","dequal","a","b","constructor","Function","setState","_$3","_useState","useState","getWidgetRenderState","_widget_getWidgetSearchParameters","helper","getHelper","uiState","getWidgetUiState","getIndexId","state","getWidgetSearchParameters","call","_getIndexSearchResults","getIndexSearchResults","results","scopedResults","recommendResults","_widget_getWidgetRenderState","parent","dependsOn","recommendIdx","templatesConfig","createURL","searchMetadata","isSearchStalled","error","useWidget","shouldSsr","Boolean"],"mappings":"61BAcA,SAASA,EAAaC,GAClB,IAIGC,EAAQC,EAHA,CADFC,UAAUC,OAAS,QAAsB,IAAjBD,UAAU,GAAgBA,UAAU,QAAK,EAAaA,UAAUC,OAAS,QAAsB,IAAjBD,UAAU,GAAgBA,UAAU,QAAK,IAIpIE,EAAMJ,EAAM,GAAIK,OAAgB,IAARD,EAAiB,GAAKA,EAAKE,EAAQN,EAAMO,MAAM,GAA4BC,EAAfC,EAAIH,EAAO,GAAkB,GAAII,OAAiB,IAATF,EAAkB,CAAA,EAAKA,EAAMG,EAAoBD,EAAME,aAAcA,OAAqC,IAAtBD,GAAuCA,EAAmBE,EAA6BC,EAAIJ,EAAO,CACnU,iBAEAK,EAAgBC,IAChBC,EAAaC,IACbC,EAASC,IACTC,EAAcC,IACdC,EAAcC,EAAenB,GAC7BoB,EAAmCD,EAAeX,GAClDa,EAAoBC,GAAO,GAC3BC,EAAyBD,EAAO,MAChCE,EAAoBF,EAAOR,EAAOW,QAClCC,EAASC,EAAQ,WACjB,IAAIC,EAAelC,EAAU,SAASmC,EAAgBC,GAKlD,GAAIA,EACAT,EAAkBU,SAAU,OAahC,GAAIV,EAAkBU,QAAS,CAC3B,IAAIC,EAAwBH,EAAeG,sBAAuBH,EAAeI,aAAc,IAAIC,EAAczB,EAAIoB,EAAgB,CACjI,wBACA,iBAMCM,EAAOD,EAAaX,EAAuBQ,QAAS,SAASK,EAAGC,GACjE,OAAQD,aAA6B,EAASA,EAAEE,eAAiBC,WAAaF,aAA6B,EAASA,EAAEC,eAAiBC,QAC3I,IAAMP,EAAsBP,SAAWD,EAAkBO,UAErDS,EAASN,GACTX,EAAuBQ,QAAUG,EACjCV,EAAkBO,QAAUC,EAAsBP,OAE1D,CACJ,EAAG,WAGCJ,EAAkBU,SAAU,CAChC,GACA,OAAOU,EAAI,CAAA,EAAIb,EAAaV,GAAcE,EAC9C,EAAG,CACC1B,EACAwB,EACAE,IAEAsB,EAAYtC,EAAIuC,EAAS,WACzB,GAAIjB,EAAOkB,qBAAsB,CAC7B,IAAIC,EAEAC,EAAS9B,EAAY+B,YACrBC,EAAUhC,EAAYiC,iBAAiB,CAAA,GAAIjC,EAAYkC,cAC3DJ,EAAOK,OAAoF,QAA1EN,EAAoCnB,EAAO0B,iCAA6E,IAAtCP,OAA+C,EAASA,EAAkCQ,KAAK3B,EAAQoB,EAAOK,MAAO,CACpNH,QAASA,MACNF,EAAOK,MACd,IAAIG,EAAyBC,EAAsBvC,GAAcwC,EAAUF,EAAuBE,QAASC,EAAgBH,EAAuBG,cAAeC,EAAmBJ,EAAuBI,iBAIvMC,EAA+BjC,EAAOkB,qBAAqB,CAC3DE,OAAQA,EACRc,OAAQ5C,EACRgB,sBAAuBlB,EACvB0C,QAA8B,cAArB9B,EAAOmC,WAA6BH,GAAoB9C,EAAa8C,EAAiB9C,EAAWkD,aAAa/B,WAAayB,EACpIC,cAAeA,EACfN,MAAOL,EAAOK,MACdjB,YAAapB,EAAOoB,YACpB6B,gBAAiBjD,EAAOiD,gBACxBC,UAAWhD,EAAYgD,UACvBC,eAAgB,CACZC,gBAAmC,YAAlBpD,EAAOW,QAE5BA,OAAQX,EAAOW,OACf0C,MAAOrD,EAAOqD,QAIlB,OAHIR,EAA6B1B,aAAgCxB,EAAIkD,EAA8B,CAC/F,gBAGR,CACA,MAAO,CAAA,CACX,GAAI,GAAIR,EAAQT,EAAU,GAAIF,EAAWE,EAAU,GAQnD,OAPA0B,EAAU,CACN1C,OAAQA,EACRV,YAAaA,EACbhB,MAAOkB,EACPmD,UAAWC,QAAQ5D,GACnBH,aAAcA,IAEX4C,CACX","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"useConnector.js","sources":["../../../../../../../node_modules/react-instantsearch-core/dist/es/hooks/useConnector.js"],"sourcesContent":["import { _ as _$3 } from '@swc/helpers/esm/_object_spread.js';\nimport { _ as _$2 } from '@swc/helpers/esm/_object_without_properties.js';\nimport { _ as _$1 } from '@swc/helpers/esm/_sliced_to_array.js';\nimport { _ } from '@swc/helpers/esm/_to_array.js';\nimport { useRef, useMemo, useState } from 'react';\nimport { dequal } from '../lib/dequal.js';\nimport { getIndexSearchResults } from '../lib/getIndexSearchResults.js';\nimport { useIndexContext } from '../lib/useIndexContext.js';\nimport { useInstantSearchContext } from '../lib/useInstantSearchContext.js';\nimport { useInstantSearchServerContext } from '../lib/useInstantSearchServerContext.js';\nimport { useInstantSearchSSRContext } from '../lib/useInstantSearchSSRContext.js';\nimport { useStableValue } from '../lib/useStableValue.js';\nimport { useWidget } from '../lib/useWidget.js';\n\nfunction useConnector(connector) {\n var _1 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : void 0, _2 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0;\n var _ref = [\n _1,\n _2\n ], _ref1 = _(_ref), tmp = _ref1[0], props = tmp === void 0 ? {} : tmp, _rest = _ref1.slice(1), _rest1 = _$1(_rest, 1), tmp1 = _rest1[0], _ref2 = tmp1 === void 0 ? {} : tmp1, _ref_skipSuspense = _ref2.skipSuspense, skipSuspense = _ref_skipSuspense === void 0 ? false : _ref_skipSuspense, additionalWidgetProperties = _$2(_ref2, [\n \"skipSuspense\"\n ]);\n var serverContext = useInstantSearchServerContext();\n var ssrContext = useInstantSearchSSRContext();\n var search = useInstantSearchContext();\n var parentIndex = useIndexContext();\n var stableProps = useStableValue(props);\n var stableAdditionalWidgetProperties = useStableValue(additionalWidgetProperties);\n var shouldSetStateRef = useRef(true);\n var previousRenderStateRef = useRef(null);\n var previousStatusRef = useRef(search.status);\n var widget = useMemo(function() {\n var createWidget = connector(function(connectorState, isFirstRender) {\n // We skip the `init` widget render because:\n // - We rely on `getWidgetRenderState` to compute the initial state before\n // the InstantSearch.js lifecycle starts.\n // - It prevents UI flashes when updating the widget props.\n if (isFirstRender) {\n shouldSetStateRef.current = true;\n return;\n }\n // There are situations where InstantSearch.js may render widgets slightly\n // after they're removed by React, and thus try to update the React state\n // on unmounted components. React 16 and 17 consider them as memory leaks\n // and display a warning.\n // This happens in <DynamicWidgets> when `attributesToRender` contains a\n // value without an attribute previously mounted. React will unmount the\n // component controlled by that attribute, but InstantSearch.js will stay\n // unaware of this change until the render pass finishes, and therefore\n // notifies of a state change.\n // This ref lets us track this situation and ignore these state updates.\n if (shouldSetStateRef.current) {\n var instantSearchInstance = connectorState.instantSearchInstance; connectorState.widgetParams; var renderState = _$2(connectorState, [\n \"instantSearchInstance\",\n \"widgetParams\"\n ]);\n // We only update the state when a widget render state param changes,\n // except for functions. We ignore function reference changes to avoid\n // infinite loops. It's safe to omit them because they get updated\n // every time another render param changes.\n if (!dequal(renderState, previousRenderStateRef.current, function(a, b) {\n return (a === null || a === void 0 ? void 0 : a.constructor) === Function && (b === null || b === void 0 ? void 0 : b.constructor) === Function;\n }) || instantSearchInstance.status !== previousStatusRef.current) {\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n setState(renderState);\n previousRenderStateRef.current = renderState;\n previousStatusRef.current = instantSearchInstance.status;\n }\n }\n }, function() {\n // We'll ignore the next state update until we know for sure that\n // InstantSearch.js re-inits the component.\n shouldSetStateRef.current = false;\n });\n return _$3({}, createWidget(stableProps), stableAdditionalWidgetProperties);\n }, [\n connector,\n stableProps,\n stableAdditionalWidgetProperties\n ]);\n var _useState = _$1(useState(function() {\n if (widget.getWidgetRenderState) {\n var _widget_getWidgetSearchParameters;\n // The helper exists because we've started InstantSearch.\n var helper = parentIndex.getHelper();\n var uiState = parentIndex.getWidgetUiState({})[parentIndex.getIndexId()];\n helper.state = ((_widget_getWidgetSearchParameters = widget.getWidgetSearchParameters) === null || _widget_getWidgetSearchParameters === void 0 ? void 0 : _widget_getWidgetSearchParameters.call(widget, helper.state, {\n uiState: uiState\n })) || helper.state;\n var _getIndexSearchResults = getIndexSearchResults(parentIndex), results = _getIndexSearchResults.results, scopedResults = _getIndexSearchResults.scopedResults, recommendResults = _getIndexSearchResults.recommendResults;\n // We get the widget render state by providing the same parameters as\n // InstantSearch provides to the widget's `render` method.\n // See https://github.com/algolia/instantsearch/blob/019cd18d0de6dd320284aa4890541b7fe2198c65/src/widgets/index/index.ts#L604-L617\n var _widget_getWidgetRenderState = widget.getWidgetRenderState({\n helper: helper,\n parent: parentIndex,\n instantSearchInstance: search,\n results: widget.dependsOn === 'recommend' && recommendResults && ssrContext ? recommendResults[ssrContext.recommendIdx.current++] : results,\n scopedResults: scopedResults,\n state: helper.state,\n renderState: search.renderState,\n templatesConfig: search.templatesConfig,\n createURL: parentIndex.createURL,\n searchMetadata: {\n isSearchStalled: search.status === 'stalled'\n },\n status: search.status,\n error: search.error\n }); _widget_getWidgetRenderState.widgetParams; var renderState = _$2(_widget_getWidgetRenderState, [\n \"widgetParams\"\n ]);\n return renderState;\n }\n return {};\n }), 2), state = _useState[0], setState = _useState[1];\n useWidget({\n widget: widget,\n parentIndex: parentIndex,\n props: [\n stableProps,\n stableAdditionalWidgetProperties\n ],\n shouldSsr: Boolean(serverContext),\n skipSuspense: skipSuspense\n });\n return state;\n}\n\nexport { useConnector };\n"],"names":["useConnector","connector","_ref1","_","arguments","length","tmp","props","_rest","slice","tmp1","_$1","_ref2","_ref_skipSuspense","skipSuspense","additionalWidgetProperties","_$2","serverContext","useInstantSearchServerContext","ssrContext","useInstantSearchSSRContext","search","useInstantSearchContext","parentIndex","useIndexContext","stableProps","useStableValue","stableAdditionalWidgetProperties","shouldSetStateRef","useRef","previousRenderStateRef","previousStatusRef","status","widget","useMemo","createWidget","connectorState","isFirstRender","current","instantSearchInstance","widgetParams","renderState","dequal","a","b","constructor","Function","setState","_$3","_useState","useState","getWidgetRenderState","_widget_getWidgetSearchParameters","helper","getHelper","uiState","getWidgetUiState","getIndexId","state","getWidgetSearchParameters","call","_getIndexSearchResults","getIndexSearchResults","results","scopedResults","recommendResults","_widget_getWidgetRenderState","parent","dependsOn","recommendIdx","templatesConfig","createURL","searchMetadata","isSearchStalled","error","useWidget","shouldSsr","Boolean"],"mappings":"61BAcA,SAASA,EAAaC,GAClB,IAIGC,EAAQC,EAHA,CADFC,UAAUC,OAAS,QAAsB,IAAjBD,UAAU,GAAgBA,UAAU,QAAK,EAAaA,UAAUC,OAAS,QAAsB,IAAjBD,UAAU,GAAgBA,UAAU,QAAK,IAIpIE,EAAMJ,EAAM,GAAIK,OAAgB,IAARD,EAAiB,GAAKA,EAAKE,EAAQN,EAAMO,MAAM,GAA4BC,EAAfC,EAAIH,EAAO,GAAkB,GAAII,OAAiB,IAATF,EAAkB,CAAA,EAAKA,EAAMG,EAAoBD,EAAME,aAAcA,OAAqC,IAAtBD,GAAuCA,EAAmBE,EAA6BC,EAAIJ,EAAO,CACnU,iBAEAK,EAAgBC,IAChBC,EAAaC,IACbC,EAASC,IACTC,EAAcC,IACdC,EAAcC,EAAenB,GAC7BoB,EAAmCD,EAAeX,GAClDa,EAAoBC,GAAO,GAC3BC,EAAyBD,EAAO,MAChCE,EAAoBF,EAAOR,EAAOW,QAClCC,EAASC,EAAQ,WACjB,IAAIC,EAAelC,EAAU,SAASmC,EAAgBC,GAKlD,GAAIA,EACAT,EAAkBU,SAAU,OAahC,GAAIV,EAAkBU,QAAS,CAC3B,IAAIC,EAAwBH,EAAeG,sBAAuBH,EAAeI,aAAc,IAAIC,EAAczB,EAAIoB,EAAgB,CACjI,wBACA,iBAMCM,EAAOD,EAAaX,EAAuBQ,QAAS,SAASK,EAAGC,GACjE,OAAQD,aAA6B,EAASA,EAAEE,eAAiBC,WAAaF,aAA6B,EAASA,EAAEC,eAAiBC,QAC3I,IAAMP,EAAsBP,SAAWD,EAAkBO,UAErDS,EAASN,GACTX,EAAuBQ,QAAUG,EACjCV,EAAkBO,QAAUC,EAAsBP,OAE1D,CACJ,EAAG,WAGCJ,EAAkBU,SAAU,CAChC,GACA,OAAOU,EAAI,CAAA,EAAIb,EAAaV,GAAcE,EAC9C,EAAG,CACC1B,EACAwB,EACAE,IAEAsB,EAAYtC,EAAIuC,EAAS,WACzB,GAAIjB,EAAOkB,qBAAsB,CAC7B,IAAIC,EAEAC,EAAS9B,EAAY+B,YACrBC,EAAUhC,EAAYiC,iBAAiB,CAAA,GAAIjC,EAAYkC,cAC3DJ,EAAOK,OAAoF,QAA1EN,EAAoCnB,EAAO0B,iCAA6E,IAAtCP,OAA+C,EAASA,EAAkCQ,KAAK3B,EAAQoB,EAAOK,MAAO,CACpNH,QAASA,MACNF,EAAOK,MACd,IAAIG,EAAyBC,EAAsBvC,GAAcwC,EAAUF,EAAuBE,QAASC,EAAgBH,EAAuBG,cAAeC,EAAmBJ,EAAuBI,iBAIvMC,EAA+BjC,EAAOkB,qBAAqB,CAC3DE,OAAQA,EACRc,OAAQ5C,EACRgB,sBAAuBlB,EACvB0C,QAA8B,cAArB9B,EAAOmC,WAA6BH,GAAoB9C,EAAa8C,EAAiB9C,EAAWkD,aAAa/B,WAAayB,EACpIC,cAAeA,EACfN,MAAOL,EAAOK,MACdjB,YAAapB,EAAOoB,YACpB6B,gBAAiBjD,EAAOiD,gBACxBC,UAAWhD,EAAYgD,UACvBC,eAAgB,CACZC,gBAAmC,YAAlBpD,EAAOW,QAE5BA,OAAQX,EAAOW,OACf0C,MAAOrD,EAAOqD,QAIlB,OAHIR,EAA6B1B,aAAgCxB,EAAIkD,EAA8B,CAC/F,gBAGR,CACA,MAAO,CAAA,CACX,GAAI,GAAIR,EAAQT,EAAU,GAAIF,EAAWE,EAAU,GAWnD,OAVA0B,EAAU,CACN1C,OAAQA,EACRV,YAAaA,EACbhB,MAAO,CACHkB,EACAE,GAEJiD,UAAWC,QAAQ5D,GACnBH,aAAcA,IAEX4C,CACX","x_google_ignoreList":[0]}
|
package/dist/esm/node_modules/react-instantsearch-core/dist/es/lib/InstantSearchRSCContext.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createContext as r}from"react";var e=r({countRef:{current:0},waitForResultsRef:null,ignoreMultipleHooksWarning:!1});export{e as InstantSearchRSCContext};
|
|
1
|
+
import{createContext as r}from"react";var e=r({countRef:{current:0},waitForResultsRef:null,resolveWaitForResultsRef:{current:null},ignoreMultipleHooksWarning:!1});export{e as InstantSearchRSCContext};
|
|
2
2
|
//# sourceMappingURL=InstantSearchRSCContext.js.map
|
package/dist/esm/node_modules/react-instantsearch-core/dist/es/lib/InstantSearchRSCContext.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InstantSearchRSCContext.js","sources":["../../../../../../../node_modules/react-instantsearch-core/dist/es/lib/InstantSearchRSCContext.js"],"sourcesContent":["import { createContext } from 'react';\n\nvar InstantSearchRSCContext = createContext({\n countRef: {\n current: 0\n },\n waitForResultsRef: null,\n ignoreMultipleHooksWarning: false\n});\n\nexport { InstantSearchRSCContext };\n"],"names":["InstantSearchRSCContext","createContext","countRef","current","waitForResultsRef","ignoreMultipleHooksWarning"],"mappings":"sCAEG,IAACA,EAA0BC,EAAc,CACxCC,SAAU,CACNC,QAAS,GAEbC,kBAAmB,KACnBC,4BAA4B","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"InstantSearchRSCContext.js","sources":["../../../../../../../node_modules/react-instantsearch-core/dist/es/lib/InstantSearchRSCContext.js"],"sourcesContent":["import { createContext } from 'react';\n\nvar InstantSearchRSCContext = createContext({\n countRef: {\n current: 0\n },\n waitForResultsRef: null,\n resolveWaitForResultsRef: {\n current: null\n },\n ignoreMultipleHooksWarning: false\n});\n\nexport { InstantSearchRSCContext };\n"],"names":["InstantSearchRSCContext","createContext","countRef","current","waitForResultsRef","resolveWaitForResultsRef","ignoreMultipleHooksWarning"],"mappings":"sCAEG,IAACA,EAA0BC,EAAc,CACxCC,SAAU,CACNC,QAAS,GAEbC,kBAAmB,KACnBC,yBAA0B,CACtBF,QAAS,MAEbG,4BAA4B","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{useRef as t,useEffect as e}from"react";import{dequal as r}from"./dequal.js";import{use as n}from"./use.js";import{useInstantSearchContext as u}from"./useInstantSearchContext.js";import{useIsomorphicLayoutEffect as o}from"./useIsomorphicLayoutEffect.js";import{useRSCContext as i}from"./useRSCContext.js";import{isTwoPassWidget as s}from"../../../../instantsearch.js/es/lib/utils/isTwoPassWidget.js";function l(l){var c,d,a=l.widget,f=l.parentIndex,
|
|
1
|
+
import{useRef as t,useEffect as e}from"react";import{dequal as r}from"./dequal.js";import{use as n}from"./use.js";import{useInstantSearchContext as u}from"./useInstantSearchContext.js";import{useIsomorphicLayoutEffect as o}from"./useIsomorphicLayoutEffect.js";import{useRSCContext as i}from"./useRSCContext.js";import{isTwoPassWidget as s}from"../../../../instantsearch.js/es/lib/utils/isTwoPassWidget.js";function l(l){var c,d,a=l.widget,f=l.parentIndex,p=l.props,m=l.shouldSsr,v=l.skipSuspense,g=i(),W=g.waitForResultsRef,j=g.countRef;g.ignoreMultipleHooksWarning;var h=t(p);e(function(){h.current=p},[p]);var R=t(a);e(function(){R.current=a},[a]);var x,C=t(null),S=m&&!f.getWidgets().includes(a),w=u();(o(function(){var t=R.current;C.current?(clearTimeout(C.current),r(p,h.current)||f.updateWidget(t,a)):m||f.addWidgets([a]);return function(){C.current=setTimeout(function(){w._schedule(function(){w._preventWidgetCleanup||f.removeWidgets([t])})})}},[f,a,m,w,p]),(S||"pending"===(null==W||null===(c=W.current)||void 0===c?void 0:c.status))&&f.addWidgets([a]),(null==W?void 0:W.current)&&!v)&&(n(W.current),!s(a)&&(null===(x=w.helper)||void 0===x?void 0:x.lastResults)&&n(W.current));"fulfilled"===(null==W||null===(d=W.current)||void 0===d?void 0:d.status)&&(j.current+=1)}export{l as useWidget};
|
|
2
2
|
//# sourceMappingURL=useWidget.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWidget.js","sources":["../../../../../../../node_modules/react-instantsearch-core/dist/es/lib/useWidget.js"],"sourcesContent":["import { isTwoPassWidget } from 'instantsearch.js/es/lib/utils/index.js';\nimport { useRef, useEffect } from 'react';\nimport { dequal } from './dequal.js';\nimport { use } from './use.js';\nimport { useInstantSearchContext } from './useInstantSearchContext.js';\nimport { useIsomorphicLayoutEffect } from './useIsomorphicLayoutEffect.js';\nimport { useRSCContext } from './useRSCContext.js';\n\nfunction useWidget(param) {\n var widget = param.widget, parentIndex = param.parentIndex, props = param.props, shouldSsr = param.shouldSsr, skipSuspense = param.skipSuspense;\n var _waitForResultsRef_current, _waitForResultsRef_current1;\n var _useRSCContext = useRSCContext(), waitForResultsRef = _useRSCContext.waitForResultsRef, countRef = _useRSCContext.countRef; _useRSCContext.ignoreMultipleHooksWarning;\n var prevPropsRef = useRef(props);\n useEffect(function() {\n prevPropsRef.current = props;\n }, [\n props\n ]);\n var prevWidgetRef = useRef(widget);\n useEffect(function() {\n prevWidgetRef.current = widget;\n }, [\n widget\n ]);\n var cleanupTimerRef = useRef(null);\n var shouldAddWidgetEarly = shouldSsr && !parentIndex.getWidgets().includes(widget);\n var search = useInstantSearchContext();\n // This effect is responsible for adding, removing, and updating the widget.\n // We need to support scenarios where the widget is remounted quickly, like in\n // Strict Mode, so that we don't lose its state, and therefore that we don't\n // break routing.\n useIsomorphicLayoutEffect(function() {\n var previousWidget = prevWidgetRef.current;\n // Scenario 1: the widget is added for the first time.\n if (!cleanupTimerRef.current) {\n if (!shouldSsr) {\n parentIndex.addWidgets([\n widget\n ]);\n }\n } else {\n // We cancel the original effect cleanup because it may not be necessary if\n // props haven't changed. (We manually call it if it is below.)\n clearTimeout(cleanupTimerRef.current);\n // Warning: if an unstable function prop is provided, `dequal` is not able\n // to keep its reference and therefore will consider that props did change.\n // This
|
|
1
|
+
{"version":3,"file":"useWidget.js","sources":["../../../../../../../node_modules/react-instantsearch-core/dist/es/lib/useWidget.js"],"sourcesContent":["import { isTwoPassWidget } from 'instantsearch.js/es/lib/utils/index.js';\nimport { useRef, useEffect } from 'react';\nimport { dequal } from './dequal.js';\nimport { use } from './use.js';\nimport { useInstantSearchContext } from './useInstantSearchContext.js';\nimport { useIsomorphicLayoutEffect } from './useIsomorphicLayoutEffect.js';\nimport { useRSCContext } from './useRSCContext.js';\n\nfunction useWidget(param) {\n var widget = param.widget, parentIndex = param.parentIndex, props = param.props, shouldSsr = param.shouldSsr, skipSuspense = param.skipSuspense;\n var _waitForResultsRef_current, _waitForResultsRef_current1;\n var _useRSCContext = useRSCContext(), waitForResultsRef = _useRSCContext.waitForResultsRef, countRef = _useRSCContext.countRef; _useRSCContext.ignoreMultipleHooksWarning;\n var prevPropsRef = useRef(props);\n useEffect(function() {\n prevPropsRef.current = props;\n }, [\n props\n ]);\n var prevWidgetRef = useRef(widget);\n useEffect(function() {\n prevWidgetRef.current = widget;\n }, [\n widget\n ]);\n var cleanupTimerRef = useRef(null);\n var shouldAddWidgetEarly = shouldSsr && !parentIndex.getWidgets().includes(widget);\n var search = useInstantSearchContext();\n // This effect is responsible for adding, removing, and updating the widget.\n // We need to support scenarios where the widget is remounted quickly, like in\n // Strict Mode, so that we don't lose its state, and therefore that we don't\n // break routing.\n useIsomorphicLayoutEffect(function() {\n var previousWidget = prevWidgetRef.current;\n // Scenario 1: the widget is added for the first time.\n if (!cleanupTimerRef.current) {\n if (!shouldSsr) {\n parentIndex.addWidgets([\n widget\n ]);\n }\n } else {\n // We cancel the original effect cleanup because it may not be necessary if\n // props haven't changed. (We manually call it if it is below.)\n clearTimeout(cleanupTimerRef.current);\n // Warning: if an unstable function prop is provided, `dequal` is not able\n // to keep its reference and therefore will consider that props did change.\n // This unintentionally replaces the widget, which is wasteful (it causes\n // a search), even though `updateWidget` below keeps its state.\n // If users face this issue, we should advise them to provide stable function\n // references.\n var arePropsEqual = dequal(props, prevPropsRef.current);\n // If props did change, then we replace the widget instantly instead of\n // waiting for the scheduled cleanup function to finish (that we canceled\n // above). `updateWidget` hands the previous widget's `uiState` over to the\n // new one, so that a parameter change doesn't reset the state the widget\n // still owns — which would otherwise break routing.\n if (!arePropsEqual) {\n parentIndex.updateWidget(previousWidget, widget);\n }\n }\n return function() {\n // We don't remove the widget right away, but rather schedule it so that\n // we're able to cancel it in the next effect.\n cleanupTimerRef.current = setTimeout(function() {\n search._schedule(function() {\n if (search._preventWidgetCleanup) return;\n parentIndex.removeWidgets([\n previousWidget\n ]);\n });\n });\n };\n }, [\n parentIndex,\n widget,\n shouldSsr,\n search,\n props\n ]);\n if (shouldAddWidgetEarly || (waitForResultsRef === null || waitForResultsRef === void 0 ? void 0 : (_waitForResultsRef_current = waitForResultsRef.current) === null || _waitForResultsRef_current === void 0 ? void 0 : _waitForResultsRef_current.status) === 'pending') {\n parentIndex.addWidgets([\n widget\n ]);\n }\n if ((waitForResultsRef === null || waitForResultsRef === void 0 ? void 0 : waitForResultsRef.current) && !skipSuspense) {\n var _search_helper;\n use(waitForResultsRef.current);\n // If we made a second request because of two-pass widgets, we need to\n // wait for the second result — except for the two-pass widgets themselves\n // which need to render their children after the first result.\n if (!isTwoPassWidget(widget) && ((_search_helper = search.helper) === null || _search_helper === void 0 ? void 0 : _search_helper.lastResults)) {\n use(waitForResultsRef.current);\n }\n }\n if ((waitForResultsRef === null || waitForResultsRef === void 0 ? void 0 : (_waitForResultsRef_current1 = waitForResultsRef.current) === null || _waitForResultsRef_current1 === void 0 ? void 0 : _waitForResultsRef_current1.status) === 'fulfilled') {\n countRef.current += 1;\n }\n}\n\nexport { useWidget };\n"],"names":["useWidget","param","_waitForResultsRef_current","_waitForResultsRef_current1","widget","parentIndex","props","shouldSsr","skipSuspense","_useRSCContext","useRSCContext","waitForResultsRef","countRef","ignoreMultipleHooksWarning","prevPropsRef","useRef","useEffect","current","prevWidgetRef","_search_helper","cleanupTimerRef","shouldAddWidgetEarly","getWidgets","includes","search","useInstantSearchContext","useIsomorphicLayoutEffect","previousWidget","clearTimeout","dequal","updateWidget","addWidgets","setTimeout","_schedule","_preventWidgetCleanup","removeWidgets","status","use","isTwoPassWidget","helper","lastResults"],"mappings":"sZAQA,SAASA,EAAUC,GACf,IACIC,EAA4BC,EAD5BC,EAASH,EAAMG,OAAQC,EAAcJ,EAAMI,YAAaC,EAAQL,EAAMK,MAAOC,EAAYN,EAAMM,UAAWC,EAAeP,EAAMO,aAE/HC,EAAiBC,IAAiBC,EAAoBF,EAAeE,kBAAmBC,EAAWH,EAAeG,SAAUH,EAAeI,2BAC/I,IAAIC,EAAeC,EAAOT,GAC1BU,EAAU,WACNF,EAAaG,QAAUX,CAC3B,EAAG,CACCA,IAEJ,IAAIY,EAAgBH,EAAOX,GAC3BY,EAAU,WACNE,EAAcD,QAAUb,CAC5B,EAAG,CACCA,IAEJ,IA6DQe,EA7DJC,EAAkBL,EAAO,MACzBM,EAAuBd,IAAcF,EAAYiB,aAAaC,SAASnB,GACvEoB,EAASC,KAKbC,EAA0B,WACtB,IAAIC,EAAiBT,EAAcD,QAE9BG,EAAgBH,SASjBW,aAAaR,EAAgBH,SAOTY,EAAOvB,EAAOQ,EAAaG,UAO3CZ,EAAYyB,aAAaH,EAAgBvB,IAtBxCG,GACDF,EAAY0B,WAAW,CACnB3B,IAuBZ,OAAO,WAGHgB,EAAgBH,QAAUe,WAAW,WACjCR,EAAOS,UAAU,WACTT,EAAOU,uBACX7B,EAAY8B,cAAc,CACtBR,GAER,EACJ,EACJ,CACJ,EAAG,CACCtB,EACAD,EACAG,EACAiB,EACAlB,KAEAe,GAA4P,aAAnOV,SAAmI,QAA5DT,EAA6BS,EAAkBM,eAAoD,IAA/Bf,OAA9E,EAA+HA,EAA2BkC,UAChP/B,EAAY0B,WAAW,CACnB3B,KAGHO,aAA6D,EAASA,EAAkBM,WAAaT,KAEtG6B,EAAI1B,EAAkBM,UAIjBqB,EAAgBlC,KAAiD,QAApCe,EAAiBK,EAAOe,cAAuC,IAAnBpB,OAA4B,EAASA,EAAeqB,cAC9HH,EAAI1B,EAAkBM,UAG6M,eAAtON,SAAoI,QAA7DR,EAA8BQ,EAAkBM,eAAqD,IAAhCd,OAA/E,EAAiIA,EAA4BiC,UAC3NxB,EAASK,SAAW,EAE5B","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var a="7.
|
|
1
|
+
var a="7.51.0";export{a as default};
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sources":["../../../../../../node_modules/react-instantsearch-core/dist/es/version.js"],"sourcesContent":["var version = '7.
|
|
1
|
+
{"version":3,"file":"version.js","sources":["../../../../../../node_modules/react-instantsearch-core/dist/es/version.js"],"sourcesContent":["var version = '7.51.0';\n\nexport { version as default };\n"],"names":["version"],"mappings":"AAAG,IAACA,EAAU","x_google_ignoreList":[0]}
|
package/dist/index.d.ts
CHANGED
package/dist/navigation.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\
|
|
1
|
+
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\Mobile\Persistent cart\sunrise-ch-b2c-sales-static-components\src\components\FalconMainNavigation\FalconMainNavigation.module.scss */
|
|
2
2
|
/* center a block element */
|
|
3
3
|
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
4
4
|
/* setting styles in separate formats for cross browser support */
|
|
@@ -318,7 +318,7 @@
|
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
|
|
321
|
-
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\
|
|
321
|
+
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\Mobile\Persistent cart\sunrise-ch-b2c-sales-static-components\src\components\ResponsiveRow\row.module.scss */
|
|
322
322
|
/* center a block element */
|
|
323
323
|
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
324
324
|
/* setting styles in separate formats for cross browser support */
|
|
@@ -353,7 +353,7 @@
|
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
|
|
356
|
-
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\
|
|
356
|
+
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\Mobile\Persistent cart\sunrise-ch-b2c-sales-static-components\src\components\FalconMainNavigation\InteractiveHamburger\InteractiveHamburger.module.scss */
|
|
357
357
|
/* center a block element */
|
|
358
358
|
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
359
359
|
/* setting styles in separate formats for cross browser support */
|
|
@@ -395,7 +395,7 @@
|
|
|
395
395
|
width: 24px;
|
|
396
396
|
}
|
|
397
397
|
|
|
398
|
-
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\
|
|
398
|
+
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\Mobile\Persistent cart\sunrise-ch-b2c-sales-static-components\src\components\FalconMainNavigation\FalconHeader\FalconHeader.module.scss */
|
|
399
399
|
/* center a block element */
|
|
400
400
|
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
401
401
|
/* setting styles in separate formats for cross browser support */
|
|
@@ -474,7 +474,7 @@
|
|
|
474
474
|
color: #ffffff;
|
|
475
475
|
}
|
|
476
476
|
|
|
477
|
-
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\
|
|
477
|
+
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\Mobile\Persistent cart\sunrise-ch-b2c-sales-static-components\src\components\FalconMainNavigation\NavigationMenuItem\NavigationMenuItem.module.scss */
|
|
478
478
|
/* center a block element */
|
|
479
479
|
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
480
480
|
/* setting styles in separate formats for cross browser support */
|
|
@@ -556,7 +556,7 @@
|
|
|
556
556
|
position: relative;
|
|
557
557
|
}
|
|
558
558
|
|
|
559
|
-
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\
|
|
559
|
+
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\Mobile\Persistent cart\sunrise-ch-b2c-sales-static-components\src\components\FalconMainNavigation\MobileNavigation\MobileNavigation.module.scss */
|
|
560
560
|
/* center a block element */
|
|
561
561
|
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
562
562
|
/* setting styles in separate formats for cross browser support */
|
|
@@ -664,7 +664,7 @@
|
|
|
664
664
|
visibility: visible;
|
|
665
665
|
}
|
|
666
666
|
|
|
667
|
-
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\
|
|
667
|
+
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\Mobile\Persistent cart\sunrise-ch-b2c-sales-static-components\src\components\FalconMainNavigation\CartOverlay\CartOverlay.module.scss */
|
|
668
668
|
/* center a block element */
|
|
669
669
|
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
670
670
|
/* setting styles in separate formats for cross browser support */
|
|
@@ -781,7 +781,7 @@
|
|
|
781
781
|
text-align: center;
|
|
782
782
|
}
|
|
783
783
|
|
|
784
|
-
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\
|
|
784
|
+
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\Mobile\Persistent cart\sunrise-ch-b2c-sales-static-components\src\components\MinimizedHeader\MinimizedHeader.module.scss */
|
|
785
785
|
/* center a block element */
|
|
786
786
|
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
787
787
|
/* setting styles in separate formats for cross browser support */
|
|
@@ -915,7 +915,7 @@
|
|
|
915
915
|
}
|
|
916
916
|
}
|
|
917
917
|
|
|
918
|
-
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\
|
|
918
|
+
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\Mobile\Persistent cart\sunrise-ch-b2c-sales-static-components\src\components\FalconMainNavigation\FalconHeader\LocaleSelector\LocaleSelector.module.scss */
|
|
919
919
|
/* center a block element */
|
|
920
920
|
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
921
921
|
/* setting styles in separate formats for cross browser support */
|
|
@@ -1062,7 +1062,7 @@
|
|
|
1062
1062
|
}
|
|
1063
1063
|
}
|
|
1064
1064
|
|
|
1065
|
-
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\
|
|
1065
|
+
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\Mobile\Persistent cart\sunrise-ch-b2c-sales-static-components\src\components\FalconMainNavigation\ProfileLinkOut\ProfileLinkOut.module.scss */
|
|
1066
1066
|
/* center a block element */
|
|
1067
1067
|
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
1068
1068
|
/* setting styles in separate formats for cross browser support */
|
|
@@ -1303,7 +1303,7 @@
|
|
|
1303
1303
|
}
|
|
1304
1304
|
}
|
|
1305
1305
|
|
|
1306
|
-
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\
|
|
1306
|
+
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\Mobile\Persistent cart\sunrise-ch-b2c-sales-static-components\src\components\FalconMainNavigation\CartOverlay\CartDotLoader\CartDotLoader.module.scss */
|
|
1307
1307
|
/* center a block element */
|
|
1308
1308
|
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
1309
1309
|
/* setting styles in separate formats for cross browser support */
|
|
@@ -1365,7 +1365,7 @@
|
|
|
1365
1365
|
text-align: center;
|
|
1366
1366
|
}
|
|
1367
1367
|
|
|
1368
|
-
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\
|
|
1368
|
+
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\Mobile\Persistent cart\sunrise-ch-b2c-sales-static-components\src\components\FalconMainNavigation\CartOverlay\CartHeader\CartHeader.module.scss */
|
|
1369
1369
|
/* center a block element */
|
|
1370
1370
|
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
1371
1371
|
/* setting styles in separate formats for cross browser support */
|
|
@@ -1413,7 +1413,7 @@
|
|
|
1413
1413
|
border-radius: 2px;
|
|
1414
1414
|
}
|
|
1415
1415
|
|
|
1416
|
-
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\
|
|
1416
|
+
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\Mobile\Persistent cart\sunrise-ch-b2c-sales-static-components\src\components\FalconMainNavigation\MobileNavigation\MobileMenuItem\MobileMenuItem.module.scss */
|
|
1417
1417
|
/* center a block element */
|
|
1418
1418
|
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
1419
1419
|
/* setting styles in separate formats for cross browser support */
|
|
@@ -1471,7 +1471,7 @@
|
|
|
1471
1471
|
filter: brightness(0) invert(0.9);
|
|
1472
1472
|
}
|
|
1473
1473
|
|
|
1474
|
-
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\
|
|
1474
|
+
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\Mobile\Persistent cart\sunrise-ch-b2c-sales-static-components\src\components\FalconMainNavigation\CartOverlay\CartFooter\CartFooter.module.scss */
|
|
1475
1475
|
/* center a block element */
|
|
1476
1476
|
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
1477
1477
|
/* setting styles in separate formats for cross browser support */
|
|
@@ -1542,7 +1542,7 @@
|
|
|
1542
1542
|
text-decoration: none;
|
|
1543
1543
|
}
|
|
1544
1544
|
|
|
1545
|
-
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\
|
|
1545
|
+
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\Mobile\Persistent cart\sunrise-ch-b2c-sales-static-components\src\components\FalconMainNavigation\CartOverlay\EmptyCart\EmptyCart.module.scss */
|
|
1546
1546
|
/* center a block element */
|
|
1547
1547
|
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
1548
1548
|
/* setting styles in separate formats for cross browser support */
|
|
@@ -1624,7 +1624,7 @@
|
|
|
1624
1624
|
line-height: 1.3;
|
|
1625
1625
|
}
|
|
1626
1626
|
|
|
1627
|
-
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\
|
|
1627
|
+
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\Mobile\Persistent cart\sunrise-ch-b2c-sales-static-components\src\components\FalconMainNavigation\FalconHeader\BusinessCustomerLinkOut\BusinessCustomerLinkOut.module.scss */
|
|
1628
1628
|
/* center a block element */
|
|
1629
1629
|
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
1630
1630
|
/* setting styles in separate formats for cross browser support */
|
|
@@ -1711,7 +1711,7 @@
|
|
|
1711
1711
|
background-color: #1f1f1f;
|
|
1712
1712
|
}
|
|
1713
1713
|
|
|
1714
|
-
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\
|
|
1714
|
+
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\Mobile\Persistent cart\sunrise-ch-b2c-sales-static-components\src\components\FalconMainNavigation\CartOverlay\CartClearConfirm\CartClearConfirm.module.scss */
|
|
1715
1715
|
/* center a block element */
|
|
1716
1716
|
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
1717
1717
|
/* setting styles in separate formats for cross browser support */
|
|
@@ -1797,7 +1797,7 @@
|
|
|
1797
1797
|
outline-offset: 2px;
|
|
1798
1798
|
}
|
|
1799
1799
|
|
|
1800
|
-
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\
|
|
1800
|
+
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\Mobile\Persistent cart\sunrise-ch-b2c-sales-static-components\src\components\FalconMainNavigation\SubNavigation\SubNavigation.module.scss */
|
|
1801
1801
|
/* center a block element */
|
|
1802
1802
|
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
1803
1803
|
/* setting styles in separate formats for cross browser support */
|
|
@@ -1907,7 +1907,7 @@
|
|
|
1907
1907
|
border: none;
|
|
1908
1908
|
}
|
|
1909
1909
|
|
|
1910
|
-
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\
|
|
1910
|
+
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\Mobile\Persistent cart\sunrise-ch-b2c-sales-static-components\src\components\FalconMainNavigation\CartOverlay\CartItems\CartItems.module.scss */
|
|
1911
1911
|
/* center a block element */
|
|
1912
1912
|
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
1913
1913
|
/* setting styles in separate formats for cross browser support */
|
|
@@ -2066,7 +2066,7 @@
|
|
|
2066
2066
|
}
|
|
2067
2067
|
}
|
|
2068
2068
|
|
|
2069
|
-
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\
|
|
2069
|
+
/* C:\Users\paneendranath\OneDrive - Sunrise GmbH\Repos\Mobile\Persistent cart\sunrise-ch-b2c-sales-static-components\src\components\FalconMainNavigation\MobileNavigation\MobileSubNavigation\MobileSubNavigation.module.scss */
|
|
2070
2070
|
/* center a block element */
|
|
2071
2071
|
/* use this to any of the pseudo elements as these are the mandatory properties */
|
|
2072
2072
|
/* setting styles in separate formats for cross browser support */
|