@micromag/core 0.4.23 → 0.4.25
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/es/contexts.d.ts +10 -7
- package/es/contexts.js +2 -1
- package/lib/contexts.js +2 -1
- package/package.json +2 -2
package/es/contexts.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import React__default from 'react';
|
|
3
4
|
export { RoutesContext, RoutesProvider, useRoutes, useUrlGenerator } from '@folklore/routes';
|
|
4
5
|
export { TrackingContext } from '@folklore/tracking';
|
|
5
6
|
|
|
@@ -54,12 +55,14 @@ declare function ComponentsProvider({ components, manager, namespace, children,
|
|
|
54
55
|
|
|
55
56
|
declare const ConsentContext: any;
|
|
56
57
|
declare const useConsent: () => unknown;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
interface ConsentProviderProps {
|
|
59
|
+
children: React__default.ReactNode;
|
|
60
|
+
consent?: Record<string, unknown>[];
|
|
61
|
+
consented?: boolean;
|
|
60
62
|
expiration?: number;
|
|
61
|
-
children
|
|
62
|
-
}
|
|
63
|
+
children?: React__default.ReactNode | null;
|
|
64
|
+
}
|
|
65
|
+
declare function ConsentProvider({ consent: providedConsent, consented: initialConsented, expiration, children, }: ConsentProviderProps): react_jsx_runtime.JSX.Element;
|
|
63
66
|
|
|
64
67
|
declare const EditorContext: any;
|
|
65
68
|
declare const useEditor: () => unknown;
|
|
@@ -163,7 +166,7 @@ declare function PanelsProvider({ children, container: initialContainer }: {
|
|
|
163
166
|
declare const PlaybackContext: any;
|
|
164
167
|
declare const usePlaybackContext: () => unknown;
|
|
165
168
|
declare const usePlaybackMediaRef: (active?: boolean, background?: boolean) => {
|
|
166
|
-
ref:
|
|
169
|
+
ref: React.RefObject<any>;
|
|
167
170
|
isCurrent: boolean;
|
|
168
171
|
};
|
|
169
172
|
declare function PlaybackProvider({ muted: initialMuted, playing: initialPlaying, paused, controls: initialControls, controlsSuggestPlay: initialControlsSuggestPlay, controlsVisible: initialControlsVisible, controlsTheme: initialControlsTheme, currentQualityLevel: initialCurrentQualityLevel, children, }: {
|
package/es/contexts.js
CHANGED
|
@@ -296,9 +296,10 @@ var ConsentContext = /*#__PURE__*/React.createContext({
|
|
|
296
296
|
var useConsent = function useConsent() {
|
|
297
297
|
return useContext(ConsentContext);
|
|
298
298
|
};
|
|
299
|
+
var defaultValues = ['functionality_storage', 'analytics_storage', 'ad_storage', 'ad_personalization', 'ad_user_data'];
|
|
299
300
|
function ConsentProvider(_ref) {
|
|
300
301
|
var _ref$consent = _ref.consent,
|
|
301
|
-
providedConsent = _ref$consent === void 0 ?
|
|
302
|
+
providedConsent = _ref$consent === void 0 ? defaultValues : _ref$consent,
|
|
302
303
|
_ref$consented = _ref.consented,
|
|
303
304
|
initialConsented = _ref$consented === void 0 ? null : _ref$consented,
|
|
304
305
|
_ref$expiration = _ref.expiration,
|
package/lib/contexts.js
CHANGED
|
@@ -296,9 +296,10 @@ var ConsentContext = /*#__PURE__*/React.createContext({
|
|
|
296
296
|
var useConsent = function useConsent() {
|
|
297
297
|
return React.useContext(ConsentContext);
|
|
298
298
|
};
|
|
299
|
+
var defaultValues = ['functionality_storage', 'analytics_storage', 'ad_storage', 'ad_personalization', 'ad_user_data'];
|
|
299
300
|
function ConsentProvider(_ref) {
|
|
300
301
|
var _ref$consent = _ref.consent,
|
|
301
|
-
providedConsent = _ref$consent === void 0 ?
|
|
302
|
+
providedConsent = _ref$consent === void 0 ? defaultValues : _ref$consent,
|
|
302
303
|
_ref$consented = _ref.consented,
|
|
303
304
|
initialConsented = _ref$consented === void 0 ? null : _ref$consented,
|
|
304
305
|
_ref$expiration = _ref.expiration,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/core",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.25",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -161,6 +161,6 @@
|
|
|
161
161
|
"access": "public",
|
|
162
162
|
"registry": "https://registry.npmjs.org/"
|
|
163
163
|
},
|
|
164
|
-
"gitHead": "
|
|
164
|
+
"gitHead": "01f62fcaf9ea405d162fdc26e36479d9f307f640",
|
|
165
165
|
"types": "es/index.d.ts"
|
|
166
166
|
}
|