amotify 0.0.23 → 0.0.25

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amotify",
3
- "version": "0.0.23",
3
+ "version": "0.0.25",
4
4
  "description": "UI Component for React",
5
5
  "main": "dist/launch.js",
6
6
  "types": "dist/@types.d.ts",
@@ -115,7 +115,6 @@ declare global {
115
115
  sheets.forEach( ( sheet,index ) => {
116
116
  let {
117
117
  sheetName,
118
- headers = [],
119
118
  rows,
120
119
  merges = [],
121
120
  styles = []
@@ -124,21 +123,10 @@ declare global {
124
123
 
125
124
  workbook.addWorksheet( sheetName );
126
125
  const worksheet = workbook.getWorksheet( sheetName );
127
-
128
- let Headers = headers.map( ( header,index ) => {
129
- let { key,value } = header;
130
- return {
131
- key: key,
132
- header: value
133
- }
134
- } );
135
-
136
- worksheet.columns = Headers;
137
126
  worksheet.addRows( rows );
138
127
 
139
- for ( let [ from,to ] of merges ) {
128
+ for ( let [ from,to ] of merges )
140
129
  if ( from && to ) worksheet.mergeCells( from + ':' + to );
141
- }
142
130
  for ( let style of styles ) {
143
131
  let {
144
132
  type,
@@ -27,9 +27,6 @@ html {
27
27
  transition: opacity $animation-time-middle;
28
28
  background-color: $color-dark;
29
29
  }
30
- amotify-app {
31
- all: initial !important;
32
- }
33
30
  .AMOTIFY_be_origin {
34
31
  max-width: 200rem;
35
32
  min-height: $viewHeight;
@@ -14,6 +14,7 @@ export const LaunchSubApplication = ( props: amotify.global.LaunchReactApplicati
14
14
  appearances
15
15
  } = props;
16
16
  let base = $( baseElement );
17
+
17
18
  if ( !base[ 0 ] || !reactElement ) return;
18
19
  if ( appearances ) {
19
20
  let {
package/src/launch.tsx CHANGED
@@ -82,7 +82,7 @@ const amotify: amotify = {
82
82
 
83
83
  export { amotify,launchID }
84
84
 
85
- if ( global.amotify ) {
85
+ if ( window.amotify ) {
86
86
  global[ ( 'amotify_' + launchID ) as 'amotify' ] = amotify;
87
87
  } else {
88
88
  global.amotify = amotify;
package/src/preload.tsx CHANGED
@@ -41,7 +41,8 @@ let tags: Jsmin.CreateElement.Args[] = [
41
41
  parent: document.head,
42
42
  id: 'ThemeColorMetaTag',
43
43
  attr: { name: 'theme-color',content: '#45515c' },
44
- },{
44
+ },
45
+ {
45
46
  parent: document.body,
46
47
  tag: 'amotify-app',
47
48
  id: launchID,
@@ -56,4 +57,44 @@ let tags: Jsmin.CreateElement.Args[] = [
56
57
  for ( let tag of tags ) {
57
58
  if ( tag.id && $( '#' + tag.id )[ 0 ] ) continue;
58
59
  $.createElement( tag );
59
- }
60
+ }
61
+
62
+ // ( () => {
63
+ // let amotifyRoot = document.createElement( 'amotify-app' );
64
+ // amotifyRoot.id = launchID;
65
+ // let shadow = amotifyRoot.attachShadow( { mode: 'open' } );
66
+
67
+ // let link = document.createElement( 'link' );
68
+ // link.href = 'https://public.comun.jp/@env/amotify/v3.1.7/amotify.min.css';
69
+ // link.rel = 'stylesheet';
70
+
71
+ // let sheetDIV = document.createElement( 'div' );
72
+ // sheetDIV.className = 'AMOTIFY_be AMOTIFY_be_sheet';
73
+
74
+ // let snackbar = document.createElement( 'div' );
75
+ // snackbar.className = 'AMOTIFY_be AMOTIFY_be_snackbar';
76
+ // snackbar.innerHTML = 'HELLO';
77
+
78
+ // let loader = document.createElement( 'div' );
79
+ // loader.className = 'AMOTIFY_be AMOTIFY_be_loader';
80
+
81
+ // let root = document.createElement( 'div' );
82
+ // root.className = 'AMOTIFY_be AMOTIFY_be_root';
83
+
84
+ // shadow.appendChild( link );
85
+ // shadow.appendChild( sheetDIV );
86
+ // shadow.appendChild( snackbar );
87
+ // shadow.appendChild( loader );
88
+ // shadow.appendChild( root );
89
+
90
+ // document.body.appendChild( amotifyRoot );
91
+
92
+ // // amotifyRoot.shadowRoot.get
93
+
94
+ // setTimeout( () => {
95
+ // let a = amotifyRoot.shadowRoot!.querySelectorAll( '.AMOTIFY_be_snackbar' );
96
+
97
+ // a[ 0 ].innerHTML = 'AAAA';
98
+ // console.log( '======' );
99
+ // },1000 );
100
+ // } )();