@destyler/dialog 0.1.0 → 0.2.0-beta.5

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.
@@ -5,7 +5,7 @@ import { AnyEventObject, Machine, XSend, XState } from "@destyler/xstate";
5
5
  import { CommonProperties, DirectionProperty, NormalizeProps, PropTypes, RequiredBy } from "@destyler/types";
6
6
 
7
7
  //#region src/anatomy.d.ts
8
- declare const anatomy: _destyler_anatomy0.AnatomyInstance<"trigger" | "backdrop" | "positioner" | "content" | "title" | "description" | "closeTrigger">;
8
+ declare const anatomy: _destyler_anatomy0.AnatomyInstance<"trigger" | "positioner" | "backdrop" | "content" | "closeTrigger" | "title" | "description">;
9
9
  //#endregion
10
10
  //#region src/types.d.ts
11
11
  interface OpenChangeDetails {
@@ -254,8 +254,7 @@ function machine(userContext) {
254
254
  const contentEl = dom.getContentEl(ctx$1);
255
255
  if (!contentEl) return;
256
256
  const styles = getComputedStyle(contentEl);
257
- const elems = [dom.getPositionerEl(ctx$1), dom.getBackdropEl(ctx$1)];
258
- elems.forEach((node) => {
257
+ [dom.getPositionerEl(ctx$1), dom.getBackdropEl(ctx$1)].forEach((node) => {
259
258
  node?.style.setProperty("--z-index", styles.zIndex);
260
259
  });
261
260
  });
package/package.json CHANGED
@@ -1,30 +1,39 @@
1
1
  {
2
2
  "name": "@destyler/dialog",
3
3
  "type": "module",
4
- "version": "0.1.0",
4
+ "version": "0.2.0-beta.5",
5
5
  "description": "before taking action, please confirm.",
6
6
  "author": "Elone Hoo <elonehoo@gmail.com>",
7
7
  "license": "MIT",
8
+ "homepage": "https://github.com/destyler/destyler",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/destyler/destyler.git",
12
+ "directory": "packages/components/dialog"
13
+ },
8
14
  "exports": {
9
- ".": "./dist/index.js"
15
+ ".": "./dist/index.mjs"
10
16
  },
11
- "main": "dist/index.js",
12
- "module": "dist/index.js",
13
- "types": "dist/index.d.ts",
17
+ "main": "dist/index.mjs",
18
+ "module": "dist/index.mjs",
19
+ "types": "dist/index.d.mts",
14
20
  "files": [
15
21
  "*.d.ts",
16
22
  "dist"
17
23
  ],
18
24
  "dependencies": {
19
- "@destyler/anatomy": "0.1.0",
20
- "@destyler/dismissable": "0.1.0",
21
- "@destyler/dom": "0.1.0",
22
- "@destyler/aria-hidden": "0.1.0",
23
- "@destyler/focus-trap": "0.1.0",
24
- "@destyler/remove-scroll": "0.1.0",
25
- "@destyler/types": "0.1.0",
26
- "@destyler/utils": "0.1.0",
27
- "@destyler/xstate": "0.1.0"
25
+ "@destyler/anatomy": "0.2.0-beta.5",
26
+ "@destyler/aria-hidden": "0.2.0-beta.5",
27
+ "@destyler/dom": "0.2.0-beta.5",
28
+ "@destyler/focus-trap": "0.2.0-beta.5",
29
+ "@destyler/dismissable": "0.2.0-beta.5",
30
+ "@destyler/remove-scroll": "0.2.0-beta.5",
31
+ "@destyler/types": "0.2.0-beta.5",
32
+ "@destyler/utils": "0.2.0-beta.5",
33
+ "@destyler/xstate": "0.2.0-beta.5"
34
+ },
35
+ "publishConfig": {
36
+ "access": "public"
28
37
  },
29
38
  "scripts": {
30
39
  "clear": "rimraf ./dist",