@elementor/elementor-one-assets 0.4.4 → 0.4.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/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import { SxProps, Theme } from '@elementor/ui/styles';
3
3
  import * as react from 'react';
4
4
  import { FC, PropsWithChildren } from 'react';
5
5
 
6
- type Slug = 'elementor' | 'elementor-pro' | 'pojo-accessibility' | 'image-optimization' | 'site-mailer' | 'angie' | 'elementor-one';
6
+ type Slug = 'elementor' | 'elementor-pro' | 'ally' | 'image-optimization' | 'site-mailer' | 'angie' | 'elementor-one';
7
7
  type AppSettings = {
8
8
  slug: Slug;
9
9
  version: string;
@@ -40,7 +40,11 @@ interface EnvConfig {
40
40
  [key: string]: string;
41
41
  }
42
42
 
43
- declare const ElementorOneAssetsContext: react.Context<EnvConfig>;
43
+ type ElementorOneAssetsContextValue = {
44
+ config: EnvConfig;
45
+ isRTL: boolean;
46
+ };
47
+ declare const ElementorOneAssetsContext: react.Context<ElementorOneAssetsContextValue>;
44
48
  type ElementorOneAssetsProviderProps = PropsWithChildren<{
45
49
  /**
46
50
  * Environment configuration for the application.
@@ -53,6 +57,12 @@ type ElementorOneAssetsProviderProps = PropsWithChildren<{
53
57
  * @default 'en'
54
58
  */
55
59
  language?: string;
60
+ /**
61
+ * Right-to-left orientation flag.
62
+ * Determines the text direction and layout orientation.
63
+ * @default false
64
+ */
65
+ isRTL?: boolean;
56
66
  }>;
57
67
  /**
58
68
  * Provider component for Elementor One Assets package.
@@ -60,11 +70,9 @@ type ElementorOneAssetsProviderProps = PropsWithChildren<{
60
70
  * This provider:
61
71
  * - Initializes i18n with the specified language
62
72
  * - Configures HTTP client with environment settings
63
- * - Provides environment configuration via context
73
+ * - Provides environment configuration and RTL orientation via context
64
74
  */
65
75
  declare const ElementorOneAssetsProvider: FC<ElementorOneAssetsProviderProps>;
66
76
 
67
- declare const convertImageToBase64: (imageUrl: string) => Promise<string>;
68
-
69
- export { ElementorOneAssetsContext, ElementorOneAssetsProvider, ElementorOneHeader, SendFeedbackDialog, WhatsNew, convertImageToBase64 };
77
+ export { ElementorOneAssetsContext, ElementorOneAssetsProvider, ElementorOneHeader, SendFeedbackDialog, WhatsNew };
70
78
  export type { Environment };