@fragmentsx/render-react 1.2.2 → 1.2.4
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/hooks/fragment/useFragmentCssChunks.d.ts.map +1 -1
- package/dist/hooks/layer/index.d.ts +1 -1
- package/dist/hooks/layer/index.d.ts.map +1 -1
- package/dist/hooks/layer/useLayerCssVariable.d.ts.map +1 -1
- package/dist/hooks/layer/useLayerValue.d.ts +2 -3
- package/dist/hooks/layer/useLayerValue.d.ts.map +1 -1
- package/dist/hooks/layer/useNormalizeLayer/index.d.ts.map +1 -1
- package/dist/hooks/layer/useReadVariable.d.ts +6 -2
- package/dist/hooks/layer/useReadVariable.d.ts.map +1 -1
- package/dist/hooks/layer-styles/useLayerPaint.d.ts +1 -0
- package/dist/hooks/layer-styles/useLayerPaint.d.ts.map +1 -1
- package/dist/hooks/render/index.d.ts +2 -0
- package/dist/hooks/render/index.d.ts.map +1 -0
- package/dist/hooks/utils/useLayerInteractions.d.ts.map +1 -1
- package/dist/index.cjs.js +263 -95
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +264 -96
- package/dist/nodes/Collection/Collection.d.ts.map +1 -1
- package/dist/nodes/Instance/Instance.d.ts +1 -0
- package/dist/nodes/Instance/Instance.d.ts.map +1 -1
- package/dist/nodes/Instance/hooks/useInstance.d.ts +1 -0
- package/dist/nodes/Instance/hooks/useInstance.d.ts.map +1 -1
- package/dist/nodes/Instance/hooks/useInstanceProps.d.ts +2 -1
- package/dist/nodes/Instance/hooks/useInstanceProps.d.ts.map +1 -1
- package/dist/nodes/Text/Text.d.ts.map +1 -1
- package/dist/nodes/Text/hooks/useTextAttributes.d.ts +9 -0
- package/dist/nodes/Text/hooks/useTextAttributes.d.ts.map +1 -1
- package/dist/nodes/Text/hooks/useTextContent.d.ts.map +1 -1
- package/dist/nodes/Text/hooks/useTextHighlight.d.ts +6 -0
- package/dist/nodes/Text/hooks/useTextHighlight.d.ts.map +1 -0
- package/dist/nodes/Text/index.d.ts +1 -0
- package/dist/nodes/Text/index.d.ts.map +1 -1
- package/dist/test/__examples__/Fragment.test.d.ts +6 -0
- package/dist/test/__examples__/Fragment.test.d.ts.map +1 -0
- package/dist/test/__examples__/useReadVariable.test.d.ts +6 -0
- package/dist/test/__examples__/useReadVariable.test.d.ts.map +1 -0
- package/dist/test/setupTests.d.ts +2 -0
- package/dist/test/setupTests.d.ts.map +1 -0
- package/dist/test/testUtils.d.ts +17 -0
- package/dist/test/testUtils.d.ts.map +1 -0
- package/dist/utils/layer/makeSnapshot.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useReadVariable.test.d.ts","sourceRoot":"","sources":["../../../src/test/__examples__/useReadVariable.test.tsx"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setupTests.d.ts","sourceRoot":"","sources":["../../src/test/setupTests.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { RenderOptions } from '@testing-library/react';
|
|
3
|
+
import { GraphState } from '@graph-state/core';
|
|
4
|
+
/**
|
|
5
|
+
* Создаёт тестовый GlobalManager для тестов
|
|
6
|
+
*/
|
|
7
|
+
export declare const createTestGlobalManager: (initialData?: unknown) => GraphState;
|
|
8
|
+
/**
|
|
9
|
+
* Кастомный render с провайдерами по умолчанию
|
|
10
|
+
*/
|
|
11
|
+
interface CustomRenderOptions extends Omit<RenderOptions, "wrapper"> {
|
|
12
|
+
globalManager?: GraphState;
|
|
13
|
+
}
|
|
14
|
+
export declare const renderWithProviders: (ui: ReactElement, { globalManager, ...renderOptions }?: CustomRenderOptions) => any;
|
|
15
|
+
export * from '@testing-library/react';
|
|
16
|
+
export { default as userEvent } from '@testing-library/user-event';
|
|
17
|
+
//# sourceMappingURL=testUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testUtils.d.ts","sourceRoot":"","sources":["../../src/test/testUtils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAU,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAI/C;;GAEG;AACH,eAAO,MAAM,uBAAuB,iBAAkB,OAAO,KAAG,UAE/D,CAAC;AAEF;;GAEG;AACH,UAAU,mBAAoB,SAAQ,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC;IAClE,aAAa,CAAC,EAAE,UAAU,CAAC;CAC5B;AAED,eAAO,MAAM,mBAAmB,OAC1B,YAAY,wCAIb,mBAAmB,QAWvB,CAAC;AAGF,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"makeSnapshot.d.ts","sourceRoot":"","sources":["../../../src/utils/layer/makeSnapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAW,MAAM,mBAAmB,CAAC;AAGxD,wBAAgB,YAAY,CAC1B,aAAa,EAAE,UAAU,EACzB,gBAAgB,EAAE,MAAM;;;;;;
|
|
1
|
+
{"version":3,"file":"makeSnapshot.d.ts","sourceRoot":"","sources":["../../../src/utils/layer/makeSnapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAW,MAAM,mBAAmB,CAAC;AAGxD,wBAAgB,YAAY,CAC1B,aAAa,EAAE,UAAU,EACzB,gBAAgB,EAAE,MAAM;;;;;;SAoEzB"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fragmentsx/render-react",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@graph-state/core": "^0.13.2",
|
|
28
28
|
"@graph-state/react": "^0.8.2",
|
|
29
29
|
"react-use-measure": "^2.1.7",
|
|
30
|
-
"@fragmentsx/definition": "0.2.
|
|
30
|
+
"@fragmentsx/definition": "0.2.1",
|
|
31
31
|
"@fragmentsx/utils": "0.2.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|