@dreamcommerce/aurora 3.0.0-13 → 3.0.0-14
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/build/cjs/external/@radix-ui/react-popper/dist/index.mjs.js +1 -1
- package/build/cjs/external/@radix-ui/react-popper/dist/index.mjs.js.map +1 -1
- package/build/esm/external/@radix-ui/react-popper/dist/index.mjs.js +1 -1
- package/build/esm/external/@radix-ui/react-popper/dist/index.mjs.js.map +1 -1
- package/package.json +1 -1
- package/build/cjs/external/@radix-ui/react-popper/external/@radix-ui/react-context/dist/index.mjs.js +0 -68
- package/build/cjs/external/@radix-ui/react-popper/external/@radix-ui/react-context/dist/index.mjs.js.map +0 -1
- package/build/esm/external/@radix-ui/react-popper/external/@radix-ui/react-context/dist/index.mjs.js +0 -64
- package/build/esm/external/@radix-ui/react-popper/external/@radix-ui/react-context/dist/index.mjs.js.map +0 -1
|
@@ -5,13 +5,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var index$1 = require('../../react-compose-refs/dist/index.mjs.js');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
+
var index = require('../../react-context/dist/index.mjs.js');
|
|
8
9
|
var index$2 = require('../../react-primitive/dist/index.mjs.js');
|
|
9
10
|
var index$4 = require('../../react-use-callback-ref/dist/index.mjs.js');
|
|
10
11
|
var index$5 = require('../../react-use-layout-effect/dist/index.mjs.js');
|
|
11
12
|
var floatingUi_dom = require('../../../@floating-ui/dom/dist/floating-ui.dom.mjs.js');
|
|
12
13
|
var floatingUi_reactDom = require('../../../@floating-ui/react-dom/dist/floating-ui.react-dom.mjs.js');
|
|
13
14
|
var index$6 = require('../../react-arrow/dist/index.mjs.js');
|
|
14
|
-
var index = require('../external/@radix-ui/react-context/dist/index.mjs.js');
|
|
15
15
|
var index$3 = require('../../react-use-size/dist/index.mjs.js');
|
|
16
16
|
|
|
17
17
|
var POPPER_NAME = "Popper";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { forwardRef, useRef, useEffect, useState } from 'react';
|
|
2
2
|
import { useComposedRefs } from '../../react-compose-refs/dist/index.mjs.js';
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
import { createContextScope } from '../../react-context/dist/index.mjs.js';
|
|
4
5
|
import { Primitive } from '../../react-primitive/dist/index.mjs.js';
|
|
5
6
|
import { useCallbackRef } from '../../react-use-callback-ref/dist/index.mjs.js';
|
|
6
7
|
import { useLayoutEffect as useLayoutEffect2 } from '../../react-use-layout-effect/dist/index.mjs.js';
|
|
7
8
|
import { autoUpdate } from '../../../@floating-ui/dom/dist/floating-ui.dom.mjs.js';
|
|
8
9
|
import { useFloating, offset, shift, flip, size, arrow, hide, limitShift } from '../../../@floating-ui/react-dom/dist/floating-ui.react-dom.mjs.js';
|
|
9
10
|
import { Root } from '../../react-arrow/dist/index.mjs.js';
|
|
10
|
-
import { createContextScope } from '../external/@radix-ui/react-context/dist/index.mjs.js';
|
|
11
11
|
import { useSize } from '../../react-use-size/dist/index.mjs.js';
|
|
12
12
|
|
|
13
13
|
var POPPER_NAME = "Popper";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
package/package.json
CHANGED
package/build/cjs/external/@radix-ui/react-popper/external/@radix-ui/react-context/dist/index.mjs.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var React = require('react');
|
|
6
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
|
|
8
|
-
// packages/react/context/src/createContext.tsx
|
|
9
|
-
function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
10
|
-
let defaultContexts = [];
|
|
11
|
-
function createContext3(rootComponentName, defaultContext) {
|
|
12
|
-
const BaseContext = React.createContext(defaultContext);
|
|
13
|
-
const index = defaultContexts.length;
|
|
14
|
-
defaultContexts = [...defaultContexts, defaultContext];
|
|
15
|
-
function Provider(props) {
|
|
16
|
-
const { scope, children, ...context } = props;
|
|
17
|
-
const Context = scope?.[scopeName][index] || BaseContext;
|
|
18
|
-
const value = React.useMemo(() => context, Object.values(context));
|
|
19
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Context.Provider, { value, children });
|
|
20
|
-
}
|
|
21
|
-
function useContext2(consumerName, scope) {
|
|
22
|
-
const Context = scope?.[scopeName][index] || BaseContext;
|
|
23
|
-
const context = React.useContext(Context);
|
|
24
|
-
if (context) return context;
|
|
25
|
-
if (defaultContext !== void 0) return defaultContext;
|
|
26
|
-
throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
|
|
27
|
-
}
|
|
28
|
-
Provider.displayName = rootComponentName + "Provider";
|
|
29
|
-
return [Provider, useContext2];
|
|
30
|
-
}
|
|
31
|
-
const createScope = () => {
|
|
32
|
-
const scopeContexts = defaultContexts.map((defaultContext) => {
|
|
33
|
-
return React.createContext(defaultContext);
|
|
34
|
-
});
|
|
35
|
-
return function useScope(scope) {
|
|
36
|
-
const contexts = scope?.[scopeName] || scopeContexts;
|
|
37
|
-
return React.useMemo(
|
|
38
|
-
() => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),
|
|
39
|
-
[scope, contexts]
|
|
40
|
-
);
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
createScope.scopeName = scopeName;
|
|
44
|
-
return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];
|
|
45
|
-
}
|
|
46
|
-
function composeContextScopes(...scopes) {
|
|
47
|
-
const baseScope = scopes[0];
|
|
48
|
-
if (scopes.length === 1) return baseScope;
|
|
49
|
-
const createScope = () => {
|
|
50
|
-
const scopeHooks = scopes.map((createScope2) => ({
|
|
51
|
-
useScope: createScope2(),
|
|
52
|
-
scopeName: createScope2.scopeName
|
|
53
|
-
}));
|
|
54
|
-
return function useComposedScopes(overrideScopes) {
|
|
55
|
-
const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {
|
|
56
|
-
const scopeProps = useScope(overrideScopes);
|
|
57
|
-
const currentScope = scopeProps[`__scope${scopeName}`];
|
|
58
|
-
return { ...nextScopes2, ...currentScope };
|
|
59
|
-
}, {});
|
|
60
|
-
return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
createScope.scopeName = baseScope.scopeName;
|
|
64
|
-
return createScope;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
exports.createContextScope = createContextScope;
|
|
68
|
-
//# sourceMappingURL=index.mjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
package/build/esm/external/@radix-ui/react-popper/external/@radix-ui/react-context/dist/index.mjs.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { createContext, useMemo, useContext } from 'react';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
|
|
4
|
-
// packages/react/context/src/createContext.tsx
|
|
5
|
-
function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
6
|
-
let defaultContexts = [];
|
|
7
|
-
function createContext3(rootComponentName, defaultContext) {
|
|
8
|
-
const BaseContext = createContext(defaultContext);
|
|
9
|
-
const index = defaultContexts.length;
|
|
10
|
-
defaultContexts = [...defaultContexts, defaultContext];
|
|
11
|
-
function Provider(props) {
|
|
12
|
-
const { scope, children, ...context } = props;
|
|
13
|
-
const Context = scope?.[scopeName][index] || BaseContext;
|
|
14
|
-
const value = useMemo(() => context, Object.values(context));
|
|
15
|
-
return /* @__PURE__ */ jsx(Context.Provider, { value, children });
|
|
16
|
-
}
|
|
17
|
-
function useContext2(consumerName, scope) {
|
|
18
|
-
const Context = scope?.[scopeName][index] || BaseContext;
|
|
19
|
-
const context = useContext(Context);
|
|
20
|
-
if (context) return context;
|
|
21
|
-
if (defaultContext !== void 0) return defaultContext;
|
|
22
|
-
throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
|
|
23
|
-
}
|
|
24
|
-
Provider.displayName = rootComponentName + "Provider";
|
|
25
|
-
return [Provider, useContext2];
|
|
26
|
-
}
|
|
27
|
-
const createScope = () => {
|
|
28
|
-
const scopeContexts = defaultContexts.map((defaultContext) => {
|
|
29
|
-
return createContext(defaultContext);
|
|
30
|
-
});
|
|
31
|
-
return function useScope(scope) {
|
|
32
|
-
const contexts = scope?.[scopeName] || scopeContexts;
|
|
33
|
-
return useMemo(
|
|
34
|
-
() => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),
|
|
35
|
-
[scope, contexts]
|
|
36
|
-
);
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
createScope.scopeName = scopeName;
|
|
40
|
-
return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];
|
|
41
|
-
}
|
|
42
|
-
function composeContextScopes(...scopes) {
|
|
43
|
-
const baseScope = scopes[0];
|
|
44
|
-
if (scopes.length === 1) return baseScope;
|
|
45
|
-
const createScope = () => {
|
|
46
|
-
const scopeHooks = scopes.map((createScope2) => ({
|
|
47
|
-
useScope: createScope2(),
|
|
48
|
-
scopeName: createScope2.scopeName
|
|
49
|
-
}));
|
|
50
|
-
return function useComposedScopes(overrideScopes) {
|
|
51
|
-
const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {
|
|
52
|
-
const scopeProps = useScope(overrideScopes);
|
|
53
|
-
const currentScope = scopeProps[`__scope${scopeName}`];
|
|
54
|
-
return { ...nextScopes2, ...currentScope };
|
|
55
|
-
}, {});
|
|
56
|
-
return useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
createScope.scopeName = baseScope.scopeName;
|
|
60
|
-
return createScope;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export { createContextScope };
|
|
64
|
-
//# sourceMappingURL=index.mjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|