@panneau/core 4.0.55 → 4.0.58
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/contexts.d.ts +17 -18
- package/dist/contexts.js +3 -3
- package/dist/hooks.js +4 -4
- package/dist/index.js +4 -4
- package/dist/utils.js +7 -7
- package/package.json +24 -24
package/dist/contexts.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as react from 'react';
|
|
3
2
|
import { ElementType, ReactNode, ComponentType } from 'react';
|
|
4
3
|
export { RoutesContext, RoutesProvider, useRoutes, useUrlGenerator } from '@folklore/routes';
|
|
@@ -130,7 +129,7 @@ interface ComponentsProviderProps {
|
|
|
130
129
|
manager?: ComponentsManager | null;
|
|
131
130
|
components?: Record<string, ElementType>;
|
|
132
131
|
}
|
|
133
|
-
declare function ComponentsProvider({ components, manager, namespace, children, }: ComponentsProviderProps):
|
|
132
|
+
declare function ComponentsProvider({ components, manager, namespace, children, }: ComponentsProviderProps): react.JSX.Element;
|
|
134
133
|
|
|
135
134
|
/**
|
|
136
135
|
* Core UI Types
|
|
@@ -310,7 +309,7 @@ interface DefinitionProviderProps {
|
|
|
310
309
|
definition: Definition;
|
|
311
310
|
children: ReactNode;
|
|
312
311
|
}
|
|
313
|
-
declare function DefinitionProvider({ definition, children }: DefinitionProviderProps):
|
|
312
|
+
declare function DefinitionProvider({ definition, children }: DefinitionProviderProps): react.JSX.Element;
|
|
314
313
|
|
|
315
314
|
declare const FieldsContext: react.Context<FieldsManager>;
|
|
316
315
|
declare function useFieldsManager(): FieldsManager | null;
|
|
@@ -321,7 +320,7 @@ interface FieldsProviderProps {
|
|
|
321
320
|
manager?: FieldsManager | null;
|
|
322
321
|
children: ReactNode;
|
|
323
322
|
}
|
|
324
|
-
declare function FieldsProvider({ fields, manager, children }: FieldsProviderProps):
|
|
323
|
+
declare function FieldsProvider({ fields, manager, children }: FieldsProviderProps): react.JSX.Element;
|
|
325
324
|
|
|
326
325
|
interface FontsContextValue {
|
|
327
326
|
systemFonts: Font[] | null;
|
|
@@ -342,7 +341,7 @@ interface FontsProviderProps {
|
|
|
342
341
|
systemFonts?: (Font | string)[] | null;
|
|
343
342
|
customFonts?: (Font | string)[] | null;
|
|
344
343
|
}
|
|
345
|
-
declare function FontsProvider({ systemFonts, customFonts, children, }: FontsProviderProps):
|
|
344
|
+
declare function FontsProvider({ systemFonts, customFonts, children, }: FontsProviderProps): react.JSX.Element;
|
|
346
345
|
|
|
347
346
|
interface FormContextValue {
|
|
348
347
|
value: Record<string, unknown>;
|
|
@@ -356,18 +355,18 @@ interface FormProviderProps {
|
|
|
356
355
|
setValue: (value: Record<string, unknown>) => void;
|
|
357
356
|
children: ReactNode;
|
|
358
357
|
}
|
|
359
|
-
declare function FormProvider({ value, setValue, children }: FormProviderProps):
|
|
358
|
+
declare function FormProvider({ value, setValue, children }: FormProviderProps): react.JSX.Element;
|
|
360
359
|
|
|
361
360
|
declare const GoogleApiClientContext: react.Context<any>;
|
|
362
361
|
declare function useGoogleApiClient(): any | null;
|
|
363
362
|
declare function withGoogleApiClient(WrappedComponent: ComponentType<any>): {
|
|
364
|
-
(props: any):
|
|
363
|
+
(props: any): react.JSX.Element;
|
|
365
364
|
displayName: string;
|
|
366
365
|
};
|
|
367
366
|
interface GoogleApiClientProviderProps {
|
|
368
367
|
children: ReactNode;
|
|
369
368
|
}
|
|
370
|
-
declare function GoogleApiClientProvider({ children }: GoogleApiClientProviderProps):
|
|
369
|
+
declare function GoogleApiClientProvider({ children }: GoogleApiClientProviderProps): react.JSX.Element;
|
|
371
370
|
|
|
372
371
|
interface GoogleKeysContextValue {
|
|
373
372
|
apiKey: string | null;
|
|
@@ -378,12 +377,12 @@ interface GoogleKeysProviderProps {
|
|
|
378
377
|
children: ReactNode;
|
|
379
378
|
apiKey?: string | null;
|
|
380
379
|
}
|
|
381
|
-
declare function GoogleKeysProvider({ children, apiKey }: GoogleKeysProviderProps):
|
|
380
|
+
declare function GoogleKeysProvider({ children, apiKey }: GoogleKeysProviderProps): react.JSX.Element;
|
|
382
381
|
|
|
383
382
|
declare const GoogleMapsClientContext: react.Context<any>;
|
|
384
383
|
declare function useGoogleMapsClient(): any | null;
|
|
385
384
|
declare function withGoogleMapsClient(WrappedComponent: ComponentType<any>): {
|
|
386
|
-
(props: any):
|
|
385
|
+
(props: any): react.JSX.Element;
|
|
387
386
|
displayName: string;
|
|
388
387
|
};
|
|
389
388
|
interface GoogleMapsClientProviderProps {
|
|
@@ -391,7 +390,7 @@ interface GoogleMapsClientProviderProps {
|
|
|
391
390
|
locale?: string;
|
|
392
391
|
libraries?: string[] | null;
|
|
393
392
|
}
|
|
394
|
-
declare function GoogleMapsClientProvider({ children, locale, libraries, }: GoogleMapsClientProviderProps):
|
|
393
|
+
declare function GoogleMapsClientProvider({ children, locale, libraries, }: GoogleMapsClientProviderProps): react.JSX.Element;
|
|
395
394
|
|
|
396
395
|
interface LocalesContextValue {
|
|
397
396
|
locales: string[];
|
|
@@ -404,7 +403,7 @@ interface LocalesProviderProps {
|
|
|
404
403
|
locales?: string[];
|
|
405
404
|
children: ReactNode;
|
|
406
405
|
}
|
|
407
|
-
declare function LocalesProvider({ locales, children }: LocalesProviderProps):
|
|
406
|
+
declare function LocalesProvider({ locales, children }: LocalesProviderProps): react.JSX.Element;
|
|
408
407
|
|
|
409
408
|
interface ModalData {
|
|
410
409
|
id: string;
|
|
@@ -428,7 +427,7 @@ interface ModalProviderProps {
|
|
|
428
427
|
children: ReactNode;
|
|
429
428
|
container?: unknown | null;
|
|
430
429
|
}
|
|
431
|
-
declare function ModalProvider({ children, container: initialContainer }: ModalProviderProps):
|
|
430
|
+
declare function ModalProvider({ children, container: initialContainer }: ModalProviderProps): react.JSX.Element;
|
|
432
431
|
|
|
433
432
|
interface PanelData {
|
|
434
433
|
id: string;
|
|
@@ -444,14 +443,14 @@ interface PanelsContextValue {
|
|
|
444
443
|
declare const PanelsContext: react.Context<PanelsContextValue>;
|
|
445
444
|
declare function usePanels(): PanelsContextValue;
|
|
446
445
|
declare function withPanels(WrappedComponent: ComponentType<any>): {
|
|
447
|
-
(props: any):
|
|
446
|
+
(props: any): react.JSX.Element;
|
|
448
447
|
displayName: string;
|
|
449
448
|
};
|
|
450
449
|
interface PanelsProviderProps {
|
|
451
450
|
children: ReactNode;
|
|
452
451
|
container?: unknown | null;
|
|
453
452
|
}
|
|
454
|
-
declare function PanelsProvider({ children, container: initialContainer }: PanelsProviderProps):
|
|
453
|
+
declare function PanelsProvider({ children, container: initialContainer }: PanelsProviderProps): react.JSX.Element;
|
|
455
454
|
|
|
456
455
|
declare function usePanneau(): PanneauDefinition | null;
|
|
457
456
|
declare function usePanneauResources(): Resource[];
|
|
@@ -470,14 +469,14 @@ interface PanneauProviderProps {
|
|
|
470
469
|
definition: PanneauDefinition;
|
|
471
470
|
children: ReactNode;
|
|
472
471
|
}
|
|
473
|
-
declare function PanneauProvider({ definition, children }: PanneauProviderProps):
|
|
472
|
+
declare function PanneauProvider({ definition, children }: PanneauProviderProps): react.JSX.Element;
|
|
474
473
|
|
|
475
474
|
declare function useResource(): Resource | null;
|
|
476
475
|
interface ResourceProviderProps {
|
|
477
476
|
resource: Resource;
|
|
478
477
|
children: ReactNode;
|
|
479
478
|
}
|
|
480
|
-
declare function ResourceProvider({ resource, children }: ResourceProviderProps):
|
|
479
|
+
declare function ResourceProvider({ resource, children }: ResourceProviderProps): react.JSX.Element;
|
|
481
480
|
|
|
482
481
|
declare function useRoutePush(): (route: string | {
|
|
483
482
|
pathname?: string | null;
|
|
@@ -490,7 +489,7 @@ interface TrackingProviderProps {
|
|
|
490
489
|
children: ReactNode;
|
|
491
490
|
variables?: TrackingVariables | null;
|
|
492
491
|
}
|
|
493
|
-
declare function TrackingProvider({ variables, children }: TrackingProviderProps):
|
|
492
|
+
declare function TrackingProvider({ variables, children }: TrackingProviderProps): react.JSX.Element;
|
|
494
493
|
|
|
495
494
|
export { ACTIONS_NAMESPACE, APP_NAMESPACE, BUTTONS_NAMESPACE, ComponentsContext, ComponentsProvider, DISPLAYS_NAMESPACE, DefinitionProvider, FIELDS_NAMESPACE, FILTERS_NAMESPACE, FORMS_NAMESPACE, FieldsContext, FieldsProvider, FontsContext, FontsProvider, FormProvider, GoogleApiClientContext, GoogleApiClientProvider, GoogleKeysContext, GoogleKeysProvider, GoogleMapsClientContext, GoogleMapsClientProvider, LISTS_NAMESPACE, LocalesContext, LocalesProvider, MODALS_NAMESPACE, ModalContext, ModalProvider, PAGES_NAMESPACE, PREVIEWS_NAMESPACE, PanelsContext, PanelsProvider, PanneauProvider, ResourceProvider, TrackingProvider, useActionComponent, useActionsComponents, useActionsComponentsManager, useAppComponent, useAppComponents, useAppComponentsManager, useButtonComponent, useButtonsComponents, useButtonsComponentsManager, useComponent, useComponents, useComponentsManager, useDefinition, useDefinitionContext, useDisplayComponent, useDisplaysComponents, useDisplaysComponentsManager, useField, useFieldComponent, useFields, useFieldsComponents, useFieldsComponentsManager, useFieldsManager, useFilterComponent, useFiltersComponents, useFiltersComponentsManager, useFonts, useFormComponent, useFormContext, useFormSetValue, useFormValue, useFormsComponents, useFormsComponentsManager, useGoogleApiClient, useGoogleFonts, useGoogleKeys, useGoogleMapsClient, useListComponent, useListsComponents, useListsComponentsManager, useLocales, useLocalesContext, useModal, useModalComponent, useModalsComponents, useModalsComponentsManager, useOtherLocales, usePageComponent, usePagesComponents, usePagesComponentsManager, usePanels, usePanneau, usePanneauAuth, usePanneauColorScheme, usePanneauComponent, usePanneauComponents, usePanneauResource, usePanneauResources, usePanneauSettings, usePreviewComponent, usePreviewsComponents, usePreviewsComponentsManager, useResource, useRouteBack, useRoutePush, useTracking, withGoogleApiClient, withGoogleMapsClient, withPanels };
|
|
496
495
|
export type { ModalContextValue, ModalData };
|
package/dist/contexts.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { c } from 'react/compiler-runtime';
|
|
2
|
-
import isString from 'lodash/isString';
|
|
2
|
+
import isString from 'lodash-es/isString';
|
|
3
3
|
import { createContext, useContext, useState, use, useEffect, useRef } from 'react';
|
|
4
4
|
import { ComponentsManager, FieldsManager, Tracking } from '@panneau/core';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
|
-
import uniqBy from 'lodash/uniqBy';
|
|
6
|
+
import uniqBy from 'lodash-es/uniqBy';
|
|
7
7
|
import { getJSON } from '@folklore/fetch';
|
|
8
|
-
import isObject from 'lodash/isObject';
|
|
8
|
+
import isObject from 'lodash-es/isObject';
|
|
9
9
|
import { loadGoogleApi, loadGoogleMaps } from '@folklore/services';
|
|
10
10
|
import { useIntl } from 'react-intl';
|
|
11
11
|
import { getDisplayName } from '@panneau/core/utils';
|
package/dist/hooks.js
CHANGED
|
@@ -3,10 +3,10 @@ import { useRef, useEffect, useCallback, useState, useMemo } from 'react';
|
|
|
3
3
|
import { EventsManager, MediasParser } from '@panneau/core';
|
|
4
4
|
import { createUseEvent, loadPackage } from '@panneau/core/utils';
|
|
5
5
|
import { getCsrfToken, postJSON, getCSRFHeaders } from '@folklore/fetch';
|
|
6
|
-
import get from 'lodash/get';
|
|
7
|
-
import isArray from 'lodash/isArray';
|
|
8
|
-
import isObject from 'lodash/isObject';
|
|
9
|
-
import isString from 'lodash/isString';
|
|
6
|
+
import get from 'lodash-es/get';
|
|
7
|
+
import isArray from 'lodash-es/isArray';
|
|
8
|
+
import isObject from 'lodash-es/isObject';
|
|
9
|
+
import isString from 'lodash-es/isString';
|
|
10
10
|
import { useFieldsManager, usePanneauResources, useResource, useUrlGenerator } from '@panneau/core/contexts';
|
|
11
11
|
import dayjs from 'dayjs';
|
|
12
12
|
import { useIntl } from 'react-intl';
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { flattenComponents, getComponentFromName } from '@panneau/core/utils';
|
|
2
|
-
import isArray from 'lodash/isArray';
|
|
3
|
-
import uniqBy from 'lodash/uniqBy';
|
|
2
|
+
import isArray from 'lodash-es/isArray';
|
|
3
|
+
import uniqBy from 'lodash-es/uniqBy';
|
|
4
4
|
import EventEmitter from 'wolfy87-eventemitter';
|
|
5
|
-
import isObject from 'lodash/isObject';
|
|
6
|
-
import uniq from 'lodash/uniq';
|
|
5
|
+
import isObject from 'lodash-es/isObject';
|
|
6
|
+
import uniq from 'lodash-es/uniq';
|
|
7
7
|
import { Tracking as Tracking$1 } from '@folklore/tracking';
|
|
8
8
|
|
|
9
9
|
class ComponentsManager {
|
package/dist/utils.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import isNumber from 'lodash/isNumber';
|
|
1
|
+
import isNumber from 'lodash-es/isNumber';
|
|
2
2
|
import { snakeCase } from 'snake-case';
|
|
3
|
-
import isObject from 'lodash/isObject';
|
|
3
|
+
import isObject from 'lodash-es/isObject';
|
|
4
4
|
import { useEffect, isValidElement } from 'react';
|
|
5
5
|
import { isValidElementType } from 'react-is';
|
|
6
|
-
import isString from 'lodash/isString';
|
|
6
|
+
import isString from 'lodash-es/isString';
|
|
7
7
|
import { pascalCase, kebabCase, snakeCase as snakeCase$1 } from 'change-case';
|
|
8
8
|
export { kebabCase as dashCase, pascalCase, snakeCase } from 'change-case';
|
|
9
|
-
import isFunction from 'lodash/isFunction';
|
|
10
|
-
import isArray from 'lodash/isArray';
|
|
11
|
-
import get from 'lodash/get';
|
|
12
|
-
import capitalize from 'lodash/capitalize';
|
|
9
|
+
import isFunction from 'lodash-es/isFunction';
|
|
10
|
+
import isArray from 'lodash-es/isArray';
|
|
11
|
+
import get from 'lodash-es/get';
|
|
12
|
+
import capitalize from 'lodash-es/capitalize';
|
|
13
13
|
import EventEmitter from 'wolfy87-eventemitter';
|
|
14
14
|
import slugify from 'slugify';
|
|
15
15
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/core",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.58",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "git+https://github.com/folkloreinc/panneau-js.git"
|
|
12
12
|
},
|
|
13
|
+
"license": "ISC",
|
|
13
14
|
"author": {
|
|
14
15
|
"name": "Folklore",
|
|
15
16
|
"email": "info@folklore.email"
|
|
@@ -24,46 +25,37 @@
|
|
|
24
25
|
"email": "nrb@folklore.email"
|
|
25
26
|
}
|
|
26
27
|
],
|
|
27
|
-
"
|
|
28
|
+
"sideEffects": [
|
|
29
|
+
"**/*.css"
|
|
30
|
+
],
|
|
28
31
|
"type": "module",
|
|
29
|
-
"module": "./dist/index.js",
|
|
30
|
-
"types": "./dist/index.d.ts",
|
|
31
32
|
"exports": {
|
|
32
33
|
".": {
|
|
33
34
|
"types": "./dist/index.d.ts",
|
|
34
35
|
"default": "./dist/index.js"
|
|
35
36
|
},
|
|
36
37
|
"./contexts": {
|
|
37
|
-
"
|
|
38
|
-
"
|
|
38
|
+
"types": "./dist/contexts.d.ts",
|
|
39
|
+
"default": "./dist/contexts.js"
|
|
39
40
|
},
|
|
40
41
|
"./hooks": {
|
|
41
|
-
"
|
|
42
|
-
"
|
|
42
|
+
"types": "./dist/hooks.d.ts",
|
|
43
|
+
"default": "./dist/hooks.js"
|
|
43
44
|
},
|
|
44
45
|
"./utils": {
|
|
45
|
-
"
|
|
46
|
-
"
|
|
46
|
+
"types": "./dist/utils.d.ts",
|
|
47
|
+
"default": "./dist/utils.js"
|
|
47
48
|
}
|
|
48
49
|
},
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
],
|
|
50
|
+
"module": "./dist/index.js",
|
|
51
|
+
"types": "./dist/index.d.ts",
|
|
52
52
|
"files": [
|
|
53
53
|
"dist",
|
|
54
54
|
"assets"
|
|
55
55
|
],
|
|
56
56
|
"scripts": {
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
},
|
|
60
|
-
"devDependencies": {
|
|
61
|
-
"react": "^19.2.0",
|
|
62
|
-
"react-dom": "^19.0.0"
|
|
63
|
-
},
|
|
64
|
-
"peerDependencies": {
|
|
65
|
-
"react": "^19.2.0",
|
|
66
|
-
"react-dom": "^19.0.0"
|
|
57
|
+
"build": "../../scripts/prepare-package.sh --types",
|
|
58
|
+
"prepublishOnly": "npm run build"
|
|
67
59
|
},
|
|
68
60
|
"dependencies": {
|
|
69
61
|
"@babel/runtime": "^7.28.6",
|
|
@@ -93,8 +85,16 @@
|
|
|
93
85
|
"wolfy87-eventemitter": "^5.2.9",
|
|
94
86
|
"wouter": "^3.1.2"
|
|
95
87
|
},
|
|
88
|
+
"devDependencies": {
|
|
89
|
+
"react": "^19.2.0",
|
|
90
|
+
"react-dom": "^19.0.0"
|
|
91
|
+
},
|
|
92
|
+
"peerDependencies": {
|
|
93
|
+
"react": "^19.2.0",
|
|
94
|
+
"react-dom": "^19.0.0"
|
|
95
|
+
},
|
|
96
96
|
"publishConfig": {
|
|
97
97
|
"access": "public"
|
|
98
98
|
},
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "408b9bef2c15c0a6c55588721d13a965ead50a5f"
|
|
100
100
|
}
|