@tramvai/tokens-render 2.70.0 → 2.72.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/lib/index.es.js CHANGED
@@ -1,36 +1,7 @@
1
1
  import { createToken } from '@tinkoff/dippy';
2
2
  export { StorageRecord as ResourceType } from '@tinkoff/htmlpagebuilder';
3
-
4
- const HEAD_META = 'head:meta';
5
- const HEAD_PERFORMANCE = 'head:performance';
6
- const HEAD_CORE_STYLES = 'head:core-styles';
7
- const HEAD_POLYFILLS = 'head:polyfills';
8
- const HEAD_CORE_SCRIPTS = 'head:core-scripts';
9
- const HEAD_DYNAMIC_SCRIPTS = 'head:dynamic-scripts';
10
- const HEAD_ANALYTICS = 'head:analytics';
11
- const HEAD_ICONS = 'head:icons';
12
- const BODY_START = 'body:start';
13
- const REACT_RENDER = 'react:render';
14
- const BODY_END = 'body:end';
15
- const BODY_TAIL_ANALYTICS = 'body:tail:analytics';
16
- const BODY_TAIL = 'body:tail';
17
-
18
- var slots = {
19
- __proto__: null,
20
- HEAD_META: HEAD_META,
21
- HEAD_PERFORMANCE: HEAD_PERFORMANCE,
22
- HEAD_CORE_STYLES: HEAD_CORE_STYLES,
23
- HEAD_POLYFILLS: HEAD_POLYFILLS,
24
- HEAD_CORE_SCRIPTS: HEAD_CORE_SCRIPTS,
25
- HEAD_DYNAMIC_SCRIPTS: HEAD_DYNAMIC_SCRIPTS,
26
- HEAD_ANALYTICS: HEAD_ANALYTICS,
27
- HEAD_ICONS: HEAD_ICONS,
28
- BODY_START: BODY_START,
29
- REACT_RENDER: REACT_RENDER,
30
- BODY_END: BODY_END,
31
- BODY_TAIL_ANALYTICS: BODY_TAIL_ANALYTICS,
32
- BODY_TAIL: BODY_TAIL
33
- };
3
+ import * as slots from './slots.es.js';
4
+ export { slots as ResourceSlot };
34
5
 
35
6
  /**
36
7
  * @description
@@ -154,4 +125,4 @@ const RENDER_FLOW_AFTER_TOKEN = createToken('render flow after', {
154
125
  const MODERN_SATISFIES_TOKEN = createToken('modernSatisfies');
155
126
  const REACT_SERVER_RENDER_MODE = createToken('reactServerRenderMode');
156
127
 
157
- export { CUSTOM_RENDER, DEFAULT_ERROR_BOUNDARY_COMPONENT, DEFAULT_FOOTER_COMPONENT, DEFAULT_HEADER_COMPONENT, DEFAULT_LAYOUT_COMPONENT, EXTEND_RENDER, HTML_ATTRS, LAYOUT_OPTIONS, MODERN_SATISFIES_TOKEN, POLYFILL_CONDITION, REACT_SERVER_RENDER_MODE, RENDERER_CALLBACK, RENDER_FLOW_AFTER_TOKEN, RENDER_MODE, RENDER_SLOTS, RESOURCES_REGISTRY, RESOURCE_INLINE_OPTIONS, slots as ResourceSlot, TRAMVAI_RENDER_MODE, USE_REACT_STRICT_MODE };
128
+ export { CUSTOM_RENDER, DEFAULT_ERROR_BOUNDARY_COMPONENT, DEFAULT_FOOTER_COMPONENT, DEFAULT_HEADER_COMPONENT, DEFAULT_LAYOUT_COMPONENT, EXTEND_RENDER, HTML_ATTRS, LAYOUT_OPTIONS, MODERN_SATISFIES_TOKEN, POLYFILL_CONDITION, REACT_SERVER_RENDER_MODE, RENDERER_CALLBACK, RENDER_FLOW_AFTER_TOKEN, RENDER_MODE, RENDER_SLOTS, RESOURCES_REGISTRY, RESOURCE_INLINE_OPTIONS, TRAMVAI_RENDER_MODE, USE_REACT_STRICT_MODE };
package/lib/index.js CHANGED
@@ -4,37 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var dippy = require('@tinkoff/dippy');
6
6
  var htmlpagebuilder = require('@tinkoff/htmlpagebuilder');
7
-
8
- const HEAD_META = 'head:meta';
9
- const HEAD_PERFORMANCE = 'head:performance';
10
- const HEAD_CORE_STYLES = 'head:core-styles';
11
- const HEAD_POLYFILLS = 'head:polyfills';
12
- const HEAD_CORE_SCRIPTS = 'head:core-scripts';
13
- const HEAD_DYNAMIC_SCRIPTS = 'head:dynamic-scripts';
14
- const HEAD_ANALYTICS = 'head:analytics';
15
- const HEAD_ICONS = 'head:icons';
16
- const BODY_START = 'body:start';
17
- const REACT_RENDER = 'react:render';
18
- const BODY_END = 'body:end';
19
- const BODY_TAIL_ANALYTICS = 'body:tail:analytics';
20
- const BODY_TAIL = 'body:tail';
21
-
22
- var slots = {
23
- __proto__: null,
24
- HEAD_META: HEAD_META,
25
- HEAD_PERFORMANCE: HEAD_PERFORMANCE,
26
- HEAD_CORE_STYLES: HEAD_CORE_STYLES,
27
- HEAD_POLYFILLS: HEAD_POLYFILLS,
28
- HEAD_CORE_SCRIPTS: HEAD_CORE_SCRIPTS,
29
- HEAD_DYNAMIC_SCRIPTS: HEAD_DYNAMIC_SCRIPTS,
30
- HEAD_ANALYTICS: HEAD_ANALYTICS,
31
- HEAD_ICONS: HEAD_ICONS,
32
- BODY_START: BODY_START,
33
- REACT_RENDER: REACT_RENDER,
34
- BODY_END: BODY_END,
35
- BODY_TAIL_ANALYTICS: BODY_TAIL_ANALYTICS,
36
- BODY_TAIL: BODY_TAIL
37
- };
7
+ var slots = require('./slots.js');
38
8
 
39
9
  /**
40
10
  * @description
@@ -162,6 +132,7 @@ Object.defineProperty(exports, 'ResourceType', {
162
132
  enumerable: true,
163
133
  get: function () { return htmlpagebuilder.StorageRecord; }
164
134
  });
135
+ exports.ResourceSlot = slots;
165
136
  exports.CUSTOM_RENDER = CUSTOM_RENDER;
166
137
  exports.DEFAULT_ERROR_BOUNDARY_COMPONENT = DEFAULT_ERROR_BOUNDARY_COMPONENT;
167
138
  exports.DEFAULT_FOOTER_COMPONENT = DEFAULT_FOOTER_COMPONENT;
@@ -179,6 +150,5 @@ exports.RENDER_MODE = RENDER_MODE;
179
150
  exports.RENDER_SLOTS = RENDER_SLOTS;
180
151
  exports.RESOURCES_REGISTRY = RESOURCES_REGISTRY;
181
152
  exports.RESOURCE_INLINE_OPTIONS = RESOURCE_INLINE_OPTIONS;
182
- exports.ResourceSlot = slots;
183
153
  exports.TRAMVAI_RENDER_MODE = TRAMVAI_RENDER_MODE;
184
154
  exports.USE_REACT_STRICT_MODE = USE_REACT_STRICT_MODE;
@@ -0,0 +1,15 @@
1
+ const HEAD_META = 'head:meta';
2
+ const HEAD_PERFORMANCE = 'head:performance';
3
+ const HEAD_CORE_STYLES = 'head:core-styles';
4
+ const HEAD_POLYFILLS = 'head:polyfills';
5
+ const HEAD_CORE_SCRIPTS = 'head:core-scripts';
6
+ const HEAD_DYNAMIC_SCRIPTS = 'head:dynamic-scripts';
7
+ const HEAD_ANALYTICS = 'head:analytics';
8
+ const HEAD_ICONS = 'head:icons';
9
+ const BODY_START = 'body:start';
10
+ const REACT_RENDER = 'react:render';
11
+ const BODY_END = 'body:end';
12
+ const BODY_TAIL_ANALYTICS = 'body:tail:analytics';
13
+ const BODY_TAIL = 'body:tail';
14
+
15
+ export { BODY_END, BODY_START, BODY_TAIL, BODY_TAIL_ANALYTICS, HEAD_ANALYTICS, HEAD_CORE_SCRIPTS, HEAD_CORE_STYLES, HEAD_DYNAMIC_SCRIPTS, HEAD_ICONS, HEAD_META, HEAD_PERFORMANCE, HEAD_POLYFILLS, REACT_RENDER };
package/lib/slots.js ADDED
@@ -0,0 +1,31 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const HEAD_META = 'head:meta';
6
+ const HEAD_PERFORMANCE = 'head:performance';
7
+ const HEAD_CORE_STYLES = 'head:core-styles';
8
+ const HEAD_POLYFILLS = 'head:polyfills';
9
+ const HEAD_CORE_SCRIPTS = 'head:core-scripts';
10
+ const HEAD_DYNAMIC_SCRIPTS = 'head:dynamic-scripts';
11
+ const HEAD_ANALYTICS = 'head:analytics';
12
+ const HEAD_ICONS = 'head:icons';
13
+ const BODY_START = 'body:start';
14
+ const REACT_RENDER = 'react:render';
15
+ const BODY_END = 'body:end';
16
+ const BODY_TAIL_ANALYTICS = 'body:tail:analytics';
17
+ const BODY_TAIL = 'body:tail';
18
+
19
+ exports.BODY_END = BODY_END;
20
+ exports.BODY_START = BODY_START;
21
+ exports.BODY_TAIL = BODY_TAIL;
22
+ exports.BODY_TAIL_ANALYTICS = BODY_TAIL_ANALYTICS;
23
+ exports.HEAD_ANALYTICS = HEAD_ANALYTICS;
24
+ exports.HEAD_CORE_SCRIPTS = HEAD_CORE_SCRIPTS;
25
+ exports.HEAD_CORE_STYLES = HEAD_CORE_STYLES;
26
+ exports.HEAD_DYNAMIC_SCRIPTS = HEAD_DYNAMIC_SCRIPTS;
27
+ exports.HEAD_ICONS = HEAD_ICONS;
28
+ exports.HEAD_META = HEAD_META;
29
+ exports.HEAD_PERFORMANCE = HEAD_PERFORMANCE;
30
+ exports.HEAD_POLYFILLS = HEAD_POLYFILLS;
31
+ exports.REACT_RENDER = REACT_RENDER;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/tokens-render",
3
- "version": "2.70.0",
3
+ "version": "2.72.0",
4
4
  "description": "Tramvai tokens for @tramvai/module-render",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.es.js",
@@ -14,18 +14,17 @@
14
14
  "url": "git@github.com:Tinkoff/tramvai.git"
15
15
  },
16
16
  "scripts": {
17
- "build": "tramvai-build --for-publish",
18
- "watch": "tsc -w",
19
- "build-for-publish": "true"
17
+ "build": "tramvai-build --forPublish --preserveModules",
18
+ "watch": "tsc -w"
20
19
  },
21
20
  "devDependencies": {
22
- "@tramvai/react": "2.70.0"
21
+ "@tramvai/react": "2.72.0"
23
22
  },
24
23
  "dependencies": {
25
- "@tinkoff/htmlpagebuilder": "0.5.5"
24
+ "@tinkoff/htmlpagebuilder": "0.5.6"
26
25
  },
27
26
  "peerDependencies": {
28
- "@tinkoff/dippy": "0.8.12",
27
+ "@tinkoff/dippy": "0.8.13",
29
28
  "react": ">=16.14.0",
30
29
  "tslib": "^2.4.0"
31
30
  },