tiny-essentials 1.29.1 → 1.29.2

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 (128) hide show
  1. package/changelog/1/29/2.md +82 -0
  2. package/dist/v1/TinyBasicsEs.min.js +1 -1
  3. package/dist/v1/TinyEssentials.min.js +1 -1
  4. package/dist/v1/TinyFetchLoader.min.js +1 -0
  5. package/dist/v1/TinyImageLoader.min.js +1 -0
  6. package/dist/v1/TinyMediaCache.min.js +1 -0
  7. package/dist/v1/TinyMediaLoader.min.js +1 -0
  8. package/dist/v1/basics/index.cjs +5 -0
  9. package/dist/v1/basics/index.d.mts +2 -1
  10. package/dist/v1/basics/index.d.mts.map +1 -1
  11. package/dist/v1/basics/index.mjs +2 -1
  12. package/dist/v1/basics/media/youtube.cjs +275 -0
  13. package/dist/v1/basics/media/youtube.d.mts +107 -0
  14. package/dist/v1/basics/media/youtube.d.mts.map +1 -0
  15. package/dist/v1/basics/media/youtube.mjs +214 -0
  16. package/dist/v1/index.cjs +13 -0
  17. package/dist/v1/index.d.mts +6 -1
  18. package/dist/v1/index.d.mts.map +1 -1
  19. package/dist/v1/index.mjs +7 -2
  20. package/dist/v1/libs/fs/plugins/OPFS/StorageBucket.cjs +0 -1
  21. package/dist/v1/libs/fs/plugins/OPFS/StorageBucket.d.mts +0 -1
  22. package/dist/v1/libs/fs/plugins/OPFS/StorageBucket.d.mts.map +1 -1
  23. package/dist/v1/libs/fs/plugins/OPFS/StorageBucket.mjs +0 -1
  24. package/dist/v1/libs/fs/plugins/OPFS/index.cjs +0 -8
  25. package/dist/v1/libs/fs/plugins/OPFS/index.d.mts +0 -8
  26. package/dist/v1/libs/fs/plugins/OPFS/index.d.mts.map +1 -1
  27. package/dist/v1/libs/fs/plugins/OPFS/index.mjs +0 -8
  28. package/dist/v1/libs/html/TinyHtml.cjs +1 -1
  29. package/dist/v1/libs/html/TinyHtml.d.mts +2 -2
  30. package/dist/v1/libs/html/TinyHtml.d.mts.map +1 -1
  31. package/dist/v1/libs/html/TinyHtml.mjs +1 -1
  32. package/dist/v1/libs/html/loader/TinyMediaLoader.cjs +1999 -0
  33. package/dist/v1/libs/html/loader/TinyMediaLoader.d.mts +999 -0
  34. package/dist/v1/libs/html/loader/TinyMediaLoader.d.mts.map +1 -0
  35. package/dist/v1/libs/html/loader/TinyMediaLoader.mjs +1852 -0
  36. package/dist/v1/libs/html/loader/beta/formats/TinyAudioLoader.cjs +77 -0
  37. package/dist/v1/libs/html/loader/beta/formats/TinyAudioLoader.d.mts +103 -0
  38. package/dist/v1/libs/html/loader/beta/formats/TinyAudioLoader.d.mts.map +1 -0
  39. package/dist/v1/libs/html/loader/beta/formats/TinyAudioLoader.mjs +67 -0
  40. package/dist/v1/libs/html/loader/beta/formats/TinyContentLoader.cjs +630 -0
  41. package/dist/v1/libs/html/loader/beta/formats/TinyContentLoader.d.mts +138 -0
  42. package/dist/v1/libs/html/loader/beta/formats/TinyContentLoader.d.mts.map +1 -0
  43. package/dist/v1/libs/html/loader/beta/formats/TinyContentLoader.mjs +576 -0
  44. package/dist/v1/libs/html/loader/beta/formats/TinyVideoLoader.cjs +70 -0
  45. package/dist/v1/libs/html/loader/beta/formats/TinyVideoLoader.d.mts +100 -0
  46. package/dist/v1/libs/html/loader/beta/formats/TinyVideoLoader.d.mts.map +1 -0
  47. package/dist/v1/libs/html/loader/beta/formats/TinyVideoLoader.mjs +60 -0
  48. package/dist/v1/libs/html/loader/beta/probe/TinyMediaProbe.cjs +946 -0
  49. package/dist/v1/libs/html/loader/beta/probe/TinyMediaProbe.d.mts +67 -0
  50. package/dist/v1/libs/html/loader/beta/probe/TinyMediaProbe.d.mts.map +1 -0
  51. package/dist/v1/libs/html/loader/beta/probe/TinyMediaProbe.mjs +896 -0
  52. package/dist/v1/libs/html/loader/formats/TinyFetchLoader.cjs +225 -0
  53. package/dist/v1/libs/html/loader/formats/TinyFetchLoader.d.mts +149 -0
  54. package/dist/v1/libs/html/loader/formats/TinyFetchLoader.d.mts.map +1 -0
  55. package/dist/v1/libs/html/loader/formats/TinyFetchLoader.mjs +197 -0
  56. package/dist/v1/libs/html/loader/formats/TinyImageLoader.cjs +1454 -0
  57. package/dist/v1/libs/html/loader/formats/TinyImageLoader.d.mts +200 -0
  58. package/dist/v1/libs/html/loader/formats/TinyImageLoader.d.mts.map +1 -0
  59. package/dist/v1/libs/html/loader/formats/TinyImageLoader.mjs +1317 -0
  60. package/dist/v1/libs/html/loader/probe/TinyImageProbe.cjs +668 -0
  61. package/dist/v1/libs/html/loader/probe/TinyImageProbe.d.mts +83 -0
  62. package/dist/v1/libs/html/loader/probe/TinyImageProbe.d.mts.map +1 -0
  63. package/dist/v1/libs/html/loader/probe/TinyImageProbe.mjs +626 -0
  64. package/dist/v1/libs/html/loader/utils/TinyBufferReader.cjs +277 -0
  65. package/dist/v1/libs/html/loader/utils/TinyBufferReader.d.mts +118 -0
  66. package/dist/v1/libs/html/loader/utils/TinyBufferReader.d.mts.map +1 -0
  67. package/dist/v1/libs/html/loader/utils/TinyBufferReader.mjs +247 -0
  68. package/dist/v1/libs/html/loader/utils/TinyIsoBox.cjs +128 -0
  69. package/dist/v1/libs/html/loader/utils/TinyIsoBox.d.mts +49 -0
  70. package/dist/v1/libs/html/loader/utils/TinyIsoBox.d.mts.map +1 -0
  71. package/dist/v1/libs/html/loader/utils/TinyIsoBox.mjs +116 -0
  72. package/dist/v1/libs/html/loader/utils/TinyMediaCache.cjs +796 -0
  73. package/dist/v1/libs/html/loader/utils/TinyMediaCache.d.mts +354 -0
  74. package/dist/v1/libs/html/loader/utils/TinyMediaCache.d.mts.map +1 -0
  75. package/dist/v1/libs/html/loader/utils/TinyMediaCache.mjs +734 -0
  76. package/dist/v1/libs/html/loader/utils/TinyMediaMirror.cjs +302 -0
  77. package/dist/v1/libs/html/loader/utils/TinyMediaMirror.d.mts +256 -0
  78. package/dist/v1/libs/html/loader/utils/TinyMediaMirror.d.mts.map +1 -0
  79. package/dist/v1/libs/html/loader/utils/TinyMediaMirror.mjs +280 -0
  80. package/dist/v1/libs/html/loader/utils/TinyMediaProgress.cjs +194 -0
  81. package/dist/v1/libs/html/loader/utils/TinyMediaProgress.d.mts +138 -0
  82. package/dist/v1/libs/html/loader/utils/TinyMediaProgress.d.mts.map +1 -0
  83. package/dist/v1/libs/html/loader/utils/TinyMediaProgress.mjs +175 -0
  84. package/dist/v1/libs/tools/TinyPkgExportValidator.cjs +359 -55
  85. package/dist/v1/libs/tools/TinyPkgExportValidator.d.mts +64 -6
  86. package/dist/v1/libs/tools/TinyPkgExportValidator.d.mts.map +1 -1
  87. package/dist/v1/libs/tools/TinyPkgExportValidator.mjs +320 -57
  88. package/dist/v1/libs/worker/engine/TinyWebWorkerEngine.cjs +0 -1
  89. package/dist/v1/libs/worker/engine/TinyWebWorkerEngine.d.mts +0 -1
  90. package/dist/v1/libs/worker/engine/TinyWebWorkerEngine.d.mts.map +1 -1
  91. package/dist/v1/libs/worker/engine/TinyWebWorkerEngine.mjs +0 -1
  92. package/dist/v1/webTemplates/bootstrap/5.3/scss/background/_background-grid.scss +15 -0
  93. package/dist/v1/webTemplates/bootstrap/5.3/scss/components/buttons/_buttons-contrast.scss +208 -0
  94. package/dist/v1/webTemplates/bootstrap/5.3/scss/components/buttons/_buttons-ghost.scss +89 -0
  95. package/dist/v1/webTemplates/bootstrap/5.3/scss/components/icon/_cube-icon.scss +65 -0
  96. package/dist/v1/webTemplates/bootstrap/5.3/scss/components/icon/_sphere-pulse.scss +39 -0
  97. package/dist/v1/webTemplates/bootstrap/5.3/scss/themes/deepstrap/_badges.scss +90 -0
  98. package/dist/v1/webTemplates/bootstrap/5.3/scss/themes/deepstrap/_bootstrap-overrides.scss +495 -0
  99. package/dist/v1/webTemplates/bootstrap/5.3/scss/themes/deepstrap/_buttons.scss +390 -0
  100. package/dist/v1/webTemplates/bootstrap/5.3/scss/themes/deepstrap/_colors.scss +213 -0
  101. package/dist/v1/webTemplates/bootstrap/5.3/scss/themes/deepstrap/_effects.scss +153 -0
  102. package/dist/v1/webTemplates/bootstrap/5.3/scss/themes/deepstrap/_forms-tones.scss +69 -0
  103. package/dist/v1/webTemplates/bootstrap/5.3/scss/themes/deepstrap/_forms.scss +323 -0
  104. package/dist/v1/webTemplates/bootstrap/5.3/scss/themes/deepstrap/_global.scss +31 -0
  105. package/dist/v1/webTemplates/bootstrap/5.3/scss/themes/deepstrap/_links.scss +47 -0
  106. package/dist/v1/webTemplates/bootstrap/5.3/scss/themes/deepstrap/_tables.scss +25 -0
  107. package/dist/v1/webTemplates/bootstrap/5.3/scss/themes/deepstrap/_theme.scss +21 -0
  108. package/dist/v1/webTemplates/bootstrap/5.3/scss/themes/deepstrap/_tokens.scss +161 -0
  109. package/dist/v1/webTemplates/bootstrap/5.3/scss/themes/deepstrap/_utilities.scss +81 -0
  110. package/dist/v1/webTemplates/bootstrap/5.3/scss/themes/deepstrap/_variables.scss +63 -0
  111. package/dist/v1/webTemplates/bootstrap/5.3/scss/themes/deepstrap/plugins/_form-tone-mixins.scss +236 -0
  112. package/dist/v1/webTemplates/bootstrap/5.3/scss/themes/deepstrap/plugins/_sizing.scss +68 -0
  113. package/dist/v1/webTemplates/bootstrap/5.3/scss/themes/deepstrap/plugins/_tone-mixins.scss +392 -0
  114. package/dist/v1/webTemplates/bootstrap/5.3/scss/themes/deepstrap/plugins/_typography.scss +112 -0
  115. package/dist/v1/webTemplates/bootstrap/5.3/scss/themes/deepstrap/plugins/background/_tiny_gradient_1.scss +131 -0
  116. package/dist/v1/webTemplates/bootstrap/5.3/scss/themes/deepstrap/plugins/colors/_pink.scss +47 -0
  117. package/docs/v1/Exports.md +33 -2
  118. package/docs/v1/README.md +9 -0
  119. package/docs/v1/basics/youtube.md +204 -0
  120. package/docs/v1/libs/html/loader/TinyFetchLoader.md +114 -0
  121. package/docs/v1/libs/html/loader/TinyImageLoader.md +141 -0
  122. package/docs/v1/libs/html/loader/TinyMediaCache.md +166 -0
  123. package/docs/v1/libs/html/loader/TinyMediaLoader.md +300 -0
  124. package/docs/v1/libs/tools/TinyPkgExportValidator.md +55 -0
  125. package/docs/v1/webTemplates/bootstrap/5.3/DeepStrap.md +177 -0
  126. package/package.json +244 -8
  127. /package/dist/v1/webTemplates/bootstrap/5.3/scss/input/{Placeholder-Colors-Fix.scss → _placeholder-colors-fix.scss} +0 -0
  128. /package/dist/v1/webTemplates/bootstrap/5.3/scss/spacing/{Spacing-Plus.scss → _spacing-plus.scss} +0 -0
@@ -0,0 +1,100 @@
1
+ /**
2
+ * @fileoverview Concrete loader for videos.
3
+ */
4
+ import TinyContentLoader from './TinyContentLoader.mjs';
5
+ export type VideoLoaderOptions = {
6
+ /**
7
+ * - The video source URL.
8
+ */
9
+ src?: string;
10
+ /**
11
+ * - Maximum time in milliseconds before the load is aborted.
12
+ */
13
+ timeout?: number;
14
+ /**
15
+ * - The CORS mode applied to the video.
16
+ */
17
+ crossOrigin?: string | null;
18
+ /**
19
+ * - Whether the video should autoplay.
20
+ */
21
+ autoplay?: boolean;
22
+ /**
23
+ * - Whether the video should loop.
24
+ */
25
+ loop?: boolean;
26
+ /**
27
+ * - Whether the video should be muted.
28
+ */
29
+ muted?: boolean;
30
+ /**
31
+ * - Whether the video should display controls (default true).
32
+ */
33
+ controls?: boolean;
34
+ /**
35
+ * - The preload strategy.
36
+ */
37
+ preload?: 'none' | 'metadata' | 'auto';
38
+ /**
39
+ * - An existing DOM element to adopt.
40
+ */
41
+ element?: HTMLVideoElement | null;
42
+ /**
43
+ * - Whether to render progressively during fetch (default true).
44
+ */
45
+ progressive?: boolean;
46
+ /**
47
+ * - Whether an external `src` change triggers a reload.
48
+ */
49
+ autoReload?: boolean;
50
+ /**
51
+ * - Whether to download the video through fetch for byte progress.
52
+ */
53
+ stream?: boolean;
54
+ /**
55
+ * - An optional shared memory cache.
56
+ */
57
+ cache?: import('../../utils/TinyMediaCache.mjs').default | null;
58
+ };
59
+ /**
60
+ * @typedef {Object} VideoLoaderOptions
61
+ * @property {string} [src] - The video source URL.
62
+ * @property {number} [timeout] - Maximum time in milliseconds before the load is aborted.
63
+ * @property {string|null} [crossOrigin] - The CORS mode applied to the video.
64
+ * @property {boolean} [autoplay] - Whether the video should autoplay.
65
+ * @property {boolean} [loop] - Whether the video should loop.
66
+ * @property {boolean} [muted] - Whether the video should be muted.
67
+ * @property {boolean} [controls] - Whether the video should display controls (default true).
68
+ * @property {'none'|'metadata'|'auto'} [preload] - The preload strategy.
69
+ * @property {HTMLVideoElement|null} [element] - An existing DOM element to adopt.
70
+ * @property {boolean} [progressive] - Whether to render progressively during fetch (default true).
71
+ * @property {boolean} [autoReload] - Whether an external `src` change triggers a reload.
72
+ * @property {boolean} [stream] - Whether to download the video through fetch for byte progress.
73
+ * @property {import('../../utils/TinyMediaCache.mjs').default|null} [cache] - An optional shared memory cache.
74
+ */
75
+ /**
76
+ * Loads a single video with full lifecycle control.
77
+ * @extends {TinyContentLoader<HTMLVideoElement, 'video'>}
78
+ * @beta
79
+ */
80
+ declare class TinyVideoLoader extends TinyContentLoader<HTMLVideoElement, 'video'> {
81
+ /**
82
+ * Retrieves the uppercase tag name of the element this loader creates.
83
+ * @returns {string} The uppercase tag name of the underlying media element.
84
+ */
85
+ static get tagName(): string;
86
+ /**
87
+ * Creates a new video loader and validates the provided options.
88
+ * @param {VideoLoaderOptions} [options] - The loader configuration.
89
+ * @throws {TypeError} If `crossOrigin` is not a string or null.
90
+ * @throws {TypeError} If `preload` is not a string.
91
+ */
92
+ constructor(options?: VideoLoaderOptions);
93
+ /**
94
+ * The underlying `<video>` element managed by the loader.
95
+ * @returns {HTMLVideoElement|null} The underlying `<video>` element, or null before the load starts.
96
+ */
97
+ get video(): HTMLVideoElement | null;
98
+ }
99
+ export default TinyVideoLoader;
100
+ //# sourceMappingURL=TinyVideoLoader.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TinyVideoLoader.d.mts","sourceRoot":"","sources":["../../../../../../../src/v1/libs/html/loader/beta/formats/TinyVideoLoader.mjs"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,iBAAiB,MAAM,yBAAyB,CAAC;AAGrD,YAAkB,kBAAkB,GACpC;;;;IAAoB,GAAG,AAAvB,CACA,EADW,MAAM,CACjB;;;;IAAoB,OAAO,AAA3B,CACA,EADW,MAAM,CACjB;;;;IAAyB,WAAW,AAApC,CACA,EADW,MAAM,GAAC,IAAI,CACtB;;;;IAAqB,QAAQ,AAA7B,CACA,EADW,OAAO,CAClB;;;;IAAqB,IAAI,AAAzB,CACA,EADW,OAAO,CAClB;;;;IAAqB,KAAK,AAA1B,CACA,EADW,OAAO,CAClB;;;;IAAqB,QAAQ,AAA7B,CACA,EADW,OAAO,CAClB;;;;IAAsC,OAAO,AAA7C,CACA,EADW,MAAM,GAAC,UAAU,GAAC,MAAM,CACnC;;;;IAAmC,OAAO,AAA1C,CACA,EADW,gBAAgB,GAAC,IAAI,CAChC;;;;IAAqB,WAAW,AAAhC,CACA,EADW,OAAO,CAClB;;;;IAAqB,UAAU,AAA/B,CACA,EADW,OAAO,CAClB;;;;IAAqB,MAAM,AAA3B,CACA,EADW,OAAO,CAClB;;;;IAAmE,KAAK,AAAxE,CACF,EADa,OAAO,gCAAgC,EAAE,OAAO,GAAC,IAAI,CAClE;CAAA,CAAA;AAfD;;;;;;;;;;;;;;;GAeG;AAEH;;;;GAIG;AACH,cAAM,eAAgB,SAAQ,iBAAiB,CAHhB,gBAAgB,EAAE,OAAO,CAGT;IAC7C;;;OAGG;IACH,MAAM,KAAK,OAAO,IAFL,MAAM,CAIlB;IAED;;;;;OAKG;IACH,YAAY,OAAO,AAJhB,CACA,EADQ,kBAIa,EAavB;IAED;;;OAGG;IACH,IAAI,KAAK,IAFI,gBAAgB,GAAC,IAAI,CAIjC;CACF;eAEc,eAAe"}
@@ -0,0 +1,60 @@
1
+ /**
2
+ * @fileoverview Concrete loader for videos.
3
+ */
4
+ import TinyContentLoader from './TinyContentLoader.mjs';
5
+ /**
6
+ * @typedef {Object} VideoLoaderOptions
7
+ * @property {string} [src] - The video source URL.
8
+ * @property {number} [timeout] - Maximum time in milliseconds before the load is aborted.
9
+ * @property {string|null} [crossOrigin] - The CORS mode applied to the video.
10
+ * @property {boolean} [autoplay] - Whether the video should autoplay.
11
+ * @property {boolean} [loop] - Whether the video should loop.
12
+ * @property {boolean} [muted] - Whether the video should be muted.
13
+ * @property {boolean} [controls] - Whether the video should display controls (default true).
14
+ * @property {'none'|'metadata'|'auto'} [preload] - The preload strategy.
15
+ * @property {HTMLVideoElement|null} [element] - An existing DOM element to adopt.
16
+ * @property {boolean} [progressive] - Whether to render progressively during fetch (default true).
17
+ * @property {boolean} [autoReload] - Whether an external `src` change triggers a reload.
18
+ * @property {boolean} [stream] - Whether to download the video through fetch for byte progress.
19
+ * @property {import('../../utils/TinyMediaCache.mjs').default|null} [cache] - An optional shared memory cache.
20
+ */
21
+ /**
22
+ * Loads a single video with full lifecycle control.
23
+ * @extends {TinyContentLoader<HTMLVideoElement, 'video'>}
24
+ * @beta
25
+ */
26
+ class TinyVideoLoader extends TinyContentLoader {
27
+ /**
28
+ * Retrieves the uppercase tag name of the element this loader creates.
29
+ * @returns {string} The uppercase tag name of the underlying media element.
30
+ */
31
+ static get tagName() {
32
+ return 'VIDEO';
33
+ }
34
+ /**
35
+ * Creates a new video loader and validates the provided options.
36
+ * @param {VideoLoaderOptions} [options] - The loader configuration.
37
+ * @throws {TypeError} If `crossOrigin` is not a string or null.
38
+ * @throws {TypeError} If `preload` is not a string.
39
+ */
40
+ constructor(options = {}) {
41
+ if (options.element !== null &&
42
+ options.element !== undefined &&
43
+ !(options.element instanceof HTMLVideoElement)) {
44
+ throw new TypeError('The "element" option must be an HTMLVideoElement or null.');
45
+ }
46
+ const mimeType = {
47
+ mp4: ['{mime}; codecs="avc1.42E01E, mp4a.40.2"', '{mime}; codecs="avc1.640028, mp4a.40.2"'],
48
+ webm: ['{mime}; codecs="vp9, opus"', '{mime}; codecs="vp8, vorbis"'],
49
+ };
50
+ super('video', mimeType, options);
51
+ }
52
+ /**
53
+ * The underlying `<video>` element managed by the loader.
54
+ * @returns {HTMLVideoElement|null} The underlying `<video>` element, or null before the load starts.
55
+ */
56
+ get video() {
57
+ return this.media;
58
+ }
59
+ }
60
+ export default TinyVideoLoader;