@expofp/data 3.0.0-alpha.3

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.
@@ -0,0 +1,4 @@
1
+ export * from './lib/Data.js';
2
+ export * from './lib/Manifest.js';
3
+ export * from './lib/validate-data-setting.js';
4
+ //# sourceMappingURL=index.d.ts.map
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ export * from './lib/Data.js';
2
+ export * from './lib/Manifest.js';
3
+ export * from './lib/validate-data-setting.js';
@@ -0,0 +1,16 @@
1
+ export interface Data {
2
+ logo?: string;
3
+ /** @deprecated Use customCssAssetText instead */
4
+ customCss?: string;
5
+ customCssAssetText?: string;
6
+ exhibitors: Exhibitor[];
7
+ }
8
+ export interface Exhibitor {
9
+ id: number;
10
+ name: string;
11
+ }
12
+ export interface Dummy {
13
+ id: number;
14
+ name: string;
15
+ }
16
+ //# sourceMappingURL=Data.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,21 @@
1
+ import type { Dummy } from './Data.js';
2
+ export type Ref<T> = {
3
+ $ref: string;
4
+ __type?: T;
5
+ };
6
+ export type RefTarget<R> = R extends Ref<infer T> ? T : never;
7
+ /**
8
+ * ExpoFP Manifest format
9
+ */
10
+ export interface Manifest {
11
+ runtimeUrl?: Ref<string> | string;
12
+ expo: string;
13
+ /** @deprecated */
14
+ legacyDataVersion?: {
15
+ version: string;
16
+ };
17
+ /** @deprecated */
18
+ legacyDataUrlBase?: string;
19
+ dummies: Ref<Dummy>[];
20
+ }
21
+ //# sourceMappingURL=Manifest.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ declare const VALIDATE_DATA_JS_OPTIONS: readonly ["Off", "Strip", "Warn"];
2
+ export type ValidateDataJsOption = (typeof VALIDATE_DATA_JS_OPTIONS)[number];
3
+ export declare const validateDataJsSetting: import("@expofp/debug").DebugSetting<"Off" | "Strip" | "Warn">;
4
+ export {};
5
+ //# sourceMappingURL=validate-data-setting.d.ts.map
@@ -0,0 +1,3 @@
1
+ import { registerEnumSetting } from '@expofp/debug';
2
+ const VALIDATE_DATA_JS_OPTIONS = ['Off', 'Strip', 'Warn'];
3
+ export const validateDataJsSetting = registerEnumSetting('Validate Data.js', VALIDATE_DATA_JS_OPTIONS, VALIDATE_DATA_JS_OPTIONS[0]);
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "@expofp/data",
3
+ "version": "3.0.0-alpha.3",
4
+ "type": "module",
5
+ "description": "ExpoFP SDK internal: data layer and schemas",
6
+ "license": "MIT",
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
10
+ "main": "./dist/index.js",
11
+ "module": "./dist/index.js",
12
+ "types": "./dist/index.d.ts",
13
+ "exports": {
14
+ "./package.json": "./package.json",
15
+ ".": {
16
+ "@expofp/source": "./src/index.ts",
17
+ "types": "./dist/index.d.ts",
18
+ "import": "./dist/index.js",
19
+ "default": "./dist/index.js"
20
+ }
21
+ },
22
+ "files": [
23
+ "dist",
24
+ "!**/*.tsbuildinfo",
25
+ "!**/*.map"
26
+ ],
27
+ "dependencies": {
28
+ "tslib": "^2.3.0",
29
+ "@expofp/debug": "3.0.0-alpha.3"
30
+ }
31
+ }