@elice/material-pdf 1.260305.0 → 1.260430.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.
@@ -2,18 +2,30 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var _styled = require('@emotion/styled/base');
5
6
  var jsxRuntime = require('react/jsx-runtime');
6
7
  var intl = require('@elice/intl');
7
8
  var classnames = require('classnames');
8
9
  var MaterialPdfContent = require('./MaterialPdfContent.js');
9
- var MaterialPdf_styled = require('./MaterialPdf.styled.js');
10
10
  var en = require('./locales/en.json.js');
11
11
  var ko = require('./locales/ko.json.js');
12
12
 
13
13
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
14
14
 
15
+ var _styled__default = /*#__PURE__*/_interopDefaultCompat(_styled);
15
16
  var classnames__default = /*#__PURE__*/_interopDefaultCompat(classnames);
16
17
 
18
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
19
+ var StyledMaterialPdfWrapper = /*#__PURE__*/_styled__default.default("div", {
20
+ target: "e1k2con20"
21
+ })("production" === "production" ? {
22
+ name: "193oemp",
23
+ styles: "margin:0;flex:2 1;width:100%;height:100%;overflow:hidden;background-color:#22222c"
24
+ } : {
25
+ name: "193oemp",
26
+ styles: "margin:0;flex:2 1;width:100%;height:100%;overflow:hidden;background-color:#22222c",
27
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
28
+ });
17
29
  var MaterialPdf = function MaterialPdf(_ref) {
18
30
  var className = _ref.className,
19
31
  materialPdfId = _ref.materialPdfId,
@@ -25,7 +37,7 @@ var MaterialPdf = function MaterialPdf(_ref) {
25
37
  //
26
38
  return jsxRuntime.jsx(intl.RawEliceIntlProvider, {
27
39
  value: __intl,
28
- children: jsxRuntime.jsx(MaterialPdf_styled.StyledMaterialPdfWrapper, {
40
+ children: jsxRuntime.jsx(StyledMaterialPdfWrapper, {
29
41
  className: classnames__default.default(prefixCls, className),
30
42
  children: jsxRuntime.jsx(MaterialPdfContent.default, {
31
43
  materialPdfId: materialPdfId,
@@ -1,11 +1,22 @@
1
+ import _styled from '@emotion/styled/base';
1
2
  import { jsx } from 'react/jsx-runtime';
2
3
  import { IntlComponentBuilder, RawEliceIntlProvider } from '@elice/intl';
3
4
  import classnames from 'classnames';
4
5
  import MaterialPdfContent from './MaterialPdfContent.js';
5
- import { StyledMaterialPdfWrapper } from './MaterialPdf.styled.js';
6
6
  import messageEn from './locales/en.json.js';
7
7
  import messageKo from './locales/ko.json.js';
8
8
 
9
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
10
+ var StyledMaterialPdfWrapper = /*#__PURE__*/_styled("div", {
11
+ target: "e1k2con20"
12
+ })("production" === "production" ? {
13
+ name: "193oemp",
14
+ styles: "margin:0;flex:2 1;width:100%;height:100%;overflow:hidden;background-color:#22222c"
15
+ } : {
16
+ name: "193oemp",
17
+ styles: "margin:0;flex:2 1;width:100%;height:100%;overflow:hidden;background-color:#22222c",
18
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
19
+ });
9
20
  var MaterialPdf = function MaterialPdf(_ref) {
10
21
  var className = _ref.className,
11
22
  materialPdfId = _ref.materialPdfId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elice/material-pdf",
3
- "version": "1.260305.0",
3
+ "version": "1.260430.0",
4
4
  "description": "User view and editing components of Elice material PDF",
5
5
  "repository": "https://git.elicer.io/elice/frontend/library/elice-material",
6
6
  "license": "UNLICENSED",
@@ -14,14 +14,6 @@
14
14
  "README.md"
15
15
  ],
16
16
  "sideEffects": false,
17
- "scripts": {
18
- "start": "run-s watch",
19
- "prebuild": "run-s clean",
20
- "build": "cross-env NODE_ENV=production rollup -c ../../rollup.config.ts --configPlugin typescript -f es -f cjs",
21
- "watch": "rollup -c ../../rollup.config.ts --configPlugin typescript -f es -f cjs -w",
22
- "lint": "eslint --ext .ts,.tsx ./src --max-warnings=0",
23
- "clean": "del-cli \"es/*\" \"cjs/*\" \"dist/*\""
24
- },
25
17
  "peerDependencies": {
26
18
  "@elice/api-client": "^1",
27
19
  "@elice/blocks": "^1",
@@ -29,13 +21,13 @@
29
21
  "@elice/icons": "^1",
30
22
  "@elice/intl": "^0",
31
23
  "@elice/markdown": "^1",
32
- "@elice/material-shared-types": "1.260305.0",
33
- "@elice/material-shared-utils": "1.260305.0",
34
24
  "@elice/types": "^1",
35
25
  "@emotion/react": "^11.10.0",
36
26
  "@emotion/styled": "^11.10.0",
37
27
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
38
- "react-use": "^17.0.0"
28
+ "react-use": "^17.0.0",
29
+ "@elice/material-shared-types": "1.260430.0",
30
+ "@elice/material-shared-utils": "1.260430.0"
39
31
  },
40
32
  "dependencies": {
41
33
  "classnames": "^2.2.0",
@@ -49,14 +41,29 @@
49
41
  "@elice/icons-legacy": "npm:@elice/icons@0.230814.0",
50
42
  "@elice/intl": "0.241127.0",
51
43
  "@elice/markdown": "1.241015.0",
52
- "@elice/material-shared-types": "1.260305.0",
53
- "@elice/material-shared-utils": "1.260305.0",
44
+ "@elice/rollup-config": "^1.260406.0",
54
45
  "@elice/types": "^1.251229.0",
55
46
  "@emotion/react": "^11.10.0",
56
47
  "@emotion/styled": "^11.10.0",
57
48
  "@types/classnames": "^2.3.1",
58
49
  "@types/react": "~17.0.9",
59
- "react": "^17.0.2",
60
- "react-use": "^17.2.4"
50
+ "cross-env": "^7.0.3",
51
+ "del-cli": "^3.0.1",
52
+ "eslint": "~9.39.0",
53
+ "npm-run-all": "^4.1.5",
54
+ "react": "~18.2.0",
55
+ "react-use": "^17.2.4",
56
+ "rollup": "^4.0.0",
57
+ "typescript": "~5.9.3",
58
+ "@elice/material-shared-types": "1.260430.0",
59
+ "@elice/material-shared-utils": "1.260430.0"
60
+ },
61
+ "scripts": {
62
+ "start": "run-s watch",
63
+ "prebuild": "run-s clean",
64
+ "build": "cross-env NODE_ENV=production rollup -c ../../rollup.config.ts --configPlugin typescript -f es -f cjs",
65
+ "watch": "rollup -c ../../rollup.config.ts --configPlugin typescript -f es -f cjs -w",
66
+ "lint": "eslint --ext .ts,.tsx ./src --max-warnings=0",
67
+ "clean": "del-cli \"es/*\" \"cjs/*\" \"dist/*\""
61
68
  }
62
- }
69
+ }
@@ -1,4 +0,0 @@
1
- export declare const StyledMaterialPdfWrapper: import("@emotion/styled").StyledComponent<{
2
- theme?: import("@emotion/react").Theme;
3
- as?: React.ElementType;
4
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,21 +0,0 @@
1
- 'use strict';
2
-
3
- var _styled = require('@emotion/styled/base');
4
-
5
- function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
6
-
7
- var _styled__default = /*#__PURE__*/_interopDefaultCompat(_styled);
8
-
9
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
10
- var StyledMaterialPdfWrapper = /*#__PURE__*/_styled__default.default("div", {
11
- target: "egr64h00"
12
- })("production" === "production" ? {
13
- name: "193oemp",
14
- styles: "margin:0;flex:2 1;width:100%;height:100%;overflow:hidden;background-color:#22222c"
15
- } : {
16
- name: "193oemp",
17
- styles: "margin:0;flex:2 1;width:100%;height:100%;overflow:hidden;background-color:#22222c",
18
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
19
- });
20
-
21
- exports.StyledMaterialPdfWrapper = StyledMaterialPdfWrapper;
@@ -1,4 +0,0 @@
1
- export declare const StyledMaterialPdfWrapper: import("@emotion/styled").StyledComponent<{
2
- theme?: import("@emotion/react").Theme;
3
- as?: React.ElementType;
4
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,15 +0,0 @@
1
- import _styled from '@emotion/styled/base';
2
-
3
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
4
- var StyledMaterialPdfWrapper = /*#__PURE__*/_styled("div", {
5
- target: "egr64h00"
6
- })("production" === "production" ? {
7
- name: "193oemp",
8
- styles: "margin:0;flex:2 1;width:100%;height:100%;overflow:hidden;background-color:#22222c"
9
- } : {
10
- name: "193oemp",
11
- styles: "margin:0;flex:2 1;width:100%;height:100%;overflow:hidden;background-color:#22222c",
12
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
13
- });
14
-
15
- export { StyledMaterialPdfWrapper };