@datadog/apps-frontend 0.0.6 → 0.0.7
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/README.md +12 -11
- package/dist/src/_chunks/chunk-2ZECSTB4.js +7 -0
- package/dist/src/_chunks/chunk-2ZECSTB4.js.map +7 -0
- package/dist/src/deep-links/react/index.js +1 -1
- package/dist/src/embedding/react/index.d.ts +1 -1
- package/dist/src/embedding/react/index.js +1 -1
- package/dist/src/embedding/react/index.js.map +4 -4
- package/dist/src/embedding/react/provider.d.ts +42 -9
- package/dist/src/index.d.ts +1 -2
- package/dist/src/index.js +0 -1
- package/dist/src/index.js.map +4 -4
- package/package.json +1 -1
- package/dist/src/_chunks/chunk-3UFPUAWY.js +0 -7
- package/dist/src/_chunks/chunk-3UFPUAWY.js.map +0 -7
- package/dist/src/_chunks/chunk-MF7HCOXQ.js +0 -7
- package/dist/src/_chunks/chunk-MF7HCOXQ.js.map +0 -7
- package/dist/src/_chunks/chunk-VVRISDII.js +0 -7
- package/dist/src/_chunks/chunk-VVRISDII.js.map +0 -7
- package/dist/src/apps-provider.d.ts +0 -51
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0.
|
|
2
|
-
* This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
3
|
-
* Copyright 2019-Present Datadog, Inc.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import type { ComponentType, PropsWithChildren } from 'react';
|
|
7
|
-
import type { DatadogAppProviderModule } from './embedding/react/config.js';
|
|
8
|
-
/**
|
|
9
|
-
* The ids of this package's default modules, exactly as app authors may name
|
|
10
|
-
* them in `disabledModules`. Publishing a module's id here is half of
|
|
11
|
-
* promoting it to a default; the other half is its entry in DEFAULT_MODULES
|
|
12
|
-
* directly below. The two cannot drift silently: DEFAULT_MODULES only accepts
|
|
13
|
-
* modules whose ids appear here, so a promoted entry without its id is a
|
|
14
|
-
* compile error. Deep links is the first (and so far only) default.
|
|
15
|
-
*/
|
|
16
|
-
export type DefaultDatadogAppModuleId = 'datadog.deep-links';
|
|
17
|
-
/**
|
|
18
|
-
* Merges default and explicitly requested modules into the list the core
|
|
19
|
-
* provider installs.
|
|
20
|
-
*
|
|
21
|
-
* `disabledModules` excludes defaults; passing a module explicitly and
|
|
22
|
-
* disabling its id in the same config is a contradiction and throws. Disabling
|
|
23
|
-
* an id that is neither a default nor explicitly requested warns: the id is
|
|
24
|
-
* stale (removed from a later package) or misspelled, and a frozen app must
|
|
25
|
-
* keep rendering rather than fail on it.
|
|
26
|
-
*
|
|
27
|
-
* A default and an explicitly requested module with the same id is not a
|
|
28
|
-
* duplicate: the explicit instance wins. An app compiled before a module was
|
|
29
|
-
* promoted to a default, requesting it explicitly, keeps working after the
|
|
30
|
-
* promotion.
|
|
31
|
-
*/
|
|
32
|
-
export declare function mergeDatadogAppsProviderModules(defaults: readonly DatadogAppProviderModule[], requested: readonly DatadogAppProviderModule[] | undefined, disabled: readonly string[] | undefined): readonly DatadogAppProviderModule[];
|
|
33
|
-
export interface DatadogAppsProviderProps extends PropsWithChildren {
|
|
34
|
-
/** Modules to install in addition to the defaults, in list order. */
|
|
35
|
-
readonly modules?: readonly DatadogAppProviderModule[];
|
|
36
|
-
/**
|
|
37
|
-
* Ids of default modules to exclude from this provider. The accepted
|
|
38
|
-
* names are exactly the package's default modules, so a misspelled id is
|
|
39
|
-
* a compile error; at runtime an unknown id still only warns, so a frozen
|
|
40
|
-
* app compiled against an older default set keeps rendering.
|
|
41
|
-
*/
|
|
42
|
-
readonly disabledModules?: readonly DefaultDatadogAppModuleId[];
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* The distribution-level Datadog App provider: installs this package's
|
|
46
|
-
* default modules (deep links today), merges in explicitly requested ones, honors
|
|
47
|
-
* `disabledModules`, and delegates to the module-agnostic
|
|
48
|
-
* {@link DatadogAppProvider}. App authors normally mount this one
|
|
49
|
-
* component.
|
|
50
|
-
*/
|
|
51
|
-
export declare const DatadogAppsProvider: ComponentType<DatadogAppsProviderProps>;
|