@developer_tribe/react-builder 1.2.10 → 1.2.11

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.
@@ -1,92 +0,0 @@
1
- /**
2
- * React Native-safe entrypoint.
3
- *
4
- * IMPORTANT:
5
- * - No SCSS imports
6
- * - No `react-dom` imports
7
- * - No web-only modules that touch `window`/`document`/`localStorage`
8
- *
9
- * This file is meant to be used via the package `react-native` entry (Metro)
10
- * or explicit `@developer_tribe/react-builder/native` style imports.
11
- */
12
- //TODO: index's shoudl be reviewed and updated.
13
- // Types
14
- export type { TargetedScreenSize } from './types/TargetedScreenSize';
15
- export type { Node, NodeData, NodeDefaultAttribute } from './types/Node';
16
- export type { Project, ProjectColors } from './types/Project';
17
- export type { Device } from './types/Device';
18
- export type { AppConfig, Localication } from './types/PreviewConfig';
19
- export { defaultAppConfig } from './types/PreviewConfig';
20
- export type { Fonts, FontDefinition } from './types/Fonts';
21
- export type {
22
- PaywallBenefitValue,
23
- PaywallBenefits,
24
- Product as PaywallProduct,
25
- PaywallModel,
26
- } from './paywall/types/paywall-types';
27
-
28
- // Paywall hooks (RN-safe placeholders)
29
- export {
30
- usePaywallCounter,
31
- useCloseStatusPaywall,
32
- useCarouselOptionsSeperator,
33
- useCalculateLocalizedPrice,
34
- useDiscountRate,
35
- } from './paywall/hooks';
36
-
37
- // Context (RN-safe). In React Native, `products` should come from an IAP wrapper
38
- // (e.g. `react-native-iap`) and be passed into `BuilderProvider` by the host app.
39
- export {
40
- BuilderProvider,
41
- useBuilderParams,
42
- } from './components/BuilderProvider';
43
- export { ParamsProvider } from './components/ParamsProvider';
44
- export { LocalizationParamsProvider } from './components/LocalizationParamsProvider';
45
- export { useParams } from './hooks/useParams';
46
- export { useLocalizationParams } from './hooks/useLocalizationParams';
47
- export { useLocalize } from './hooks/useLocalize';
48
- export { useExtractTextStyle } from './attribute-analyser/style/native/useExtractTextStyle';
49
- export { useExtractViewStyle } from './attribute-analyser/style/native/useExtractViewStyle';
50
- export { useExtractImageStyle } from './attribute-analyser/style/native/useExtractImageStyle';
51
-
52
- // Pure utilities (RN-safe)
53
- export {
54
- isNodeNullOrUndefined,
55
- isNodeString,
56
- isNodeArray,
57
- isEmptyObject,
58
- analyseNode,
59
- analyseAndProccess,
60
- } from './utils/analyseNode';
61
- export { getMeta } from './utils/getMeta';
62
- export { novaToJson } from './utils/novaToJson';
63
- export { getDevices, getDefaultDevice } from './utils/getDevices';
64
- export { querySelector } from './utils/querySelector';
65
- export {
66
- getImage,
67
- TRIBE_ASSETS_BASE_URL,
68
- TribeAssetName,
69
- parseTribeAssetName,
70
- resolveImageSrc,
71
- } from './utils/getImage';
72
- export {
73
- getPatternByType,
74
- getAttributeSchema,
75
- getAttributeMeta,
76
- getDefaultsForType,
77
- getTypeSchema,
78
- isPrimitiveType,
79
- getArrayItemType,
80
- } from './utils/patterns';
81
-
82
- // Node helpers (RN-safe)
83
- export { default as useNode } from './build-components/useNode';
84
-
85
- // Static sample data helpers (RN-safe)
86
- export {
87
- getSamples,
88
- getBasicSamples,
89
- getOnboardSamples,
90
- } from './assets/samples/getSamples';
91
- export type { EventObjectGenerated } from './build-components/OnboardButton/OnboardButtonProps.generated';
92
- export * from './build-components';