@cocreate/fullscreen 1.11.2 → 1.12.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ # [1.12.0](https://github.com/CoCreate-app/CoCreate-fullscreen/compare/v1.11.2...v1.12.0) (2024-11-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * observer taget has been renamed to selector ([e88dde8](https://github.com/CoCreate-app/CoCreate-fullscreen/commit/e88dde860318429de3a246227b41bf352e6be0a1))
7
+ * pretier.config.js and file formating ([5fe15e4](https://github.com/CoCreate-app/CoCreate-fullscreen/commit/5fe15e4e3075a9b2bbf0737c8d861b73f2985fb9))
8
+
9
+
10
+ ### Features
11
+
12
+ * add prettier.config.js and format files ([171bfbd](https://github.com/CoCreate-app/CoCreate-fullscreen/commit/171bfbdc9946416518c02b4424c50dfcfb0318e2))
13
+
1
14
  ## [1.11.2](https://github.com/CoCreate-app/CoCreate-fullscreen/compare/v1.11.1...v1.11.2) (2024-06-12)
2
15
 
3
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/fullscreen",
3
- "version": "1.11.2",
3
+ "version": "1.12.0",
4
4
  "description": "Toggle any html element to view in fullscreen mode. Easy configuration and targeting using the fullscreen and target attribute.",
5
5
  "keywords": [
6
6
  "fullscreen",
@@ -0,0 +1,16 @@
1
+ module.exports = {
2
+ tabWidth: 4,
3
+ semi: true,
4
+ trailingComma: "none",
5
+ bracketSameLine: true,
6
+ useTabs: true,
7
+ overrides: [
8
+ {
9
+ files: ["*.json", "*.yml", "*.yaml"],
10
+ options: {
11
+ tabWidth: 2,
12
+ useTabs: false
13
+ },
14
+ }
15
+ ],
16
+ };
package/src/index.js CHANGED
@@ -84,7 +84,7 @@ function exitFullscreen() {
84
84
  observer.init({
85
85
  name: 'CoCreateFullscreen',
86
86
  observe: ['addedNodes'],
87
- target: '[fullscreen]',
87
+ selector: '[fullscreen]',
88
88
  callback: mutation =>
89
89
  initElements([mutation.target])
90
90
  });
@@ -93,7 +93,7 @@ observer.init({
93
93
  name: 'CoCreateFullscreen',
94
94
  observe: ['attributes'],
95
95
  attributeName: ['fullscreen'],
96
- target: '[fullscreen]',
96
+ selector: '[fullscreen]',
97
97
  callback: mutation => {
98
98
  if (mutation.oldValue === null)
99
99
  initElements([mutation.target])