@developer_tribe/react-builder 1.2.4 → 1.2.6
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/components/RenderErrorBoundary.d.ts +1 -1
- package/dist/index.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +3 -33
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.native.cjs.js +28 -1
- package/dist/index.native.cjs.js.map +1 -1
- package/dist/index.native.d.ts +4 -0
- package/dist/index.native.esm.js +28 -1
- package/dist/index.native.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/index.native.ts +4 -0
- package/src/index.ts +5 -70
package/package.json
CHANGED
package/src/index.native.ts
CHANGED
|
@@ -17,6 +17,7 @@ export type { Project, ProjectColors } from './types/Project';
|
|
|
17
17
|
export type { Device } from './types/Device';
|
|
18
18
|
export type { AppConfig, Localication } from './types/PreviewConfig';
|
|
19
19
|
export { defaultAppConfig } from './types/PreviewConfig';
|
|
20
|
+
export type { Fonts, FontDefinition } from './types/Fonts';
|
|
20
21
|
export type {
|
|
21
22
|
PaywallBenefitValue,
|
|
22
23
|
PaywallBenefits,
|
|
@@ -44,6 +45,9 @@ export { LocalizationParamsProvider } from './components/LocalizationParamsProvi
|
|
|
44
45
|
export { useParams } from './hooks/useParams';
|
|
45
46
|
export { useLocalizationParams } from './hooks/useLocalizationParams';
|
|
46
47
|
export { useLocalize } from './hooks/useLocalize';
|
|
48
|
+
export { useExtractTextStyle } from './hooks/useExtractTextStyle';
|
|
49
|
+
export { useExtractViewStyle } from './hooks/useExtractViewStyle';
|
|
50
|
+
export { useExtractImageStyle } from './hooks/useExtractImageStyle';
|
|
47
51
|
|
|
48
52
|
// Pure utilities (RN-safe)
|
|
49
53
|
export {
|
package/src/index.ts
CHANGED
|
@@ -1,74 +1,9 @@
|
|
|
1
1
|
import './styles/index.scss';
|
|
2
|
-
import AttributesEditor from './AttributesEditor';
|
|
3
2
|
|
|
4
|
-
//
|
|
5
|
-
|
|
6
|
-
// - `getSamples` (from `src/assets/samples/getSamples.ts`)
|
|
7
|
-
// - types from `src/types/*` and `src/types/PreviewConfig.ts` (Project/ProjectColors/AppConfig/defaultAppConfig)
|
|
8
|
-
//
|
|
9
|
-
// React Native: a RN-safe entrypoint exists at `react-builder/native` (`src/index.native.ts`).
|
|
10
|
-
// More RN-focused exports/integration helpers are coming.
|
|
11
|
-
// NOTE: In React Native, `products` should be sourced from an IAP wrapper (e.g. `react-native-iap`)
|
|
12
|
-
// and passed into `BuilderProvider` from the host app.
|
|
13
|
-
export {
|
|
14
|
-
BuilderProvider,
|
|
15
|
-
useBuilderParams,
|
|
16
|
-
} from './components/BuilderProvider';
|
|
17
|
-
export { ParamsProvider } from './components/ParamsProvider';
|
|
18
|
-
export { LocalizationParamsProvider } from './components/LocalizationParamsProvider';
|
|
19
|
-
export { RenderErrorBoundary } from './components/RenderErrorBoundary';
|
|
20
|
-
export { useParams } from './hooks/useParams';
|
|
21
|
-
export { useLocalizationParams } from './hooks/useLocalizationParams';
|
|
22
|
-
export { useLocalize } from './hooks/useLocalize';
|
|
23
|
-
export { useExtractTextStyle } from './hooks/useExtractTextStyle';
|
|
24
|
-
export { useExtractViewStyle } from './hooks/useExtractViewStyle';
|
|
25
|
-
export { useExtractImageStyle } from './hooks/useExtractImageStyle';
|
|
26
|
-
|
|
27
|
-
export type { TargetedScreenSize } from './types/TargetedScreenSize';
|
|
28
|
-
export type { Node, NodeData, NodeDefaultAttribute } from './types/Node';
|
|
29
|
-
export type { Project, ProjectColors } from './types/Project';
|
|
30
|
-
export type { Fonts, FontDefinition } from './types/Fonts';
|
|
31
|
-
export {
|
|
32
|
-
isNodeNullOrUndefined,
|
|
33
|
-
isNodeString,
|
|
34
|
-
isNodeArray,
|
|
35
|
-
isEmptyObject,
|
|
36
|
-
analyseNode,
|
|
37
|
-
} from './utils/analyseNode';
|
|
3
|
+
// Web entrypoint trimmed to what the `example/` app uses.
|
|
4
|
+
export { ProjectPage } from './pages/ProjectPage';
|
|
38
5
|
export { getSamples } from './assets/samples/getSamples';
|
|
39
|
-
export type { AppConfig, Localication } from './types/PreviewConfig';
|
|
40
6
|
export { defaultAppConfig } from './types/PreviewConfig';
|
|
41
|
-
|
|
42
|
-
export type {
|
|
43
|
-
export {
|
|
44
|
-
export * from './build-components/index';
|
|
45
|
-
export { default as useNode } from './build-components/useNode';
|
|
46
|
-
export { querySelector } from './utils/querySelector';
|
|
47
|
-
export { extractViewStyle } from './utils/extractViewStyle';
|
|
48
|
-
export { extractImageStyle } from './utils/extractImageStyle';
|
|
49
|
-
export { extractTextStyle } from './utils/extractTextStyle';
|
|
50
|
-
export {
|
|
51
|
-
getImage,
|
|
52
|
-
TRIBE_ASSETS_BASE_URL,
|
|
53
|
-
TribeAssetName,
|
|
54
|
-
parseTribeAssetName,
|
|
55
|
-
resolveImageSrc,
|
|
56
|
-
} from './utils/getImage';
|
|
57
|
-
export { ProjectPage } from './pages/ProjectPage';
|
|
58
|
-
export type { ProjectPageProps } from './pages/ProjectPage';
|
|
59
|
-
export { logger } from './utils/logger';
|
|
60
|
-
export type { LogLevel } from './types/Project';
|
|
61
|
-
export type {
|
|
62
|
-
PaywallBenefitValue,
|
|
63
|
-
PaywallBenefits,
|
|
64
|
-
Product as PaywallProduct,
|
|
65
|
-
PaywallModel,
|
|
66
|
-
} from './paywall/types/paywall-types';
|
|
67
|
-
// Paywall hooks
|
|
68
|
-
export {
|
|
69
|
-
usePaywallCounter,
|
|
70
|
-
useCloseStatusPaywall,
|
|
71
|
-
useCarouselOptionsSeperator,
|
|
72
|
-
useCalculateLocalizedPrice,
|
|
73
|
-
useDiscountRate,
|
|
74
|
-
} from './paywall/hooks';
|
|
7
|
+
|
|
8
|
+
export type { AppConfig } from './types/PreviewConfig';
|
|
9
|
+
export type { Project, ProjectColors } from './types/Project';
|