ranui 0.1.9 → 0.1.10-alpha.1

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.
Files changed (171) hide show
  1. package/dist/_commonjs-dynamic-modules-DLbDWi6a.js +12 -0
  2. package/dist/arrow-down-C9jBUUt3.js +30 -0
  3. package/dist/assets/image/failImage.d.ts +2 -0
  4. package/dist/button.js +7 -0
  5. package/dist/checkbox.js +7 -0
  6. package/dist/colorpicker.js +13 -0
  7. package/dist/{colz-746223ab.js → colz-CRDozfZA.js} +1 -5
  8. package/dist/components/button/index.d.ts +7 -3
  9. package/dist/components/checkbox/index.d.ts +27 -0
  10. package/dist/components/colorpicker/index.d.ts +122 -0
  11. package/dist/components/content/index.d.ts +15 -0
  12. package/dist/components/input/index.d.ts +65 -41
  13. package/dist/components/message/index.d.ts +2 -0
  14. package/dist/components/option/index.d.ts +2 -1
  15. package/dist/components/player/index.d.ts +31 -6
  16. package/dist/components/popover/index.d.ts +39 -0
  17. package/dist/components/preview/docx.d.ts +1 -1
  18. package/dist/components/preview/index.d.ts +2 -0
  19. package/dist/components/preview/pptx/process_pptx.d.ts +1 -1
  20. package/dist/components/progress/index.d.ts +11 -5
  21. package/dist/components/radar/index.d.ts +1 -1
  22. package/dist/components/scratch/index.d.ts +5 -1
  23. package/dist/components/select/index.d.ts +15 -7
  24. package/dist/content.js +6 -0
  25. package/dist/docx-ajDUtnbM.js +3665 -0
  26. package/dist/global-DOfcrQ2N.js +4 -0
  27. package/dist/icon.js +6 -0
  28. package/dist/iconShadowless.js +6 -0
  29. package/dist/image.js +4 -0
  30. package/dist/index-0fvHQjmN.js +298 -0
  31. package/dist/{index-1b73beee.js → index-BLepXisd.js} +55 -90
  32. package/dist/{index-e2e5d725.js → index-BOoNI-Al.js} +113 -305
  33. package/dist/{index-2d16a084.js → index-BPBRPxND.js} +8 -10
  34. package/dist/{index-e03d23e7.js → index-BpOERe9M.js} +1 -1
  35. package/dist/index-Bv6Z6rIe.js +498 -0
  36. package/dist/index-ByJ7zZdQ.js +65641 -0
  37. package/dist/{index-b7790662.js → index-C1x9Popy.js} +1 -1
  38. package/dist/index-CCNK5H8T.js +103 -0
  39. package/dist/{index-458debf7.js → index-CD09p_mF.js} +7 -31
  40. package/dist/{index-1048a998.js → index-CFnsLnrb.js} +68 -19
  41. package/dist/{index-4443363f.js → index-CJZp9lE4.js} +29 -50
  42. package/dist/{index-57492b9b.js → index-CSnBqUsQ.js} +48 -1
  43. package/dist/index-CWWI8SHO.js +206 -0
  44. package/dist/{index-7b8840f9.js → index-CZlEoE62.js} +220 -1010
  45. package/dist/index-CbyMC6Yz.js +59 -0
  46. package/dist/index-CiBVH-oH.js +258 -0
  47. package/dist/{index-3cf72afd.js → index-DUMmFdJ7.js} +9 -23
  48. package/dist/{index-01b17e26.js → index-Du-Biu-I.js} +1 -1
  49. package/dist/index-EnzWG8R0.js +521 -0
  50. package/dist/index-F2RO3OU4.js +501 -0
  51. package/dist/{index-7216d6b0.js → index-GavQwMDL.js} +11 -29
  52. package/dist/{index-0d5b9435.js → index-suip9eAw.js} +2 -2
  53. package/dist/index.d.ts +18 -14
  54. package/dist/index.js +23 -19
  55. package/dist/info-circle-fill-CFeVMdci.js +4 -0
  56. package/dist/input.js +6 -0
  57. package/dist/inputShadowless.js +6 -0
  58. package/dist/jszip.min-Ca6PjkYs.js +2674 -0
  59. package/dist/message.js +5 -0
  60. package/dist/modal.js +4 -0
  61. package/dist/{components/option/index.js → option.js} +3 -6
  62. package/dist/{pdf-bdb7818a.js → pdf-B2a6ll8f.js} +1 -1
  63. package/dist/player.js +8 -0
  64. package/dist/popover.js +6 -0
  65. package/dist/preview.js +7 -0
  66. package/dist/progress.js +7 -0
  67. package/dist/radar.js +6 -0
  68. package/dist/select.js +10 -0
  69. package/dist/selectShadowless.js +10 -0
  70. package/dist/{umd/components/image → shadowless/icon}/index.d.ts +1 -0
  71. package/dist/{umd/components → shadowless}/input/index.d.ts +33 -8
  72. package/dist/{umd/components → shadowless}/select/index.d.ts +16 -12
  73. package/dist/shadowless/shadowless/index.js +14 -0
  74. package/dist/shadowless.d.ts +3 -0
  75. package/dist/skeleton.js +4 -0
  76. package/dist/sprite-CH2zLtZy.js +141 -0
  77. package/dist/style.css +1 -1
  78. package/dist/tab.js +6 -0
  79. package/dist/tabpane.js +4 -0
  80. package/dist/tsconfig.json +29 -0
  81. package/dist/umd/index.umd.cjs +21 -32
  82. package/dist/umd/shadowless/shadowless.umd.cjs +1 -0
  83. package/dist/umd/shadowless/style.css +1 -0
  84. package/dist/umd/style.css +1 -1
  85. package/dist/utils/color.d.ts +52 -0
  86. package/dist/utils/index.d.ts +9 -1
  87. package/dist/{index-7913ec46.js → utils-BMBEcoPj.js} +279 -162
  88. package/dist/vite.config.d.ts +1 -0
  89. package/package.json +61 -36
  90. package/readme.md +14 -14
  91. package/typings.d.ts +101 -0
  92. package/dist/components/button/index.js +0 -8
  93. package/dist/components/icon/index.js +0 -6
  94. package/dist/components/image/index.js +0 -4
  95. package/dist/components/input/index.js +0 -6
  96. package/dist/components/message/index.js +0 -4
  97. package/dist/components/modal/index.js +0 -4
  98. package/dist/components/player/index.js +0 -12
  99. package/dist/components/preview/index.js +0 -8
  100. package/dist/components/progress/index.js +0 -8
  101. package/dist/components/radar/index.js +0 -7
  102. package/dist/components/select/index.js +0 -11
  103. package/dist/components/skeleton/index.js +0 -4
  104. package/dist/components/tab/index.js +0 -7
  105. package/dist/components/tabpane/index.js +0 -4
  106. package/dist/docx-c5d02d8c.js +0 -21
  107. package/dist/index-73ce455b.js +0 -264
  108. package/dist/index-c14450a9.js +0 -662
  109. package/dist/info-circle-fill-90ec9aa9.js +0 -14
  110. package/dist/umd/build/config.d.ts +0 -3
  111. package/dist/umd/build/config.umd.d.ts +0 -2
  112. package/dist/umd/components/button/index.d.ts +0 -35
  113. package/dist/umd/components/form/index.d.ts +0 -2
  114. package/dist/umd/components/icon/index.d.ts +0 -2
  115. package/dist/umd/components/message/index.d.ts +0 -14
  116. package/dist/umd/components/modal/index.d.ts +0 -2
  117. package/dist/umd/components/option/index.d.ts +0 -2
  118. package/dist/umd/components/player/index.d.ts +0 -213
  119. package/dist/umd/components/preview/colz.d.ts +0 -72
  120. package/dist/umd/components/preview/docx.d.ts +0 -8
  121. package/dist/umd/components/preview/excel/excel.d.ts +0 -2
  122. package/dist/umd/components/preview/excel/index.d.ts +0 -1
  123. package/dist/umd/components/preview/excel/media.d.ts +0 -37
  124. package/dist/umd/components/preview/index.d.ts +0 -6
  125. package/dist/umd/components/preview/pdf.d.ts +0 -1
  126. package/dist/umd/components/preview/pptx/index.d.ts +0 -16
  127. package/dist/umd/components/preview/pptx/process_pptx.d.ts +0 -23
  128. package/dist/umd/components/preview/pptx/t_xml.d.ts +0 -1
  129. package/dist/umd/components/preview/pptx/worker.d.ts +0 -1
  130. package/dist/umd/components/progress/index.d.ts +0 -36
  131. package/dist/umd/components/radar/index.d.ts +0 -2
  132. package/dist/umd/components/scratch/index.d.ts +0 -19
  133. package/dist/umd/components/skeleton/index.d.ts +0 -2
  134. package/dist/umd/components/tab/index.d.ts +0 -408
  135. package/dist/umd/components/tabpane/index.d.ts +0 -352
  136. package/dist/umd/index.d.ts +0 -14
  137. package/dist/umd/playwright.config.d.ts +0 -9
  138. package/dist/umd/plugins/auto-import-file.d.ts +0 -0
  139. package/dist/umd/plugins/load-style.d.ts +0 -6
  140. package/dist/umd/plugins/load-svg.d.ts +0 -9
  141. package/dist/umd/tests/button.spec.d.ts +0 -1
  142. package/dist/umd/utils/image.d.ts +0 -32
  143. package/dist/umd/utils/index.d.ts +0 -64
  144. package/dist/umd/utils/math.d.ts +0 -26
  145. package/dist/umd/utils/tween.d.ts +0 -21
  146. package/dist/umd/vite.config.d.ts +0 -6
  147. package/dist/vendor-f71e6f68.js +0 -92126
  148. /package/dist/{add-user-b2bed3e7.js → add-user-BN1JlY7e.js} +0 -0
  149. /package/dist/{book-b11a68eb.js → book-nTEFXU2x.js} +0 -0
  150. /package/dist/{umd/build/config.es.d.ts → build/config.sha.d.ts} +0 -0
  151. /package/dist/{check-circle-fill-dc284144.js → check-circle-fill-B_pd8ZSs.js} +0 -0
  152. /package/dist/{check-circle-74bd09c3.js → check-circle-szyAJiap.js} +0 -0
  153. /package/dist/{close-20925345.js → close-CFnkhudp.js} +0 -0
  154. /package/dist/{close-circle-720c18be.js → close-circle-CwmuN2C6.js} +0 -0
  155. /package/dist/{close-circle-fill-238a66b1.js → close-circle-fill-jSqPPw9i.js} +0 -0
  156. /package/dist/{eye-5e742329.js → eye-D_mEt17f.js} +0 -0
  157. /package/dist/{eye-close-3874f1ae.js → eye-close-BVr3NJtg.js} +0 -0
  158. /package/dist/{home-c4a05e8b.js → home-BUQ4USMk.js} +0 -0
  159. /package/dist/{index-8e1e2573.js → index-CQTJoWhb.js} +0 -0
  160. /package/dist/{info-circle-5826decc.js → info-circle-COnL5bTJ.js} +0 -0
  161. /package/dist/{loading-09ca52df.js → loading-Dcc5RApI.js} +0 -0
  162. /package/dist/{lock-1d2487c9.js → lock-Cr7BnmWN.js} +0 -0
  163. /package/dist/{message-b2bfdea7.js → message-D36_Zo2l.js} +0 -0
  164. /package/dist/{power-off-6ade5a91.js → power-off-lQRbiBak.js} +0 -0
  165. /package/dist/{preview-b291aea8.js → preview-CJbz9GjO.js} +0 -0
  166. /package/dist/{setting-1e5ccb6d.js → setting-DemlgzVC.js} +0 -0
  167. /package/dist/{team-ca6a12e1.js → team-tl4NJXPC.js} +0 -0
  168. /package/dist/{unlock-f56086fd.js → unlock-CeU74z9n.js} +0 -0
  169. /package/dist/{user-5c01e665.js → user-B-eVXwuk.js} +0 -0
  170. /package/dist/{warning-circle-035e025c.js → warning-circle-DDUgEDIv.js} +0 -0
  171. /package/dist/{warning-circle-fill-d17c37c9.js → warning-circle-fill-lODUKz0i.js} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ranui",
3
- "version": "0.1.9",
3
+ "version": "0.1.10-alpha.1",
4
4
  "description": "UI Component library based on `Web Component`",
5
5
  "main": "dist/umd/index.umd.cjs",
6
6
  "module": "dist/index.js",
@@ -9,12 +9,31 @@
9
9
  "homepage": "https://chaxus.github.io/ran/src/ranui/",
10
10
  "repository": {
11
11
  "type": "git",
12
- "url": "git+https://github.com/chaxus/ran/tree/main/packages/ranui"
12
+ "url": "git+https://github.com/chaxus/ran",
13
+ "directory": "packages/ranui"
14
+ },
15
+ "bugs": {
16
+ "url": "https://github.com/chaxus/ran/issues"
13
17
  },
14
18
  "author": "chaxus",
15
19
  "license": "MIT",
20
+ "engines": {
21
+ "node": ">=12.20.0"
22
+ },
23
+ "scripts": {
24
+ "dev": "vite",
25
+ "build": "sh ./bin/build.sh",
26
+ "build:es": "vite build -c ./build/config.es.ts",
27
+ "build:umd": "vite build -c ./build/config.umd.ts",
28
+ "prepublish": "npm run build",
29
+ "test": "sh ./bin/test.sh",
30
+ "test:report": "playwright show-report",
31
+ "test:ui": "playwright test --ui",
32
+ "test:update": "playwright test --update-snapshots"
33
+ },
16
34
  "files": [
17
- "dist/*"
35
+ "dist",
36
+ "typings.d.ts"
18
37
  ],
19
38
  "keywords": [
20
39
  "ran",
@@ -34,6 +53,11 @@
34
53
  "import": "./dist/index.js",
35
54
  "require": "./dist/umd/index.umd.cjs"
36
55
  },
56
+ "./shadowless": {
57
+ "types": "./dist/index.d.ts",
58
+ "import": "./dist/shadowless/shadowless/index.js",
59
+ "require": "./dist/umd/shadowless/shadowless.umd.cjs"
60
+ },
37
61
  "./button": {
38
62
  "types": "./dist/components/button/index.d.ts",
39
63
  "import": "./dist/components/button/index.js",
@@ -109,6 +133,21 @@
109
133
  "import": "./dist/components/player/index.js",
110
134
  "require": "./dist/umd/index.umd.cjs"
111
135
  },
136
+ "./popover": {
137
+ "types": "./dist/components/popover/index.d.ts",
138
+ "import": "./dist/components/popover/index.js",
139
+ "require": "./dist/umd/index.umd.cjs"
140
+ },
141
+ "./content": {
142
+ "types": "./dist/components/content/index.d.ts",
143
+ "import": "./dist/components/content/index.js",
144
+ "require": "./dist/umd/index.umd.cjs"
145
+ },
146
+ "./colorpicker": {
147
+ "types": "./dist/components/colorpicker/index.d.ts",
148
+ "import": "./dist/components/colorpicker/index.js",
149
+ "require": "./dist/umd/index.umd.cjs"
150
+ },
112
151
  "./style": {
113
152
  "types": "./dist/index.d.ts",
114
153
  "import": "./dist/style.css",
@@ -116,42 +155,28 @@
116
155
  }
117
156
  },
118
157
  "devDependencies": {
119
- "@babel/core": "^7.20.5",
120
- "@babel/preset-env": "^7.22.7",
121
- "@babel/preset-typescript": "^7.22.5",
122
- "@playwright/test": "^1.36.2",
123
- "@types/imagemin-svgo": "^10.0.4",
124
- "@types/lodash": "^4.14.197",
125
- "@types/tinycolor2": "^1.4.3",
126
- "@vheemstra/vite-plugin-imagemin": "^1.0.12",
158
+ "@babel/core": "^7.24.3",
159
+ "@babel/preset-env": "^7.24.3",
160
+ "@babel/preset-typescript": "^7.24.1",
161
+ "@playwright/test": "^1.42.1",
162
+ "@types/imagemin-svgo": "^10.0.5",
163
+ "@types/lodash": "^4.17.0",
164
+ "@types/tinycolor2": "^1.4.6",
165
+ "@vheemstra/vite-plugin-imagemin": "^1.2.1",
127
166
  "imagemin-svgo": "^10.0.1",
128
- "less": "^4.1.3",
129
- "prettier": "^2.8.1",
130
- "rollup-plugin-visualizer": "^5.9.2",
131
- "svgo": "^3.0.0",
132
- "tsx": "^3.12.7",
133
- "vite": "^5.0.9",
134
- "vite-plugin-dts": "^3.6.4"
167
+ "less": "^4.2.0",
168
+ "prettier": "^2.8.8",
169
+ "rollup-plugin-visualizer": "^5.12.0",
170
+ "svgo": "^3.2.0",
171
+ "tsx": "^3.14.0",
172
+ "vite": "^5.2.6"
135
173
  },
136
174
  "dependencies": {
137
- "dayjs": "^1.11.9",
138
- "docx-preview": "^0.1.18",
139
- "exceljs": "^4.3.0",
175
+ "dayjs": "^1.11.10",
176
+ "exceljs": "^4.4.0",
140
177
  "jszip": "^3.10.1",
141
178
  "lodash": "^4.17.21",
142
- "ranuts": "0.1.0-alpha.10",
143
- "tinycolor2": "^1.6.0",
144
- "x-data-spreadsheet": "^1.1.9"
145
- },
146
- "scripts": {
147
- "dev": "vite",
148
- "build": "sh ./bin/build.sh",
149
- "build:es": "vite build -c ./build/config.es.ts",
150
- "build:umd": "vite build -c ./build/config.umd.ts",
151
- "prepublish": "npm run build",
152
- "test": "sh ./bin/test.sh",
153
- "test:report": "playwright show-report",
154
- "test:ui": "playwright test --ui",
155
- "test:update": "playwright test --update-snapshots"
179
+ "ranuts": "workspace:0.1.0-alpha.11",
180
+ "tinycolor2": "^1.6.0"
156
181
  }
157
- }
182
+ }
package/readme.md CHANGED
@@ -7,14 +7,18 @@ UI Component library based on `Web Component`
7
7
  <a href="https://github.com/chaxus/ran"><img src="https://img.shields.io/github/actions/workflow/status/chaxus/ran/ci.yml" alt="Build Status"></a>
8
8
  <a href="https://github.com/chaxus/ran"><img src="https://img.shields.io/npm/v/ranui.svg" alt="npm-v"></a>
9
9
  <a href="https://github.com/chaxus/ran"><img src="https://img.shields.io/npm/dt/ranui.svg" alt="npm-d"></a>
10
- <a href="https://github.com/chaxus/ran"><img src="https://img.badgesize.io/https:/unpkg.com/ranui/dist/umd/index.umd.cjs?label=brotli&compression=brotli" alt="brotli"></a>
10
+ <a href="https://github.com/chaxus/ran"><img src="https://img.badgesize.io/https:/unpkg.com/ranui/dist/umd/shadowless/shadowless.umd.cjs?label=brotli&compression=brotli" alt="brotli"></a>
11
11
  <a href="https://github.com/chaxus/ran"><img src="https://img.shields.io/badge/module%20formats-umd%2C%20esm-green.svg" alt="module formats: umd, esm"></a>
12
12
 
13
13
  ## Feature
14
14
 
15
- - **Across the frame**: It works with `react`, `vue`, or native projects.
16
- - **Componentization**: The `shadow dom` actually implements componentization of style and functionality.
17
- - **native**: A component is like using a `div`tag.
15
+ 1. **High Cross-Framework Compatibility**: Our solution seamlessly adapts to a wide array of leading front-end frameworks, including `React`, `Vue`, `Preact`, `SolidJS`, `Svelte`, and more. It also integrates smoothly with any project built on `JavaScript` and adhering to `W3C` standards. No matter your choice of technology stack, we guarantee consistent and reliable support.
16
+ 2. **Pure Native Experience**: Our solution eliminates the need for dependencies on front-end frameworks like `npm`, `React`/`Vue`, or complex build tools such as `webpack`/`vite`. It truly embodies the essence of Web technology. You can get started effortlessly, just like manipulating native `div` tags, immediately experiencing the purity and intuitiveness of the technology. This design not only simplifies project structure but also reduces the cost of learning and usage, enabling every developer to appreciate the native charm of Web technology.
17
+ 3. **Ultimate Modular Design**: Utilizing the principle of minimal modularization, we carefully dismantle large and complex systems or applications into extremely small, functionally independent, and easily reusable component units. This approach significantly enhances code maintainability, scalability, and reusability.
18
+ 4. **Fully Open-Source for Free Learning**: Our project fully adheres to the `MIT` open-source license, granting unrestricted access to all source code. This means you are free to access, learn from, reference, and even modify our code, whether for personal development or commercial applications. We firmly believe that open-source is a vital pathway for technological advancement and innovation.
19
+ 5. **Interactive and Comprehensive Documentation**: We provide detailed and highly interactive documentation, where all component examples are live and interactive. This allows you to directly experience the component functionality while reading, deepening your understanding and enabling quick hands-on learning. This design is aimed at providing you with the most intuitive and efficient learning experience possible.
20
+ 6. **Type-Checking Support**: Our development environment is fully built on `TypeScript`, equipped with comprehensive declaration files and type definitions, ensuring smooth integration for both `JavaScript` and `TypeScript` projects. With powerful type-checking capabilities, we significantly enhance code readability, maintainability, and project robustness, bringing unprecedented convenience and peace of mind to development work.
21
+ 7. **Enhanced Durability and Stability**: Our solution offers exceptional stability, eliminating concerns about disruptive updates encountered during version upgrades, such as `React` from version `15` to `16` (with `fiber`) or `Vue` from version `2` to `3` (with `hooks`). We ensure that your components won't be forced into unnecessary updates or redevelopments, thus avoiding potential project interruptions and additional workloads. This translates into a continuous and hassle-free project operation.
18
22
 
19
23
  ## Install
20
24
 
@@ -28,6 +32,10 @@ npm install ranui --save
28
32
 
29
33
  [See components and use examples](https://chaxus.github.io/ran/src/ranui/)
30
34
 
35
+ ## Example
36
+
37
+ <https://github.com/chaxus/ran/blob/main/packages/ranui/index.html>
38
+
31
39
  ## Import
32
40
 
33
41
  Support for on-demand import, which can reduce the size of loaded js
@@ -188,16 +196,8 @@ interface RPreview {
188
196
 
189
197
  declare namespace JSX {
190
198
  interface IntrinsicElements {
191
- 'r-preview': React.DetailedHTMLProps<
192
- React.HTMLAttributes<HTMLDivElement>,
193
- HTMLDivElement
194
- > &
195
- RPreview;
196
- 'r-button': React.DetailedHTMLProps<
197
- React.HTMLAttributes<HTMLDivElement>,
198
- HTMLDivElement
199
- > &
200
- RButton;
199
+ 'r-preview': React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & RPreview;
200
+ 'r-button': React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & RButton;
201
201
  }
202
202
  }
203
203
  ```
package/typings.d.ts ADDED
@@ -0,0 +1,101 @@
1
+ declare module '*.less';
2
+ declare module '*.less?inline';
3
+ declare module '*.ts';
4
+ declare module '*.svg';
5
+ declare module 'docx-preview';
6
+ declare module 'exceljs/*';
7
+ declare module '@/assets/*';
8
+ declare module '@/components/*';
9
+ declare module '@/plugins/*';
10
+ declare module '@/utils/*';
11
+ declare module 'ranuts/*';
12
+
13
+ declare namespace Ran {
14
+ interface Prompt {
15
+ content: string;
16
+ duration?: number;
17
+ close?: () => void;
18
+ }
19
+ type Hint = (options: Prompt | string) => void;
20
+
21
+ interface Message {
22
+ info: Hint;
23
+ success: Hint;
24
+ error: Hint;
25
+ warning: Hint;
26
+ toast: Hint;
27
+ }
28
+ }
29
+
30
+ interface Ranui {
31
+ message: Partial<Ran.Message>;
32
+ }
33
+
34
+ interface HlsPlayer {
35
+ off: (s: string, f: Function) => void;
36
+ on: (s: string, f: Function) => void;
37
+ loadSource: (s: string) => void;
38
+ attachMedia: (v: HTMLVideoElement) => void;
39
+ destroy: () => void;
40
+ startLoad(): () => void;
41
+ }
42
+
43
+ interface Hls {
44
+ Events: {
45
+ MANIFEST_LOADED: 'hlsManifestLoaded';
46
+ ERROR: 'error';
47
+ };
48
+ isSupported: () => boolean;
49
+ }
50
+
51
+ type HLS = Hls & (new () => HlsPlayer);
52
+
53
+ interface Viewport {
54
+ width: number;
55
+ height: number;
56
+ viewBox: Array<number>;
57
+ }
58
+ interface RenderContext {
59
+ canvasContext: CanvasRenderingContext2D | null;
60
+ transform: Array<number>;
61
+ viewport: Viewport;
62
+ }
63
+
64
+ interface PDFPageProxy {
65
+ pageNumber: number;
66
+ getViewport: () => Viewport;
67
+ render: (options: RenderContext) => void;
68
+ }
69
+
70
+ interface PDFDocumentProxy {
71
+ numPages: number;
72
+ getPage: (x: number) => Promise<PDFPageProxy>;
73
+ }
74
+
75
+ interface HTMLElement {
76
+ mozRequestFullScreen: (options?: FullscreenOptions) => Promise<void>;
77
+ msRequestFullscreen: (options?: FullscreenOptions) => Promise<void>;
78
+ oRequestFullscreen: (options?: FullscreenOptions) => Promise<void>;
79
+ webkitRequestFullscreen: (options?: FullscreenOptions) => Promise<void>;
80
+ webkitEnterFullscreen: (options?: FullscreenOptions) => Promise<void>;
81
+ }
82
+ declare interface Document {
83
+ msExitFullscreen: () => Promise<void>;
84
+ mozCancelFullScreen: () => Promise<void>;
85
+ oCancelFullScreen: () => Promise<void>;
86
+ webkitExitFullscreen: () => Promise<void>;
87
+ }
88
+
89
+ declare interface Window {
90
+ ranui: Partial<Ranui>;
91
+ message: Partial<Ran.Message>;
92
+ pdfjsLib: {
93
+ GlobalWorkerOptions: {
94
+ workerSrc: string;
95
+ };
96
+ getDocument: (x: string | ArrayBuffer) => {
97
+ promise: Promise<PDFDocumentProxy>;
98
+ };
99
+ };
100
+ Hls: HLS;
101
+ }
@@ -1,8 +0,0 @@
1
- import { B, a } from "../../index-2d16a084.js";
2
- import "../../index-7913ec46.js";
3
- import "../../index-57492b9b.js";
4
- import "../../vendor-f71e6f68.js";
5
- export {
6
- B as Button,
7
- a as default
8
- };
@@ -1,6 +0,0 @@
1
- import { a } from "../../index-7216d6b0.js";
2
- import "../../index-7913ec46.js";
3
- import "../../vendor-f71e6f68.js";
4
- export {
5
- a as default
6
- };
@@ -1,4 +0,0 @@
1
- import { a } from "../../index-01b17e26.js";
2
- export {
3
- a as default
4
- };
@@ -1,6 +0,0 @@
1
- import { I, a } from "../../index-1048a998.js";
2
- import "../../index-57492b9b.js";
3
- export {
4
- I as Input,
5
- a as default
6
- };
@@ -1,4 +0,0 @@
1
- import { m } from "../../index-0d5b9435.js";
2
- export {
3
- m as default
4
- };
@@ -1,4 +0,0 @@
1
- import { a } from "../../index-8e1e2573.js";
2
- export {
3
- a as default
4
- };
@@ -1,12 +0,0 @@
1
- import "../../index-7913ec46.js";
2
- import { R, a } from "../../index-e2e5d725.js";
3
- import "../../index-1b73beee.js";
4
- import "../../vendor-f71e6f68.js";
5
- import "../../index-57492b9b.js";
6
- import "../option/index.js";
7
- import "../../index-7216d6b0.js";
8
- import "../../index-1048a998.js";
9
- export {
10
- R as RanPlayer,
11
- a as default
12
- };
@@ -1,8 +0,0 @@
1
- import { a } from "../../index-73ce455b.js";
2
- import "../../index-7913ec46.js";
3
- import "../../index-7216d6b0.js";
4
- import "../../index-0d5b9435.js";
5
- import "../../vendor-f71e6f68.js";
6
- export {
7
- a as default
8
- };
@@ -1,8 +0,0 @@
1
- import "../../index-7913ec46.js";
2
- import "../../index-57492b9b.js";
3
- import { P, a } from "../../index-4443363f.js";
4
- import "../../vendor-f71e6f68.js";
5
- export {
6
- P as Progress,
7
- a as default
8
- };
@@ -1,7 +0,0 @@
1
- import { a } from "../../index-458debf7.js";
2
- import "../../index-7913ec46.js";
3
- import "../../index-57492b9b.js";
4
- import "../../vendor-f71e6f68.js";
5
- export {
6
- a as default
7
- };
@@ -1,11 +0,0 @@
1
- import { S, a } from "../../index-1b73beee.js";
2
- import "../../index-7913ec46.js";
3
- import "../../index-57492b9b.js";
4
- import "../option/index.js";
5
- import "../../index-7216d6b0.js";
6
- import "../../index-1048a998.js";
7
- import "../../vendor-f71e6f68.js";
8
- export {
9
- S as Select,
10
- a as default
11
- };
@@ -1,4 +0,0 @@
1
- import { a } from "../../index-e03d23e7.js";
2
- export {
3
- a as default
4
- };
@@ -1,7 +0,0 @@
1
- import { a } from "../../index-3cf72afd.js";
2
- import "../../index-7913ec46.js";
3
- import "../../index-57492b9b.js";
4
- import "../../vendor-f71e6f68.js";
5
- export {
6
- a as default
7
- };
@@ -1,4 +0,0 @@
1
- import { a } from "../../index-b7790662.js";
2
- export {
3
- a as default
4
- };
@@ -1,21 +0,0 @@
1
- import { d as docxPreview_minExports } from "./vendor-f71e6f68.js";
2
- const renderDocx = (options) => {
3
- if (typeof window !== "undefined") {
4
- const { bodyContainer, styleContainer, buffer, docxOptions = {} } = options;
5
- const defaultOptions = {
6
- className: "docx"
7
- // ignoreLastRenderedPageBreak: false,
8
- };
9
- const configuration = Object.assign({}, defaultOptions, docxOptions);
10
- if (bodyContainer) {
11
- return docxPreview_minExports.renderAsync(buffer, bodyContainer, styleContainer, configuration);
12
- } else {
13
- const contain = document.createElement("div");
14
- document.body.appendChild(contain);
15
- return docxPreview_minExports.renderAsync(buffer, contain, styleContainer, configuration);
16
- }
17
- }
18
- };
19
- export {
20
- renderDocx
21
- };