react-native-auto-positioned-popup 1.0.15 → 1.0.16
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/constants.d.ts +19 -0
- package/lib/constants.d.ts.map +1 -0
- package/lib/constants.js +15 -0
- package/lib/constants.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/constants.ts +19 -0
- package/src/index.ts +5 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Event names used by AutoPositionedPopup component
|
|
3
|
+
* These constants can be used with global event emitters to coordinate
|
|
4
|
+
* search query changes across different components
|
|
5
|
+
*/
|
|
6
|
+
export declare const AutoPositionedPopupEventNames: {
|
|
7
|
+
/**
|
|
8
|
+
* Event fired when the search query in AutoPositionedPopup changes
|
|
9
|
+
* Payload: { tag: string; searchQuery: string }
|
|
10
|
+
* - tag: Identifier for which popup instance triggered the event
|
|
11
|
+
* - searchQuery: The current search text
|
|
12
|
+
*/
|
|
13
|
+
readonly searchQueryChange: "AutoPositionedPopup搜索查询变更";
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Type for AutoPositionedPopup event names
|
|
17
|
+
*/
|
|
18
|
+
export type AutoPositionedPopupEventName = typeof AutoPositionedPopupEventNames[keyof typeof AutoPositionedPopupEventNames];
|
|
19
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,6BAA6B;IACxC;;;;;OAKG;;CAEK,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,OAAO,6BAA6B,CAAC,MAAM,OAAO,6BAA6B,CAAC,CAAC"}
|
package/lib/constants.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Event names used by AutoPositionedPopup component
|
|
3
|
+
* These constants can be used with global event emitters to coordinate
|
|
4
|
+
* search query changes across different components
|
|
5
|
+
*/
|
|
6
|
+
export const AutoPositionedPopupEventNames = {
|
|
7
|
+
/**
|
|
8
|
+
* Event fired when the search query in AutoPositionedPopup changes
|
|
9
|
+
* Payload: { tag: string; searchQuery: string }
|
|
10
|
+
* - tag: Identifier for which popup instance triggered the event
|
|
11
|
+
* - searchQuery: The current search text
|
|
12
|
+
*/
|
|
13
|
+
searchQueryChange: 'AutoPositionedPopup搜索查询变更',
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C;;;;;OAKG;IACH,iBAAiB,EAAE,2BAA2B;CACtC,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -3,4 +3,6 @@ export { default } from './AutoPositionedPopup';
|
|
|
3
3
|
export type { AutoPositionedPopupProps, SelectedItem, Data, } from './AutoPositionedPopupProps';
|
|
4
4
|
export { default as AutoPositionedPopupStyles } from './AutoPositionedPopup.style';
|
|
5
5
|
export { RootViewProvider, useRootView } from './RootViewContext';
|
|
6
|
+
export { AutoPositionedPopupEventNames } from './constants';
|
|
7
|
+
export type { AutoPositionedPopupEventName } from './constants';
|
|
6
8
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAGhD,YAAY,EACV,wBAAwB,EACxB,YAAY,EACZ,IAAI,GACL,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAGnF,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAGhD,YAAY,EACV,wBAAwB,EACxB,YAAY,EACZ,IAAI,GACL,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAGnF,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGlE,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAC5D,YAAY,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -5,4 +5,6 @@ export { default } from './AutoPositionedPopup';
|
|
|
5
5
|
export { default as AutoPositionedPopupStyles } from './AutoPositionedPopup.style';
|
|
6
6
|
// RootView exports
|
|
7
7
|
export { RootViewProvider, useRootView } from './RootViewContext';
|
|
8
|
+
// Event name constants export
|
|
9
|
+
export { AutoPositionedPopupEventNames } from './constants';
|
|
8
10
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,wBAAwB;AACxB,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAShD,8CAA8C;AAC9C,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAEnF,mBAAmB;AACnB,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,wBAAwB;AACxB,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAShD,8CAA8C;AAC9C,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAEnF,mBAAmB;AACnB,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAElE,8BAA8B;AAC9B,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-auto-positioned-popup",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.16",
|
|
4
4
|
"description": "A highly customizable React Native auto-positioned popup component with search functionality and flexible styling options",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
package/src/constants.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Event names used by AutoPositionedPopup component
|
|
3
|
+
* These constants can be used with global event emitters to coordinate
|
|
4
|
+
* search query changes across different components
|
|
5
|
+
*/
|
|
6
|
+
export const AutoPositionedPopupEventNames = {
|
|
7
|
+
/**
|
|
8
|
+
* Event fired when the search query in AutoPositionedPopup changes
|
|
9
|
+
* Payload: { tag: string; searchQuery: string }
|
|
10
|
+
* - tag: Identifier for which popup instance triggered the event
|
|
11
|
+
* - searchQuery: The current search text
|
|
12
|
+
*/
|
|
13
|
+
searchQueryChange: 'AutoPositionedPopup搜索查询变更',
|
|
14
|
+
} as const;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Type for AutoPositionedPopup event names
|
|
18
|
+
*/
|
|
19
|
+
export type AutoPositionedPopupEventName = typeof AutoPositionedPopupEventNames[keyof typeof AutoPositionedPopupEventNames];
|
package/src/index.ts
CHANGED
|
@@ -13,4 +13,8 @@ export type {
|
|
|
13
13
|
export { default as AutoPositionedPopupStyles } from './AutoPositionedPopup.style';
|
|
14
14
|
|
|
15
15
|
// RootView exports
|
|
16
|
-
export { RootViewProvider, useRootView } from './RootViewContext';
|
|
16
|
+
export { RootViewProvider, useRootView } from './RootViewContext';
|
|
17
|
+
|
|
18
|
+
// Event name constants export
|
|
19
|
+
export { AutoPositionedPopupEventNames } from './constants';
|
|
20
|
+
export type { AutoPositionedPopupEventName } from './constants';
|