diff --git a/demos/react-demo/package.json b/demos/react-demo/package.json index 8324ee2..2175dc5 100644 --- a/demos/react-demo/package.json +++ b/demos/react-demo/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { - "ezuikit-js": "^8.1.1", + "ezuikit-js": "^8.1.2", "react": "^17", "react-dom": "^17", "react-scripts": "5.0.1", @@ -11,6 +11,7 @@ }, "scripts": { "start": "react-scripts start", + "dev": "react-scripts start", "build": "react-scripts build", "eject": "react-scripts eject" }, diff --git a/demos/react-demo/pnpm-lock.yaml b/demos/react-demo/pnpm-lock.yaml index 9381190..3c74d88 100644 --- a/demos/react-demo/pnpm-lock.yaml +++ b/demos/react-demo/pnpm-lock.yaml @@ -6,8 +6,8 @@ settings: dependencies: ezuikit-js: - specifier: ^8.1.2-alpha.1 - version: 8.1.2-alpha.1 + specifier: ^8.1.2 + version: 8.1.2 react: specifier: ^17 version: 17.0.2 @@ -1703,6 +1703,52 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: false + /@ezuikit/player-ezopen@8.1.3-beta.2: + resolution: {integrity: sha512-K73ndlbcDMxPzuitZ55ZdHyRah5mYnvmNHupyoB1zeOLmetaigP4VSrO0AgTUT/nm1NoG418xK7LG4coN8822Q==} + dependencies: + '@ezuikit/player-plugin-record': 8.1.1-beta.1 + '@ezuikit/utils-i18n': 1.0.1 + '@ezuikit/utils-logger': 1.0.1 + '@ezuikit/utils-service': 1.0.1 + '@ezuikit/utils-tools': 1.0.4 + '@juggle/resize-observer': 3.4.0 + dayjs: 1.11.13 + deepmerge: 4.3.1 + eventemitter3: 5.0.1 + jquery: 3.7.1 + screenfull: 6.0.2 + ua-parser-js: 1.0.37 + dev: false + + /@ezuikit/player-plugin-record@8.1.1-beta.1: + resolution: {integrity: sha512-GjPzd9b0vxdA9oQPvaEOujlL1QBxWPT504T6j4LUPJC1Jl/kUmz05+v9UwwDXdxJWQX/dfxyNFNDC6UGSPLfvA==} + dev: false + + /@ezuikit/utils-collect@0.1.0: + resolution: {integrity: sha512-85lWlB/VCaooPPkCK3nEB4F3UKgO+HbmoPEq4U1tH/ObVP7IJ7eURrFUmQT1CKsqjH5xz5g4DgZzHWgYrwGcCQ==} + dev: false + + /@ezuikit/utils-i18n@1.0.1: + resolution: {integrity: sha512-uUjN3ADHV2ZG4QznuA7FB89/ck8AGV4qS8hm/sqeSA6/ie4ryYw8MS4wIv71WgPBIgIVDfASuEapyLOwq7R2aQ==} + dependencies: + i18n-js: 4.5.0 + dev: false + + /@ezuikit/utils-logger@1.0.1: + resolution: {integrity: sha512-qak0MXh4vWZCji3aSCfHdWR3EbZCaqS0iMT8/QWuWPRr0vDmTRMP3kFOAw1MuMraR0ocjPBE2PaTEmUuwVqaAw==} + dev: false + + /@ezuikit/utils-service@1.0.1: + resolution: {integrity: sha512-iNjYuU7AScBJxvKBM9PjiGI2y64QJNPT/H1Fy/Y7ZIAlw4DO//TP+x50qCho+i+EOUpWLtOqBQvtRb7a0O4X4Q==} + dependencies: + '@ezuikit/utils-tools': 1.0.4 + dayjs: 1.11.13 + dev: false + + /@ezuikit/utils-tools@1.0.4: + resolution: {integrity: sha512-w+LZ03qowSqrSqDnuONKPpmEn0cuCaF2pkgHL1YicR0of/ZelCho5X8cy5TXQe7UsrQkIM2M7vVennv5KnAdpQ==} + dev: false + /@humanwhocodes/config-array@0.11.14: resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} engines: {node: '>=10.10.0'} @@ -2022,6 +2068,10 @@ packages: '@jridgewell/sourcemap-codec': 1.4.15 dev: false + /@juggle/resize-observer@3.4.0: + resolution: {integrity: sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA==} + dev: false + /@leichtgewicht/ip-codec@2.0.5: resolution: {integrity: sha512-Vo+PSpZG2/fmgmiNzYK9qWRh8h/CHrwD0mo1h1DzL4yzHNSfWYujGTYsWGreD000gcgmZ7K4Ys6Tx9TxtsKdDw==} dev: false @@ -2814,6 +2864,10 @@ packages: deprecated: Use your platform's native atob() and btoa() methods instead dev: false + /abortcontroller-polyfill@1.7.8: + resolution: {integrity: sha512-9f1iZ2uWh92VcrU9Y8x+LdM4DLj75VE0MJB8zuF1iUnroEptStw+DQ8EQPMUdfe5k+PkB1uUfDQfWbhstH8LrQ==} + dev: false + /accepts@1.3.8: resolution: {integrity: sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==} engines: {node: '>= 0.6'} @@ -3375,6 +3429,10 @@ packages: resolution: {integrity: sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==} dev: false + /bignumber.js@9.1.2: + resolution: {integrity: sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==} + dev: false + /binary-extensions@2.3.0: resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} engines: {node: '>=8'} @@ -4084,6 +4142,14 @@ packages: is-data-view: 1.0.1 dev: false + /dayjs@1.11.13: + resolution: {integrity: sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==} + dev: false + + /debounce-promise@3.1.2: + resolution: {integrity: sha512-rZHcgBkbYavBeD9ej6sP56XfG53d51CD4dnaw989YX/nZ/ZJfgRx/9ePKmTNiUiyQvh4mtrMoS3OAWW+yoYtpg==} + dev: false + /debug@2.6.9: resolution: {integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==} peerDependencies: @@ -4947,6 +5013,10 @@ packages: resolution: {integrity: sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==} dev: false + /eventemitter3@5.0.1: + resolution: {integrity: sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==} + dev: false + /events@3.3.0: resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} engines: {node: '>=0.8.x'} @@ -5021,8 +5091,21 @@ packages: - supports-color dev: false - /ezuikit-js@8.1.2-alpha.1: - resolution: {integrity: sha512-XfplxzhYUe3GmbNTQRgEltH1uevZ7nD381VD6CV5VVOdnBCWl/5bKjqKFcWTD1fbYLQRdvArUan0KMKrdM+wYg==} + /ezuikit-js@8.1.2: + resolution: {integrity: sha512-v1XFABkM/y9ji6yisXdeIMTCUW4B+v0Xp4ydQ2HEB3lQM3HmbufF8wRLIGDkLyvQtPuCwB8PP2CbbADLi8ezwA==} + dependencies: + '@ezuikit/player-ezopen': 8.1.3-beta.2 + '@ezuikit/utils-collect': 0.1.0 + '@ezuikit/utils-tools': 1.0.4 + '@juggle/resize-observer': 3.4.0 + abortcontroller-polyfill: 1.7.8 + debounce-promise: 3.1.2 + deepmerge: 4.3.1 + formdata-polyfill: 4.0.10 + jquery: 3.7.1 + lodash-es: 4.17.21 + screenfull: 5.2.0 + uuid: 8.3.2 dev: false /fast-deep-equal@3.1.3: @@ -5067,6 +5150,14 @@ packages: bser: 2.1.1 dev: false + /fetch-blob@3.2.0: + resolution: {integrity: sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==} + engines: {node: ^12.20 || >= 14.13} + dependencies: + node-domexception: 1.0.0 + web-streams-polyfill: 3.3.3 + dev: false + /file-entry-cache@6.0.1: resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==} engines: {node: ^10.12.0 || >=12.0.0} @@ -5228,6 +5319,13 @@ packages: mime-types: 2.1.35 dev: false + /formdata-polyfill@4.0.10: + resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==} + engines: {node: '>=12.20.0'} + dependencies: + fetch-blob: 3.2.0 + dev: false + /forwarded@0.2.0: resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==} engines: {node: '>= 0.6'} @@ -5662,6 +5760,14 @@ packages: engines: {node: '>=10.17.0'} dev: false + /i18n-js@4.5.0: + resolution: {integrity: sha512-eiT3ZzK+k1VUR/oDz0Nne3dWU6DE+4P3FxtHXgHMZyzW1lKAHsjEYaOPZClU4QA9rI+uoeE71zq1QzLnZ6LDJQ==} + dependencies: + bignumber.js: 9.1.2 + lodash: 4.17.21 + make-plural: 7.4.0 + dev: false + /iconv-lite@0.4.24: resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==} engines: {node: '>=0.10.0'} @@ -6641,6 +6747,10 @@ packages: hasBin: true dev: false + /jquery@3.7.1: + resolution: {integrity: sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg==} + dev: false + /js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} dev: false @@ -6896,6 +7006,10 @@ packages: p-locate: 5.0.0 dev: false + /lodash-es@4.17.21: + resolution: {integrity: sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==} + dev: false + /lodash.debounce@4.0.8: resolution: {integrity: sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==} dev: false @@ -6971,6 +7085,10 @@ packages: semver: 7.6.0 dev: false + /make-plural@7.4.0: + resolution: {integrity: sha512-4/gC9KVNTV6pvYg2gFeQYTW3mWaoJt7WZE5vrp1KnQDgW92JtYZnzmZT81oj/dUTqAIu0ufI2x3dkgu3bB1tYg==} + dev: false + /makeerror@1.0.12: resolution: {integrity: sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==} dependencies: @@ -7155,6 +7273,11 @@ packages: tslib: 2.6.2 dev: false + /node-domexception@1.0.0: + resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==} + engines: {node: '>=10.5.0'} + dev: false + /node-forge@1.3.1: resolution: {integrity: sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==} engines: {node: '>= 6.13.0'} @@ -8989,6 +9112,16 @@ packages: ajv-keywords: 5.1.0(ajv@8.12.0) dev: false + /screenfull@5.2.0: + resolution: {integrity: sha512-9BakfsO2aUQN2K9Fdbj87RJIEZ82Q9IGim7FqM5OsebfoFC6ZHXgDq/KvniuLTPdeM8wY2o6Dj3WQ7KeQCj3cA==} + engines: {node: '>=0.10.0'} + dev: false + + /screenfull@6.0.2: + resolution: {integrity: sha512-AQdy8s4WhNvUZ6P8F6PB21tSPIYKniic+Ogx0AacBMjKP1GUHN2E9URxQHtCusiwxudnCKkdy4GrHXPPJSkCCw==} + engines: {node: ^14.13.1 || >=16.0.0} + dev: false + /select-hose@2.0.0: resolution: {integrity: sha512-mEugaLK+YfkijB4fx0e6kImuJdCIt2LxCRcbEYPqRGCs4F2ogyfZU5IAZRdjCP8JPq2AtdNoC/Dux63d9Kiryg==} dev: false @@ -9837,6 +9970,10 @@ packages: hasBin: true dev: false + /ua-parser-js@1.0.37: + resolution: {integrity: sha512-bhTyI94tZofjo+Dn8SN6Zv8nBDvyXTymAdM3LDI/0IboIUwTu1rEhW7v2TfiVsoYWgkQ4kOVqnI8APUFbIQIFQ==} + dev: false + /unbox-primitive@1.0.2: resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==} dependencies: @@ -10007,6 +10144,11 @@ packages: minimalistic-assert: 1.0.1 dev: false + /web-streams-polyfill@3.3.3: + resolution: {integrity: sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==} + engines: {node: '>= 8'} + dev: false + /web-vitals@2.1.4: resolution: {integrity: sha512-sVWcwhU5mX6crfI5Vd2dC4qchyTqxV8URinzt25XqVh+bHEPGH4C3NPrNionCP7Obx59wrYEbNlw4Z8sjALzZg==} dev: false diff --git a/demos/react-demo/src/Player.js b/demos/react-demo/src/Player.js index f0bdb63..553ba25 100644 --- a/demos/react-demo/src/Player.js +++ b/demos/react-demo/src/Player.js @@ -38,8 +38,8 @@ const Player = () => { // https://open.ys7.com/help/1772?h=domain // domain默认是 https://open.ys7.com, 如果是私有化部署或海外的环境,请配置对应的domain // The default domain is https://open.ys7.com If it is a private deployment or overseas (outside of China) environment, please configure the corresponding domain - domain: "https://open.ys7.com" - } + domain: "https://open.ys7.com", + }, }); } }, []); @@ -132,7 +132,9 @@ const Player = () => { return (