@gravity-ui/page-constructor 1.14.0-alpha.7 → 1.14.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.
Files changed (91) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/build/cjs/blocks/Banner/schema.d.ts +0 -336
  3. package/build/cjs/blocks/Media/schema.d.ts +0 -112
  4. package/build/cjs/components/Button/Button.js +2 -5
  5. package/build/cjs/components/CardBase/CardBase.d.ts +0 -2
  6. package/build/cjs/components/CardBase/CardBase.js +1 -4
  7. package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +1 -4
  8. package/build/cjs/components/Link/Link.js +1 -4
  9. package/build/cjs/components/YandexForm/YandexForm.d.ts +0 -2
  10. package/build/cjs/components/YandexForm/YandexForm.js +2 -13
  11. package/build/cjs/containers/PageConstructor/Provider.d.ts +0 -2
  12. package/build/cjs/containers/PageConstructor/Provider.js +1 -3
  13. package/build/cjs/context/metrikaContext/metrikaContext.d.ts +0 -6
  14. package/build/cjs/hooks/useMetrika.d.ts +0 -6
  15. package/build/cjs/hooks/useMetrika.js +0 -8
  16. package/build/cjs/models/common.d.ts +0 -30
  17. package/build/cjs/models/common.js +0 -3
  18. package/build/cjs/models/constructor-items/common.d.ts +1 -4
  19. package/build/cjs/models/constructor-items/sub-blocks.d.ts +1 -2
  20. package/build/cjs/models/navigation.d.ts +1 -3
  21. package/build/cjs/navigation/components/Header/Header.css +5 -3
  22. package/build/cjs/navigation/components/Logo/Logo.css +5 -6
  23. package/build/cjs/navigation/components/NavigationItem/NavigationItem.css +1 -0
  24. package/build/cjs/navigation/schema.d.ts +60 -0
  25. package/build/cjs/navigation/schema.js +80 -0
  26. package/build/cjs/schema/index.d.ts +67 -0
  27. package/build/cjs/schema/index.js +2 -1
  28. package/build/cjs/schema/validators/common.d.ts +0 -236
  29. package/build/cjs/schema/validators/common.js +0 -10
  30. package/build/cjs/schema/validators/index.d.ts +2 -0
  31. package/build/cjs/schema/validators/index.js +2 -0
  32. package/build/cjs/schema/validators/navigation.d.ts +1 -0
  33. package/build/cjs/{context/analyticsContext/index.js → schema/validators/navigation.js} +1 -1
  34. package/build/cjs/sub-blocks/HubspotForm/index.js +2 -14
  35. package/build/cjs/text-transform/blocks.js +1 -10
  36. package/build/esm/blocks/Banner/schema.d.ts +0 -336
  37. package/build/esm/blocks/Media/schema.d.ts +0 -112
  38. package/build/esm/components/Button/Button.js +2 -5
  39. package/build/esm/components/CardBase/CardBase.d.ts +0 -2
  40. package/build/esm/components/CardBase/CardBase.js +1 -4
  41. package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.js +1 -4
  42. package/build/esm/components/Link/Link.js +1 -4
  43. package/build/esm/components/YandexForm/YandexForm.d.ts +0 -2
  44. package/build/esm/components/YandexForm/YandexForm.js +2 -13
  45. package/build/esm/containers/PageConstructor/Provider.d.ts +0 -2
  46. package/build/esm/containers/PageConstructor/Provider.js +1 -3
  47. package/build/esm/context/metrikaContext/metrikaContext.d.ts +0 -6
  48. package/build/esm/hooks/useMetrika.d.ts +0 -6
  49. package/build/esm/hooks/useMetrika.js +0 -8
  50. package/build/esm/models/common.d.ts +0 -30
  51. package/build/esm/models/common.js +0 -3
  52. package/build/esm/models/constructor-items/common.d.ts +1 -4
  53. package/build/esm/models/constructor-items/sub-blocks.d.ts +1 -2
  54. package/build/esm/models/navigation.d.ts +1 -3
  55. package/build/esm/navigation/components/Header/Header.css +5 -3
  56. package/build/esm/navigation/components/Logo/Logo.css +5 -6
  57. package/build/esm/navigation/components/NavigationItem/NavigationItem.css +1 -0
  58. package/build/esm/navigation/schema.d.ts +60 -0
  59. package/build/esm/navigation/schema.js +77 -0
  60. package/build/esm/schema/index.d.ts +67 -0
  61. package/build/esm/schema/index.js +2 -1
  62. package/build/esm/schema/validators/common.d.ts +0 -236
  63. package/build/esm/schema/validators/common.js +0 -10
  64. package/build/esm/schema/validators/index.d.ts +2 -0
  65. package/build/esm/schema/validators/index.js +2 -0
  66. package/build/esm/schema/validators/navigation.d.ts +1 -0
  67. package/build/esm/schema/validators/navigation.js +1 -0
  68. package/build/esm/sub-blocks/HubspotForm/index.js +2 -14
  69. package/build/esm/text-transform/blocks.js +1 -10
  70. package/package.json +1 -4
  71. package/server/models/common.d.ts +0 -30
  72. package/server/models/common.js +0 -3
  73. package/server/models/constructor-items/common.d.ts +1 -4
  74. package/server/models/constructor-items/sub-blocks.d.ts +1 -2
  75. package/server/models/navigation.d.ts +1 -3
  76. package/server/text-transform/blocks.js +1 -10
  77. package/build/cjs/context/analyticsContext/analyticsContext.d.ts +0 -6
  78. package/build/cjs/context/analyticsContext/analyticsContext.js +0 -6
  79. package/build/cjs/context/analyticsContext/index.d.ts +0 -1
  80. package/build/cjs/hooks/useAnalytics.d.ts +0 -2
  81. package/build/cjs/hooks/useAnalytics.js +0 -15
  82. package/build/cjs/schema/validators/event.d.ts +0 -54
  83. package/build/cjs/schema/validators/event.js +0 -57
  84. package/build/esm/context/analyticsContext/analyticsContext.d.ts +0 -6
  85. package/build/esm/context/analyticsContext/analyticsContext.js +0 -2
  86. package/build/esm/context/analyticsContext/index.d.ts +0 -1
  87. package/build/esm/context/analyticsContext/index.js +0 -1
  88. package/build/esm/hooks/useAnalytics.d.ts +0 -2
  89. package/build/esm/hooks/useAnalytics.js +0 -11
  90. package/build/esm/schema/validators/event.d.ts +0 -54
  91. package/build/esm/schema/validators/event.js +0 -54
@@ -1,57 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AnalyticsEventSchema = void 0;
4
- exports.AnalyticsEventSchema = {
5
- type: 'object',
6
- additionalProperties: false,
7
- required: ['name'],
8
- properties: {
9
- name: {
10
- type: 'string',
11
- },
12
- type: {
13
- type: 'string',
14
- },
15
- counters: {
16
- type: 'object',
17
- additionalProperties: false,
18
- required: [],
19
- properties: {
20
- include: {
21
- type: 'array',
22
- items: {
23
- type: 'string',
24
- },
25
- },
26
- exclude: {
27
- type: 'array',
28
- items: {
29
- type: 'string',
30
- },
31
- },
32
- },
33
- },
34
- category: {
35
- type: 'string',
36
- },
37
- label: {
38
- type: 'string',
39
- },
40
- params: {
41
- type: 'array',
42
- items: {
43
- type: 'object',
44
- additionalProperties: false,
45
- required: ['key', 'value'],
46
- properties: {
47
- key: {
48
- type: 'string',
49
- },
50
- value: {
51
- type: 'string',
52
- },
53
- },
54
- },
55
- },
56
- },
57
- };
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { AnalyticsEvent } from '../../models';
3
- export interface AnalyticsContextProps {
4
- sendEvents?: (e: AnalyticsEvent | AnalyticsEvent[]) => void;
5
- }
6
- export declare const AnalyticsContext: React.Context<AnalyticsContextProps>;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export const AnalyticsContext = React.createContext({});
@@ -1 +0,0 @@
1
- export * from './analyticsContext';
@@ -1 +0,0 @@
1
- export * from './analyticsContext';
@@ -1,2 +0,0 @@
1
- import { AnalyticsEvent } from '../models';
2
- export declare const useAnalytics: () => (e?: AnalyticsEvent | AnalyticsEvent[]) => void;
@@ -1,11 +0,0 @@
1
- import { useContext } from 'react';
2
- import { AnalyticsContext } from '../context/analyticsContext';
3
- export const useAnalytics = () => {
4
- const { sendEvents } = useContext(AnalyticsContext);
5
- return (e) => {
6
- if (!e) {
7
- return;
8
- }
9
- sendEvents === null || sendEvents === void 0 ? void 0 : sendEvents(e);
10
- };
11
- };
@@ -1,54 +0,0 @@
1
- export declare const AnalyticsEventSchema: {
2
- type: string;
3
- additionalProperties: boolean;
4
- required: string[];
5
- properties: {
6
- name: {
7
- type: string;
8
- };
9
- type: {
10
- type: string;
11
- };
12
- counters: {
13
- type: string;
14
- additionalProperties: boolean;
15
- required: never[];
16
- properties: {
17
- include: {
18
- type: string;
19
- items: {
20
- type: string;
21
- };
22
- };
23
- exclude: {
24
- type: string;
25
- items: {
26
- type: string;
27
- };
28
- };
29
- };
30
- };
31
- category: {
32
- type: string;
33
- };
34
- label: {
35
- type: string;
36
- };
37
- params: {
38
- type: string;
39
- items: {
40
- type: string;
41
- additionalProperties: boolean;
42
- required: string[];
43
- properties: {
44
- key: {
45
- type: string;
46
- };
47
- value: {
48
- type: string;
49
- };
50
- };
51
- };
52
- };
53
- };
54
- };
@@ -1,54 +0,0 @@
1
- export const AnalyticsEventSchema = {
2
- type: 'object',
3
- additionalProperties: false,
4
- required: ['name'],
5
- properties: {
6
- name: {
7
- type: 'string',
8
- },
9
- type: {
10
- type: 'string',
11
- },
12
- counters: {
13
- type: 'object',
14
- additionalProperties: false,
15
- required: [],
16
- properties: {
17
- include: {
18
- type: 'array',
19
- items: {
20
- type: 'string',
21
- },
22
- },
23
- exclude: {
24
- type: 'array',
25
- items: {
26
- type: 'string',
27
- },
28
- },
29
- },
30
- },
31
- category: {
32
- type: 'string',
33
- },
34
- label: {
35
- type: 'string',
36
- },
37
- params: {
38
- type: 'array',
39
- items: {
40
- type: 'object',
41
- additionalProperties: false,
42
- required: ['key', 'value'],
43
- properties: {
44
- key: {
45
- type: 'string',
46
- },
47
- value: {
48
- type: 'string',
49
- },
50
- },
51
- },
52
- },
53
- },
54
- };